douchuan / jvm

JVM in Rust, written as a learning project.
MIT License
519 stars 31 forks source link
java jvm modular rust vm

Have a great goal is a very important thing, such as Moon Landing. What is the meaning of this plan? That's the process of achieving this goal, the produce of industry and technology.

Sun is a great company, in the era of C++, they created JVM & HotSpot.

Now, we have Rust, a better tool, let’s remake JVM!

Pay tribute to medical workers at the front! Thank you for your contribution to the fight against the epidemic.

Roadmap

In summary, the roadmap is built on a 3-step progress.

Well, it's a long term plan, Sun spent 30 years to improve VM, Oracle continue doing it.

The journey of a thousand miles begins with one first step. Even the sage was once an ordinary human being.

Just Do It.

Running

# setup JDK
# setup rust toolchain
# clone this project

# compile sample by javac
cd jvm/sample
javac HelloWorld.java
cd ..

# modify r.sh JAVA_HOME according to your env
# exec sample
cd jvm
bash r.sh