haileys/twostroke
A Javascript implementation in Ruby!
{ "createdAt": "2011-10-01T06:12:33Z", "defaultBranch": "master", "description": "A Javascript implementation in Ruby!", "fullName": "haileys/twostroke", "homepage": "", "language": "JavaScript", "name": "twostroke", "pushedAt": "2015-07-07T15:33:16Z", "stargazersCount": 302, "topics": [], "updatedAt": "2025-10-01T13:32:59Z", "url": "https://github.com/haileys/twostroke"}Twostroke
Section titled “Twostroke”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?
Section titled “Why use Twostroke?”It’s cool:
Section titled “It’s cool:”
It actually works:
Section titled “It actually works:”yep, that’s unmodified underscore.js:

