Re: ANN: A pretty printer for Clojure

2009-03-14 Thread budu
I just tried it, this is fantastic! We'll finally be able to debug macros while keeping our sanity. Many thanks for this and I hope it will be added directly into Clojure. On Mar 12, 3:05 am, Tom Faulhaber wrote: > I have now "released" the first version of my pretty printer as part > of my cl-f

Identifying maps.

2009-03-10 Thread budu
Hi, I've just read the "On the importance of recognizing and using maps" post and it made wonder about the best way for identifying maps. Obviously, when the situation permit it, we better use some kind of label to identify them. But sometimes, it's preferable to test for multiple keys and I'm not

Turning a sequence of chars into a string.

2009-01-25 Thread budu
Hi everybody, since I started using Clojure I've always felt that a small function for turning a sequence of chars into a string was missing. I'm currently using this one even though the name isn't quite right, but I didn't found better: (defn unseq [chars] (new String (into-array (. Characte

Re: Clojure now running in production

2009-01-14 Thread budu
Congratulation, this is quite amazing to see Clojure mature so fast and already working in production system. Sorry but I need to get back at finding that damn bug in a 10 years old VB legacy application :-( On Jan 13, 10:38 am, Luc Prefontaine wrote: > Hi everyone, > > as of yesterday pm, Cloju

Re: update-values for clojure.contrib.sql

2009-01-14 Thread budu
n C. Gilardi wrote: > > > I'd like to include something like this in clojure.contrib.sql. That   > > will go smoothest if I can base it directly on what you've written   > > and that's only possible if you send in a contributor agreement.   > > Would you please se

Re: update-values for clojure.contrib.sql

2009-01-02 Thread budu
ams*] list :) > (ahem) > > > > On Fri, Jan 2, 2009 at 8:21 AM, budu wrote: > > > Hi, I was experimenting with clojure-contrib's sql features and found > > that there wasn't any update-values function. I've written my own and > > I'm sharing it her

update-values for clojure.contrib.sql

2009-01-01 Thread budu
Hi, I was experimenting with clojure-contrib's sql features and found that there wasn't any update-values function. I've written my own and I'm sharing it here: (defn update-values [table where column-names & values] "Update columns of a table with values. columns-names is a vector of column

Re: Updated Monads

2008-11-27 Thread budu
Hi, great work! It really put to shame my own pathetic attempt to try to implement monad last summer. ;-) Thanks, I'll certainly learn a lot from this. On Nov 25, 4:40 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > I just uploaded an improved version of my monad implementation: > >        http:/

Re: French translation of the Clojure rationale

2008-11-24 Thread budu
Wow, jamais je n'aurais pensé lire des commentaires à propos des problèmes de prononciation de madame Marois ce matin. Comme on dit au Québec: "Osti qu'j'ai hâte qu'les élections finisse!" Sorry about being offtopic ;-) On Nov 22, 11:35 am, Luc Prefontaine <[EMAIL PROTECTED]> wrote: > Salutation

Re: packaging App (cross-platform) without scripts, only jar

2008-09-20 Thread budu
Thanks a lot! It's funny that you wrote this post now because I was about to try to figure it out myself this week-end. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: Binding dynamically created symbols in the lexical context.

2008-08-29 Thread budu
a)) "test") ([([\t "est"]) "est"]) And the 'string' combinator can be simply written like that: (defn string [s] (if (= 0 (count s)) (result "") (let [[x xs] (split s)] (parser (pchar x) (string xs)

Re: Binding dynamically created symbols in the lexical context.

2008-08-29 Thread budu
(result (join x xs)) user=> ((string "hello") "hello world") (["hello" " world"]) It's a straitforward implementation of the parser combinators described in the "Monadic Parser Combinators" papers by Hutton and Meijer. Thanks again!!

Re: Binding dynamically created symbols in the lexical context.

2008-08-24 Thread budu
e I already said I don't know if I really need it. Thanks On Aug 24, 2:49 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 1:33 PM, budu <[EMAIL PROTECTED]> wrote: > > > Here is the match-forms function: > > Thanks.  Now that I can see some co

Re: Binding dynamically created symbols in the lexical context.

2008-08-24 Thread budu
~(expand-parser-body xs)) (defmacro parser [& body] (let [s (gensym 's)] `(fn [~s] ~(expand-parser-body body s It's for a small parser combinator library I'm writing. On Aug 24, 1:26 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24,

Binding dynamically created symbols in the lexical context.

2008-08-24 Thread budu
Hi, I've been having a great time using Clojure in the last few month. But this week I've come accross something that is blocking me. I'm trying to write a very simple pattern matching macro to use in other macros for matching forms. I've based my macro on one posted in this group by James Reeves