Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
piranha
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
piranha
13y ago
> - fast to compile: probably faster or equal to industry standard Ruby/Jekyll Jekyll is slow enough to not count something faster than Jekyll 'incredibly fast'. It should be much faster than Jekyll to be at least 'fast'. For me, fast i
122.
▲
by
piranha
13y ago
Writing "incredibly fast" and not providing any clues of how fast is it is not exactly the best way to promote an application IMO. Update: okay, it generates simplest site possible with 250 posts in 7 seconds. This is not the worst performa
123.
▲
by
piranha
13y ago
No, to get foo["bar"]() in CLJS you write ((:bar foo)). :bar in this case is a function, which returns a value by a key ":bar" from "foo", it's not a property.
124.
▲
by
piranha
13y ago
Just happened so, plus if you forgot to put quotes around argument you could easily end up with a lot of problems. :)
125.
▲
by
piranha
13y ago
Btw, it ignores .svn and a bit more common stuff if it doesn't find itself in a git or hg repo.
126.
▲
by
piranha
13y ago
> Writing something like Jekyll in C would be an absolute pain in the arse, and totally not worth it. Well, here you go: https://github.com/piranha/gostatic Wasn't pain in the ass, wasn't hard, works so much faster than Jekyll (or my
127.
▲
by
piranha
13y ago
Just do it then.
128.
▲
by
piranha
13y ago
It's often is. But somehow people end up with 'git remote' aliased to 'gr', and I ask the same question. :) I use gr very often and so not have to tab complete is a plus.
129.
▲
by
piranha
13y ago
When you start adding coloring, nice output, .hg/.gitignore support, it becomes just a big mess. Been there, done that.
130.
▲
by
piranha
13y ago
Yes, I've mentioned it in my post. :) It's nice, but it does not perform replaces. I could add .xignore support though.
131.
▲
by
piranha
13y ago
Eh, it's not very easy to fix that unfortunately. I opened an issue and will try to work on this a bit, but then in a meanwhile... Maybe I can strip colors for outputting things on windows. Edit: argh, outputting colors on windows means mak
132.
▲
by
piranha
13y ago
By slow startup I mean that 0.1s is the fastest small Python program using optparse, os, sys, re will start up on my system (i7 2.0, ssd). Search and replace tool will be slower. I constantly get 0.02s-0.3s results from 'gr' on my small-to-
133.
▲
by
piranha
13y ago
Oh, it's the library I use has no idea about colors in DOS. :( I'll have to do some research on how to fix this... :\
134.
▲
by
piranha
13y ago
> your inconsistent error passing has me somewhat confused. That was my first somewhat big program in Go plus coming from Python made a bit of hustle here. I still believe exceptions to be much better than this error-returning. :\ Never
135.
▲
by
piranha
13y ago
Should be fixed, can you download new version please?
136.
▲
by
piranha
13y ago
Argh! I see, I think I can solve this. Give me a bit of time please. :)
137.
▲
by
piranha
13y ago
In case of go fix `-r` does something absolutely unrelated. To be honest, I was just lazy inventing a command line key and it's recursive by design, so it happened this way. Plus, as you say, it's easy to remember because of mnemonics. I ha
138.
▲
by
piranha
13y ago
Well you see... It's in Python, which breaks the deal for me (I despise slow startup). But interactive mode sounds interesting, that's something I'll consider implementing.
139.
▲
by
piranha
13y ago
Ha-ha, I've got an issue asking to add some notes about conflict with oh-my-zsh alias. :) I hastily suggested `gp`, but it's already taken by same plugin, so I changed it to `gor` there, thanks for idea.
140.
▲
by
piranha
13y ago
Here we go, links are in readme. They work for me on 64-bit OS X and 64-bit Linux and `file` reports they are indeed 32-bit, but I haven't tested them on real 32-bit OS (I don't have any ATM).
141.
▲
by
piranha
13y ago
Thanks!
142.
▲
by
piranha
13y ago
It does for me. :) I partially did it because I was too tired of looking up sed's regexp syntax and was afraid I'm going to fuck up everything.
143.
▲
by
piranha
13y ago
Hah, haven't thought about them (I use osx too much it seems). They will appear as soon as I figure out how to add them to Makefile without making it too ugly. :)
144.
▲
Go Replace - simple and fast search and replace tool for command line
(solovyov.net)
70 points
by
piranha
13y ago
|
63 comments
145.
▲
by
piranha
13y ago
Logout/login is enough.
146.
▲
by
piranha
13y ago
But compiling + running means that every time you have absolutely fresh process without old state, so it's pretty different from what you can do with JS or Python.
147.
▲
by
piranha
13y ago
> How mature is ClojureScript these days? Seems to be pretty mature, there are apps in App Store written in it, and there are companies, using it for their front-end (i.e. Prismatic :)). > Does the compiler eliminate unused code fro
148.
▲
Internationalization for in-browser applications
(solovyov.net)
3 points
by
piranha
13y ago
|
0 comments
149.
▲
by
piranha
14y ago
> trivial for any highly skilled security tester to interface this way with your database. It's not if you're not doing dumb stuff.
150.
▲
by
piranha
14y ago
Heh, I see... Well, if you decide to add some support for that, I would love to help (you can find my email in my profile). I have no idea about arabic and of course chinese/japanese is somewhat strange, but for cyrillic it's the same as fo
More ›