IO/memory bottlenecks

2014-06-27 Thread Sam Raker
I'm super new to Clojure, so apologies if I've missed something. I'm trying to use an agent to manage IO for code that involves reading a bunch of JSON files, doing some processing, then writing the contents to separate files. I'm using pmap to speed things up, but I've run into some memory ove

Re: OOM problem with test.check

2014-06-27 Thread Colin Fleming
That's great, thanks Reid! I'll take a look. Cheers, Colin On 28 June 2014 04:16, Reid Draper wrote: > Hi Colin, > > You've correctly followed the guide for writing recursive generators. > Trouble is, the guide (which I wrote) is wrong! I'll work on getting it > updated shortly, but in the int

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Juan Martín
Hi Sean, Thanks you for the kind words and for creating issue on the project! I'll look into them as soon as I can. Cheers, Juan On Friday, June 27, 2014, Sean Corfield wrote: > Nice piece of work - especially for a school project at any level! Impressive! > Sean > > On Jun 27, 2014, at 8:00 A

Re: OOM problem with test.check

2014-06-27 Thread Reid Draper
Hi Colin, You've correctly followed the guide for writing recursive generators. Trouble is, the guide (which I wrote) is wrong! I'll work on getting it updated shortly, but in the interim, you can check out the detailed commit message here: https://github.com/clojure/test.check/commit/2a2bd8f

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Raoul Duke
> I've been on Java 8 on my development Mac for ages. The only thing holding > us back from going to Java 8 in production is New Relic don't yet support > it... > > We upgraded our entire stack to Java 7 back in October and I thought we were > late since Java 6 had been EOL'd for so long :) i'm on

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Sean Corfield
I've been on Java 8 on my development Mac for ages. The only thing holding us back from going to Java 8 in production is New Relic don't yet support it... We upgraded our entire stack to Java 7 back in October and I thought we were late since Java 6 had been EOL'd for so long :) Sean On Jun 27

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Juan Martín
Hi Raoul, There are some things included in JDK 1.7 that some of the dependencies use (at least one of them that I'm sure of which uses java.nio package) which makes it hard to make the application compatible with 1.6. It's not for lack of trying since I considered downgrading to Java 1.6 (see he

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Raoul Duke
ugh, thanks. nice how i can just update it with app store. oh, wait?? -- 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

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Kurt Schrader
JDK 7 installer for Mac OS X is here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Java 6 is no longer supported (as of Feb 2013, well over a year ago), you should think about upgrading. On Fri, Jun 27, 2014 at 5:50 PM, Raoul Duke wrote: > why does it req

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Raoul Duke
why does it require java 1.7? this newish mavericks macbook only has 1.6 so i would guess you've just made it hard for a lot of people to try this out? :-( -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Sean Corfield
Nice piece of work - especially for a school project at any level! Impressive! Sean On Jun 27, 2014, at 8:00 AM, juan.facorro wrote: > Hello Clojurians! > > I wanted to share with you a project called Clojure Lab, an IDE for Clojure > in Clojure. > > https://github.com/jfacorro/clojure-lab >

Re: [ANN] friendui 0.3.0

2014-06-27 Thread Frozenlock
Looks nice! I'll try to think to use it in my next project. One little problem I can see is the sendmail requirement. Isn't there a way to add a remote SMTP? (Like with the postal library?) On Wednesday, June 25, 2014 4:05:38 PM UTC-4, Sven Richter wrote: > > Hi, > > I just wanted to announce f

Re: lazy list comprehension

2014-06-27 Thread Kevin Downey
On 6/27/14, 8:01 AM, Glen Rubin wrote: > I have a list that I want to combine in some way with an incremented list, > so I was trying to write a for expression like this: > > (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) the equivalent of this code written using map and mapcat is (m

Re: [Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread Shantanu Kumar
Downloaded and tried. It's very neat! Thanks for sharing. Shantanu On Friday, 27 June 2014 20:30:37 UTC+5:30, juan.facorro wrote: > > Hello Clojurians! > > I wanted to share with you a project called *Clojure Lab*, an *IDE for > Clojure in Clojure*. > > *https://github.com/jfacorro/clojure-lab

Re: lazy list comprehension

2014-06-27 Thread Glen Rubin
yes, map-indexed seems to make the most sense here. thanks On Friday, June 27, 2014 8:13:53 AM UTC-7, Linus Ericsson wrote: > > You probably want map-indexed > > http://clojuredocs.org/clojure_core/1.2.0/clojure.core/map-indexed > > /L > > > 2014-06-27 17:10 GMT+02:00 Leonardo Borges >: > >> Try

Re: lazy list comprehension

2014-06-27 Thread Leonardo Borges
Try using map : (map str '(my-list-of-crap) (iterate inc 0)) -- 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 f

Re: lazy list comprehension

2014-06-27 Thread Linus Ericsson
You probably want map-indexed http://clojuredocs.org/clojure_core/1.2.0/clojure.core/map-indexed /L 2014-06-27 17:10 GMT+02:00 Leonardo Borges : > Try using map : > > (map str '(my-list-of-crap) (iterate inc 0)) > > -- > You received this message because you are subscribed to the Google > Grou

Re: lazy list comprehension

2014-06-27 Thread François Rey
On 27/06/14 17:01, Glen Rubin wrote: I have a list that I want to combine in some way with an incremented list, so I was trying to write a for expression like this: (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) I would also use map, otherwise try using (range) instead of your ite

Re: lazy list comprehension

2014-06-27 Thread Moritz Ulrich
Use map. for produces permutations. Am 27.06.2014 17:02 schrieb "Glen Rubin" : > I have a list that I want to combine in some way with an incremented list, > so I was trying to write a for expression like this: > > (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) > > > The problem with th

lazy list comprehension

2014-06-27 Thread Glen Rubin
I have a list that I want to combine in some way with an incremented list, so I was trying to write a for expression like this: (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) The problem with this is that it yields an out of memory area. I assume this is b/c of my poor use of the i

[Request for Feedback] Clojure Lab: IDE for Clojure in Clojure

2014-06-27 Thread juan.facorro
Hello Clojurians! I wanted to share with you a project called *Clojure Lab*, an *IDE for Clojure in Clojure*. *https://github.com/jfacorro/clojure-lab * Yes! Another IDE for Clojure, uhm... the more the merrier? This project started as a learning exe

Re: Clojure on iOS devices - Swift as a host?

2014-06-27 Thread Greg Knapp
That is cool :) On Tuesday, 24 June 2014 19:29:00 UTC+1, Mike Fikes wrote: > > (Apologies to Greg for having essentially hijacked this thread, but I > suspect he'd find this cool.) > > I have no experience with the Swift REPL yet, but I'm still finding this a > little surreal: > > >

Re: Is Clojure fit for giant space-efficient in-memory tree structures?

2014-06-27 Thread Mikera
If this is going to be the main performance bottleneck in your application, I would probably do it in Java (possibly implementing relevant Clojure interfaces to make it easy to use from Clojure). Ultimately, this gives you more control over the memory representation and the ability to do certain

Re: Is Clojure fit for giant space-efficient in-memory tree structures?

2014-06-27 Thread Phillip Lord
When you get to very large size the efficiency of your data representation is more likely to be the defining factor that the data representation of the language that you are using. So, I don't think that there is a specific answer, other than general advice for optimisation. Try it first, and opti

Re: Instaparse: Dynamic Grammar With Declarations

2014-06-27 Thread Stefan Kamphausen
For future reference: There was a short discussion on the instaparse list. Summary: * The two approaches outlined earlier are the two possibilities to solve the problem at hand. * Instaparse can take a data structure representation of a grammar (combinators) which could be used for the two pa