Re: Can't locate str_utils in classpath

2010-10-30 Thread Santosh Rajan
Is the contrib.jar in your 'clj' script classpath? On Sun, Oct 31, 2010 at 10:18 AM, Steven Arnold wrote: > Hello, I am trying to use the str-utils library with Clojure (or the > str-utils2, I understand str-utils was deprecated). Neither of these > work for me. I am on OS X 10.6.4 and have ins

Can't locate str_utils in classpath

2010-10-30 Thread Steven Arnold
Hello, I am trying to use the str-utils library with Clojure (or the str-utils2, I understand str-utils was deprecated). Neither of these work for me. I am on OS X 10.6.4 and have installed clojure-contrib via the MacPorts system. The clojure-contrib is in my classpath; see below for a transcrip

Clojure application in the wild, to learn beautiful Clojure technique(s) from

2010-10-30 Thread Alex Baranosky
Hi all, I've read Programming Clojure, and written a toy app in it to get my feet wet. I also listen in on this Google group from time to time as well, to get more of a sense of the language. I enjoyed "Programming Clojure" by Stuart Halloway, but it didn't leave me with a clear idea of how to g

Re: Pulling threads...

2010-10-30 Thread Brian Ericson
Oh. The "P" in "REPL" makes it non-lazy and the "let" meant that the printer need only print the last line. Ugh. That is completely obvious in hindsight! Thanks! I surrounded a few expressions with "dorun" and now both of my Clojure implementations "run" -- or crawl, given the results of timin

REQUEST for feedback on http://clojure.org

2010-10-30 Thread Alex Miller
Hi all, I'm doing a bit of doc cleanup on http://clojure.org and I'd welcome your feedback on things that are broken or could be improved. I'm not looking (or likely authorized :) to make any drastic changes but if there are things that you have run into, please drop a line here or in email to al

Re: Clojure on Javascript

2010-10-30 Thread Scott Jaderholm
On Sat, Oct 30, 2010 at 12:09 AM, David Nolen wrote: > More interesting would be something along the lines of CoffeeScript (like > ClojureScript) that takes a reasonable subset Clojure and compiles into > efficient JS, allowing Clojure programmers to send Clojure code to clients. > That already e

ANN: Hiccup-bridge: A converter between html and hiccup.

2010-10-30 Thread Hozumi
Hi All, I've released conversion tool for hiccup. http://github.com/hozumi/hiccup-bridge Hiccup-bridge is aims for collaboration between programmers and designers. You can easily use this through leiningen. % lein hicv 2html % lein hicv 2hic I welcome any comments or suggestions. Thanks. -- Ta

Re: clojure.xml questions

2010-10-30 Thread Stuart Halloway
Hi Shantanu, In general, Clojure's public API consists of only those vars that both (1) are public and (2) have a docstring. Anything else is undocumented, subject to change, and should be avoided. If you want to get involved with Clojure's XML support, I have just created a space in Confluenc

Re: clojure.xml questions

2010-10-30 Thread Chris Perkins
On Oct 30, 2:52 am, Shantanu Kumar wrote: > Hi, > > 1. I notice there is just the "parse" function mentioned as > public:http://clojure.github.com/clojure/clojure.xml-api.html > > I used the other functions in clojure.xml (emit, emit-element) and the > var 'element' -- they appear to work fine fo

NoSuchMethodError: clojure.lang.Symbol.create error from clojure.contrib.sql?

2010-10-30 Thread Sean Corfield
Just FYI, using clojure 1.3.0-master-SNAPSHOT and contrib/standalone 1.3.0-SNAPSHOT, I get the following error when I (:use [clojure.contrib.sql]): Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.Symbol.create(Ljava/lang/String;Ljava/lang/String;)Lc

Re: How to simplify cond statements

2010-10-30 Thread andrei
On Oct 29, 11:39 pm, Joop Kiefte wrote: > (first (flatten ...)) ? And where reduction of code is? -- 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 mo

Re: Clojure on Javascript

2010-10-30 Thread David Nolen
On Sat, Oct 30, 2010 at 10:13 AM, Bob Hutchison wrote: > > In the short term it seems to me that an "absurdly easy" way to get > websocket/comet based servers running in Clojure would be good. At least I'd > be happy. This problem is staring me in the face and I've got to do > something next week.

Re: Clojure on Javascript

2010-10-30 Thread Bob Hutchison
On 2010-10-30, at 12:32 AM, Michael Gardner wrote: > On Oct 29, 2010, at 11:09 PM, David Nolen wrote: > >> JS brought me to Lisp, I would love to see the Clojure community bring Lisp >> back to JS. However I fail to see what advantage JS gives on the server >> side. From what I've seen the V8

Re: Clojure on Javascript

2010-10-30 Thread Victor Olteanu
How can people not *love* JavaScript? :) Take for example this excerpt from 'JavaScript: the Good Parts': "The new function object is given a prototype property whose value is an object containing a constructor property whose value is the new function object" (PS: that is not one of the "good par

Re: Images in autodoc?

2010-10-30 Thread Ryan Waters
+1 on the side of enhancing clojure's core documentation On Thu, Oct 28, 2010 at 1:08 PM, Chris Maier wrote: > My interest is general improvement of Clojure documentation.  At the > conj, I spoke with Zack Kim about helping to improve the state of the > documentation.  My goal was to contribute

Re: Getting this error regarding duck-streams/spit ...

2010-10-30 Thread zkim
Looks like I'm a bit late to the party on this one. ClojureDocs, as Tom mentioned, dosen't currently track the :deprecated metadata entry, which will be fixed once clojuredocs is able to consume autodoc's output. Apologies for the confusion. -Zack On Oct 27, 12:57 am, Btsai wrote: > Awesome!  

Solution and question to gen-interface/gen-class

2010-10-30 Thread Tommy
A solution to arity problem when implementing an interface: Interface: (ns Agent.IAgent) (gen-interface :name "Agent.IAgent" :methods [[senseEnv [int] int]] ) Implementation: (ns Agent.AgentIMP (:gen-class :name "Age