News for hackers. Stuff that matters.
Re:Redline Smalltalk V1.0 by rubinelli on Monday November 26, 2012 @10:44AM (#4832385)
It's hard to detect if a terse question is a request for information or a challenge. Back to the subject, Ruby's OO is much closer to Smalltalk's vision. Method dispatching in Java is essentially dereferencing a function pointer (found by traversing a class hierarchy) and adding a hidden argument (self.) In Ruby, you can override an object's method dispatching mechanism to be whatever you want it to be (although the default behavior is very similar to Java's.) This makes it a lot harder to optimize, (your JIT compiler can't simply inline those calls) but it opens all kinds of interesting meta-programming possibilities.
Re:Redline Smalltalk V1.0 by spooneybarger on Monday November 26, 2012 @11:12AM (#4832532)
For anyone interested in the general topic of implementing a dynamic language on the jvm, Charles Nutter has a ton of good material around invoke dynamic and jruby.