Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (17 sloc) 0.756 kb

Twostroke

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

  • A parser (which works, but is in need of an overhaul)
  • Two compilers:
    • One that targets Javascript, perfect for obfuscation
    • And another that targets TSASM - Twostroke's internal bytecode format
  • A VM that runs TSASM bytecode
  • A minimal Javascript standard library implementation (also in need of some love)
  • A test suite containing:
    • Some tests written for Twostroke
    • Underscore.js's complete test suite (minus the cases relying on the DOM)

Why use Twostroke?

It's cool:

repl

It actually works:

yep, that's unmodified underscore.js:

tests lol

Jump to Line
Something went wrong with that request. Please try again.