Re: [ANN] Leiningen 2.1.1 released

2013-03-22 Thread Johann Hibschman
By the way, is there any place to get a full tarball (or zip) of leiningen and its dependencies? Not all of the machines I'm working on have external internet access, so I can't bootstrap as usual. On Thursday, March 21, 2013 6:44:09 PM UTC-4, Phil Hagelberg wrote: Hello folks. I've just

Re: statistics library?

2011-09-27 Thread Johann Hibschman
Lee Spector lspec...@hampshire.edu writes: I need to do some pretty simple statistics in a Clojure program and Incanter produces results that I think must be wrong (details below). So I don't think I can trust it. I agree, those all look weird to me. Is there other code for statistical

Re: statistics library?

2011-09-27 Thread Johann Hibschman
Johann Hibschman joha...@gmail.com writes: There may be an easier way to do this, but this worked for me: user= (org.apache.commons.math.stat.inference.TestUtils/tTest (into-array Double/TYPE [40 5 2]) (into-array Double/TYPE [1 5 1])) 0.3884493044983227 I should have used (double

Re: Clojure, Parallel programming and Leslie Lamport

2010-12-22 Thread Johann Hibschman
Konrad Hinsen konrad.hin...@fastmail.net writes: Thanks for the link! Judging from the example in the README, it's a library for task farming in Clojure. While that's a limited form of parallelism, there are still lots of applications where it is useful, so I'd say this library is definitely

Re: Moderately off-topic: installing emacs on OSX

2010-12-14 Thread Johann Hibschman
javajosh javaj...@gmail.com writes: Ok, I decided to nuke ports, fink, and delete every package they ever installed. I successfully installed emacs 23.2 via homebrew (there's a good overview of homebrew here http://ascarter.net/2010/02/22/homebrew-for-os-x.html). I'm coming late to this

Re: math utilities question

2010-12-06 Thread Johann Hibschman
Robert McIntyre r...@mit.edu writes: I'm wondering if people have had experience with java libraries of that sort and might have some recommendations. Anyone use clojure for scientific data analysis? What do you find helpful to use? I'm still just evaluating clojure for scientific data

Re: Map with multiple keys?

2010-02-24 Thread Johann Hibschman
Base basselh...@gmail.com writes: So this may be an extraordinary dumb question (even for me...) but is there such a thing as a map with compound keys? [...] I could do map - in - map, or do something like a (str cat gender) to amalgamate 2 fields to set the key but I was just wondering if

Style for mutable data

2010-01-30 Thread Johann Hibschman
Does anyone have style suggestions for distinguishing the states from the refs to mutable data? Let's say I'm manipulating a cell in a lattice, or doing dynamic programming, or something. In any case, I have a cell. ;; Current convention: use cell- as the type of the state of a cell. (defstruct

Re: Style for mutable data

2010-01-30 Thread Johann Hibschman
On Jan 30, 4:35 pm, ataggart alex.tagg...@gmail.com wrote: Akin to what Johann said, why bother with the functions that deal with the value/state? Put another way, the cell has identity over time, thus implemented as a ref. A function that, say, prints a cell, should take a cell/ref as its

Re: Space usage of lazy seqs

2009-12-03 Thread Johann Hibschman
On Dec 2, 9:59 pm, Johann Hibschman joha...@gmail.com wrote: On Dec 2, 9:09 pm, David Brown cloj...@davidb.org wrote: You can tune the max with -Xmx1G for example, to limit it to one GB. That's a good idea; then I'll know for sure if it's keeping a handle to the entire file. Ok, that's

Space usage of lazy seqs

2009-12-02 Thread Johann Hibschman
I don't understand Clojure's space requirements when processing lazy sequences. Are there some rules-of-thumb that I could use to better predict what will use a lot of space? I have a 5.5 GB pipe-delimited data file, containing mostly floats (14 M rows of 40 cols). I'd like to stream over that

Re: Space usage of lazy seqs

2009-12-02 Thread Johann Hibschman
On Dec 2, 9:09 pm, David Brown cloj...@davidb.org wrote: How much memory do you have on your machine.  A recent Sun JVM on a machine with a bunch of memory will consider it to be a server machine.  It will set the heap max to 1/4 of total physical memory (which suggests you might have 16GB of