Re: Error running Clojure 1.3 on OSX 10.6.8

2011-11-28 Thread Chris Perkins
It looks like those instructions are a bit out of date. The download does not contain a clojure.jar - it contains clojure-1.3.0.jar. Just put that after -cp, and it should work. - Chris -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Clojure on PyPy

2011-11-28 Thread Timothy Baldridge
IMO better to hack on VMKit (llvm) than to start a new one atop of PyPy. Seeing as VMkit is a method level jit, and PyPy creates tracing JITs, basing a JVM off of VMKit to run clojure on it kindof defeats the whole purpose. Timothy -- “One of the main causes of the fall of the Roman Empire

Re: Problem with Korma and clj-soap

2011-11-28 Thread Dennis Crenshaw
Eeyup, that seems to do the trick! It complains about proper initialization and Axis2 no longer logs to stdout, but I can serve soap again! I now just need to find a way to harmonize the logging from Korma and the logging that Axis2 provides. But that's an exercise left to the OP. :) Thanks for

Re: Problem with Korma and clj-soap

2011-11-28 Thread Dennis Crenshaw
For the for the record and in case anyone has run into something similar, I've fixed my problem and come to an understanding of it's nature... First, the why: As it turns out, Axis2, et. al defaults to yelling on the DEBUG log4j level for it's activity logs. Thus, if the root appender says DEBUG

Can we make implements? public

