4 ms·
> JVM can't do dynamic dispatch on multiple arguments It can since Java 7, the instruction invokedynamic was added for this kind of stuff. The implementation
by _old_dude_ 6y ago
> JVM can't do dynamic dispatch on multiple arguments
It can since Java 7, the instruction invokedynamic was added for this kind of stuff.
The implementation for Pattern Matching (the project Amber) [1] will use the very same instruction.
[1] https://cr.openjdk.java.net/~briangoetz/amber/pattern-match-translation.html https://cr.openjdk.java.net/~briangoetz/amber/pattern-match-...
- brabel 6y agoGroovy has done dynamic dispatch this way for a decade now.
- pjmlp 6y agoAnd if it wasn't for Gradle, it would have been forgotten for now. The language that was supposed to replace Java in JEE and Spring.
- the_only_law 6y agoWhat ever happened to it? I recall Groovy and Grails being pretty big in the Java world several years ago.
- pjmlp 6y agoThe interest died off, JUGs stop talking about it and everyone went back to Java, while some of us got money to port those projects back to Java. Had it not been for Gradle, and there would be hardly a reason to learn it in 2021, other than historical interest.
- brabel 6y agoWhere I work we use Groovy heavily for testing (with the Spock Framework - which is amazing), in our Jenkins pipelines, and for Gradle Plugins in our build. I see a pretty active community around it and lots of new releases (from the libraries and the language itself) coming up all the time. Your picture of Groovy being dead couldn't be more wrong in my experience.
- pjmlp 6y agoA programming language is alive as long as there is one developer using it, doesn't mean it still matters at scale. As mentioned, Gradle is still around.