Expanding The Use Of Transducers To Atoms?

2014-10-26 Thread Mike Thompson
I've been reading about transducers with interest. The official docs at http://clojure.org/transducers say "*Because transducers are decoupled from input or output sources, they can be used in many different processes - collections, streams, channels, observables, etc.* " At this stage, the

Re: processing large text files

2014-10-26 Thread Alan Busby
On Mon, Oct 27, 2014 at 12:52 PM, Brian Craft wrote: > Makes sense, but not an option for this application. What about something > similar to iota, backed with byte arrays, or something? As Patrick pointed out, if you're working directly with byte array's you might want to use mmap which is wha

Re: processing large text files

2014-10-26 Thread Brian Craft
On Sunday, October 26, 2014 6:51:18 PM UTC-7, TheBusby wrote: > > On Mon, Oct 27, 2014 at 7:10 AM, Brian Craft > wrote: > >> I found iota, which looks like a good solution for the read portion of >> the problem. However I also need to process the data in the file. If I >> start with an iota/ve

[ANN] Clojure 1.7.0-alpha3 now available

2014-10-26 Thread Alex Miller
Clojure 1.7.0-alpha3 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.7.0-alpha3/ - Download securely: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-alpha3/ - Leiningen: [org.clojure/clojure "1.7.0-alpha3"] For users of Clojure 1.7.0-alpha2

Re: CCW bug [SEVERE]

2014-10-26 Thread Colin Fleming
Note that any of those operations you're talking about under the general heading of "I/O tasks" are very complex in a modern IDE, and there are a lot of seemingly unrelated code paths where a bug or some sort of unexpected condition might cause an infinite loop. And as a lot of people have noted, t

Re: testing platform , midje or specjl ?

2014-10-26 Thread Ashton Kemerling
I'd forgotten to mention Test.Check, thanks Reid! I've had really great luck using test.check (and Doublecheck, the cljx port) for testing both Clojure(script), Javascript, and Ruby (integration style). Highly recommend. On 10/26/2014 08:28 PM, Reid McKenzie wrote: > Have another +1 for clojure.t

Re: testing platform , midje or specjl ?

2014-10-26 Thread Reid McKenzie
Have another +1 for clojure.test. It’s packaged with Clojure and while it’s not especially shiny I find that it gets the job done most of the time in addition to having the best tooling support. In my latest project, I’ve been enjoying using org.clojure/test.check

Re: processing large text files

2014-10-26 Thread Plínio Balduino
I wrote a sample code to process the English Wikipedia file dump (+- 40GB) and didn't use nothing but the core Clojure and a bzip library. I'll put on GitHub to show you. I hope it helps. Plinio Balduino 11 982 611 487 > On 26/10/2014, at 23:51, Alan Busby wrote: > >> On Mon, Oct 27, 2014 a

Re: Demoralising experience trying to install on Win 7

2014-10-26 Thread Plínio Balduino
I'm using Win 7 with Clj 1.6 and 1.7-alphas and the last version of Leiningen, without any problem. My team is using a similar configuration (+ lightrable, sublime or Emacs) to develop some company systems. Could you share the error message, if any? Regards Plinio Balduino > On 25/10/2014,

Re: processing large text files

2014-10-26 Thread Alan Busby
On Mon, Oct 27, 2014 at 7:10 AM, Brian Craft wrote: > I found iota, which looks like a good solution for the read portion of the > problem. However I also need to process the data in the file. If I start > with an iota/vec and need to sort it, something like > > (sort (iota/vec "foo")) > Short d

processing large text files

2014-10-26 Thread Patrick Logan
The JVM on most platforms has good support for memory-mapped files. -- 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 posts from new members are moderated - please be patient with y

Re: processing large text files

