How I Learned to Love Javascript
summary
A C extension called Johnson embeds SpiderMonkey into Ruby so JavaScript and Ruby objects cross the language boundary via proxies with transparent method and singleton changes, solve GC and thread coordination, and let Ruby run JavaScript (and JavaScript call Ruby methods), including mechanize integration that executes page scripts for accurate scraping, server+client templates via ejs, breakpoints, access to the real JS parser, and even running Ruby 1.9 bytecode in JS via HotRuby; it works but has platform and stability caveats.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:37JavaScript objects are ba
- 4:05Tight Coupli
- 6:36Use Ruby in your Java
- 14:43Attaching JS Functions EVE
- 19:56Symbology
- 22:28Rails View in








