Skip to content
A(n incomplete) Javascript implementation in Ruby!
JavaScript Ruby
Find file
Pull request Compare This branch is 18 commits ahead, 8 commits behind master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
compile.rb
disasm.rb
parse.rb
repl.js
repl.rb
runner.rb
test.rb
twostroke.gemspec

README.md

Twostroke

travis

Twostroke is a Javascript implementation written in pure Ruby. It currently consists of:

  • A hand-written parser
  • A TSASM compiler (Twostroke's internal bytecode format)
  • A VM that runs TSASM bytecode
  • A minimal Javascript standard library implementation
  • A test suite containing:
    • Some tests written for Twostroke
    • Underscore.js's complete test suite (minus the cases relying on the DOM)
    • Parts of mootools' test suite

Why use Twostroke?

It's cool:

repl

It actually works:

yep, that's unmodified underscore.js:

tests lol

Something went wrong with that request. Please try again.