David Nolen writes:
> On Mon, Oct 11, 2010 at 10:02 AM, Steve Purcell
> wrote:
>
> Well, taking a brief look over your code, it seems like the main
> difference is that scriptjure is macro-based, so all the code
> generation
> gets done at compile-time.
>
>
> js-gen generate
On Mon, Oct 11, 2010 at 10:02 AM, Steve Purcell wrote:
> Well, taking a brief look over your code, it seems like the main
> difference is that scriptjure is macro-based, so all the code generation
> gets done at compile-time.
>
js-gen generates js at compile time.
>
> That makes scriptjure fas
Well, taking a brief look over your code, it seems like the main
difference is that scriptjure is macro-based, so all the code generation
gets done at compile-time.
That makes scriptjure faster, but at the expense of needing an unquote
form - "(clj ...)" - to splice clojure expressions into the ja
I've heard of scriptjure but never used it or looked at it. My
interests took me in another direction and I've never circled back. I
would be interested to know how the differ.
Thanks,
Jim
On Oct 11, 3:21 am, Steve Purcell wrote:
> jim writes:
> > Due to popular demand*, I resuscitated my code
jim writes:
> Due to popular demand*, I resuscitated my code to generate javascript
> from s-expressions. This was what I coded to learn about logic
> programming in Clojure.
>
> Github: http://github.com/jduey/js-gen
> Clojars: http://clojars.org/net.intensivesystems/js-gen
>
> *actually it was
Cool! Thanks.
Also sorry for the accidental double post and I had a typo, I meant the
weird result was:
(println
(javascript (new ClassGenerator {prop1 "a" prop2 "b"})))
> var MyClass = new(ClassGenerator, {prop1:"a",prop2:"b"});
Instead of-
var MyClass = new ClassGenerator({prop1:"a", prop2:"b
I got my static IP today. I'm setting up the web server now. I'll
setup the Git server ASAP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroups
Cool! Rather then waiting, you could host it in the interim on GitHub or
Google Code so people like myself can submit patches (which I'm more than
willing to do) ;) Just a thought...
A couple of things:
(println
(javascript (var x)))
I would expect this to convert to:
var x;
It does not.
(pri
Cool! Rather then waiting, you could host it in the interim on GitHub or
Google Code so people like myself can submit patches (which I'm more than
willing to do) ;) Just a thought...
A couple of things:
(println
(javascript (var x)))
I would expect this to convert to:
var x;
It does not.
(pri
I'll be glad to support it if people choose to use it and report
issues. My plans to use are still on my todo list, things just keep
getting put on top of them. One of which is to get my own server set
up to host this and some other projects.
I'll check out those asserts and make them so they're
One thing, there are several assertions in js-gen like the following:
(assert (= '("obj = {prop2:\"str-val\",prop1:3}")
(run out-str
(js-assignment '(= obj {prop1 3, prop2 "str-val"}) out-str
This assertion statement might fail (and did for me) since maps are not
ordered.
On Tue, Apr 14, 2
Do you have any plans for continuing to support this? If so are you against
putting this on GitHub or Google Code so that people can follow it's
development?
Thanks for contributing it to the community.
On Wed, Feb 25, 2009 at 7:49 PM, jim wrote:
>
> I've just uploaded a javascript generator ala
12 matches
Mail list logo