Question about Clojure parallelization

2017-09-12 Thread Na eim
I guess this is the cause (+ solution): https://hackernoon.com/file-processing-in-clojure-can-easily-become-cpu-bound-3c1c38669daf -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that

Re: Question about Clojure parallelization

2017-09-12 Thread Ghadi Shayban
One thing slowing you down is that your function "parallel-process" is calling fold on a line-seq, which is not a foldable source, so you won't get any parallelism. It devolves to a sequential reduce. As an alternative, consider partitioning the lines into batches of a few thousand, then

Re: Question about Clojure parallelization

2017-09-12 Thread James Reeves
As you suspect, your Clojure code isn't very performant. First, you're doing lots of updates to an immutable map, which isn't going to be efficient. Clojure allows immutable data structures to be changed, temporarily, into mutable ones using the transient function. Alternatively, sometimes it's

Re: Question about Clojure parallelization

2017-09-12 Thread aufc
https://github.com/thebusby/iota could be useful in your case. Iota is a Clojure library for handling large text files in memory, and offers the following benefits; * Tuned for Clojure's reducers, letting you reduce over large files quickly. * Uses Java NIO's mmap() for rapid IO and handling

Re: Question about Clojure parallelization

2017-09-12 Thread Didier
If performance is the concern, you won't be able to beat Java with Clojure. That said, it should be possible to match Java's performance. On Tuesday, 12 September 2017 09:43:58 UTC-7, darren...@gmail.com wrote: > > Hi, > > I am a researcher of Natural Language Processing. > My team want to know

[ANN] com.walmartlabs/lacinia 0.21.0

2017-09-12 Thread Howard Lewis Ship
Lacinia is an open-source implementation of Facebook's GraphQL specification, in Clojure. GraphQL is an outstanding approach to getting diverse clients and servers exchanging data cleanly and efficiently. The GitHub repository is https://github.com/walmartlabs/lacinia Documentation:

Question about Clojure parallelization

2017-09-12 Thread darren92 . kim
Hi, I am a researcher of Natural Language Processing. My team want to know how well does Clojure parallelize and how much time is reduced compared by Java single thread version. The problem we want to solve is, there is a big corpus file (just now 500MB). Reading sentences line by line, find

Re: Clojure core documentation

2017-09-12 Thread Stuart Halloway
Clojure has great data, and great metadata. Documentation strings are *not* great data, they are strings. If you want to provide more structured support than docstrings to help someone use Clojure, look at specs for inspiration. They are made of data, and they live in a registry separate from

Re: Has the (left recursive blowing) concat function been fixed?

2017-09-12 Thread Alex Miller
On Tuesday, September 12, 2017 at 8:56:16 AM UTC-5, divya...@helpshift.com wrote: > > I came across this discussion: > https://groups.google.com/forum/#!topic/clojure-dev/ewBuyloeiFs/discussion > > Has this patch been considered for merging in Clojure master? > > No, this didn't move forward. I

Has the (left recursive blowing) concat function been fixed?

2017-09-12 Thread divyansh
I came across this discussion: https://groups.google.com/forum/#!topic/clojure-dev/ewBuyloeiFs/discussion Has this patch been considered for merging in Clojure master? If yes, awesome! We should update / comment-on articles pointing this out. If not, why? -- You received this message because