Re: Clojure + Redis

2010-01-04 Thread Gabi
How about congomongo (http://github.com/somnium/congomongo) ? Have anybody used it ? Seems good choice for storing state in central location.. On Jan 4, 2:40 am, Tom Hicks hickstoh...@gmail.com wrote: Have you looked at Neo4J? I have no experience with it but someone in the forum just announced

Re: Clojure + Redis

2010-01-04 Thread Shantanu Kumar
On Jan 2, 5:12 am, Gabi bugspy...@gmail.com wrote: I am interested in the idea: Completely stateless set of Clojure nodes (on many machines), operating on a central state stored in some datastore. If transactions could be managed somehow, I think it would be very compelling model for many

Re: Clojure + Redis

2010-01-04 Thread Gabi
Maybe, though I would avoid distributed transactions as much as possible. They are complex and slow creatures. On Jan 4, 12:51 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: On Jan 2, 5:12 am, Gabi bugspy...@gmail.com wrote: I am interested in the idea: Completely stateless set of

Re: Russian speaking members of Clojure community?

2010-01-04 Thread alco
There's an excellent resource for collaborative translations — www.translated.by. As I know, fprog is a free online magazine. So the quality of your article will definitely benefit from being edited and reviewed by the collaborative effort of an open community. Anyways, there's also an option for

Re: Sequence to Vector

2010-01-04 Thread ianp
What JVM 6 sub-version are you using? $ java -version java version 1.6.0_17 Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode) Does it make any difference if you specify -XX:+DoEscapeAnalysis at My clojure start

Re: am i the only one with deftype/defprotocol problems?

2010-01-04 Thread Jonas Enlund
I think you simply need to get the syntax right. The following works fine for me: user= (defprotocol p (foo [this])) p user= (deftype a [f] p (foo [])) #'user/a user= (foo (a nil)) nil user= (deftype a [f] :as this p (foo [] [this])) #'user/a user= (foo (a nil)) [#:a{:f nil}] On Mon, Jan 4,

Re: Russian speaking members of Clojure community?

2010-01-04 Thread edbond
Hello Alex, I can review article. My email is edb...@gmail.com Best regards, Eduard On Jan 3, 5:33 pm, Alex Ott alex...@gmail.com wrote: Hello all I want to ask Russian speaking of Clojure community to contact with me - I'm currently writing article about Clojure for Russian journal of

Re: Lift equivalent

2010-01-04 Thread Gene Tani
On Jan 3, 12:57 pm, Andrew Boekhoff boekho...@gmail.com wrote: As for the OO vs functional . . . a web server is a function from a request to a response.  How is that functional view any less natural than an OO view? I think someone steeped in the controller/action viewpoint (a la

Re: Clojure + Redis

2010-01-04 Thread Gabi
What if I wanted to use Redis just persist binary (serialized) clojure objects ? What's the easiest (and fastest) way to serialize/de-serialize vectors or lists in Clojure ? (so the can stored as blobs in Redis) On Jan 4, 12:59 pm, Gabi bugspy...@gmail.com wrote: Maybe, though I would avoid

Re: Clojure + Redis

2010-01-04 Thread Steve Purcell
Read the code I posted in this thread and put up on github after you expressed interest. That's part of what it does, using the reader/printer representation. Alternatives would include standard Java binary serialisation or 3rd party libraries (Hessian/Burlap?). -Steve On 4 Jan 2010, at

Re: gui repl

2010-01-04 Thread Kevin Downey
ah, well, the differences are: a. this repl is written in Clojure b. this repl can print arbitrary jcomponents, not just text. for example in the screenshot a ChartPanel from JFreeChart is rendered in the repl On Sun, Jan 3, 2010 at 11:42 PM, Albert Cardona sapri...@gmail.com wrote: I built a

Counterclockwise problem when compiling

2010-01-04 Thread Arie van Wingerden
Hi, i am playing with Clojure in the latest version of the Counterclockwise IDE and encounter a problem when compiling: 1) i right-click on source vappend.clj and choose run as Clojure Repl 2) then i click ctrl-alt-k to compile Then i get the following in the Repl:

