GithubHelp home page GithubHelp logo

tvao / jvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from douchuan/jvm

0.0 0.0 0.0 1.29 MB

JVM in Rust, written as a learning project.

License: MIT License

Shell 1.24% Python 1.06% Java 0.30% Rust 97.40%

jvm's Introduction

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

  • Pass test cases in JDK
  • Pass TCK
  • GC (crate)
  • JIT / interp (crate)
  • class verification (crate)
  • After GC built, ready for optimize System.arraycopy (the key of performance)
  • WebAssembly, make the JVM work in Browser
  • java options (-version, -server...)

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

  • Pass TCK
  • Refactor & Rewrite
  • Divide into several crates, build a collection of modular and reusable vm technologies

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

jvm's People

Contributors

douchuan avatar certainlach avatar fujinjun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.