Re: [core.spec] Stricter map validations?

2017-11-23 Thread Nico Schneider
Hello everyone, On Thursday, 16 November 2017 23:29:56 UTC+1, John Newman wrote: > > [...] when we constrain maps in that closed way, aren't we creating some > new subtype of a map, with fundamentally different semantics? If you are > going to fully close a map, you might as well use a deftype a

Re: core.async thread behaviour

2014-10-14 Thread Nico Swart
hine it turns out to be 58. On Monday, October 13, 2014 8:59:33 AM UTC-4, Nico Swart wrote: > > Hi Laurens, > > I am pretty sure (thread ...) only executes once. To check this I > evaluated > > (dotimes [i 100] (log "foo")) > > in the REPL and

Re: core.async thread behaviour

2014-10-13 Thread Nico Swart
Hi Laurens, I am pretty sure (thread ...) only executes once. To check this I evaluated (dotimes [i 100] (log "foo")) in the REPL and the thread count goes from 23 to 80. On subsequent evaluations of (dotimes [i 100] (log "foo")), the count stays at 78. Thanks Nico.

core.async thread behaviour

2014-10-13 Thread Nico Swart
I am experimenting with core.async and I am using some code from a Tim Baldridge presentation: ; Logging Handler ; (def log-chan (chan)) (thread (loop [] (when-let [v (!! log-chan msg)) (log "foo") If one executes (log "foo") a number of times the thread count of the process inc

[ANN] 美味しいClojure

2013-09-30 Thread Nico
Hi Everyone, Myself and a friend have just finished a book related to the Clojure ecosystem: http://www.amazon.co.jp/dp/4774159913 We are focusing not on the core language itself, although we do at times, but we focus on all the tools and the different frameworks that can help make a project

Re: In what OS do you code?

2013-06-14 Thread Nico Balestra
What company do you work for Mimmo? Can I send my CV? :) On 14 Jun 2013 15:59, "Giacomo Cosenza" wrote: > personally, I code on mac os x. in my company anyone is free to choose the > preferred OS (most of our devs are using linux, few of them windows). > mimmo > > > On Jun 14, 2013, at 3:46 PM, E

Why is using (not (empty? coll)) not idiomatic?

2013-05-11 Thread Nico Balestra
s: What's the "idiom" in (seq coll)? Thanks and sorry if the question sounds a bit pedantic :) Nico *"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures" - A.J. Perlis* -- -- You received this messa

Re: Lisp In Summer Projects

2013-05-09 Thread Nico Balestra
(replace "I know have" "I now have") *"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures" - A.J. Perlis* On 9 May 2013 17:13, Nico Balestra wrote: > ..after reading the FAQ I know hav

Re: Lisp In Summer Projects

2013-05-09 Thread Nico Balestra
talians have too many parenthesis in their laws :) *"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures" - A.J. Perlis* On 9 May 2013 16:49, Plínio Balduino wrote: > '(sad) > > On Thu, May 9,

Re: Lisp In Summer Projects

2013-05-09 Thread Nico Balestra
Contest is also not open to residents of Brazil, Italy, Quebec, and Saudi Arabia I'm UK resident but born Italian and I find the above a bit distressing. *"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures" - A.J. Perlis* O

Re: Problem with map (only when running on browser)

2013-03-30 Thread Nico
Thank you very much sw1nn and John, both worked great. This goes to show how much of a newb I am. Sorry if this is the wrong group (just realized it is the Clojure group and not Clojurescript one). BTW, it seems like knowing Clojure is a requirement to start using Clojurescript, do you guys k

Problem with map (only when running on browser)

2013-03-29 Thread Nico
, it works. I am very confused. I only started using ClojureScript today, and already had a bunch of problems (including not being able to get domina 1.0.2-SNAPSHOT to work, trying to follow the moder_cljs tutorial), so I would really appreciate some help with this. Thank you very much! N

Apparent interaction of libraries with lein

2013-03-14 Thread Nico Swart
27;dyndata.model.ddsdata) The library nddsjava.dll could not be loaded by Windows. Make sure that the library is in your Path environment variable. UnsatisfiedLinkError no nddsjava in java.library.path java.lang.ClassLoader.loadLibrary (ClassLoader.java:1738) Can anyone explain why a dll is referen

Edit/write Clojure code on Android

2012-11-20 Thread Nico Balestra
Sattvik software & technology doesn't support editing files (of course.. it's a REPL :) ) Any idea would be more than welcome given that I bought my nexus 7 mainly for this :) Thanks, Nico -- You received this message because you are subscribed to the Google Groups "Clojure

Re: Issue with Korma "or" predicate

2012-11-10 Thread Nico Balestra
Now I've tried with this: (select "mljentities" (fields :configuration) (where (or {:entity_name [like table-name]} {:alias [like table-name]}))) and I'm getting : no such var myns/like Getting mad :) Nico 2012/11/10 Nico Balestra > Hi all, > do

Issue with Korma "or" predicate

2012-11-10 Thread Nico Balestra
table-name]}))) with the same result. I'm sure there's something wrong I'm doing but I can't spot it :( Thanks, Nico -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goo

Re: Reducers

2012-05-10 Thread Nico Balestra
I'm with you Christian, maybe a code example would be very helpful. Thank you guys, Nico 2012/5/10 Christian Romney > I would be indebted to you if you could point me in the direction of the > reading material necessary to follow this discussion. I'm afraid I'm > curren

Re: coming from statically typed oo languages - how do deal with complex objects graphs in clojure?

2011-09-06 Thread Nico Kruger
On 4 September 2011 20:40, Dennis Haupt wrote: > > Am 04.09.2011 19:08, schrieb Justin Kramer: >> On Sunday, September 4, 2011 12:21:23 PM UTC-4, HamsterofDeath >> wrote: >> >> >> Some other comments: >> >> - Nested defns are not good. > > why? imo, nested function/method definitions are a tool to

Re: Clojure performance degraded

2009-07-29 Thread Nico
Baishampayan Ghose wrote: > Nico Swart wrote: > >> I recently got clojure source and rebuilt clojure.jar. I noticed that >> the performance is >> significantly worse with the new clojure.jar compared to a older >> clojure.jar. Everything else is the same, I just

Clojure performance degraded

2009-07-29 Thread Nico Swart
I recently got clojure source and rebuilt clojure.jar. I noticed that the performance is significantly worse with the new clojure.jar compared to a older clojure.jar. Everything else is the same, I just change the clojure.jar file and the performance is 4x slower. Below the output - Note the runti