A LISP Interpreter that runs inside the browser

Whatever is on your mind, whether Lisp related or not.
Post Reply
christoph
Posts: 5
Joined: Tue Oct 28, 2008 1:28 pm

A LISP Interpreter that runs inside the browser

Post by christoph » Tue Oct 28, 2008 1:33 pm

Hello everyone,

I just released a project of mine which is an interpreter for a new LISP dialect that i created for this project, called WebLisp. The special thing about it is that it runs directly inside the browser. It's in JavaScript, any browser from IE6 upwards should be able to run it. Documentation for the language is also on the site.
Its intended purpose is purely educational.

Feel free to check it out at http://weblisp.net

Enjoy,
Christoph

schoppenhauer
Posts: 99
Joined: Sat Jul 26, 2008 2:30 pm
Location: Germany
Contact:

Re: A LISP Interpreter that runs inside the browser

Post by schoppenhauer » Thu Oct 30, 2008 2:13 am

Seems like something very interesting. It runs unter Firefox, too (i.e. not only "IE6 Upwards"). It is a little strange to run a Lisp inside a JavaScript, but on the other hand, at a time when office-suites become webinterfaces, maybe this is the only chance for lisp to survive :lol:

christoph
Posts: 5
Joined: Tue Oct 28, 2008 1:28 pm

Re: A LISP Interpreter that runs inside the browser

Post by christoph » Thu Oct 30, 2008 2:53 pm

Thanks for the feedback!

What I meant with the browser support is that it doesn't run in IE5, but in IE6 and up and also all other major, modern browsers (Firefox, Opera, Safari, Chrome) - anything that can run GWT-generated JavaScript.

Kompottkin
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany
Contact:

Re: A LISP Interpreter that runs inside the browser

Post by Kompottkin » Fri Oct 31, 2008 9:30 am

What's there looks quite cool, but I can't find a macro facility. Lisp without macros is only half the fun. Are you planning to implement a macro system?

christoph
Posts: 5
Joined: Tue Oct 28, 2008 1:28 pm

Re: A LISP Interpreter that runs inside the browser

Post by christoph » Sat Nov 01, 2008 5:56 am

Macros are not supported right now.
However, they are on my TODO list. :)

schoppenhauer
Posts: 99
Joined: Sat Jul 26, 2008 2:30 pm
Location: Germany
Contact:

Re: A LISP Interpreter that runs inside the browser

Post by schoppenhauer » Sun Nov 02, 2008 5:59 pm

Have you any plans about what LISP-Dialect this one should become similar to yet?
Sorry for my bad english.
Visit my blog http://blog.uxul.de/

christoph
Posts: 5
Joined: Tue Oct 28, 2008 1:28 pm

Re: A LISP Interpreter that runs inside the browser

Post by christoph » Mon Nov 03, 2008 3:39 pm

Well, the core-language is done for now and it should mostly be like Scheme. Differences are that Scheme has some additional features (like macros and continuations) and some keywords are named differently, e.g., "set!" is "set", "car" is "first", and "cdr" is "rest".

Library-wise, I will do something completely different. The base library will remain little for now, e.g., I have no intention to include file operations ;) .
Right now, I am working on a graphics library that will hopefully make for interesting applications.

Exolon
Posts: 49
Joined: Sat Jun 28, 2008 12:53 pm
Location: Ireland
Contact:

Re: A LISP Interpreter that runs inside the browser

Post by Exolon » Mon Nov 03, 2008 4:18 pm

christoph wrote:The base library will remain little for now, e.g., I have no intention to include file operations ;) .
Right now, I am working on a graphics library that will hopefully make for interesting applications.
What about image files then? :)

christoph
Posts: 5
Joined: Tue Oct 28, 2008 1:28 pm

Re: A LISP Interpreter that runs inside the browser

Post by christoph » Wed Nov 05, 2008 5:41 pm

Well, the graphics library will allow for drawing stuff onto a canvas. There will be no saving or loading of image files, however.

I want to enable linking to programs, though. And by linking to a program that draws some image, you sort of save and load that image ;)

As a matter of fact I just uploaded a new version which supports very basic drawing functions. Clearing the screen and drawing black lines is all, as a matter of fact.
The rest can be derived anyhow :geek: . Drawing in color could prove tough, though.

Check it out: http://weblisp.net

TheGZeus
Posts: 79
Joined: Mon Jun 30, 2008 10:46 am

Re: A LISP Interpreter that runs inside the browser

Post by TheGZeus » Wed Nov 05, 2008 10:28 pm

You might want to look into how UCB LOGO does it's drawing.
It's a derivative of Lisp (it's sort of an M-Lisp) and can do some pretty cool stuff.

Post Reply