Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dvirsky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
86 ms
·
811.
▲
by
dvirsky
12y ago
the golang alias works pretty well, but until you learn this trick it's annoying as hell.
812.
▲
by
dvirsky
12y ago
It doesn't even have generics!
813.
▲
by
dvirsky
12y ago
Not a lawyer, but I guess this probably falls under fair use, which includes (from the Wikipedia article) both search engine use, and library archiving of content. http://en.wikipedia.org/wiki/Fair_use
814.
▲
by
dvirsky
13y ago
the only place where I constantly find this annoying is the url package. url := oh wait, shit, already imported that. a couple of times I just changed the name of the import, as you sometimes do in Python: import ( urllib "net/
815.
▲
by
dvirsky
13y ago
I think it falls under the definition of Cybersquatting as described here: "Cybersquatting (also known as domain squatting), according to the United States federal law known as the Anticybersquatting Consumer Protection Act, is registe
816.
▲
by
dvirsky
13y ago
Oh, thanks for the info, didn't know that. Still I don't think that Go should have that feature.
817.
▲
by
dvirsky
13y ago
BTW I don't think the compiler is "smart enough" - but the Http API has 2 (probably more) overloaded methods for each type you may want to pass to it. Go doesn't have method overloading by design. If that's somethin
818.
▲
by
dvirsky
13y ago
Yeah, well, knowing the Go philosophy, it makes sense not to have the compiler solve ambiguities like that, especially since a function can have its own methods.
819.
▲
by
dvirsky
13y ago
It's just a design decision of the http library, that its router by default accepts an interface and not a function - so internally you need this little adapter to make the function comply with that interface. I also loved this little
820.
▲
by
dvirsky
13y ago
Nice article. As for keeping stable dependencies while remaining go get compliant - I opted for a slightly simpler solution. We fork dependencies to our internal git server (gitlab in this case, sometimes we just keep our stable fork on git
821.
▲
by
dvirsky
13y ago
Yep, that's a solid approach, although it might be limiting to some people. Also, maybe having something like ZRANGEBYLEXSTORE would also allow caching and sorting of the results by allowing quick ZINTER etc.
822.
▲
by
dvirsky
13y ago
Keep in mind that the current redis implemention doesn't include scores for auto completion, and assumes all the entries in a sorted set have the same score to be able to do autocomplete style search. How to sort is up to you but it mi
823.
▲
by
dvirsky
13y ago
Read TFA and find out :)
824.
▲
by
dvirsky
13y ago
9M rows? Luxury! Big data starts at 100M rows! /s
825.
▲
by
dvirsky
13y ago
I've been using 3.12 with 14.04 beta2(using the gnome staging ppa). I can't say it's very different from 3.10, but it feels a bit faster, and they fixed a few UX problems in the settings menus etc. Most extensions I wanted wo
826.
▲
by
dvirsky
13y ago
I'd go as far as saying "having more than a dozen lines". Bash syntax for anything other than basic execution and piping a few commands, is a disaster IMHO. Anything that requires logic should be written in a "real"
827.
▲
by
dvirsky
13y ago
I was once offered the job like this CTO, taking over from a less experienced co-founder, with his consent, while he remains in place. I didn't take the job for other reasons, but I would never have done what this guy is doing to you.
828.
▲
by
dvirsky
13y ago
70 years of Unix, that would be something
829.
▲
by
dvirsky
13y ago
I find it that HackerNews itself, while it does waste a lot of my time reading and toying with such "dead ends", keeps me on the edge of things. I've started using Go because of posts and discussions here, and it's chang
830.
▲
by
dvirsky
13y ago
I'm "only" 39, but it's been 30 years since I've written my first line of code. And I have to say that while things have changed a lot, the basics of how it is to program and how you write code, are still the same.
831.
▲
by
dvirsky
13y ago
TIL :)
832.
▲
by
dvirsky
13y ago
I remembered odd versions were unstable, but looking at the kernel info, 3.13 is a stable version. So I'm guessing they'll stick with that.
833.
▲
by
dvirsky
13y ago
FWIW I'm already using 14.04 beta2, and the kernel there is 3.13.0-20. This means the stable version will be 3.14, doesn't it?
834.
▲
by
dvirsky
13y ago
If any Gnome developers are reading this - please disregard the bullshit (of course constructive criticism isn't bullshit) - you guys are doing an awesome job, and I wouldn't trade Gnome for any desktop environment out there. Peri
835.
▲
by
dvirsky
13y ago
"run"
836.
▲
by
dvirsky
13y ago
That is so weird. Where I live, Israel, they actually have different phone numbers (police - 100, medics - 101, fire dept. - 102), and they come only if you call them specifically (if at all). Of course if something really bad happens you c
837.
▲
by
dvirsky
13y ago
The concurrent sweep thing is getting in? I sure hope so... I was disappointed not to see it there.
838.
▲
by
dvirsky
13y ago
disclaimer: this is not my work, a coworker wrote it as an experiment, I liked it and thought I'd post it here.
839.
▲
Monkey-Patching blocking Python networking to use tornado
(github.com)
1 points
by
dvirsky
13y ago
|
1 comments
840.
▲
by
dvirsky
13y ago
Welp, those were a good 2 minutes of procrastination
More ›