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 j

Re: statistics library?

2011-09-27 Thread Johann Hibschman
Johann Hibschman 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 (

Re: statistics library?

2011-09-27 Thread Johann Hibschman
Lee Spector 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 testing out there? I'd

Re: Clojure, Parallel programming and Leslie Lamport

2010-12-22 Thread Johann Hibschman
Konrad Hinsen 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 worth a closer look. Ho

Re: Moderately off-topic: installing emacs on OSX

2010-12-14 Thread Johann Hibschman
javajosh 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 game, and I see tha

Re: math utilities question

2010-12-06 Thread Johann Hibschman
Robert McIntyre 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 analysis, bu

Re: Map with multiple keys?

2010-02-24 Thread Johann Hibschman
Base 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 this > even exis

Re: Style for mutable data

2010-01-30 Thread Johann Hibschman
On Jan 30, 4:35 pm, ataggart 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 arg. This is my gener

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". (defstru

Re: Space usage of lazy seqs

2009-12-03 Thread Johann Hibschman
On Dec 2, 9:59 pm, Johann Hibschman wrote: > On Dec 2, 9:09 pm, David Brown 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, th

Re: Space usage of lazy seqs

2009-12-02 Thread Johann Hibschman
On Dec 2, 9:09 pm, David Brown 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 RAM). I have

Re: Space usage of lazy seqs

2009-12-02 Thread Johann Hibschman
On Dec 2, 2:50 pm, ataggart wrote: > After reading the code, I'm inclined to not trust those numbers.  Note > that the time metrics for test-split* are all in the same ballpark, > creating the same number of superfluous, intermediate String > instances, but the memory numbers you list are wildly

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 fil

Re: Getting Started in Mac OS X Snow Leopard

2009-12-02 Thread Johann Hibschman
On Dec 1, 3:59 pm, Charras wrote: > Steve, I already try to follow does instructions. I copied the text > into the *scratch* buffer, and did control j (C-j), but nothing > happen, it just move the cursos to the next line. Do you know how can > I make Aquamacs eval the *scratch* buffer? 'Cause I th