Skip to content
vic

haileys/twostroke

A Javascript implementation in Ruby!

haileys/twostroke.json
{
"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"
}

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

repl

yep, that’s unmodified underscore.js:

tests lol