Re: Idiomatic Clojure namespace names

2010-07-10 Thread Saul Hazledine
On Jul 10, 12:16 am, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: On Fri, 9 Jul 2010 12:49:05 -0700 (PDT) j-g-faustus johannes.fries...@gmail.com wrote: That said, I would leap at a chance to shorten Java names, even if it were just to chop off the leading com or org. As

Re: Idiomatic Clojure namespace names

2010-07-10 Thread James Reeves
On 9 July 2010 17:46, Paul Moore p.f.mo...@gmail.com wrote: Is there any benefit to using a name like foo.core (or foo.api) rather than simply foo (beyond sytlistic considerations, that is)? Clojure compiles foo to a package-less class called foo. foo.ciore is compiled to a class called core in

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Meikel Brandmeyer
Hello Laurent, Am 09.07.2010 um 18:30 schrieb Laurent PETIT: But still I prefer to have the library name at the end of the namespace, it's easier to spot than in the middle (e.g. I prefer net.cgrand.parsley to paredit.core) Now that is a strange argument. net.cgrand.parsley vs.

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Laurent PETIT
2010/7/10 Meikel Brandmeyer m...@kotka.de Hello Laurent, Am 09.07.2010 um 18:30 schrieb Laurent PETIT: But still I prefer to have the library name at the end of the namespace, it's easier to spot than in the middle (e.g. I prefer net.cgrand.parsley to paredit.core) Now that is a strange

Re: ClojureDocs.org

2010-07-10 Thread Heinz N. Gies
Hi Zack, first of all, great effort there :) having a place for clojure docs is awesome. Two things come to mind: 1) http://github.com/defn/walton - have a look at it, it might be a good way to fetch examples for functions where none are provided yet. 2) Will it be possible to put other 3rd

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Mike Meyer
Saul Hazledine shaz...@gmail.com wrote: On Jul 10, 12:16 am, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: On Fri, 9 Jul 2010 12:49:05 -0700 (PDT) j-g-faustus johannes.fries...@gmail.com wrote: That said, I would leap at a chance to shorten Java names, even if it were just

Re: ClojureDocs.org

2010-07-10 Thread Shantanu Kumar
This is great. One suggestion -- consider providing a downloadable bundle for offline use as well. Regards, Shantanu On Jul 10, 2:11 pm, Heinz N. Gies he...@licenser.net wrote: Hi Zack, first of all, great effort there :) having a place for clojure docs is awesome. Two things come to mind:

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Jeff Rose
On Jul 9, 6:22 pm, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: How have you managed to miss the second half of that's the way they do it in Java, which is and we need to interoperate with other JVM languages. Like it or not, one of the biggest draws of Clojure is that it

Re: clj-sandbox

2010-07-10 Thread Heinz N. Gies
Now version 0.4.0 is out, it fixes a evil bug that had problems with forms like (. obj (meth arg)) and also introduces a pretty cool new feature: It allows a somewhat save use of def and defn, this is by far not perfect sadly but it is a step towards the direction of having a sandbox that

Re: Recent builds have failed on http://build.clojure.org

2010-07-10 Thread ngocdaothanh
I think it is because the last commit of the master branch is on June 24, 2010: http://github.com/richhickey/clojure/commits/master On Jul 10, 12:24 pm, Dmitry Kakurin dmitry.kaku...@gmail.com wrote: The last successful build was on June 23rd. - Dmitry -- You received this message because

Re: ClojureDocs.org

2010-07-10 Thread RobertLJ
This is GREAT!!! I love the way you have opened it up for community participation. Robert On Jul 9, 4:32 am, zkim zachary@gmail.com wrote: Hi All, I'll try to keep this short. I've gotten a lot out of Clojure: I can honestly say that learning this language, and being part of this

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Paul Moore
On 10 July 2010 09:06, James Reeves jree...@weavejester.com wrote: On 9 July 2010 17:46, Paul Moore p.f.mo...@gmail.com wrote: Is there any benefit to using a name like foo.core (or foo.api) rather than simply foo (beyond sytlistic considerations, that is)? Clojure compiles foo to a

Re: Recent builds have failed on http://build.clojure.org

