Skip to content

lineCode/rapidus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapidus

CircleCI codecov

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

Building from Source

Building on Linux

  1. Install dependencies
  • LLVM 4.0
$ # e.g. Ubuntu or Debian
$ apt-get install llvm-4.0
  1. Test
$ cargo test
  1. Build
$ cargo run --release
  1. 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

About

A toy JavaScript engine in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.7%
  • Dockerfile 0.3%