Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
berdario
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
511.
▲
by
berdario
12y ago
I was a bit puzzled by the "lightweight old style classes" remark, so I tried it out: >>> sys.getsizeof(OldStyleClass), sys.getsizeof(NewStyleClass) (104, 904) >>> sys.getsizeof(OldStyleClass()), sy
512.
▲
by
berdario
12y ago
It wouldn't be much different than in any other language, that can let you define a mutable hashable type that breaks the hashability/equality contracts needed by maps. Mutating things that you'd use as keys is a well known n
513.
▲
by
berdario
12y ago
You're probably thinking of this: https://speakerdeck.com/alex/why-python-ruby-and-javascript-...
514.
▲
by
berdario
12y ago
You can still iterate through all the properties of an object (the indexes associated to the code units, in case of a String) and recursively implement equality on them this way. The fact that, up to ES5, there's been no agreement on w
515.
▲
by
berdario
12y ago
Still, I'd like if Map worked with values m = new Map([[new String(1), 1]]) > Map { "1": 1 } m.get("1") > undefined
516.
▲
by
berdario
12y ago
I'm not sure I grok this, but I think that the main points are: - reducers can work on tree structures, and thus can exploit parallelism. This would be like using a map that requires only the Foldable typeclass - In Haskell you have st
517.
▲
by
berdario
12y ago
Reminds me of the xkcd color experiment: http://xkcd.com/color/rgb/ http://blog.xkcd.com/2010/05/03/color-survey-results/
518.
▲
by
berdario
12y ago
Location: I'm currently visiting San Francisco, but I'm an EU citizen Remote: Yes, but I'd prefer to meet the team regularly Willing to relocate: Yes Technologies: Clojure, Python, I'd really like to work with Haskell...
519.
▲
by
berdario
12y ago
> There are a few walled gardens with great payment experiences (the App Store, Amazon) I'm of a different opinion: Amazon is much stricter than other online merchants, and they don't give you meaningful errors when something
520.
▲
by
berdario
12y ago
Tinder's a dating application where you swipe left or right to declare your interest in the candidate. If there's mutual interest you can communicate with the other person. Depending on how starved you are, you might find yourself
521.
▲
by
berdario
12y ago
I'd like to know what is exactly wrong, I tried to look for the reddit thread, assuming it would've been this one: http://www.reddit.com/r/rust/comments/2al19j/rust_for_functi... but there'
522.
▲
by
berdario
12y ago
Num a => a is actually (Num a) => (a) that is, Num a means roughly something like template<class a> class INum{ } `a` is an instance of `Num` if you want to write a times2 function(f(x) = x*2), its
523.
▲
by
berdario
12y ago
I suggest you enable the `+m` flag for multiline input This way, you don't have to use the weird curly braces trick (which I always forget), at the cost of having to type one more enter when entering a oneliner FYI, this is my ghci.con
524.
▲
by
berdario
12y ago
(invewrapper/pew author here) I just discovered your project, so I haven't tried it yet, but since the approach seems similar, it should work just fine on Windows (maybe with some tweaks)... and you can just add the Powershell pro
525.
▲
by
berdario
12y ago
Location: Currently in San Francisco Remote: Yes, but I'd prefer to meet the team regularly Willing to relocate: Yes (but since I'm travelling in SF, if you're in Europe you might prefer to contact me again when I'll be
526.
▲
by
berdario
12y ago
If I had to guess: prematurely ending a stream is a problem for the current stream, and for the next stream as well, and thus is more desiderable to avoid corruption in bytes signaling an EOF than other bytes. corrupting an EOF in something
527.
▲
by
berdario
12y ago
For those who are wondering which is the galaxy that is being talked about: http://en.wikipedia.org/wiki/NGC_3190
528.
▲
by
berdario
12y ago
Since the Opal developers are reading: I'm curious, do you plan to support Encodings and proper Ruby strings, or it isn't worth the effort, and you'll keep using plain javascript strings? (I tried to look for this detail on t
529.
▲
by
berdario
12y ago
I almost always check the diff before committing (I use git diff --cached more often than plain git diff)
530.
▲
by
berdario
12y ago
At least if things go horribly wrong, by having all your commits signed you can instantly point out where the illicit tampering happened and have some proof that the illicit change wasn't willingly added by you I started to sign all my
531.
▲
by
berdario
12y ago
If what you're thinking is the so called Design by Contract (using preconditions and postconditions), there are plenty of languages with that feature: The original one is Eiffel, if I'm not mistaken: http://en.wikipedia
532.
▲
by
berdario
12y ago
Not only that, but since it will be encoded in utf-8 and then percent-encoded the number of bytes transmitted will actually increase: something as simple as 邗諾 becomes %E9%82%97%E8%AB%BE , 18 characters! Still, as other mentioned it's
533.
▲
by
berdario
12y ago
I used to think the same, then I tried to actually get into environments with a more balanced gender ratio, and I realized that actually I was not faring any better than before. Apparently I have low desirability and have few unique appeals
534.
▲
by
berdario
12y ago
I have had mostly the same experience. On the plus side: a lot of companies care about Open Source experience and are able to evaluate it. On the down side: companies who do it are still the minority, and you'll get a lot of competitio
535.
▲
by
berdario
12y ago
I tried to use git annex assistant: I can get files to be backed-up on a server, but when doing sync between 2 different machines it has never worked (I've been doing the xmpp-setup dance multiple times, and it's especially painfu
536.
▲
by
berdario
12y ago
Anywhere, Relocation, preferably Full Time Stack: Clojure, Python, I'd really like to work with Haskell... also: F#, Java, Scala, Ruby, C Resume: I haven't updated it in the last 9 months, but to post something before the thread w
537.
▲
by
berdario
13y ago
I fully agree with the first paragraph. This issue is compounded by the flood of naive questions: patronizing users will thus spend less time reading decently written questions/answers/comments, and their reading comprehension wil
538.
▲
by
berdario
13y ago
You can also install straight from a github tarballs: pip install " https://github.com/mitsuhiko/click/tarball/master#egg=click" to pin a specific revision: pip install " https://githu
539.
▲
by
berdario
13y ago
Thanks, I never read it before. Anyhow, its conclusions seem to be mistaken to me: > It’s also a bug in the Linux kernel. But it’s also easily fixed in userland: at boot, seed urandom explicitly. Most Linux distributions have done this f
540.
▲
by
berdario
13y ago
Can someone explain me this? > In considering RSA, the book recommends /dev/random, despite having previously advised readers to avoid /dev/random in favor of /dev/urandom. The book was right the first time.
More ›