Re: Javascript: Time Traveller From the Year 1962!

[prev] [thread] [next] [lurker] [Date index for 2005/04/09]

From: Chris Winters
Subject: Re: Javascript: Time Traveller From the Year 1962!
Date: 01:11 on 09 Apr 2005
* David Wheeler (david@xxxxxxxxxx.xxx) [050408 18:55]:
> My understanding from talking to some JS folks on IRC is that 
> JavaScript was never designed to do I/O. Too much of a security threat 
> in browsers. Of course, this makes it practically useless as a 
> general-use language (maybe one can hack around that in Rhino, but I 
> haven't played with it, yet).
> 
>   http://www.mozilla.org/rhino/

I've played with this quite a bit. It's pretty nifty, and it does have
an include:

 load( 'foo.js' );

Exposing Java classes via JavaScript is pretty simple as well and you
can do all your IO that way pretty easily. And creating JavaScript
objects that implement Java interfaces is pretty easy too.  (Examples
on request...)

Chris

-- 
Chris Winters (http://www.cwinters.com)
Building enterprise-capable snack solutions since 1988
There's stuff above here

Generated at 12:00 on 12 Apr 2005 by mariachi 0.52