Dropping down to The Metal™
summary
A Ruby library called javascript gem parses and executes JavaScript-like code inside MRI by abusing Ruby parsing rules, using method_missing + instance_eval to emulate var, function and uninitialized-variable semantics, and mapping console.log to Ruby methods. The prototype runs many JavaScript snippets, rescues runtime (not syntax) errors, and is surprisingly robust and tested; performance tricks mentioned (unary + coercions) claim small speedups, and the code is published on GitHub and installable via jam install.
AI-written summary · about
chapters (7)
- 0:00Start
- 8:30Running Java with Ruby
- 9:30How Ruby works
- 10:49Running JS with Ruby
- 17:41Uninitialized Variables
- 20:43Functions
- 24:21Function Arguments








