3 ms·
This is awesome! Ruby is a notoriously hard language to optimize thanks to its (wonderful) dynamism, so it's very exciting to see substantial performance gains
by woodruffw 5y ago
This is awesome! Ruby is a notoriously hard language to optimize thanks to its (wonderful) dynamism, so it's very exciting to see substantial performance gains with this new JIT.
Something that I noticed that might throw others for a loop as well: the changeset is north of 350K, but the actual JIT is only a couple of thousands of lines of C. 90% of the changeset is two torture test files.
- PikachuEXE 5y ago> torture test files I like this term
- jashmatthews 5y ago> the actual JIT is only a couple of thousands of lines of C Even for Ruby, a basic JIT can be implemented in a few hundred lines of C using a "threaded code" approach. Real JIT compilers got started this way. Safari JavaScriptCore's JIT used a "context threaded code" approach and was just 4k LOC https://webkit.org/blog/214/introducing-squirrelfish-extreme/ https://webkit.org/blog/214/introducing-squirrelfish-extreme...
- stanislavb 5y agoi.e. it's well tested and solid. Including running on some production Shopify systems :)