2011-11-28 Thread Brent Millare
I need to verify if an object implements a protocol. Looking at the source code, I noticed that protocol objects act as a map, and has the key :impls. From this is a map I can look up a class to see if there are functions. The resulting code is: (defn implements? [protocol obj] (boolean

Re: Using Clojure on a Mac

2011-11-28 Thread Kula
i recommend the brew tool you can try it on website https://*github*.com/mxcl/home*brew* and try to brew install clojure . then you got it. On Sun, Nov 27, 2011 at 14:15, Clojure NewB cappy2...@gmail.com wrote: Hi, I've just installed Clojure 1.3 on a MBP, OSX 10.6.8. After unzipping

Re: Can we make implements? public

2011-11-28 Thread Meikel Brandmeyer
Hi, Am 28.11.2011 um 20:10 schrieb Brent Millare: I need to verify if an object implements a protocol. Looking at the source code, I noticed that protocol objects act as a map, and has the key :impls. From this is a map I can look up a class to see if there are functions. The resulting

Re: Currying + function in Clojure

2011-11-28 Thread Stuart Sierra
Hi Leandro, Clojure does not curry functions automatically like Haskell or some other functional languages. Instead, you can use the partial function to create partially-applied functions: Clojure 1.3.0 user= (def add3 (partial + 3)) #'user/add3 user= (add3 5) 8 Regards, -Stuart Sierra

Re: contrib.duck-streams or contrib.io?

2011-11-28 Thread Stuart Sierra
Use clojure.java.io, included in Clojure since release 1.2.0. Regards, -Stuart Sierra clojure.com -- 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

Re: Using Clojure on a Mac

2011-11-28 Thread Sean Corfield
On Mon, Nov 28, 2011 at 4:22 AM, Kula kulas...@gmail.com wrote: i recommend the brew tool you can try it on website https://github.com/mxcl/homebrew I see people recommend against brew because the packages are out of date? -- Sean A Corfield -- (904) 302-SEAN An Architect's View --

Re: Using Clojure on a Mac

2011-11-28 Thread Sean Corfield
On Mon, Nov 28, 2011 at 11:16 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: You can run Clojure with:  java -cp clojure.jar clojure.main No, actually you can't. The download does not include clojure.jar. It includes clojure-1.3.0.jar now. Perhaps the Getting Started page on clojure.org

Re: Using Clojure on a Mac

2011-11-28 Thread Daniel Glauser
I recommend A and B, used to do C. That is install Clojure with Homebrew so you can quickly pull up a REPL to try things. To start the REPL you run clj as in /usr/local/bin/clj. I was expecting it to be called clojure and that threw me off a bit. When doing a project of any size whatsoever

Re: Can we make implements? public

2011-11-28 Thread Alan Malloy
On Nov 28, 11:14 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 28.11.2011 um 20:10 schrieb Brent Millare: I need to verify if an object implements a protocol. Looking at the source code, I noticed that protocol objects act as a map, and has the key :impls. From this is a map I can

Re: Clojure 1.3 head holding bug

2011-11-28 Thread Alan Malloy
Interesting. It seems to me like locals-clearing should take care of this for you, by preparing a call to trampoline, then setting the locals to nil, then calling trampoline. But you can solve this easily enough yourself, in this particular case, by splitting the strings up into chunks before you

Re: [lein] Depending on tools.jar

2011-11-28 Thread Walter van der Laan
You can add something like this to project.clj: :resources-path /usr/lib/jvm/java-6-sun/lib/tools.jar Walter -- 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

Re: Clojure 1.3 head holding bug

2011-11-28 Thread Juha Arpiainen
On Nov 27, 3:59 am, Gerrard McNulty gerrard.mcnu...@gmail.com wrote: Hi, I've a head holding problem that I believe is a bug in clojure 1.3.  I wrote the following function to split a a lazy seq of strings across files of x size: (defn split-file   ([path strs size]      (trampoline

Re: How can we Laucnh REPL from java Swing application?

2011-11-28 Thread Stuart Sierra
You can certainly run a REPL in a Swing GUI app. I'm not aware of any standalone Swing widgets to do this, but you could look at Clooj for an example: https://github.com/arthuredelstein/clooj -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups

Re: Want some books or issues about ClojureCLR

2011-11-28 Thread Stuart Sierra
Hi Adam, Clojure CLR is a community effort without official support. I am not aware of any books specifically about ClojureCLR. However, Clojure the *language* should be nearly identical between the JVM and CLR versions. Only interop with the host platform will be different. So any Clojure

Re: *print-dup* and struct maps

2011-11-28 Thread Stuart Sierra
StructMaps are not print/readable. I wouldn't consider it a bug, but a missing feature. This was fixed for defrecord in 1.3. StructMaps should probably be considered deprecated in favor of defrecord. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the

Re: Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-28 Thread Stuart Sierra
There are other possibilities: * using interned Strings as keys will prevent duplicate storage of the keys http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#intern%28%29 * you could make a custom data structure that stores the keys / rows as vectors and generates a sequence of maps

Re: Clojure 1.3 head holding bug

2011-11-28 Thread Alan Malloy
On Nov 28, 1:55 pm, Juha Arpiainen jarpi...@gmail.com wrote: On Nov 27, 3:59 am, Gerrard McNulty gerrard.mcnu...@gmail.com wrote: Hi, I've a head holding problem that I believe is a bug in clojure 1.3.  I wrote the following function to split a a lazy seq of strings across files of x

Baltimore Functional Programming

2011-11-28 Thread Gary Trakhman
Any Baltimore guys around? I'm interested in starting a FP meetup where we can give talks and learn together and such. -- 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

Re: Want some books or issues about ClojureCLR

2011-11-28 Thread dmiller
The wiki on the github repo has some information about getting started and how to accomplish some interop that is special to CLR. https://github.com/richhickey/clojure-clr/wiki and make sure to look at https://github.com/richhickey/clojure-clr/wiki/_pages for the complete list. Rob Rowe

Re: Baltimore Functional Programming

2011-11-28 Thread Brent Millare
I'm in the B'more area. -- 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 first post. To unsubscribe from this

Re: Baltimore Functional Programming

2011-11-28 Thread Gary Trakhman
Sweet, man. I'm looking to see if any of these guys might be interested, http://beehivebaltimore.org/ They have a javascript meetup there and their mailing list shows some interest in clojure, haskell and erlang. So we would need to find at least like 5 people that'd be interested and a

Re: Can we make implements? public

2011-11-28 Thread Brent Millare
satisfies? is the solution. Thanks. -- 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 first post. To unsubscribe

Re: [ANN] Drift DB

2011-11-28 Thread Luc Prefontaine
, updated_at datetime NULL, PRIMARY KEY(id) ) ENGINE = InnoDB AUTO_INCREMENT = 0 According to the AquaStudio tool I use to reverse engineer the DDL. The trace message: DEBUG Thread-51 2028 234732,063 drift-db-mysql.flavor ] Create table: :meta-entities with specs