AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Java 8 Lambda - What's the Problem?
Ruby on the JVM can use existing Java libraries. Ruby classes are built dynamically as your application loads, so normally there is no Java class that goes along with a particular Ruby class. We also have our own object hierarchy, which means if you want a Ruby class to extend a Java class, well, we don't have multiple inheritance on the J VM. So we have to do some clever indirection, essentially make a little proxy object that actually extends the Java side and figure out how to route calls around.