libera/#commonlisp - IRC Chatlog
Search
11:50:02
green
My latest distraction is starting to work a little, so I thought I'd share. It's a way to run java code in lisp by JIT transpiling java bytecode to lisp. It maps java classes to CLOS classes, and maps java exceptions to lisp conditions. reflection, class loading, and more work. Well, enough to startup and run simple programs using OpenJDK 8's rt.jar classes. It's really just intended for when you want to use a
11:50:02
green
java library in your lisp project. But there's a long way to go! https://github.com/atgreen/openldk
11:58:59
green
Yes, I've heard of that. But what's nice about this is that you can interleave java and lisp code, use conditions/restarts and debug your code with sly.
11:59:33
green
Many years ago I worked on gcj, which mapped java classes to C++ classes, and this is similar in spirit. In fact, I'm using some of the gcj testsuite.
13:10:38
green
scymtym: no relation. In fact I had never heard of that. Although I see that it uses the mauve testsuite I created 20+ years ago.
13:16:01
green
looking at it.. it's pretty cool, and much further along than openldk (it could start eclipse!). But it makes different decisions for a couple of things, so not exactly the same. One nice thing is that it implements the JNI interface, which I haven't tackled yet. I'll definitely learn for this -- thanks for pointing it out!
14:48:06
fe[nl]ix
green: this is your opportunity to take over Cloak and merge the two code bases. David has stopped working on it long time ago
14:49:00
green
If I don't end up borrowing some code, I'll definitely use it for further inspiration.
14:49:10
fe[nl]ix
I might actually need it at some point if I can get my startup idea off the ground
14:51:15
green
Yes, I was looking to integrate some java code with lisp a couple of years ago and wasn't very happy with the options. I think LispWorks has some special magic that you can't reproduce on SBCL. screenshotbot takes advantage of that, but you can't run the whole stack on SBCL (not that I want to.. I just noticed that they have the same problem).
14:52:32
green
And then I have some history with fringe java projects (gcj, the mauve testsuite, and I created/wrote the first version of the GNU Classpath License, which makes some of this possible)
19:07:34
Shinmera
I don't know why I keep doing this but I can't stop myself https://mastodon.tymoon.eu/@shinmera/113952151000329523