JavaScript without javascript
summary
Sass runs entirely in the browser by converting Ruby to JavaScript via Opal transpile Ruby→JS, patched dozens of gems and Opal shims, and bundled with webpack plus string-replace-loader to automate fixes. The result powers an offline sass club editor with service worker; the full Ruby test suite compiles across ~80 generated versions. The shipping minified bundle hits 2.7MB minified (about 250KB compressed). Context: asm.js/webassembly examples include DOSBox/Quake/Windows95 ports, Wikimedia using libvorbis and Facebook using libjpeg for client resizes.
AI-written summary · about
chapters (11)
- 0:00Start
- 7:02Abstract Syntax Tree
- 8:52It never works. The first time
- 10:27Tools aren't perfect
- 12:27It is super tedious.
- 13:15Sass Opal
- 15:42Test Everything
- 15:58Reuse tests whenever possible
- 16:59Two Point Seven Megabytes
- 22:06x is a... string?
- 29:24Try something dumb
related talks
56mScala.js: Safety and Sanity in the Wild West of Web development
30mOpal: The Journey From JavaScript to Ruby
28mClosing Keynote
40mWebAssembly for Web Developers
35mWriting web application in Ruby
23mWeb Assembly: The Future Of Js And A Multi-Language Web
32mJavaScript is the new metal the cloud vs the browser
41mLet's build with WebAssembly!
