From: Robert Bralic
Subject: LISP into a web browser...!!
Date: 
Message-ID: <ejpngh$m3o$1@ss408.t-com.hr>
Does any know where I can found some open source
browser to put inside him a LISP for Bytecode interpreter,
like Java virtual machine...
And technical details of LlSP bytecode interpretter and
browser...

Thanks in Advance...!!
·············@si.t-com.hr

From: ······@gmail.com
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <1163947907.642959.174040@e3g2000cwe.googlegroups.com>
You might want to have a look at ABCL (http://armedbear.org/abcl.html),
a Common Lisp implementation in Java. It might be possible to package
it up as a Java applet and have it running inside any browser
supporting Java.
From: Alex Mizrahi
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <456090e9$0$49197$14726298@news.sunsite.dk>
(message (Hello ·······@gmail.com)
(you :wrote  :on '(19 Nov 2006 06:51:47 -0800))
(

 d> You might want to have a look at ABCL (http://armedbear.org/abcl.html),
 d> a Common Lisp implementation in Java. It might be possible to package
 d> it up as a Java applet and have it running inside any browser
 d> supporting Java.

i'm afraid it won't be that easy because of Java security features (applets 
typically are not allowed to access local file system etc).
i remember there were some activities about making ABCL Java Web Start 
friendly.

)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"People who lust for the Feel of keys on their fingertips (c) Inity") 
From: Pascal Bourguignon
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <87ac2n34rm.fsf@thalassa.informatimago.com>
"Robert Bralic" <·············@si.t-com.hr> writes:

> Does any know where I can found some open source
> browser to put inside him a LISP for Bytecode interpreter,
> like Java virtual machine...
> And technical details of LlSP bytecode interpretter and
> browser...

If you don't want to work 100% in lisp, there are a lot of open source
web browsers, and you could integrate for example ecl (Embedded Common
Lisp at http://ecls.sourceforge.net/).  You could just take Firefox
and put ecl in it (somebody integrated ecl into vim).


If you want to do it 100% in lisp, the choices are narrower.

First, you could consider emacs, with for example the web browser w3
which is writen in elisp, and of course, elisp and its bytecode itself.

In Common Lisp there is the closure web browser,
http://common-lisp.net/project/closure/ which runs on SBCL, OpenMCL
and CMUCL.  

If you need a LVM, and _bytecodes_ to distribute compiled lisp program
(like java classes) instead of sources (like javascript programs),
then you'll have to design your own bytecode, write your own VM and
your own Lisp compiler to this VM.  You could choose to implement in
CL the VM of clisp (which is well defined,
http://clisp.sourceforge.net/impnotes/bytecode.html 
has a reference implementation (written in C), and for which a CL
compiler exists (clisp).  Then you could run clisp bytecode on sbcl
with closure.

Another path would be to finish adding threads to clisp, which would
allow McCLIM and closure to work on it, so you'd get the web browser +
VM automatically.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.
From: ·············@gmail.com
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <1164133344.462779.296830@e3g2000cwe.googlegroups.com>
Robert Bralic ha scritto:

> Does any know where I can found some open source
> browser to put inside him a LISP for Bytecode interpreter,
> like Java virtual machine...
> And technical details of LlSP bytecode interpretter and
> browser...
>
> Thanks in Advance...!!
> ·············@si.t-com.hr

I had had the same idea some time ago but it never materialized into
code... I think you could just write a Firefox plugin or IE ActiveX
Control, have it launch a common lisp subprocess, and communicate with
it through simple text-based i/o. This way you would have the full
power of common lisp (in particular, on some implementations, the
ability to natively compile your code rather than byte-interpreting
it). Of course, there are issues with security (as with java applets),
and you should write some sort of primitives enabling the lisp process
to draw something in the plugin's space in the browser window, if
that's your objective.
As I said before, I wanted to do something like this but never did
'cause of lack of time and experience with c++ - 'cause I think you
have to use c++ in order to write this kind of plugin.
Let me know if you have any idea, or if you try to implement something
-- I can lend an hand, though as I said, I'm not very experienced...
good luck!

cheers
alessio
From: Rob Thorpe
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <1164139849.589489.5400@m73g2000cwd.googlegroups.com>
·············@gmail.com wrote:
> Robert Bralic ha scritto:
>
> > Does any know where I can found some open source
> > browser to put inside him a LISP for Bytecode interpreter,
> > like Java virtual machine...
> > And technical details of LlSP bytecode interpretter and
> > browser...
> >
> > Thanks in Advance...!!
> > ·············@si.t-com.hr
>
> I had had the same idea some time ago but it never materialized into
> code... I think you could just write a Firefox plugin or IE ActiveX
> Control, have it launch a common lisp subprocess, and communicate with
> it through simple text-based i/o. This way you would have the full
> power of common lisp (in particular, on some implementations, the
> ability to natively compile your code rather than byte-interpreting
> it). Of course, there are issues with security (as with java applets),
> and you should write some sort of primitives enabling the lisp process
> to draw something in the plugin's space in the browser window, if
> that's your objective.
> As I said before, I wanted to do something like this but never did
> 'cause of lack of time and experience with c++ - 'cause I think you
> have to use c++ in order to write this kind of plugin.
> Let me know if you have any idea, or if you try to implement something
> -- I can lend an hand, though as I said, I'm not very experienced...

Though not Common Lisp this thing actually has materialised:-
http://www-sop.inria.fr/mimosa/personnel/Florian.Loitsch/scheme2js/

It translates scheme programs into Javascript programs you can embed in
webpages.

A number of other lisp and scheme interpreters have been written that
run in Javascript
http://alex.ability.ru/scheme.html
http://www.crockford.com/javascript/scheme.html
From: John Thingstad
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <op.tjdrvxudpqzri1@pandora.upc.no>
On Tue, 21 Nov 2006 19:22:24 +0100, <·············@gmail.com> wrote:

> I had had the same idea some time ago but it never materialized into
> code... I think you could just write a Firefox plugin or IE ActiveX
> Control, have it launch a common lisp subprocess, and communicate with
> it through simple text-based i/o. This way you would have the full
> power of common lisp (in particular, on some implementations, the
> ability to natively compile your code rather than byte-interpreting
> it). Of course, there are issues with security (as with java applets),
> and you should write some sort of primitives enabling the lisp process
> to draw something in the plugin's space in the browser window, if
> that's your objective.
> As I said before, I wanted to do something like this but never did
> 'cause of lack of time and experience with c++ - 'cause I think you
> have to use c++ in order to write this kind of plugin.
> Let me know if you have any idea, or if you try to implement something
> -- I can lend an hand, though as I said, I'm not very experienced...
> good luck!
>

One thing I might mention.
Under Unix might want to run the process (a plugin I suppose) in a  
restricted
shell (rbash, chroot, ...).
http://www.securityfocus.com/infocus/1575
This limits file, socket and OS access. It is not as flexible as managed  
code,
but should be much simpler to make it work with ANSI CL.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
From: John Thingstad
Subject: Re: LISP into a web browser...!!
Date: 
Message-ID: <op.tjdrz1wjpqzri1@pandora.upc.no>
On Tue, 21 Nov 2006 20:17:47 +0100, John Thingstad  
<··············@chello.no> wrote:

> On Tue, 21 Nov 2006 19:22:24 +0100, <·············@gmail.com> wrote:
>
>> I had had the same idea some time ago but it never materialized into
>> code... I think you could just write a Firefox plugin or IE ActiveX
>> Control, have it launch a common lisp subprocess, and communicate with
>> it through simple text-based i/o. This way you would have the full
>> power of common lisp (in particular, on some implementations, the
>> ability to natively compile your code rather than byte-interpreting
>> it). Of course, there are issues with security (as with java applets),
>> and you should write some sort of primitives enabling the lisp process
>> to draw something in the plugin's space in the browser window, if
>> that's your objective.
>> As I said before, I wanted to do something like this but never did
>> 'cause of lack of time and experience with c++ - 'cause I think you
>> have to use c++ in order to write this kind of plugin.
>> Let me know if you have any idea, or if you try to implement something
>> -- I can lend an hand, though as I said, I'm not very experienced...
>> good luck!
>>
>
> One thing I might mention.
> Under Unix might want to run the process (a plugin I suppose) in a  
> restricted
> shell (rbash, chroot, ...).
> http://www.securityfocus.com/infocus/1575
> This limits file, socket and OS access. It is not as flexible as managed  
> code,
> but should be much simpler to make it work with ANSI CL.
>

Also look at seamonkey http://www.mozilla.org/projects/seamonkey/
for a web based application building tool.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/