Hacker News new | ask | show | jobs
by pyrale 1720 days ago
> compiler and tools writing in Java is fun too, particularly in JDK 16. (Think ‘Haskell the good parts’.)

I would love a more in-depth exploration about this part of your message, if you have some time. I didn't explore the compiler/tools ecosystem for Java for some time, would love to know the advances it got that prompted your message.

1 comments

I just like it personally. For one thing you have the solid jvm runtime, ides that work, good performance, etc.

With sealed types, var, and similar features, pattern matching, it is getting better all the time in small ways.

I recently wrote a dsl in Java that lets you write a Java AST , transform it as a tree, write Java source code, compile it. It is not quite as simple as doing the same in LISP and you have to mangle names a little to unerase types, but the IDE helps you find the names.