Expanding JavaScript's metaobject protocol
Tom Austin · 2008
A metaobject protocol (MOP) can add a great deal of flexibility to a language.Because of JavaScript's prototype-based design and the small number of language constructs, it is possible to create a powerful MOP through relatively minimal changes to the language.This project discusses JavaScript and Ruby's existing metaprogramming features.It also outlines JOMP, the JavaScript One-metaclass Metaobject Protocol, which gives the language much of the same power that Ruby has.Finally, it discusses a web development framework built with JSF and a version of Rhino JavaScript that includes JOMP.