top | item 46062221

(no title)

atgreen | 3 months ago

https://github.com/atgreen/openldk

discuss

order

pshirshov|3 months ago

I think it's an extremely valuable tool. If it can compile from sources - it would be priceless.

atgreen|3 months ago

openldk itself builds from source. It reads jar/class files and JIT-transpiles them to common lisp code, which is in turn compiled to native instructions. It does not read java source code at all. But you can run OpenJDK's javac with OpenLDK. You can write "native" methods in Common Lisp, extend Java classes with CLOS classes, use conditions/restarts, :before/:after/:around methods, dump images, etc. There's some ways to go still, but -- like I said -- javac just started working as a native lisp image executable, which was an important milestone.