Hacker News new | comments | show | ask | jobs | submit login
A Minimal ClojureScript Project (thecomputersarewinning.com)
6 points by ithayer on Oct 1, 2012 | hide | past | web | favorite | 3 comments



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!");});});


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/...


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.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: