From: Curt Hibbs Date: 2004-03-20T03:38:25+09:00 Subject: Re: Mozilla gets support for other client-side languages in the future, how about Ruby? Sean Russell wrote: > > > If there were some way to script Mozilla with Ruby & XUL I could use it > > right now for a project at work. > > Ditto. Double-ditto. > > How much work is involved? Anyone have any idea? > > Again, I don't know, not knowing the details of what would be > involved. A really basic interface, as I said, probably wouldn't take > more than a few hours. What gets tricky (or takes up time) is stuff > like: > > 1) Packaging and documentation. > 2) Sandboxing (not important for local apps, but critical if > distributed apps are a target) > 3) The DOM interface > > I suspect that much of the IPC work has been already done in the XPCOM > project; there may be an opportunity for code reuse there. SeaMonkey is the Mozilla subproject that implements JavaScript, and it is not dependent on Mozilla (i.e. it can be embedded in other applications). So the thing to do would be to locate the glue code that binds the SeaMonkey JavaScript implementation to rest of Mozilla. Hopefully, this could would be isolated in a single module (or small set of modules) that could be cloned and then modified for Ruby. Curt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.610 / Virus Database: 390 - Release Date: 3/3/2004