Socket server and PuTTY

2016-11-22 Thread 'Thomas Meyer' via Clojure
Hi, I think the problem is that clojure server reply sends LF only but RFC 854 wants a CR LF for a newline. PuTTY has an option to convert LF into CR LF. Bug or feature? Kind regards Thomas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Help me understand what part of this code is slow, and how to make it faster?

2016-11-22 Thread Didier
@Marczyk, I did try your improvements, and it shaved off 2 seconds, from 4s for the nth5 to 2s for your implementation. I'm curious to try it one change at a time to see if any one of the changes was responsible for a bigger part, or if its an its of equal improvements that total up to a big sp

Re: Help me understand what part of this code is slow, and how to make it faster?

2016-11-22 Thread Andy Fingerhut
More likely, records being just as slow with Clojure 1.9.0-alpha14 probably mean that recalculating of record hashes was not a significant amount of the time your program was taking. Thanks for trying it out. Andy On Mon, Nov 21, 2016 at 5:03 PM, Didier wrote: > I tried it with the safe equals

Clojure, Java 9, and you

2016-11-22 Thread Toby Crawley
To prepare us all for Java 9 (currently scheduled to be released in July[1]), I've created a Github repo[2] to track Java 9 issues across the Clojure ecosystem. If you run into an issue, please check the issues on that repo to see if it's already a known problem. If it's not, please file one there

Re: [ANN] psq.clj 0.0.2 – Persistent Priority Search Queues

2016-11-22 Thread Didier
Great work. I love the Clojure state for data-structures. People often underestimate how much access to quality data-structures is important for a language. By the way, www.data.avl is not a valid link. On Sunday, 20 November 2016 12:32:31 UTC-8, Michał Marczyk wrote: > > Hi, > > I am pleased to

Re: Help me understand what part of this code is slow, and how to make it faster?

2016-11-22 Thread Steve Miner
> On Nov 21, 2016, at 8:03 PM, Didier wrote: > > @miner: Doesn't using the flag (set! *unchecked-math* :warn-on-boxed) gives > me unchecked math automatically? I was under the impression that +, -, /, * > etc. would all now perform in an equal way to unchecked-add, etc. If not, > what is the

Re: Getting information from a hashmap that is inside anothe hashmap

2016-11-22 Thread Rostislav Svoboda
(->> human2 :char :eye-colour) or (-> human2 :char :eye-colour) or ((human2 :char) :eye-colour) or (:eye-colour (:char human2)) all variants work. Either way it looks like you're asking a very basic question. I recomend you to go over http://clojurekoans.com/ or read some tutorial, quick start gui

Re: Getting information from a hashmap that is inside anothe hashmap

2016-11-22 Thread Baishampayan Ghose
You may use `get-in`. https://clojuredocs.org/clojure.core/get-in (get-in human2 [:char :eye-colour]) ;=> "red" Hope this helps. ~BG On Tue, Nov 22, 2016 at 4:12 PM, 'Rickesh Bedia' via Clojure wrote: > Lets say I have: > (def human {:firstname "John" :surname "Smith"}) > To get the firstn

Getting information from a hashmap that is inside anothe hashmap

2016-11-22 Thread 'Rickesh Bedia' via Clojure
Lets say I have: (def human {:firstname "John" :surname "Smith"}) To get the firstname I would run (human :firstname) and this would give "John" However if I now have (def human2 {:name "Bob" :char {:eye-colour "brown" :hair-colour "red"}}) how would I get the eye-colour? Would it be (h