Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bascule
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
391.
▲
by
bascule
14y ago
What does extend give you that delegation doesn't?
392.
▲
by
bascule
14y ago
Yes, hence why I was constantly calling it "DCI" in quotes
393.
▲
by
bascule
14y ago
Which is pretty much what you'd expect... making two objects instead of one cuts the speed approximately in half.
394.
▲
by
bascule
14y ago
Why not do DCI with delegation instead of mixins?
395.
▲
by
bascule
14y ago
While this is true, it currently has pathological performance on all major Ruby implementations.
396.
▲
"DCI" in Ruby is completely broken
(tonyarcieri.com)
83 points
by
bascule
14y ago
|
66 comments
397.
▲
by
bascule
14y ago
"No, there's a distinction between a code translation and a code compilation." [citation needed]
398.
▲
by
bascule
14y ago
You're essentially asking why someone would write a compiler. Why wouldn't someone consume target language X directly instead of using a compiler to generate output in target language X. We want our programs to wind up as machine language,
399.
▲
by
bascule
14y ago
Missing from this post is any sort of discussion about how modern x86 CPUs are poorly designed for the types of programs most people are developing these days. Managed language runtimes represent the bulk of programs people are running on s
400.
▲
by
bascule
14y ago
There's no reason that you would need to freeze anything but the state. Things like classes represent the function associated with that state. I'd generally say runtime modifications to the class hierarchy are BAD BAD BAD and you should nev
401.
▲
by
bascule
14y ago
Relatively compared to what? MD5 and SHA1 can be computed very very quickly and can easily be brute forced on GPU clusters. Compared to PBKDF2, bcrypt, and scrypt, this system is incredibly insecure and susceptible to brute force attacks. M
402.
▲
by
bascule
14y ago
As something of an amateur cryptographer, that is DailyWTF-level idiocy to me. One of the fundamental tenants of cryptography is Kerckhoffs's principle, that we should be able to publish the designs of cryptosystems for public scrutiny an
403.
▲
by
bascule
14y ago
JRuby makes it easy to start as many scripting containers as you want: http://jruby.org/apidocs/org/jruby/embed/ScriptingContainer....
404.
▲
by
bascule
14y ago
Only one of the proposals had anything to do with immutability
405.
▲
2012: The year Rubyists learned to stop worrying and love threads
(tonyarcieri.com)
99 points
by
bascule
14y ago
|
26 comments
406.
▲
by
bascule
14y ago
I think they're working on a language for mere mortals instead of FP wizards. Seems cool to me. I mean, you could respond to claims like: > This addresses problems under which functional programming (FP) labors, like creating cycles of
407.
▲
by
bascule
14y ago
It seems like if you spent two seconds reading the description in the gist you'd clearly see it wasn't. 2 million messages per second is a pretty respectable number, and fairly comparable to systems like distributed Erlang and Akka.
408.
▲
by
bascule
14y ago
It's the de facto place people put events together because practically everyone is on Facebook. That's pretty much all I use it for now, and it actually isn't too bad for that purpose.
409.
▲
by
bascule
14y ago
I'm kind of surprised you didn't pursue the JVM and InvokeDynamic for this purpose instead of PyPy
410.
▲
by
bascule
14y ago
Nashorn is a JavaScript runtime based on the InvokeDynamic instruction and series of APIs added to the Java VM in Java 7. These APIs are set to be radically improved in Java 8, compiling the existing JVM instruction to bytecode which will p
411.
▲
by
bascule
14y ago
I'll just leave this here: http://www.youtube.com/watch?v=xEJ1n13soWU
412.
▲
by
bascule
14y ago
See my multiple "(and even then!)" caveats ;)
413.
▲
by
bascule
14y ago
> not all security is crypto Yes, but you started off talking about crypto so that's what I'm going to address... Unless you're a cryptographer (and even then), any time you're using any type of crypto the risk model in your head is pro
414.
▲
by
bascule
14y ago
There is certainly not an EventMachine counterpart for every Ruby library available today. Furthermore, the EventMachine versions of most libraries are second class citizens compared to the synchronous versions of these libraries. Goliath
415.
▲
by
bascule
14y ago
> It's not completely transparent to developers, or it shouldn't be. It should be as transparent as possible. Frameworks like Rails should expose the highest level cryptographic features possible and enable them by default. Secure-by-de
416.
▲
by
bascule
14y ago
A bad benchmark is worse than nothing
417.
▲
by
bascule
14y ago
Because nonblocking is the secret ingredient in the async sauce, of course. With it, you go fast. Without it, you go slow. Without all that callback spaghetti, how are you supposed to scale to roflmillions of users?
418.
▲
by
bascule
14y ago
Goliath is not only relatively slow, it limits you to using libraries which have both an EventMachine implementation and an em-synchrony-style Fibered wrapper around them, which is basically a scant fraction of the total Ruby libraries av
419.
▲
by
bascule
14y ago
While I think that people should learn the cryptographic primitives as much as possible, the point of my post was to use a well-reputed open source authenticated encryption library. In addition to NaCl, there's also Keyczar: http://www.k
420.
▲
by
bascule
14y ago
First entry on the svbtle network sure. I've blogged extensively here before http://unlimitednovelty.com And while it shouldn't be news to anyone using crypto, I still feel like it's a poorly-known subject.
More ›