2010-07-10 Thread Stuart Halloway
You are looking at the wrong build box. The master branch is at http://github.com/clojure/clojure, now that GitHub offers organization support. The current build.clojure.org is about to be replaced. We have a new build box that we should be pointing the DNS to, hopefully this weekend. Stu I

Re: ClojureDocs.org

2010-07-10 Thread James Reeves
On 9 July 2010 21:06, Tom Faulhaber tomfaulha...@gmail.com wrote: Quick thought: You probably don't want to include private vars. Seconded. It's a little confusing seeing private vars and macros in the API docs! Other than that, this looks excellent. I'm signing up as I write this. - James --

Re: ClojureDocs.org

2010-07-10 Thread Stuart Halloway
Very cool. Let me start by saying thanks to everyone who has been involved in the various threads on improving documentation, especially those who, like Zack, have taken substantial action. Here are a bunch of ideas, in no particular order: (1) Ease of contribution is huge, and

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Martin DeMello
On Sat, Jul 10, 2010 at 12:06 PM, Saul Hazledine shaz...@gmail.com wrote: As another suggestion how about clj.handle.library e.g clj.mired.proclog clj.weavejester.compojure clj.acme-corp.dynamite +1 martin -- You received this message because you are subscribed to the Google Groups

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Martin DeMello
On Sat, Jul 10, 2010 at 2:56 PM, Mike Meyer mwm-keyword-googlegroups.620...@mired.org wrote: As another suggestion how about clj.handle.library e.g clj.mired.proclog clj.weavejester.compojure clj.acme-corp.dynamite Why should I prefer clj.mired, shared with gods knows who over org.mired,

Re: Databases for a Concurrent World

2010-07-10 Thread David Nolen
On Fri, Jul 9, 2010 at 11:08 PM, tbatchelli tbatche...@gmail.com wrote: Hi David, Out of curiosity, how are these tests connecting to the database, especially in the cases of MongoDB and CouchDB? In the case of CouchDB you're clearly using HTTP in a way that it creates one connection per

Re: Databases for a Concurrent World

2010-07-10 Thread Toni Batchelli
I think what you're doing is great. I understand you're using ab for these tests, right? What are the actual settings that you are using? Also, I'd like to mention that what these tests are showing is the behavior of the server under constant load (constant frequency in the arrival times of the

Re: Databases for a Concurrent World

2010-07-10 Thread Allen Johnson
To test with pooled DB connections I thought I'd mention Apache Commons dbcp. Its a generic connection pool library that could be used for any jdbc connection. I'd post a example clojure usage but I'm afk atm. The lib's BasicDataSource is probably all you'd need. Depends on Commons pool. Just

Re: ClojureDocs.org

2010-07-10 Thread James Reeves
On 10 July 2010 15:06, Stuart Halloway stuart.hallo...@gmail.com wrote: (6) Because docstrings are designed for consumption at a REPL, they may in some cases presume a fixed font. Worth considering for display on the site. What about giving function documentation the same wiki behaviour that

Re: Databases for a Concurrent World

2010-07-10 Thread Allen Johnson
Here are my examples for mysql and postgres using commons-dbcp. They are exactly the same except for the connection info. Might want to play around with the initial,min,max size properties. [MySQL] http://gist.github.com/470901 [PostgreSQL] http://gist.github.com/470904 Just download and

Redcar and Clojure

2010-07-10 Thread Dave Byrne
Does anyone use Redcar editor with Clojure? I am thinking about writing a Clojure REPL plugin, but wanted to make sure no one else has already done this. Would anyone find this useful, or is there no need for it with the plethora of other options (emacs/slime/swank, counterclockwise, etc.)? --

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Mikhail Kryshen
On 10 июл, 14:42, Jeff Rose ros...@gmail.com wrote: I also disagree with this concept of putting the language in the package name. One of the benefits of compiling down to a common runtime is that we don't need to care what language something was written in. I think this kind of meta-data,

Re: ClojureDocs.org

2010-07-10 Thread Luc Préfontaine
Zack if you need help with this Rail app let us now. We can give you a hand, the wish list keeps growing :))) Luc P. Sent from my iPod On 2010-07-09, at 15:07, zkim zachary@gmail.com wrote: Hi Justin, thanks again for the go-ahead to pull examples from

