From: Lars Rune Nøstdal
Subject: Re: XPCOM Bridge for Common Lisp
Date: 
Message-ID: <1218771655.6766.6.camel@blackbox>
On Wed, 2008-08-13 at 00:24 -0700, Volkan YAZICI wrote:
> Hi,
> 
> AFAIK, there doesn't exist an XPCOM bridge for Common Lisp. I think
> such a project would bring seriously good potentials for Common Lisp.
> For instance, as a very simple example, you'll be able to write cross-
> platform GUI enable applications in Common Lisp by interfacing XUL
> components through XPCOM bindings. (No need to say that you'll also be
> free to use your favorite sexp-to-xml tool.) I don't want to push this
> work to someone else's shoulders, and am volunteered to help to the
> implementation of cl-xpcom. The problem is, I don't have any
> experience with any COM derivate and looking for some sort of mentor.
> Would anybody mind assisting me in the right direction to implement an
> XPCOM bridge for Common Lisp?
> 
> 
> Regards.
> 
> P.S. There was a project -- that I couldn't recall its name right now
> -- that enables Mozilla to interpret Common Lisp code between <script>
> tags by embedding ECL into Mozilla core. But that's not the same thing
> I have in mind. In such an implementation, your common lisp code gets
> executed by Mozilla using ECL, which makes it, IMHO, impossible to
> have any REPL interaction, which I think totally terminates the crux
> of the idea.

What about hooking the REPL up to the browser via ajax/comet and using
JavaScript? No need for bindings, and it works with more browsers ...

SW> (run "alert('Hello mr. browser!');" *view*)
...popup alert dialog shows up...
SW> (run "return 3 * 2;" *view* :async-p nil)
"6"

..or with JSON, the correct type:


SW> (run "return 3 * 2;" *view* :async-p nil :json-p t)
6
SW> (+ (run "return 3 * 2;" *view* :async-p nil :json-p t)
       2)
8


..then build on this? .. this is SW btw.:
http://groups.google.com/group/symbolicweb

-- 
Lars Rune Nøstdal
http://nostdal.org/