Javascript generator

2009-02-25 Thread jim
I've just uploaded a javascript generator ala Parenscript. It's pretty half-baked, so be cautious using it until we get the bugs ironed out. http://clojure.googlegroups.com/web/js_gen.clj The code for the generator is about 250 lines. It depends on the mini- kanren implementat

Javascript generator

2010-10-10 Thread jim
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 just one person, but I'm eas

Re: Javascript generator

2009-04-13 Thread David Nolen
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 java

Re: Javascript generator

2009-04-13 Thread David Nolen
ommunity. > > On Wed, Feb 25, 2009 at 7:49 PM, jim wrote: > >> >> I've just uploaded a javascript generator ala Parenscript. It's >> pretty half-baked, so be cautious using it until we get the bugs >> ironed out. >> >> http://clojure.googleg

Re: Javascript generator

2009-04-14 Thread jim
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

Re: Javascript generator

2009-04-14 Thread David Nolen
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

Re: Javascript generator

2009-04-14 Thread David Nolen
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

Re: Javascript generator

2009-04-14 Thread jim
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

Re: Javascript generator

2009-04-14 Thread David Nolen
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

Re: Javascript generator

2010-10-11 Thread Steve Purcell
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

Re: Javascript generator

2010-10-11 Thread jim
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

Re: Javascript generator

2010-10-11 Thread Steve Purcell
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

Re: Javascript generator

2010-10-11 Thread David Nolen
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

Re: Javascript generator

2010-10-11 Thread Steve Purcell
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

News on Mini Kanren / Javascript generator; when is an implementation sufficiently original?

2009-10-24 Thread Michel Salim
Jim was working on logic programming in Clojure up to a few months ago, and it seems as if the concern was that the code was too derivative. I have recently made available a Scala-based Kanren implementation; the differences between Scala and Scheme means that the code is sufficiently original. M

Re: News on Mini Kanren / Javascript generator; when is an implementation sufficiently original?

2009-10-25 Thread Rich Hickey
On Sun, Oct 25, 2009 at 12:16 AM, Michel Salim wrote: > > Jim was working on logic programming in Clojure up to a few months > ago, and it seems as if the concern was that the code was too > derivative. > > I have recently made available a Scala-based Kanren implementation; > the differences betw

Re: News on Mini Kanren / Javascript generator; when is an implementation sufficiently original?

2009-10-26 Thread Michel Alexandre Salim
On Sun, Oct 25, 2009 at 6:28 PM, Rich Hickey wrote: > > On Sun, Oct 25, 2009 at 12:16 AM, Michel Salim > wrote: >> >> Jim was working on logic programming in Clojure up to a few months >> ago, and it seems as if the concern was that the code was too >> derivative. >> >> I have recently made avai