Re: Clojure in Clojure?

2009-07-11 Thread Jules
Another potential problem is the data structure library. Can you implement vectors, maps, etc. in Clojure with acceptable performance? Jules On 11 jul, 07:33, Tom Faulhaber tomfaulha...@gmail.com wrote: As awesome as this sounds, wouldn't it first require a native implementation to be

Re: Compilation troubles...

2009-07-11 Thread Stephen C. Gilardi
On Jul 11, 2009, at 9:12 AM, alfred.morgan.al...@gmail.com wrote: java -cp clojure.jar clojure.main Followed by: (compile 'sov.sim.character) The directory containing sov/sim/ and the compilation destination (which defaults to classes) must also be in classpath. In your test, classpath

Re: Compilation troubles...

2009-07-11 Thread Meikel Brandmeyer
Hi, Am 11.07.2009 um 15:12 schrieb alfred.morgan.al...@gmail.com: And get: java.io.IOException: No such file or directory (character.clj:5) (-line 5 is where the ns declaration is made.) What am I doing wrong here? The source as well as the classes directory must be on the classpath. I

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-07-11 Thread beatle...@gmail.com
I like Corona as well. Maybe taking it one little step further and turn it into Clorona, which has a more clojurish sound to it. On Jun 24, 1:47 am, Rayne disciplera...@gmail.com wrote: I vote Corona. --~--~-~--~~~---~--~~ You received this message because you

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-07-11 Thread Anand Patil
There's going to be a solar eclipse in a couple of weeks visible from lots of places with great names: Varanasi, Darjeeling (has a j in it!) and Surat, for example. An alignment of three cosmic bodies is a syzygy. Many eclipse cycles seem to have neat names:

list vs. vector as input to (into {} ...) ?

2009-07-11 Thread Stuart Halloway
Is there a reason these work differently? (into {} [(list 1 2) (list 3 4)]) - java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.Map$Entry (NO_SOURCE_FILE:0) (into {} [(vector 1 2) (vector 3 4)]) - {3 4, 1 2} Cheers, Stu

Re: From Java to Clojure

2009-07-11 Thread Patrik Fredriksson
Sean Devlin wrote: If you're running edge Clojure, and not 1.0, I'd recommend writing the tests in Clojure next, using the clojure.test namespace. I'd like to keep it 1.0 for now, so the tests are in clojure.contrib.test-is. But I'll make note, or add an alternative version for clojure.test.

Re: From Java to Clojure

2009-07-11 Thread Patrik Fredriksson
On Fri, Jul 10, 2009 at 3:04 PM, Benjamin Stewartbstew...@gmail.com wrote [...] (defn count-hash-vals [coll] ;; apply hash-map mapcat was the first thing ;; I found that worked here... better options ++welcome.               (apply hash-map                      (mapcat #(let [[k v] %]    

Compile Time Partial Evaluation

2009-07-11 Thread Tim Snyder
Hey Everyone, I had typed a long post last night and it somehow was lost. Maybe I'll be more succinct today. I'm trying to write a macro that will evaluate it's syntax tree where possible and return a tree representing all the calculations that must be performed at run-time. A calculation

Re: Why do Enlive template functions return a seq instead of a str?

2009-07-11 Thread Jarkko Oranen
On Jul 11, 6:01 pm, Robert Campbell rrc...@gmail.com wrote: Hey guys, I'm just curious why Christophe chose to return seq instead of a str for Enlive for his template functions. Example: (deftemplate my-page-transformation index.html [message style]   [:style] (content style)   [:h1]

Re: Using Clojure for complex database driven applications

2009-07-11 Thread Meikel Brandmeyer
Hi, Am 11.07.2009 um 19:04 schrieb Eugen Dueck: I wrote postgres support for clojureql. It's my first shot, but the demo runs through from start to finish. May I add your patch to clojureql? Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature

OSCON 2009

2009-07-11 Thread Justin
Is anyone going to OSCON in San Jose in a few weeks? I see this session: http://en.oreilly.com/oscon2009/public/schedule/detail/7917 Anything else clojure-related happening? -justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to

PSA: Ideas for a Clojure project

2009-07-11 Thread luke
I've seen a few posts over the past few weeks from people seeking ideas for Clojure projects. I thought I'd all let you know about something I've been following... I'd definitely be participating myself except I have way too many summer projects as it is.