4 ms·
Maxine VM: A Metacircular VM for Java in Java
- weberc2 9y agoI skimmed, but it looks like this is just a fancy way of saying a self-hosted JVM? Can someone with more knowledge elaborate if this is in fact more significant than my assessment?
- yazr 9y agoIts not self-hosted AFAIK u need a real ugly-binary JVM to run maxime which runs the user classes. See also Jikes RVM - all the way back from 90s.
- AlphaSite 9y agoI would assume this build upon the JIT API in Hotspot, which was built for Graal.
- pjmlp 9y agoGraal is the evolution from Maxine.
- tsujamin 9y agoNot entirely true regarding JikesRVM (I've worked on this project) and from memory still not true of Maxine. Maxine and Jikes' compiler components are run during build on Oracle HotSpot etc, however at run time they are entirely self sufficient. At least in the case of Jikes, there is a small C initialiser that loads in the "Compiled" memory image of JikesRVM, initialises some handlers, then jumps into Jikes' initialisation routine which JIT compiles and brings up the remainder of the VM.
- richdougherty 9y agoThis is a "meta-circular VM". It's a Java program that interprets JVM bytecode. Since the Java program itself is running on the JVM, it actually uses the underlying JVM to do a lot of the work. This means you get a relatively fast VM but it will be a lot easier to code and debug than using a systems programming language like C++. But why? - The original paper (https://dl.acm.org/citation.cfm?id=2400689&dl=ACM&coll=DL https://dl.acm.org/citation.cfm?id=2400689&dl=ACM&coll=DL) thought of Maxine as "a highly approachable VM research platform and a productive basis for research and teaching." You can see on the roadmap (https://github.com/beehive-lab/Maxine-VM/wiki#roadmap https://github.com/beehive-lab/Maxine-VM/wiki#roadmap) that they're exploring the cutting edge of VM research. - I do a lot of tricky network programming - threads and IO. I'd love to have a VM which I could exactly control the threading and IO behaviour so that I could test tricky situations. If this VM is easy to embed in my programs and runs fast enough then it would be fascinating to try it out for writing testing code.
- tsujamin 9y agoAs per my other comment, at runtime there is no underlying "HotSpot" or other JVM, only when the bootstrap classes are compiled during the build process.
- pjmlp 9y agoThe bootstrap process makes use of a JIT pass with intrisics to generate the core image that is then used to execute the remaining part of Maxine.