Re: clojure.contrib.sql updated

2008-09-13 Thread Stephen C. Gilardi
On Sep 13, 2008, at 11:43 PM, Stephen C. Gilardi wrote: > I've made some changes to clojure.contrib.sql: In a further update, I've added insert-rows and insert-values that make inserting entire rows of values and values in specified columns easier. --Steve --~--~-~--~~

Re: Clojure Poll 09/2008

2008-09-13 Thread Moxley Stratton
On Sep 10, 2008, at 11:40 AM, Rich Hickey wrote: > > What are you doing with Clojure? Nothing at the moment. I wrote a knowledgebase engine inspired by the Cyc project, and I also wrote part of a web application in Compojure that lets users create web forms. > What 3 features would you mos

Re: Clojure Poll 09/2008

2008-09-13 Thread Craig McDaniel
> What are you doing with Clojure? I work in a fairly conservative environment where they probably wouldn't approve of my using a language in an alpha state, much less a variant of Lisp! But since I love the language and the interactive environment with Emacs, I decided it's easier to beg forgive

clojure.contrib.sql updated

2008-09-13 Thread Stephen C. Gilardi
I've made some changes to clojure.contrib.sql: - Renamed some functions/macros to shorter names: get-connection -> connection execute-commands -> do-commands execute-prepared-statement -> do-prepared with-query-results -> with-results - Added create-table, drop-ta

Re: Clojure Poll 09/2008

2008-09-13 Thread kyle smith
> What are you doing with Clojure? I'm trying to write a DSL for molecular dynamics analysis (with partial success). Users will be able to compose complex properties from basic info such as bond lengths/angles, position, velocity, etc. I'd like to add regression and integrate it with a 3d viewer

Re: [PATCH] Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread Stephen C. Gilardi
On Sep 13, 2008, at 7:44 AM, meredydd wrote: > Hey all, >The current version of the (with-connection) macro in clojure- > contrib doesn't return the result of its body. (It just returns nil > from the commit() call at the end of the transaction). I attach a > patch to achieve this behaviour,

Imperative vs Functional

2008-09-13 Thread jim
Several months ago, I put out a Clojure file that could let you work with state machines. I was just starting to work in the functional programming style and that code looked like it. It was very long with multiple complex functions and complicated data structures. Basically trying to solve the

Re: clojure rant

2008-09-13 Thread Stuart Sierra
Clojure/SLIME integration may be in flux after the recent API changes. But plain old "inferior-lisp" mode works just fine: M-x customize-variable RET inferior-lisp-program ...set the path of your Clojure startup script... M-x inferior-lisp A simple startup script could be simply:

Re: clojure rant

2008-09-13 Thread Alexey Goldin
What is the value of variable swank-clojure-jar-path in emacs? Try to set it by running M-x customize-group swank-clojure , I wonder if it helps. I got it running finally with Matt advice. On Sep 13, 1:47 am, Apurva Sharan <[EMAIL PROTECTED]> wrote: > Oops - hit Ctrl-S too soon :( > > The error

Re: Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread Rich Hickey
On Sep 13, 7:44 am, meredydd <[EMAIL PROTECTED]> wrote: > Hey all, > The current version of the (with-connection) macro in clojure- > contrib doesn't return the result of its body. (It just returns nil > from the commit() call at the end of the transaction). I attach a > patch to achieve thi

Re: [PATCH] Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread meredydd
Aaand I'm a moron, who managed to screw up posting a trivial patch. This is the version that actually works: (the first was missing a # on body-result): Index: src/clojure/contrib/sql/sql.clj === --- src/clojure/contrib/sql/sql.clj

[PATCH] Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread meredydd
Hey all, The current version of the (with-connection) macro in clojure- contrib doesn't return the result of its body. (It just returns nil from the commit() call at the end of the transaction). I attach a patch to achieve this behaviour, so it can be used in a functional style. Meredydd --