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