Re: Anyone planning on using Clojure for ICFP 2009?

2009-06-11 Thread Matt Culbreth
I'm going to do what I did last year: 1. Learn a functional language (Clojure this year; OCaml last year). 2. Try to do the the problem in said new language. 3. Give up and switch to Python. :) On Jun 11, 1:54 am, Seth wrote: > So the 12th International Conference on Functional Progra

Re: Clojure only (in-memory) database / locking granularity

2009-07-01 Thread Matt Culbreth
On Jul 1, 8:02 am, Rowdy Rednose wrote: > > But it looks like I have to implement that myself - which is not a > complaint, but I'm trying to estimate the amount of work necessary. > But I guess I could just start with one Ref per relation and then make > it more concurrent later - if I choose

Re: Using Clojure for complex database driven applications

2009-07-08 Thread Matt Culbreth
> > I am quite used to the way Object Relational Mappers like SQLAlchemy & > Django work in the Python world. > I've recently thought that a good project would be to port SQLAlchemy to Clojure. It wouldn't be a straight port since the languages are so different, but at least SQLAlchemy's query g

Problems using clojure.contrib.string

2010-02-10 Thread Matt Culbreth
Hello Group, I'm working on a Clojure project and I'm using Leiningen for the builds. I'm trying to use the most recent clojure and clojure- contrib, but I'm having a problem getting it to compile due to apparent errors in clojure.contrib.string. This works fine on the more stable versions of th

Re: Problems using clojure.contrib.string

2010-02-10 Thread Matt Culbreth
t; > Note that argument order was reversed in most functions from c.c.str- > utils2 to c.c.string. > > -SS > > On Feb 10, 10:44 am, Matt Culbreth wrote: > > > > > Hello Group, > > > I'm working on a Clojure project and I'm using Leiningen for the

Code Review: how can I make this socket code more functional?

2010-02-16 Thread Matt Culbreth
Hello Group, I'm writing a web server in Clojure and I'd love to have a bit of help on a function I have. This function (and at http://gist.github.com/305909) is used to read the HTTP request from a client and to then act on it: (defn handle-request [in out] (binding [*in* (BufferedReade

Re: Code Review: how can I make this socket code more functional?

2010-02-17 Thread Matt Culbreth
Cool, just what I needed Alan. Thanks for the help. On Feb 16, 4:30 pm, Alan Dipert wrote: > Hi Matt, > I think what you're looking for is > line-seq:http://richhickey.github.com/clojure/clojure.core-api.html#clojure.co... > > In your code, if you pass *in* to line-seq, you'll get back a seq o

Re: Code Review: how can I make this socket code more functional?

2010-02-17 Thread Matt Culbreth
t; http://github.com/weavejester/compojure/blob/master/src/compojure/htt... > > it turns the request into a map. > > and then various other parts of compojure can do different things > based on the map. > > > > > > On Tue, Feb 16, 2010 at 4:17 PM, Matt Culbreth wrot

Does clojure.contrib.io.slurp work with binary files?

2010-04-29 Thread Matt Culbreth
Howdy, I'm writing a very simple network server that needs to send a mix of text and binary (usually image) data over a network stream. I'm using slurp to read data from a file and send it to a stream, but sometimes that's failing. I've got a theory that it has to do with slurp not reading binar

Re: Does clojure.contrib.io.slurp work with binary files?

2010-04-30 Thread Matt Culbreth
Ok great, thanks guys. Exactly what I needed. On Apr 30, 12:12 am, Alex Osborne wrote: > Hi Matt, > > Matt Culbreth writes: > > I'm using slurp to read data from a file and send it to a stream, but > > sometimes that's failing.  I've got a theory that it