Re: Java like static typing for Clojure?

2016-10-21 Thread Antonin Hildebrand
You could travel to the future and use ClojureScript with Kotlin as compilation target and a version of clojure.spec which resolves a subset of known constructs to Kotlin type annotations at compile-time :-p Actually that idea of having a library of compile-time-recognizable spec constructs (li

Re: Possible ClojureScript compiler issue...

2016-10-17 Thread Antonin Hildebrand
nough that I don't think these kinds of >> property name collisions are common. >> >> Still it has come up before and I think the simplest solution least >> likely to adversely affect performance is to test for a def'onced unique >> object inst

Re: Possible ClojureScript compiler issue...

2016-10-15 Thread Antonin Hildebrand
Unfortunately, this problem is not specific to `js->clj` only. I believe in general under :advanced optimizations, any object which was created or modified by a code which was not subject of the same closure compiler optimization pass could exhibit similar problems when used with ClojureScript

Re: [?] cljs-devtools vs. dirac DevTools

2016-10-10 Thread Antonin Hildebrand
Hi, I'm the author of both tools. cljs-devtools is essential and you should start with it if you are developing under Chrome. It presents ClojureScript data structures when you print them via console.log. cljs-devtools must be configured as a library included in your project/app. Dirac is a f

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
ipt. I was just looking for a way to let people run my brand new cli tool from a command-line, a task originally estimated to 5 minutes :-) On Sunday, June 12, 2016 at 3:24:31 AM UTC+2, James Reeves wrote: > > On 12 June 2016 at 01:36, Antonin Hildebrand > wrote: > >> I want

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
script, so you > wrote your own script and made users of your library depend on it. What's > the difference? > > On Sun, Jun 12, 2016 at 2:36 AM, Antonin Hildebrand < > antonin.h...@gmail.com > wrote: > >> I wanted users of my library (which has dependencies) to

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
I wanted users of my library (which has dependencies) to run a helper tool from command-line (ideally with a simple wrapper bash script). And I didn't want to make them dependent on lein or boot. I came up with this (bash+maven+java): https://github.com/binaryage/dirac/blob/master/scripts/agent-

Re: [GSoC idea] Pluggable back-ends architecture for ClojureScript compiler

2016-02-22 Thread Antonin Hildebrand
I like the idea. I was thinking about a similar project. The goal would be to design and implement user-configurable, pluggable system for "jacking" into ClojureScript compilation pipeline as discussed here[1]. The first dog-fooding application could be instrumentation middleware for collectin

Re: Splitting Read into 2 steps?

2016-02-09 Thread Antonin Hildebrand
Hi Terje, I think I had a similar problem when implementing parsing for Plastic[1] (an experimental editor in ClojureScript). I wanted to use tools.reader (for robustness), but I needed more information about tokens from it (particularly comments, new-lines and whitespace). I ended up hijackin