Re: Typed Clojure paper draft

2015-07-11 Thread Ambrose Bonnaire-Sergeant
We rewrote http://frenchy64.github.io/papers/submitted-popl16-typed-clojure-draft.pdf most of the paper highlighting relationships between the different features. Thanks, Ambrose On Sat, Mar 14, 2015 at 10:47 PM, Chris Ford christophertf...@gmail.com wrote: Seems to me that is cool enough to

Re: Advice on introducing a Java dev to Clojure

2015-07-11 Thread Juvenn Woo
Hi Johanna, I don’t know if it'll work for your team, but I find Shaun Le Bron's Interactive guide to Tetris in ClojureScript” the most succinct and beautiful way of showing power of Clojure and ClojureScript. https://github.com/shaunlebron/t3tr0s-slides Have fun! -- Juvenn Woo Sent with

Re: Advice on introducing a Java dev to Clojure

2015-07-11 Thread Juvenn Woo
Hi Johanna, I don’t know if it'll work for your team, but I find Shaun Le Bron's Interactive guide to Tetris in ClojureScript” the most succinct and beautiful way of showing power of Clojure and ClojureScript. https://github.com/shaunlebron/t3tr0s-slides Have fun! -- Juvenn Woo Sent with

An elegant implementation of if-all-let

2015-07-11 Thread crocket
(defmacro if-all-let [bindings then else] (reduce (fn [subform binding] `(if-let [~@binding] ~subform ~else)) then (reverse (partition 2 bindings I quoted the function from p259 of Chas Emerick, Brian Carper, Christophe Grand-Clojure Programming-O'Reilly Media (2012)

Re: An elegant implementation of if-all-let

2015-07-11 Thread Andy Fingerhut
Disclaimer: I do not make decisions on what gets into clojure.core. Here is a page that gives some reasons why most things don't get into clojure.core: http://dev.clojure.org/display/design/Why+Feature+X+Was+Declined More specifically on if-all-let and things like it, many people seem to

[ANN] Loom 0.5.4

2015-07-11 Thread Aysylu Greenberg
Hi everyone, I've released version 0.5.4 of Loom https://github.com/aysylu/loom, graph algorithms and visualization library: https://clojars.org/aysylu/loom/versions/0.5.4. Graph Algorithms: * maximal cliques and all-pairs shortest paths (mattrepl https://github.com/mattrepl)) * edge

Once more: against single-pass compilation ... ?

2015-07-11 Thread Mars0i
My understanding is that all of the drawbacks mentioned below are a consequence of Clojure using a single-pass compiler. Feel free to correct my misunderstandings, which no doubt exist. 0. Provisos: I don't want Clojure to include every feature that anyone wants. I don't even want it to

Re: clojure don't support .clj source code file by utf-8.

2015-07-11 Thread Denis Fuenzalida
I was able to reproduce an error involving Windows 7 and UTF-8 in a virtual machine with VirtualBox 4.3 (not sure if it is the issue that Alex experienced though): * Installed Windows 7, then used Ninite.com to install Notepad++ (text editor), Oracle JDK 8 (1.8.0_45). Installed Leiningen 2.5.1

Re: Once more: against single-pass compilation ... ?

2015-07-11 Thread James Reeves
Clojure's compilation strategy isn't a matter of single-pass vs multi-pass, but of what constitutes a compilation unit. In Clojure, a compilation unit is a top-level form. Within a form, you can have cyclic references: (letfn [(f [x] (if ( x 0) (g (- x 2)) :f)) (g [x] (if ( x 0) (f

[ANN] suchwow: a grab-bag library with some twists

2015-07-11 Thread Brian Marick
https://github.com/marick/suchwow Partly this is yet another collection of useful functions, but it has grown some unusual features: * I am a bear of very little brain. As such, the official Clojure doc strings are sometimes unclear to me. When that happens, I add new doc strings to

Re: Advice on introducing a Java dev to Clojure

2015-07-11 Thread Johanna Belanger
That's really cool, thanks! On Saturday, July 11, 2015 at 5:27:37 AM UTC-7, juvenn wrote: Hi Johanna, I don’t know if it'll work for your team, but I find Shaun Le Bron's Interactive guide to Tetris in ClojureScript” the most succinct and beautiful way of showing power of Clojure and

Re: Once more: against single-pass compilation ... ?

2015-07-11 Thread Mars0i
James--Thanks very much for clearing up the point about the source of the drawbacks I mentioned: OK: compilation unit size rather than number of passes. My subject line is misleading, then. About the defrecord example in my itime #5: Ah, good--I didn't think of declaring -Y. Thanks. Works