ratel-core

High performance JavaScript to JavaScript compiler with a Rust core

Github stars Tracking Chart

Ratel

ratel-core

Travis CI
Crates.io
Discord
Gitter

Ratel is a high performance JavaScript to JavaScript compiler with a Rust core. Its goal is to take newest versions of JavaScript as input, and produce output that's compatible with older versions of the language.

Online REPL with Wasm, courtesy of cmtt.

This repo is split in two separate folders:

  • core contains the main Rust codebase that does all the heavy lifting.
  • ffi contains the Node.js wrapper around the Rust core with Neon bindings.

For common usage checkout the ratel-cli repo.

Performance

While still incomplete, the Parser part of Ratel can run circles around even the fastest parsers built in JavaScript, here it is compared to Esprima using the ratel FFI.

ratel chart

The benchmarks visualized above can be executed in the ffi folder using the npm run benches command.

Contributors

This project is created and maintained by Maciej Hirsz with the help of awesome contributors. Extended thanks to:

  • cmtt for work on the Node.js FFI and testing.
  • Jan Schulte for the initial version of transformer and codegen.

The smirky Ratel by the courtesy of A. L. Palmer.

License

This code is distributed under the terms of both the MIT license
and the Apache License (Version 2.0), choose whatever works for you.

See LICENSE-APACHE and LICENSE-MIT for details.

Main metrics

Overview
Name With Ownerratel-rust/ratel-core
Primary LanguageRust
Program languageRust (Language Count: 5)
Platform
License:Apache License 2.0
所有者活动
Created At2016-04-21 00:03:01
Pushed At2023-01-07 02:42:38
Last Commit At2019-03-11 12:40:49
Release Count11
Last Release Namev0.7.0 (Posted on )
First Release Namev0.3.0 (Posted on )
用户参与
Stargazers Count435
Watchers Count13
Fork Count17
Commits Count520
Has Issues Enabled
Issues Count68
Issue Open Count26
Pull Requests Count65
Pull Requests Open Count19
Pull Requests Close Count13
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private