Rapidus
A toy JavaScript engine
Features
- Small
- Support Tracing-JIT compiling
- Currently, a function fitting for the following rules would be JIT-compiled.
- Accessing only its arguments and local variables (not global variables)
- Only Numbers and Booleans are used
- Calling only itself
- Currently, a function fitting for the following rules would be JIT-compiled.
Building from Source
Building on Linux
- Install dependencies
- LLVM 4.0
$ # e.g. Ubuntu or Debian
$ apt-get install llvm-4.0
- Test
$ cargo test
- Build
$ cargo run --release
- Run
$ cargo run --release example/XXX.js
Building on other platforms
I don't know.
Use Dockerfile
- Docker image: uint256/rapidus
$ docker build -t rapidus:1.0 .
$ docker run -it rapidus:1.0