Re: as-> macro enhancement request?

2013-08-21 Thread Greg
> Your example could be written: > > (-> foo >bar >(baz quuz) >blah) That misses the point of having a generic threading macro. > But I suspect you meant something like this: > > (-> foo >bar >(as-> <> (baz whiz <> quuz)) >blah) That's ugly. >> Would love it if as-> al

Re: Two Way DOM binding in clojurescript

2013-08-21 Thread Wei Hsu
Maybe try out cljs-binding , or angular extensions like clang or purnam . On Thursday, June 14, 2012 2:47:15 PM UTC+8, Murtaza Husain wrote: > > Hi, > > I would like to data in

Re: Entwined STM V1.0

2013-08-21 Thread Ivan Koblik
I have done the benchmarks and optimized the implementation. On my PC with the new changes TransactionalMap is up to 5 times slower than ConcurrentHashMap. You can find the benchmarks here: https://github.com/CERN-BE/Entwined-STM/blob/master/src/test/java/cern/entwined/demo/clojure_benchmarks.cl

ANN: ClojureScript 0.0-1859

2013-08-21 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-1859 Leiningen dependency information: [org.clojure/clojurescript "0.0-1859"] *Changes: * * nth should only work in ISeq not Seqa

Re: NotSerializableException clojure.core.Vec

2013-08-21 Thread Jim - FooBar();
Ok found where the problem was... In order to get unboxed ints I used (vector-of :int ...) which returns a clojure.core.Vec object. That object is not serializable (I looked at the source) and therefore I am getting this exception...Is there a reason why these objects are not serializable? J

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread Sean Corfield
It doesn't seem related to either of those. It seems to be an SSL certificate issue, perhaps #1287? (which Phil closed saying "build it from source instead"). I guess I'm surprised the JAR cannot simply be downloaded via a browser - that would seem the easiest way for Windows users to get Leiningen

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread David Powell
Have you tried http://leiningen-win-installer.djpowell.net/ - it should work... -- Dave On Wed, Aug 21, 2013 at 6:13 AM, Sean Corfield wrote: > Upgrading on Mac/Linux was painless as usual - and everything here > seems to run fine with 2.3.2 - but Windows continues to be a pain in > the rear.

Lisp in Tex

2013-08-21 Thread Tim Daly
TeX is viewed as a document markup language but it is turing complete. Occasionally people get ambitious. Here is executable lisp in a Latex document: ctan.org/pkg/lisp-on-tex Perhaps some bright spot can do a Clojure-in-tex during the next Google summer of code :-) Tim Daly -- -- You receiv

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread Sean Corfield
Does that work to upgrade an already installed version of Leiningen? On Wed, Aug 21, 2013 at 9:50 AM, David Powell wrote: > Have you tried http://leiningen-win-installer.djpowell.net/ - it should > work... > > -- > Dave > > > > On Wed, Aug 21, 2013 at 6:13 AM, Sean Corfield > wrote: >> >> Upgrad

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread David Powell
On Wed, Aug 21, 2013 at 5:57 PM, Sean Corfield wrote: > Does that work to upgrade an already installed version of Leiningen? Not really. But if you took your existing leiningen off the path, and ran the installer it might get things up and running: It bundles a wget with an appropriate ca file,

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread Sean Corfield
I have a working Leiningen. I have wget and curl via GOW - Gnu On Windows. I have HTTP_CLIENT set as a global environment variable to: wget --no-check-certificate -O per Leiningen's instructions. I'll see whether the upgrade process works when 2.3.3 is released. That will determine whether the HTTP

problem with edn

