Re: Hashing With Consistent Results

2015-08-11 Thread Atamert Ölçgen
Hi Christian, hasch looks nice, I might end up just using it. I will be hashing smaller collections (maps where keys are keywords and values are atomic data like integers). Collisions BTW are not such a big deal for my use case. I will have a limited number of fragments (buckets, index pages, etc

Re: some guidance sought

2015-08-11 Thread William la Forge
Thanks Andy. PersistentTreeMap is a helpful source of ideas for me. For example, it pointed me to the RT class which holds DefaultComparator. And before looking at it I was not even aware of the sorted-set-by function in Clojure. :-) On Monday, August 10, 2015 at 3:25:43 PM UTC-4, Andy Fingerh

[ANN] Skyscraper 0.1.0, a library for scraping entire websites

2015-08-11 Thread Daniel Janus
Dear Clojurians, I'm happy to announce the availability of the first release of Skyscraper, an Enlive-based library for "structural scraping" -- extracting information from whole sites in a structural way. Homepage / GitHub: https://github.com/nathell/skyscraper Leiningen: [skyscraper "0.1.0"]

com.stuartsierra.component dynamic component addition/removal question

2015-08-11 Thread Dave Tenny
I want to add components to a started system, but I'm unsure of a component-idiomatic way to do that. I don't want to restart the whole component stack. I'm guessing assoc'ing a new component to the system-map result isn't a good idea (though I've read words that sounded like it was a fine thi

Re: com.stuartsierra.component dynamic component addition/removal question

2015-08-11 Thread Dave Tenny
Or maybe I just do (start (assoc system :new-subscriber (component/using (make-subscriber) [:connection]))) and ensure idempotent start capabilities across all components that will not attempt restarts. ? Just looking for the idiomatic component way of doing this. On Tuesday, August 11, 201

OOM error but Memory in use (percentage/used/max-heap): ("6%" "228M" "3342M")

2015-08-11 Thread piastkrakow
I do not know much about the JVM. I never worked with Java, though I am now working with Clojure. I am getting this error: clojure.lang.ExceptionInfo: OOM command not allowed when used memory > 'maxmemory'. {:prefix :oom} stack trace: {:class clojure.lang.ExceptionInfo, :message \"OOM command

Re: [ANN] Skyscraper 0.1.0, a library for scraping entire websites

2015-08-11 Thread Sergey Didenko
Looks interesting, thank you. On Tue, Aug 11, 2015 at 5:00 PM, Daniel Janus wrote: > Dear Clojurians, > > I'm happy to announce the availability of the first release of Skyscraper, > an Enlive-based library for "structural scraping" -- extracting information > from whole sites in a structural wa

[ANN] data.int-map 0.2.1

2015-08-11 Thread Zach Tellman
https://github.com/clojure/data.int-map This is a small but important update. Where 0.2.0 added the ability to use negative integers, it did *not* retain the ordered key invariant when negative numbers were used (negative numbers came after the positive numbers, because binary representations

Re: Manifold streams/deferreds raising errors downstream of a sink

2015-08-11 Thread Zach Tellman
Hi Andy, To give you some context on this, `put!` will return true if the thing directly downstream accepts the value (in this case, the stream). The fact that the callback in `consume` fails is between the stream and the callback, and is not propagated all the way back (though the exception w

[ANN] superstring 1.1.0

2015-08-11 Thread Lars Andersen
I'm happy to announce the release of version 1.1.0 of https://github.com/expez/superstring This was meant as a bugfix release, but I couldn't help myself and added two functions as well before I got around to cutting the release. You can read about the specifics here: https://github.com/expez/

Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-11 Thread Zach Tellman
The inlining part is explained very well by this blog post http://normanmaurer.me/blog/2014/05/15/Inline-all-the-Things/ As for why I left all the repetition in there, I tend to let code expand before getting annoyed and compacting it. Sometimes there's a commit between those two events, somet

Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-11 Thread Colin Fleming
That's a really interesting post, thanks for that. I actually cornered Cliff Click at Curry On because I was interested in knowing how well the JVM inlined var indirection. The short answer is "it's complicated". But if the JVM does inline your method, then the var indirection shouldn't cost you as

Re: OOM error but Memory in use (percentage/used/max-heap): ("6%" "228M" "3342M")

2015-08-11 Thread piastkrakow
This error seems related to Redis: http://stackoverflow.com/questions/18430324/redis-error-oom-command-not-allowed-when-used-memory-maxmemory On Tuesday, August 11, 2015 at 1:09:03 PM UTC-4, piast...@gmail.com wrote: > > > I do not know much about the JVM. I never worked with Java, though I am

Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-11 Thread Zach Tellman
It's fluid, but the output that Norman uses in his post (and that motivated the changes to Aleph) were from the JVM explicitly saying "I would have inlined this, but it was too big". That may not be true under other circumstances, but you're only helping by factoring out uncommon, large code b

Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-11 Thread Alex Miller
There's code splits like that in Clojure's RT.java too - things like seq() and seqFrom() have the same intention. We have run into cases where we blew the inlining budget and performance was affected. -- You received this message because you are subscribed to the Google Groups "Clojure" group.