Oh, yeah, MIT style license is the case.

Regarding Github -- yes, of course, I wanted to upload it there when the version will have less bugs. But actually I guess it's the good time to do it already now, since today e.g. I've made some/many changes, and unfortunately edit the sources without any subversion control :( Will upload soon to Git.

P.S.: updated the evaluator. Fixed `cons` function, `if` expression evaluation. Also added standard `map` function and `lambda` support; now it can (from example 7 on the page):

(map (lambda (x) (* x x)) ; anonymous function
     (list 1 2 3 4))      ; maps the list to '(1 4 9 16)

Dmitry.

On 30.01.2011 3:51, Nick Fitzgerald wrote:
Cool! Is the code open source? I don't see a license... If you just haven't thought about it yet, the MIT license seems appropriate :)

Also, I see you link to the source, but is there a repo I can follow, for example, on Github?

Take it easy!

_Nick_



On Sat, Jan 29, 2011 at 12:54 PM, Dmitry A. Soshnikov <[email protected] <mailto:[email protected]>> wrote:

    Yeah, cool. I guess there are many other versions of the same
    stuff. But the thing which I wrote is really just for fun, since
    it's a very toy and limited interpreter (and it's not a compiler
    from scheme to something). Beside the fun, the reason was to
    explain further how the interpreter works, topics on scope, etc.
    So, it's not a complete language, but repeat, for now just a toy ;)

    Dmitry.


    On 29.01.2011 23:49, Jacob Beard wrote:

        Similar idea: http://www-sop.inria.fr/indes/scheme2js/

        Cheers,

        Jake

        On 11-01-29 03:37 PM, Dmitry A. Soshnikov wrote:

            Probably it will be interesting for someone on the list.
            The port to CoffeeScript of "The Metacircular Evaluator"
            section -- 4.1 of the SICP book.

            Features: no special :P Currently it's

             - very inefficient,
             - evaluate without optimized pre-parsing,
             - it's _not_ a register-based virtual machine (that's one
            which is from chapter 5 of the book), but just the very
            first version from chapter 4.1.
             - it doesn't use all the power of the JS objects (e.g. to
            handle the scope and environments) - but it's done
            specially to provide explanations how scope chain lookup
            is made.

            - but - it works :D However, still very limited. Only some
            of the Scheme's features do work.

            Future plans:
             - rewrite it with using JS objects but not Lisp's list
            imitation;
             - implement virtual machine from chapter 5.

            Evaluator:
            http://dmitrysoshnikov.com/coffee-lisp-eval/index.html

            Section in the book:
            
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-26.html#%_sec_4.1

            Dmitry.



-- To view archived discussions from the original JSMentors Mailman
    list: http://www.mail-archive.com/[email protected]/

    To search via a non-Google archive, visit here:
    http://www.mail-archive.com/[email protected]/

    To unsubscribe from this group, send email to
    [email protected]
    <mailto:jsmentors%[email protected]>


--
To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to