[plt-scheme] Re: Porting DrScheme/MzScheme to Adobe Flex

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Sun Oct 12 12:20:01 EDT 2008

kbohdan at mail.ru wrote:
> Shriram Krishnamurthi wrote:
>> David Van Horn has a preliminary Beginner Scheme-to-JavaScript compiler.
> 
> Any links/articles/sources ? Will appreciate any resources even if still 
> on early stages.

It is still too early to release anything, but I have a "compliler" that 
translates representative Advanced Student programs into JavaScript.  My 
goal was to get demos of games written with the World teachpack on the 
web---Malcom X style---by any means necessary.  JavaScript and Advanced 
Student are close enough that a simple transliteration will do (for 
correct programs that can get by on the JS impoverished numbers).  So 
the compiler is more of a pretty printer, with a little bit of World 
teachpack support hacked together in JavaScript.

You can see an example here, which demos a game from the recent release 
of HtDW:

    http://www.ccs.neu.edu/home/dvanhorn/tmp/version9/

I'd like to turn this into a real AS to JS compiler that could be used 
as a tool within DrScheme, but that will take work.  It needs support 
for more complicated control flow (to handle check-expect).  And there 
are numerous distinctions between JS and Scheme semantics that have to 
be worked around.  Numbers.  Etc.

This is also not a priority of mine (I have a moral imperative at the 
moment), but I think it's a good project.  What I'd really like to do is 
give it to an ambitious student to develop.

David



Posted on the users mailing list.