ANN: ClojureScript 0.0-2227

319 views
Skip to first unread message

David Nolen

unread,
May 22, 2014, 11:18:06 AM5/22/14
to clojure, clojur...@googlegroups.com
ClojureScript, the Clojure compiler that emits JavaScript source code.


New release version: 0.0-2227

Leiningen dependency information:

    [org.clojure/clojurescript "0.0-2227"]

Enhancements
------------
* optimized case
* CLJS-802: Add :pseudo-names compiler option
* CLJS-795: 10X performance enchancement for multimethods
* CLJS-801: str macro emits unoptimizable js code
* CLJS-656: search classpath for goog-style JavaScript dependencies

Fixes
-----
* CLJS-792: Implement IReduce on PersistentArrayMap
* CLJS-804: Binding *print-length* breaks str
* CLJS-775: Fix cljs.reader cljs.reader parses radix form of int literals
* CLJS-805: add-watch returns map of watch fns instead of watched reference
* CLJS-787: cljs.reader does not read blank string as nil
* CLJS-784: Fix *Map.-conj for map-entry seqs, that don't implement INext
* CLJS-784: make conj on maps behave as it does in Clojure
* CLJS-793: fix memoize (non-truthy values don't get cached)
* CLJS-800: PersistentQueueSeq extended to IPrintWithWriter

Julien Eluard

unread,
May 22, 2014, 3:01:18 PM5/22/14
to clojur...@googlegroups.com
Hi David,

I just tried this new release on a codebase using some closure based JS library and I now see the following:
* "WARNING: No such namespace: ..." during compilation
* "Uncaught Error: Undefined nameToPath for .." when running in a browser
Everything used to work fine with release #2202.

I am not clear if this is a regression, an incorrect syntax usage or the JS files being incorrectly provided to the compiler.

For info I am using a JS library packaged in a custom jar (https://github.com/jeluard/cljs-ol3js) and import the closure library with ".. (:import ol.Map ol.View2D)".

Any thoughts?

Thanks,
Julien



--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

David Nolen

unread,
May 22, 2014, 3:49:05 PM5/22/14
to clojur...@googlegroups.com
No idea. There is a change in the latest release to resolve Google Closure JS libraries on the classpath via :require, perhaps there's a conflict here? If you could do some investigation that would be helpful.

David

Julien Eluard

unread,
May 22, 2014, 5:17:48 PM5/22/14
to clojur...@googlegroups.com
Indeed things look ok when using the require syntax but only if I have JS files as part of current project. It does not work if they come as a jar dependency. Too bad, it was a pretty neat way to package reusable JS libraries.
I will follow up with lein-cljsbuild as it looks like I was relying on one of its features.

Thanks!

Chas Emerick

unread,
May 23, 2014, 5:20:55 AM5/23/14
to clojur...@googlegroups.com
:require does load JS dependencies from jars, as long as the JS files in question have goog.provide/goog.require declarations corresponding to their classpath position, etc.

For those following along, the cljsbuild issue in question is https://github.com/emezeske/lein-cljsbuild/issues/313, more details to be provided there.

- Chas

Joel Holdbrooks

unread,
May 26, 2014, 4:12:08 AM5/26/14
to clojur...@googlegroups.com, clojure
Awesome! Don't forget to update the README!

David Nolen

unread,
May 26, 2014, 1:15:10 PM5/26/14
to clojur...@googlegroups.com
Thanks for the reminder.


Reply all
Reply to author
Forward
0 new messages