Skip to content

Comment on ClojureScript 1.7: ClojureScript can compile itself

Comments

I wonder if one of my favorite libraries for Clojure, Anglican [1] a probabilistic programming language, can be ported to ClojureScript without much effort. One could do amazing things with this.

Keep up the good work. Clojure & ClojureScript are awesome.

[1] http://www.robots.ox.ac.uk/~fwood/anglican/

If your library is written in pure Clojure (no reliance on Java) it's fairly trivial with Clojure 1.7's Conditional Readers.

Here's an example of a repository that I've repurposed to compile both Clojure + Clojurescript.

https://github.com/rymndhng/clj-diff/commits/add-cljc-redo

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.