2014-10-26 Thread bernardH
On Sunday, October 26, 2014 11:10:19 PM UTC+1, Brian Craft wrote: > > The java overhead for Strings is incredible. Even moderate-sized input > files will consume all memory. Are there good existing solutions? > When needed (large size) and possible (not exactly text as in unicode, but ASCII or

Re: Demoralising experience trying to install on Win 7

2014-10-26 Thread TP
On Sun, Oct 26, 2014 at 3:43 PM, Geoff Caplan wrote: > I'm pretty fluent in bash but have never had a need for the Windoze shell > except for the odd ping and .bat file, and I'd got into the habit of > running .bats by double-clicking. But there does seem to be a lack of focus > and coordination

Re: Demoralising experience trying to install on Win 7

2014-10-26 Thread Geoff Caplan
Hi folks Impressed that you've responded to my grumpy old man act so constructively - many thanks! Stu - I was aware that I could run the REPL without Leiningen - the Minimal Install section is pretty clear. But there didn't seem much point in having Clojure without any access to the build to

Re: Question about test.check, and knossos

2014-10-26 Thread Jan Stępień
On Thursday, October 23, 2014 10:04:52 AM UTC-4, Jan Stępień wrote: I've begun to work on such a tool not long ago. Thomas Arts, who gave a talk at our local FP user group meetup [mλ], inspired me to try out the approach you're describing in Clojure. After some experimen

processing large text files

2014-10-26 Thread Brian Craft
The java overhead for Strings is incredible. Even moderate-sized input files will consume all memory. Are there good existing solutions? I found iota, which looks like a good solution for the read portion of the problem. However I also need to process the data in the file. If I start with an io

Re: testing platform , midje or specjl ?

2014-10-26 Thread cameron
Id' second clojure.test, it's simple, tests are written in idiomatic clojure and has good tooling support (eg. run tests in cider). It's my go-to testing library now. On Monday, 27 October 2014 07:26:25 UTC+11, Ashton Kemerling wrote: > > Don't forget clojure.test! It's simple, but I've found

Re: Clojure and concurrency

2014-10-26 Thread Gary Verhaegen
Transactions themselves are not queued (besides the obvious queueing of threads when you have more threads than cores). What gets adaptively queued is the historical values of refs involved in transactions. So if you have three concurrent transactions running, and three refs are involved in two of

Re: testing platform , midje or specjl ?

2014-10-26 Thread Ashton Kemerling
Don't forget clojure.test! It's simple, but I've found it to be sufficient. On Sun, Oct 26, 2014 at 11:51 AM, Roelof Wobben wrote: > Hello, > Im learning clojure as the beginnner. > When im googeling for a testing platform there seems to be two major > choices midje and specjl. > Now I see tha

Re: Clojure and concurrency

2014-10-26 Thread Leon Grapenthin
On Sunday, October 26, 2014 11:37:43 AM UTC+1, Øyvind Teig wrote: > > I have been reading myself up on Clojure concurrency, starting at [1]. In > [2] I read that > > The Clojure STM uses multiversion concurrency control with adaptive >> history queues for snapshot isolation, and provides a dist

Re: testing platform , midje or specjl ?

2014-10-26 Thread Brian Marick
On Oct 26, 2014, at 12:51 PM, Roelof Wobben wrote: > Can I better learn midje and it this one still active maintained or can I > better learn specjl. I've fallen behind on Midje maintenance (and, indeed, many things other than work). I'm gradually ramping up again with ideas gained in a year

Re: multimethod, record, type, and protocol pitfalls?

2014-10-26 Thread Mike Haney
I recently ran into the & args issue as well. I'm sure I read about when I was learning clojure, but it's easy to forget. -- 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 posts f

Re: CCW bug [SEVERE]

2014-10-26 Thread Fluid Dynamics
On Sunday, October 26, 2014 2:50:15 AM UTC-4, puzzler wrote: > > On Sat, Oct 25, 2014 at 11:19 PM, Fluid Dynamics > wrote: > >> This is a really weird one, when you think about it. How the heck does a >> programmer make a mistake that results in the *file save* function going >> into an *infinit

Re: Leiningen setup for modifying a library the project is depending on

2014-10-26 Thread Stephen Wakely
Yes that sounds like exactly what I need.  Embarrassed I missed it!  Thanks  Original message From: Andy Fingerhut Date:26/10/2014 4:52 PM (GMT+00:00) To: clojure@googlegroups.com Subject: Re: Leiningen setup for modifying a library the project is depending on Stephen: Ta

testing platform , midje or specjl ?

2014-10-26 Thread Roelof Wobben
Hello, Im learning clojure as the beginnner. When im googeling for a testing platform there seems to be two major choices midje and specjl. Now I see that my learning course from github uses midje. Can I better learn midje and it this one still active maintained or can I better learn specjl.

Re: Leiningen setup for modifying a library the project is depending on

2014-10-26 Thread Andy Fingerhut
Stephen: Take a look at the "checkouts" Leiningen feature described here to see if it does what you want: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies Andy On Sun, Oct 26, 2014 at 8:39 AM, Stephen Wakely wrote: > I need to make some modifications

Re: CCW bug [SEVERE]

2014-10-26 Thread Ed Maphis
Notepad is relatively bug free. > >> -- 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 posts from new members are moderated - please be patient with your first post. To unsubscr

Leiningen setup for modifying a library the project is depending on

2014-10-26 Thread Stephen Wakely
I need to make some modifications to a library that my project is depending on.  Currently Leiningen downloads the lib from clojure and uses that lib.  Can I set things up so it uses the files I have cloned from github instead?  I have searched the docs but can't find any ideas how to do this. 

Clojure and concurrency

2014-10-26 Thread Øyvind Teig
I have been reading myself up on Clojure concurrency, starting at [1]. In [2] I read that The Clojure STM uses multiversion concurrency control with adaptive history > queues for snapshot isolation, and provides a distinct commute operation but it still needs some explanation to me. Software t

Re: multimethod, record, type, and protocol pitfalls?

2014-10-26 Thread Ashton Kemerling
The way defmulti handles argument matching. I could be incorrect, but if I recall I was forced to use namespaced keywords for matching, and I couldn't use & args like I wanted to. On Sun, Oct 26, 2014 at 9:48 AM, Daniel Higginbotham wrote: > > What's difficult when it comes to understanding

Re: CCW bug [SEVERE]

2014-10-26 Thread john walker
All of those are google pages, so you don't have to create another username or password combination. On Saturday, October 25, 2014 11:19:12 PM UTC-7, Fluid Dynamics wrote: > > On Sunday, October 26, 2014 2:07:16 AM UTC-4, David Della Costa wrote: >> >> Here's the counterclockwise project home pag

multimethod, record, type, and protocol pitfalls?

2014-10-26 Thread Daniel Higginbotham
What's difficult when it comes to understanding multimethods, records, types, and protocols? I'm writing a chapter on multimethods, records, types, and protocols for the book Clojure for the Brave and True, and I'd love to hear about what kinds of pitfalls I should be sure to cover :) Thanks

Re: CCW bug [SEVERE]

2014-10-26 Thread Luc Préfontaine
a) you should rant about programmer(s). Exactly which one 'made a mistake' remains to be proven. b) Eclipse is a complex IDE, CCW runs on top of it as a plugin, it's at the mercy of the other pieces it depends on to run correctly. Stating who made the mistake requires some deep digg

Re: CCW bug [SEVERE]

2014-10-26 Thread Jony Hudson
You should demand your money back. Oh, wait ... Jony On Sunday, 26 October 2014 02:38:11 UTC, Fluid Dynamics wrote: > > Would somebody mind explaining to me why I just had CCW 0.28.1.STABLE001 > hang with 100% CPU usage when I edited this line: > > := (= v cr > > to t

Re: CljOS - An OOP system on Clojure

2014-10-26 Thread Divyansh Prakash
Thank you! Clojure is a brilliant language, and this project was supposed to prove (mostly to myself) that it deserves the attention I'm devoting to it. I cannot even imagine doing something similar in any other language I know. I'm not saying it wouldn't be possible, but it certainly won't fit