News for hackers. Stuff that matters.
Re:A Minimal ClojureScript Project by ilikedata on Monday October 01, 2012 @09:40AM (#4596894)
I'm interested in using clojurescript and your project is a nice entry point for real world usage.

One of the concerns I've had with clojurescript is the filesize of the generated js. Are there any techniques for reducing the filesize of the generated js? (I'm aware that closure compiler advanced mode is used). Clojurescript projects I've looked at seem to compile to a minimum filesize of ~70k (uncompressed). Using closure compiler advanced mode I'd like a bare bones hello world project to compile to something closer to alert("Hello World").

I understand yours includes jayq so not referring specifically to yours, however ideally I'd still like to see it compiled out to something along the lines of:

$(document).ready(function(){$("#btn").click(function() { alert("Hi!");});});

Re:A Minimal ClojureScript Project by ithayer on Monday October 01, 2012 @11:55AM (#4597674)
This is a good point. It's worth noting that much of that is boilerplate for bootstrapping and datastructures, and that further code additionals would result in a more reasonable size increase. This thread mentions some of the reasons: https://groups.google.com/forum/?fromgroups=#!topic/clojure/...
Re:A Minimal ClojureScript Project by darrickwiebe on Tuesday October 02, 2012 @01:26PM (#4603119)
Under lein 2, the "lein run" task fails with the following error:

Exception in thread "main" java.lang.ClassNotFoundException: clojurescript-ohpointone.core

I installed the stable release of leiningen and it works fine.