2013-08-21 Thread Jim - FooBar();
Hi everyone, I am trying to serialise a record with edn. I think I am using all the good practices but I get a weird error...I am using these simple functions: (defn data->string "Writes the object b on a file f on disk as a string." [b f] (io! (with-open [w (clojure.java.io/writer f)] (bind

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-21 Thread guns
On Wed 7 Aug 2013 at 10:53:00AM -0500, guns wrote: > I'd like to announce optparse-clj, a command line options parser that > supports GNU option parsing conventions: > > https://github.com/guns/optparse-clj Hello again, optparse-clj 1.1.1 now supports ClojureScript and may be used from Node.

Re: problem with edn

2013-08-21 Thread kawas
Hi, Maybe you should provide a custom reader for your record. See answer on this question http://stackoverflow.com/questions/17991565/clojure-defrecord-serialization-classnotfoundexception regards, Le mercredi 21 août 2013 19:55:59 UTC+2, Jim foo.bar a écrit : > > Hi everyone, > > I am trying

Re: problem with edn

2013-08-21 Thread kawas
By the way *print-dup* is the problem, maybe you should not use it :) Spot the difference : user=> (binding [*print-dup* true] (prn (->Foo 1 2 3))) #user.Foo[1, 2, 3] user=> (binding [*print-dup* false] (prn (->Foo 1 2 3))) #user.Foo{:a 1, :b 2, :c 3} cheers Le mercredi 21 août 2013 19:

Re: problem with edn

2013-08-21 Thread kawas
Never had time to play with edn and custom readers but they are funny :) Use *print-dup* if you need to... just know how to custom read it : user=> (edn/read-string {:readers {'user.Foo map->Foo}} "#user.Foo{:a 1 :b 2 :c 3}") #user.Foo{:a 1, :b 2, :c 3} user=> (edn/read-string {:readers {

Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-21 Thread Christian Sperandio
Cool! I started looking at integrate the Apache commons-cli with clojure. Your code will save work time :) Thanks -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from ne

Re: [ANN] Clotilde is Linda in Clojure.

2013-08-21 Thread François DE SERRES
Hi there, I just pushed the new Clotilde to GitHub, now with proper pattern handling and a more idiomatic API. Please review? (only a handful lines) Thankies! -- F. Le lundi 5 août 2013 16:37:16 UTC+2, François DE SERRES a écrit : > > Hi, > > 9 months

Re: Multiple Clojure contexts in the same JVM

2013-08-21 Thread David Pollak
Sweet. Thanks! On Tue, Aug 20, 2013 at 3:51 PM, Toby Crawley wrote: > > David Pollak writes: > > > I have an application where I need multiple independent Clojure contexts > > running in the same JVM. > > You can use ShimDandy[1] to load multiple Clojure runtimes in the same > JVM, and call int

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread Sean Corfield
As I told Phil on IRC, the problem turned out to be an old lein.bat... To test the theory of the old lein.bat, I fired up two of my VMs: * Windows XP running Leiningen 1.6.1.1(!) * Windows 8 running Leiningen 2.0.0-preview10 On both of these, running lein upgrade produced a message that upgrade w

Re: problem with edn

2013-08-21 Thread kawas
In fact never user *print-dup* when using edn to read back data *print-dup* will output type and meta information that will not play well with edn user=> (binding [*print-dup* true] (pr-str (sorted-map :z 5 :a 1))) "#=(clojure.lang.PersistentTreeMap/create {:a 1, :z 5})" This "#=" with rais

Re: Two Way DOM binding in clojurescript

2013-08-21 Thread Kevin Lynagh
I just posted a 3500 word blog post on this topic: http://keminglabs.com/blog/cljs-app-designs/ which outlines the relative merits and tradeoffs of using explicit DOM references with callbacks vs. Angular's dirty-checking model and interop with the library from ClojureScript. cheers, Kevi

Re: [ANN] Leiningen 2.3.2 released

2013-08-21 Thread Sean Corfield
I went back to my Windows 8 laptop and updated lein.bat to the version on leiningen.org and then tested the up/down-grades and they worked perfectly - great to see the latest Windows batch file working so well! Sean On Wed, Aug 21, 2013 at 3:21 PM, Sean Corfield wrote: > As I told Phil on IRC, t