clojure - beam compiler

2014-02-23 Thread t x
Hi, Are there any active efforts to compile clj/cljs to Erlang/Beam ? ## Pre-emptive responses: * I'm aware of http://lfe.github.io/ . It's not what I want. After programming in Clojure, I find normal lisp ugly in comparison. I want clojure syntax. * I'm aware I will lose STM + Agents.

Re: clojure - beam compiler

2014-02-23 Thread Michael Klishin
2014-02-23 13:40 GMT+04:00 t x txrev...@gmail.com: Thus, my question -- are there any active efforts to port clojure (say via cljs's compiler) to Erlang/Beam ? Take a look at Joxa: http://joxa.org/ -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received

Re: clojure - beam compiler

2014-02-23 Thread t x
http://docs.joxa.org/en/latest/language.html looks amazing. Thanks! On Sun, Feb 23, 2014 at 1:54 AM, Michael Klishin michael.s.klis...@gmail.com wrote: 2014-02-23 13:40 GMT+04:00 t x txrev...@gmail.com: Thus, my question -- are there any active efforts to port clojure (say via cljs's

Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
Hi, I've written a macro to build inline expanded math expressions and it's working well in Clojure, however fails with a compile exception in CLJS. I'm not sure if this is a shortcoming of the CLJS compiler or (much more likely) a mistake with my macro. (ns macromath.core) (defmacro defmathop

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
Btw. My cljs example above is slightly wrong due to my simplifying the email example. I originally used this ns declaration (ns macromath.test (:require-macros [macromath.core :as m])) ...and then of course referred to (m/madd ...) But the issue remains regardless... On 23 Feb 2014 15:59,

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-23 Thread Jony Hudson
Hi, thanks again for the kind words and enthusiasm! Let me try and give my thoughts on some of the points raised: ** Light table plugin (@Patrik) ** I would like to see this, as I think LT has a lot of potential. Things like file-handling UI, nice code editing ... are all difficult problems

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-23 Thread Patrik Sundberg
re LT: It'd be a natural thing to dig into if/when you look to move to cljs. For the context at hand I think of an LT plugin as something that: - is easy to edit code/text in - has access to ways of executing remote code via nrepl and get back results - have access to files and resources etc via

Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-23 Thread Alex Ott
Hello Jony It would be nice to make some cooperation between the Gorilla's Charsts Incanter's. Right now, there is discussion in Incanter mailing list, about implementing different backends for charts, so it would be possible to generate them for JFreeChart, D3, etc. On Sun, Feb 23, 2014 at

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
After taking another look through cljs.core I managed to reformulate my macro using js* templates, but am still wondering why the normal (and cross-platform) solution doesn't work and also if using the js* way is actually safe in the future (i.e. not just a current implementation detail)?

Re: Macro writing macro fails with CLJS

2014-02-23 Thread David Nolen
You shouldn't use js*, and in this case it can be avoided. The problem you're encountering is a long outstanding wart that ClojureScript macros resolve symbols in Clojure not ClojureScript. Instead of + (which is actually clojure.core/+) you want to specify cljs.core/+: (defmathop cljs.core/+

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
Thanks, David! I tried that already and it didn't work: clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: cljs.core, compiling:(macromath/macros.clj:58:1) I also tried to require cljs.core in that macro's namespace, but then it complains this way:

Re: Macro writing macro fails with CLJS

2014-02-23 Thread David Nolen
I think your unquoting needs tweaking? (defmacro defmathop Constructs a macro to build inlined nested expressions with f applied to inner pairs and f2 to combine results. [name f f2] `(defmacro ~name ([a# b# c#] `(~'~f2 (~'~f ~a# ~b#) ~c#)) ([a# b# c# d#] `(~'~f2 (~'~f ~a# ~b#)

Om: trouble with goog reference

2014-02-23 Thread boz
I'm having trouble with the Om basic tutorial Higher Order Componentshttps://github.com/swannodette/om/wiki/Basic-Tutorial#wiki-higher-order-components using emacs and a slightly modified version of https://github.com/magomimmo/om-start-template that points to Om 0.5.0 and React 0.9.0. My

Re: Om: trouble with goog reference

2014-02-23 Thread David Nolen
The issue is that advanced compilation produces a single artifact. David On Sun, Feb 23, 2014 at 8:22 PM, boz b...@cox.net wrote: I'm having trouble with the Om basic tutorial Higher Order Componentshttps://github.com/swannodette/om/wiki/Basic-Tutorial#wiki-higher-order-components using

[ANN] thing-babel: lein template for org-mode babel projects

2014-02-23 Thread Karsten Schmidt
Just a heads up for anyone interested in creating their new project(s) in a literal programming style with org-mode: I've just pushed a new configurable Leiningen project template to Clojars which creates a bunch of .org files together with a suitable tangle script to generate (and regenerate) a

Re: Macro writing macro fails with CLJS

2014-02-23 Thread Karsten Schmidt
Oh man, I really do have to spend some more quality time with macroexpand-1 to fully grok those ~'~ forms, and - thank you - that change does work indeed! But then why does my original version work in Clojure? A change in quoting usually only causes havok/failure, but here it doesn't seem to...

Re: ANN: om-sync

2014-02-23 Thread Alexander Hudek
Thanks for the note about operational transform (OT). I had not heard of it before. From some casual reading, OT appears to focus on the problem of collaborative document editing. I assume that Share.js extends this to structured json? This is definitely something I think a lot of people would

Can't start repl with Leiningen

2014-02-23 Thread Matej Fröbe
Hello Clojure users! I have a problem with running *$lein repl* After some time I get: *REPL server launch timed out.* *$lein run myproject* works fine Leiningen and Java versions are: *$lein versionLeiningen 2.3.4 on Java 1.7.0_21 OpenJDK Client VM* I tried deleting stuff in ~/.lein but it

Re: ANN: om-sync

2014-02-23 Thread Tom
Thanks for this David. I spent a few hours adapting your Om tutorials to an app that reads and edits ID3 media tag metadata coming from the server side, I'll try adapting it to use om-sync. Good to see obviously reusable stuff such as your edn-xhr helper getting the util treatment as well.

New Functional Programming Job Opportunities

2014-02-23 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Experienced Clojure/Datomic Engineer Full Time or Contracting at Listora http://functionaljobs.com/jobs/8683-experienced-clojure-datomic-engineer-full-time-or-contracting-at-listora Clojure Developer at

ANN: lein-garden 0.1.6

2014-02-23 Thread Joel Holdbrooks
lein-garden the plugin for automatically compiling Garden stylesheets has been updated to version 0.1.6. https://github.com/noprompt/lein-garden This release fixes a bug where an unnecessary exception would be thrown for valid identifiers. -- You received this message because you are