Re: Counterclockwise problem when compiling

2010-01-04 Thread Laurent PETIT
Hi, This is a problem with the way you have created your files in your project: your namespace is arie.vappend So your file should be named vappend.clj, and be placed in yourProject/src/arie/ directory ( and not yourProject/src/ ) HTH, -- Laurent 2010/1/4 Arie van Wingerden

Re: Counterclockwise problem when compiling

2010-01-04 Thread Luc Prefontaine
Create a Java package arie under src and move your source file there. Luc Sent from my iPod On 2010-01-04, at 11:16 AM, Arie van Wingerden xapw...@gmail.com wrote: Hi, i am playing with Clojure in the latest version of the Counterclockwise IDE and encounter a problem when compiling:

Re: Counterclockwise problem when compiling

2010-01-04 Thread Arie van Wingerden
Hi Laurent, that was indeed the problem. Thx! 2010/1/4 Laurent PETIT laurent.pe...@gmail.com Hi, This is a problem with the way you have created your files in your project: your namespace is arie.vappend So your file should be named vappend.clj, and be placed in yourProject/src/arie/

Re: am i the only one with deftype/defprotocol problems?

2010-01-04 Thread Raoul Duke
thanks Konrad Jonas. i figured/hoped it was something stupid simple. (for some reason i don't know where to find the latest syntax documented.) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: am i the only one with deftype/defprotocol problems?

2010-01-04 Thread Raoul Duke
ah! i think i was screwing up with git :-( (doc deftype) looks right now. On Mon, Jan 4, 2010 at 10:36 AM, Raoul Duke rao...@gmail.com wrote: thanks Konrad Jonas. i figured/hoped it was something stupid simple. (for some reason i don't know where to find the latest syntax documented.) --

Re: Clojure + Redis

2010-01-04 Thread anders nawroth
There's actually been some activity from different people regarding Clojure + Neo4j, see: http://wiki.neo4j.org/content/Clojure /anders On Jan 4, 1:40 am, Tom Hicks hickstoh...@gmail.com wrote: Have you looked at Neo4J? I have no experience with it but someone in the forum just announced a

Re: gui repl

2010-01-04 Thread Brian Goslinga
Nice. This reminds me of some of the things you can do in CLIM. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Maven dependency on release 1.1.0

2010-01-04 Thread Patrick Grimard
I'm new to Clojure, wanting to learn it. I got a hold of a Clojure Maven plugin from http://github.com/talios/clojure-maven-plugin and created a new blank project. By default the POM has Clojure 1.0.0 as a dependency. Version 1.1.0 is not in the central Maven repo, so I downloaded 1.1.0 from

extend can't do interfaces?

2010-01-04 Thread Raoul Duke
seems like i can use an interface in deftype, but i can't subsequently make the type participate in an interface, only a protocol, which is confusing to me: i expected extend to be less restrictive, if anything, than deftype. (or am i just getting the syntax horribly wrong again? it didn't seem

Re: extend can't do interfaces?

2010-01-04 Thread Rich Hickey
On Jan 4, 4:22 pm, Raoul Duke rao...@gmail.com wrote: seems like i can use an interface in deftype, but i can't subsequently make the type participate in an interface, only a protocol, which is confusing to me: i expected extend to be less restrictive, if anything, than deftype. (or am i

Re: extend can't do interfaces?

2010-01-04 Thread Raoul Duke
It is interfaces that are more restrictive than protocols, and extend can't fix that. This ability to extend an existing type to a protocol is a main reason protocols exist. i guess i'm horribly confused about the right mental model for all of this, apologies. e.g. it sounds like the only way

Re: Maven dependency on release 1.1.0

2010-01-04 Thread Phil Hagelberg
Patrick Grimard pgrim...@gmail.com writes: I'm new to Clojure, wanting to learn it. I got a hold of a Clojure Maven plugin from http://github.com/talios/clojure-maven-plugin and created a new blank project. By default the POM has Clojure 1.0.0 as a dependency. Version 1.1.0 is not in the

[ANN] clj-peg v0.6 released

2010-01-04 Thread Richard Lyman
All, This project adds support in Clojure for Parsing Expression Grammars. You'll be able to write pseudo-ebnfs directly in your Clojure code. Currently, this... Expr - [Sum $] Sum - [Product (* [SumOp Product])] Product - [Value (* [ProductOp Value])] Value - (| Num Sum)

Re: clj-peg v0.6 released

2010-01-04 Thread Anniepoo
Sweet! Wish I'd had this a few days ago, I just spent the last few days writing parsers. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated -

Re: clj-peg v0.6 released

2010-01-04 Thread Richard Lyman
Oh, sorry! I was thinking about releasing this version last week - but with the new year likely taking precedence I thought I'd wait. Maybe next time I'll send you a version a few days before I announce it. ;-) -Rich On Mon, Jan 4, 2010 at 3:32 PM, Anniepoo annie6...@yahoo.com wrote:

Mocking a namespace?

2010-01-04 Thread Brian Hurt
What I'd like to do is mock a full name-space for the purpose of testing other functions that use or require the original name-space. Do people have ideas or best practices for how I can do this? The problem comes in that I very much prefer doing my uses/requires in the name space declaration.

Re: gui repl

2010-01-04 Thread Marc Downie
Well, if people are in the mood for fun, hybrid, Clojure REPLs... The latest version of Field (a mac-only open source IDE for digital art) secretly supports Clojure as one of its embedded languages (screenshot

[ANN] FleetDB: A schema-free database implemented in Clojure

2010-01-04 Thread Mark McGranaghan
Hi All, I'm happy to announce the alpha release of 'FleetDB', a schema-free database implemented in Clojure and optimized for agile development. From the homepage at http://fleetdb.org: FleetDB offers a flexible and expressive data model designed for the needs of modern application developers; a

Understanding the continuation monad's bind operator

2010-01-04 Thread Steven E. Harris
In clojure.contrib.monads, there's a monad defined called cont-m to model continuations. Its bind operator -- `m-bind` -- is defined as follows: , | (fn m-bind-cont [mv f] | (fn [c] | (mv (fn [v] ((f v) c) ` I'm curious why there's an extra delaying wrapper function there. The

Re: Mocking a namespace?

2010-01-04 Thread .Bill Smith
Brian, I don't blame you -- I wouldn't want to put conditional requires in my code either. Did you consider putting your mock code in a different classpath? Here is another idea. It's tempting to suggest that you write your own version of ns that mucks with its arguments and then passes the

Re: FleetDB: A schema-free database implemented in Clojure

2010-01-04 Thread Sean Devlin
Would you be comfortable recording publishing the talk? On Jan 4, 7:12 pm, Mark McGranaghan mmcgr...@gmail.com wrote: Hi All, I'm happy to announce the alpha release of 'FleetDB', a schema-free database implemented in Clojure and optimized for agile development. From the homepage

Re: FleetDB: A schema-free database implemented in Clojure

2010-01-04 Thread Mark McGranaghan
Sure; if someone at the meetup wanted to record the talk that would be great. I'll probably publish my slides as well. - Mark On Jan 4, 6:18 pm, Sean Devlin francoisdev...@gmail.com wrote: Would you be comfortable recording publishing the talk? On Jan 4, 7:12 pm, Mark McGranaghan

Re: clj-peg v0.6 released

2010-01-04 Thread Seth
An RSS feed might help early adopters test prereleases, but it's been explicitly disabled? On Jan 4, 5:43 pm, Richard Lyman richard.ly...@gmail.com wrote: Oh, sorry! I was thinking about releasing this version last week - but with the new year likely taking precedence I thought I'd wait.

Re: Understanding the continuation monad's bind operator

2010-01-04 Thread jim
Don't have time to go in depth on an explanation. But remember that m- bind must work with m-result according to the 3 monadic laws. This constrains what it can do. Don't know if you saw, but I did a whole tutorial on the continuation monad. It's at:

Re: clj-peg v0.6 released

2010-01-04 Thread Richard Lyman
Yeah, the management software for my site is in flux. Getting RSS done is on the todo list, but not very high. There really aren't pre-releases - when I have a version to release I announce it here as soon as it's available. I hadn't thought that there might actually be people interested in