Re: Porting Clojure to Native Platforms

2016-04-28 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27.04.2016 16:29, Jason Felice wrote: > > > On Tue, Apr 26, 2016 at 7:42 PM, PlĂ­nio Balduino > mailto:pbaldu...@gmail.com>> wrote: > > > * Is there a way to compile C++ code at runtime? This would be > essential for the REPL and for Macros. -

Re: sorted-map vs hash-map issue

2016-04-28 Thread Alex Miller
Sorted maps are maps but they have an additional constraint that the keys must be comparable according to the map's comparator. Clojure intentionally does not define a total sort order crossing types (there is no such ordering that makes sense). You are however free to define your own comparato

Re: sorted-map vs hash-map issue

2016-04-28 Thread JPatrick Davenport
Thank you for the response. Isn't that a leaky abstraction? Now all clients of rename-keys woild have to care what the key type is. At the very least both should implement Comparable and have some kind of general response for sorting. -- You received this message because you are subscribed to

Re: sorted-map vs hash-map issue

2016-04-28 Thread Francis Avila
Sorted maps sort their keys, but keywords and strings are not comparable: (sorted-map "a" 1 :b 2) ClassCastException java.lang.String cannot be cast to clojure.lang.Keyword clojure.lang.Keyword.compareTo (Keyword.java:114) On Thursday, April 28, 2016 at 3:54:33 PM UTC-5, JPatrick Davenport

sorted-map vs hash-map issue

2016-04-28 Thread JPatrick Davenport
Hello, Please explain to me what's going on here. The first code snippet causes the following error: "ClassCastException clojure.lang.Keyword cannot be cast to java.lang.String java.lang.String.compareTo (String.java:111)" The second code snippet doesn't. My understanding is that a *map* is a *

[ANN] data.zip 0.1.2

2016-04-28 Thread Alex Miller
data.zip is a library for filtering trees, and XML trees in particular using zippers. - README and source: https://github.com/clojure/data.zip - Leiningen dependency information: [org.clojure/data.zip "0.1.2"] Changes in 0.1.2: - DZIP-3 - fix issue with matching tag= for xml - DZ

Using a try catch inside a future

2016-04-28 Thread Tom Bodenheimer
Hi all, I have recently been playing with futures and have stumbled on the following situation. (defn test-f1 [initial-v] (let [n (atom initial-v)] [n (future (while (not (Thread/interrupted)) (Thread/sleep 5000) (swap! n inc) (println @n))

[JOB] Core Platform Developer at Quartet Health in NYC | $100k-$140k

2016-04-28 Thread Brave Clojure Jobs
"Powered by our advanced data engine, Quartet works with health plans and health systems to provide actionable population insights that improve patient outcomes and reduce overall costs. We are transforming the way substance abuse and mental health care is being delivered. Empowering the clinic

Re: Porting Clojure to Native Platforms

2016-04-28 Thread Mark Engelberg
Relatedly, Chez Scheme was just released as open source: https://github.com/cisco/chezscheme which is a native code optimizing scheme compiler. Maybe there are some ideas that can be drawn from this. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Callback fn in core.async/put!

2016-04-28 Thread Leon Grapenthin
Looking at it again, it seems like the current docstring is quite up to date. Are sure you are on the latest version? On Wednesday, April 27, 2016 at 9:31:46 PM UTC+2, Alan Thompson wrote: > > Thanks for the update. I verified the true/false behavior and submitted a > JIRA: http://dev.clojure.o