4 ms·
From my preliminary read of that page and the linked loan.java, it looks like the java is actually being processed into C code and then complied by the server.
by cdcarter 14y ago
From my preliminary read of that page and the linked loan.java, it looks like the java is actually being processed into C code and then complied by the server. Can anyone confirm if this is how the system is architected to "support" java?
- eropple 14y agoIt's honestly hard to tell, because behind the SEO-dross and random attacks on established, already-high-performance tools, there aren't many details at all. At first (I hadn't looked at the linked file) I immediately said "you have to be kidding me", but...then I looked at the Java file and I think you might be more on-target than I'm comfortable with. It does not look like it's running in a normal JRE, which makes me really skeptical of the sibling post claiming that "you can write Java however you want". (If it was running in a normal JRE, a ton of the stuff in loan.java makes little sense...)
- chc 14y agoThe FAQ says it depends on either OpenJDK or the official Oracle Java, so it doesn't sound like it's a special Java-to-C compiler, unless it's something like a runtime JVM bytecode-to-C compiler.
- eropple 14y agoThat could be the case--I'm not going to dig deeply into it because honestly I like having my brain still work, but it could be that the insanity in loan.java is just because of the crappy C API being wedged into Java. I'm not exactly sure how his claims of instant refreshing "scripts" works if it's a conventional JDK, though. I mean, that's just not possible, even with hot reloading (as Play Framework developers have learned to their disappointment).
- asharp 14y agoIt wouldn't surprise me if it has something like GCJ creating something like a .so that it loads on the fly. That is just a thought though, i haven't inspected it particularly closely.