Congomongo question - how to update all records?

2010-07-10 Thread Mark Engelberg
Let's say I have a table called :table, and a column called :col, and I want to go through all the records in the table and set the :col value to 0. I had been doing it like this: (defn update-db! [] (doseq [entry (fetch :table)] (update! :table entry (assoc entry :col 0 but the other

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Phil Hagelberg
On Sat, Jul 10, 2010 at 3:42 AM, Jeff Rose ros...@gmail.com wrote: Luckily for us, I think the tide is already rising on this conversation.  Most prominent Clojure libraries are adopting the same packaging scheme as clojure.core, and we are uploading our libraries to the wild and crazy,

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Mike Meyer
On Sat, 10 Jul 2010 03:42:16 -0700 (PDT) Jeff Rose ros...@gmail.com wrote: On Jul 9, 6:22 pm, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: How have you managed to miss the second half of that's the way they do it in Java, which is and we need to interoperate with other JVM

Proposal: Digest

2010-07-10 Thread David Soria Parra
Hi, I want to propose a wrapper around MessageDigest to provide a simple way to generate digests. The following proposal includes a multimethods digest, which operates either on strings or on arrays of bytes. I think digests are usuall used with strings. To expose the byte array api from java's

CCW zombie error markers

2010-07-10 Thread Lee Spector
I'm using Eclipse/Counterclockwise and on a couple of occasions have had errors (e.g. once with a java.lang.IllegalArgumentException) that produce an error marker (a red circle with a white x in the left margin) that won't go away when the error is fixed, or even when closing/reopening the

bigint discrepency

2010-07-10 Thread .Bill Smith
I ran across this while editing http://clojure-examples.appspot.com: user= (bigint 1) 1 user= (bigint 1.5) 1 user= (bigint 1) 1 user= (bigint 1.5) java.lang.NumberFormatException: For input string: 1.5 (NO_SOURCE_FILE:0) Since 1.5 coerces to 1, shouldn't 1.5 also coerce to 1? user=

Re: bigint discrepency

2010-07-10 Thread Miki
Hello Bill, user= (bigint 1) 1 user= (bigint 1.5) java.lang.NumberFormatException: For input string: 1.5 (NO_SOURCE_FILE:0) Since 1.5 coerces to 1, shouldn't 1.5 also coerce to 1? This comes from Java's implementation of BigInteger user= (new BigInteger 1.5)

Re: Databases for a Concurrent World

2010-07-10 Thread Miki
Hello David, http://dosync.posterous.com/22516635 I'm interested to see what will be CouchDB numbers when there are indexes on the data. In my experience, this is a speed killer. All the best, -- Miki -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: Recent builds have failed on http://build.clojure.org

2010-07-10 Thread Miki
The current build.clojure.org is about to be replaced. We have a new build box that we should be pointing the DNS to, hopefully this weekend. Maybe clojurebot can announce build results in #clojure? Miki -- You received this message because you are subscribed to the Google Groups Clojure

Re: Databases for a Concurrent World

2010-07-10 Thread Adrian Cuthbertson
To test with pooled DB connections I thought I'd mention Apache Commons dbcp. Its a generic connection pool library that could be used for any jdbc connection. There's also the lighter-weight MiniCollectionPoolManager. See http://www.source-code.biz/snippets/java/8.htm -Regards, Adrian. --

Re: bigint discrepency

2010-07-10 Thread Armando Blancas
Since 1.5 coerces to 1, shouldn't 1.5 also coerce to 1? The doc says Coerce to BigInteger, but that doesn't include double- quoted numbers. If (bigint) can't make up what you give it, it'll try BigInteger(byte[] val) or BigInteger(String val). Java calls can create inconsistencies but in this

Re: ClojureDocs.org

2010-07-10 Thread zkim
http://gist.github.com/470031 I'm sure something like it could be made for ClojureDocs.org once the API is in place. Nice, looks pretty straightforward. I think an important aspect of a collaborative tool like this is quality control. To that end, a complete list of recent updates (with