Hi all,

I've just released a stable version of `clojurejs' -- an
unimaginatively named Clojure library for translating a Clojure subset
language to Javascript.

clojurejs is something I've been working on for a few weeks as part of
a larger web app in Clojure. The code's a bit crufty (reflects my
incremental discovery of the inconsistencies in Javascript), but
functional and I wanted put something out there for people to check
out. I welcome bug reports and feedback. It's been useful for my
specific needs, and I'd be happy if it's even marginally useful to
others.

I realize there are a number of other efforts to compile/translate
Clojure (or other Lisp subset) to Javascript, but nothing quite fit my
requirements, which prompted me to build clojurejs. Some useful
aspects of clojurejs are:

* Consistent scoping in let and loop/recur forms
* Macros
* Implicit return
* loop/recur translates to Javascript for loops
* Translates Clojure vectors, strings, keywords, symbols and maps to
Javascript equivalents
* dot form access to methods and properties
* Adds a couple of Clojure incompatible special forms for Javascript
specific behavior

If this seems interesting I've posted a more detailed entry on my blog
(http://cynojure.posterous.com/clojurejs-a-clojure-subset-to-
javascript-tran).

Oh, and the github link: http://github.com/kriyative/clojurejs

Look forward to feedback.

Cheers,

-ram

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to