[Gambas-user] Suggestion...
Rob Kudla
sourceforge-raindog2 at ...94...
Mon Aug 21 05:50:32 CEST 2006
On Sun August 20 2006 23:24, nando wrote:
> There is Java and there is Java Script.
In case you didn't realize it, the only relationship between Java
and Javascript is a marketing one. Sun wrote Java, Netscape
wrote Javascript to capitalize on the Java name (and made some
kind of deal with Sun to do so.)
> There is Gambas and where is 'Gambas Script' ??
I wrote a proof of concept "GambasScript" executable a few years
ago. What it did was take a Gambas program in a single file,
create a temporary project in /tmp, compile and run it.
Unfortunately, since I wrote GambasScript in Gambas and you
can't use a script as an interpreter for a script language under
Linux (or probably any other OS), I gave up on it. (That was
when I joined the call to make Gambas executables "real" (i.e.
ELF) executables with the interpreter being a library linked in
at runtime, like VB programs are.)
But I still think it would be a good idea for there to be a
Gambas interpreter that would take a single program file and
compile and run it "just in time".
> It could be possible to have a Gambas
> Script plugin for web-browsers.
VBscript as a browser plugin was a horrible idea, and is just now
starting to go away. (So were the Tcl and Perl browser
plugins.) GambasScript as a browser plugin is also a horrible
idea. The language of the web, already decreed by standards
bodies, is ECMAscript (the standardized version of Javascript.)
If we want to change it, I think our time would be better spent
trying to make Javascript suck less than try to get all the
browser makers to include a language hardly anyone has ever
heard of.
I think if we wanted to run Gambas scripts in a web browser, it
might be a better idea to just write a Gambas program that
includes the web browser component, strip the Gambas scripts out
of the <SCRIPT> tags, and run them as needed. But I think the
"generating Javascript to trigger events and doing the
processing on the server" is a better approach for Gambas web
applications.
Rob
More information about the User
mailing list