Re: cljsbuild 0.2.2 build failure

2012-07-01 Thread Daniel Renfer
You need to upgrade to clojure 1.4.0 or later. I don't know if that was by design, but it solved it for me. On Sun, Jul 1, 2012 at 9:52 AM, Eric Harris-Braun zippy.314@gmail.com wrote: This gist https://gist.github.com/3019801 shows a lein cljsbuild failure with the error: Could not

Re: Clojurescript long polling questions

2012-05-03 Thread Daniel Renfer
ch) ) closes the connection, I thought it should safely redirect all the messages from k. What do I miss here? Thanks for the help Dusan As you can see the connection from the browser remains. It does close after 5 minutes though. On Thu, May 3, 2012 at 12:36 AM, Daniel Renfer d

Re: Clojurescript long polling questions

2012-05-02 Thread Daniel Renfer
I think your issue is, you say you want long polling, but it seems like what you're looking for is more of HTTP streaming. The result channel you get in the aleph handler is set up to receive only a single message and then close. If you want a streaming response, create a new channel and a request

Re: Why are some Google Closure library files not available in Clojurescript?

2011-08-12 Thread Daniel Renfer
On Fri, Aug 12, 2011 at 2:34 PM, Conrad drc...@gmail.com wrote: In case anyone wants to know what the answer is: goog.storage was added with closure library revision 888, but the version used in clojurescript is revision 790. This is because Google hasn't released any pre-packaged versions of

Re: Anyone on Google+ yet?

2011-07-15 Thread Daniel Renfer
On Thu, Jul 14, 2011 at 1:12 PM, Claudia Doppioslash claudia.doppiosl...@gmail.com wrote: My Clojure circle is all set up but empty. My g+ is: http://gplus.to/gattoclaudia Please add link to your profile below. -- You received this message because you are subscribed to the Google Groups

Re: another question on macros defining functions

2011-06-02 Thread Daniel Renfer
You don't need to use eval to create a function dynamically in a macro. For an example, take a look at: https://github.com/duck1123/ciste/blob/master/src/main/clojure/ciste/sections.clj#L34 On Thu, Jun 2, 2011 at 10:34 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jun 2, 2011 at 10:06 PM,

Re: another question on macros defining functions

2011-06-02 Thread Daniel Renfer
user (defmacro foo [x] (let [name# (symbol (str foo- x))] `(defn ~name# [] ( #'user/foo user (let [eff gee] (foo eff)) #'user/foo-eff On Fri, Jun 3, 2011 at 12:13 AM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jun 2, 2011 at 11:07 PM, Daniel Renfer d...@kronkltd.net

Re: another question on macros defining functions

2011-06-02 Thread Daniel Renfer
I'm sorry. I misread something in the OP. ignore me, I got nothing. On Fri, Jun 3, 2011 at 1:16 AM, Daniel Renfer d...@kronkltd.net wrote: user (defmacro foo [x]        (let [name# (symbol (str foo- x))]          `(defn ~name# [] ( #'user/foo user (let [eff gee] (foo eff)) #'user/foo

Debugging with 1.3 and CDT

2011-01-30 Thread Daniel Renfer
I'm trying to set up debugging for my application using the Clojure Debugging Toolkit. I'm fairly certain I have everything set up properly, but I can't seem to get it to reval appropriately. I am using the Clojure maven plugin to launch a swank server. (with the debugging args from George's

Re: Debugging with 1.3 and CDT

2011-01-30 Thread Daniel Renfer
, 8:12 am, Daniel Renfer duck112...@gmail.com wrote: I'm trying to set up debugging for my application using the Clojure Debugging Toolkit. I'm fairly certain I have everything set up properly, but I can't seem to get it to reval appropriately. I am using the Clojure maven plugin to launch

Re: data structures for efficient range queries

2009-10-19 Thread Daniel Renfer
Would it be possible to use a hash-map with the prices as the keys and vectors of items as your values? That way you get efficient access to your values if you know the price and aren't paying for the empty space. On Oct 19, 2009 7:23 PM, nchubrich nicholas.chubr...@gmail.com wrote: I need to

Re: Schema for data structures

2009-09-26 Thread Daniel Renfer
One of the things I'm doing in my application is I modified clj-record to attach metadata about the record's type to each record when find- records is used. I am then able to have a function that checks that metadata which can be used as a predicate. It gets even better because I can then

Re: Silly Convention Question

2009-09-20 Thread Daniel Renfer
I think this further reinforces the need for a clj-lint of sorts. I know I have accidentally declared variables, fns, etc. in both def- derivative forms and in let-style forms that have shadowed a var that was in use somewhere else higher up. It would be handy to have a tool I could run

Re: Tricks for transforming a DB ResultSet into XLM?

2009-09-13 Thread Daniel Renfer
I am also looking for better ways to transform my data into XML. Currently, I am transforming my dataset into a hash-map of the format required by lazy-xml, but I'm still uncertain if that is the best way or not. I've been considering using Enlive in my application instead of the HTML generation

Re: Using Clojure with Swank

2009-09-13 Thread Daniel Renfer
I'm not sure if this is exactly what you're looking for or not, but the swank-clojure package contains a (start-server) function that you can use to start a server inside a different application, then you can use M-x slime-connect to connect to that server. A while back I posted a paste that

Re: Ann Arbor Clojure Meetup?

2009-09-11 Thread Daniel Renfer
I live in Redford, and I'll happily go to any local clojure group. On Fri, Sep 11, 2009 at 1:01 PM, Lance Carlson lancecarl...@gmail.com wrote: http://www.a2rb.org/ - We just had our monthly meeting this week on Wednesday. Perhaps we can make the functional programming group again in between

Re: Clojure quickstart maven archetype

2009-09-08 Thread Daniel Renfer
I'm really glad someone finally got this working. I gave it a shot a couple of months ago and I was tearing my hair out trying to get a two way communication with the repl and the outside world. On Tue, Sep 8, 2009 at 2:41 AM, Scott Fleckensteinnullst...@gmail.com wrote: Thanks Stuart, Just

Re: Clojure/EPL and the GPL

2009-08-28 Thread Daniel Renfer
perhaps this link in the FAQ for the EPL will clear things up. http://www.eclipse.org/legal/eplfaq.php#USEINANOTHER On Fri, Aug 28, 2009 at 1:11 PM, Tassilo Horntass...@member.fsf.org wrote: Matthias Benkard mulkiat...@gmail.com writes: Hi Matthias, On 28 Aug., 13:42, Tassilo Horn

Re: Clojure as a CGI language?

2009-07-22 Thread Daniel Renfer
On Wed, Jul 22, 2009 at 3:36 AM, robert hickmanrobert.e.hick...@googlemail.com wrote: If you want very easy to deploy web apps,  I would suggest Compojure: http://github.com/weavejester/compojure/tree/master You can always use a proxy to front a compojure app, which is how a

Re: Ant build.xml snippet: compile

2009-07-22 Thread Daniel Renfer
On Wed, Jul 22, 2009 at 2:46 PM, Christopher Wilsonchristopher.j.wil...@gmail.com wrote: Sorry if this is a bit OT, but has anyone created an ant or maven jar task (maven: is 'goal' the correct term)? In the few jars that I've created I've AOT compiled my .clj files and hand-created the jar

Re: Grails And Clojure

2009-07-19 Thread Daniel Renfer
On Sun, Jul 19, 2009 at 8:01 PM, Vagif Verdivagif.ve...@gmail.com wrote: On Jul 19, 4:19 pm, Howard M. Lewis Ship hls...@gmail.com wrote: You seem to have a better idea of what's going in in Cascade than I do, and I'm the one writing it.  Please be patient. I was replying to the author of

Re: Troll in our midst - please ignore them

2009-06-28 Thread Daniel Renfer
On Sun, Jun 28, 2009 at 4:51 PM, CuppoJavapatrickli_2...@hotmail.com wrote: Hi Rich, I'm very impressed by the effort you put in to moderating and supporting the community, on top of your work on Clojure. I did notice that Wrexsoul, Four, and Handkea's posts were tending to the annoying,

Re: Concerns About Pushing Clojure 1.0.0 to Maven Central Repo?

2009-05-13 Thread Daniel Renfer
On Tue, May 12, 2009 at 4:51 PM, Howard Lewis Ship hls...@gmail.com wrote: It's the answer to why the main artifact is called clojure-lang not just clojure.  It's do differentiate Rich's framework, clojure-lang, from the Contrib librarys (clojure-contrib) even though they are both in the

Re: filter1 interesting?

2009-03-16 Thread Daniel Renfer
One of the nice things about overloading first is you could always just tell people that the one argument version of first is like saying: (first identity coll) even though the actual implementation wouldn't need to bother with it. The problem comes when you consider if we have a

Re: Documentation of lazy-cat should contain a warning

2009-01-31 Thread Daniel Renfer
: On 31 Jan., 02:44, Daniel Renfer d...@kronkltd.net wrote: user= (take 0 (lazy-cat [(println 10)] [(println 20)])) 10 nil What you see here is not an issue with lazy-cat, but rather an issue with take. The current implementation of take evaluates one more than the n passed to it. I don't

Re: Documentation of lazy-cat should contain a warning

2009-01-30 Thread Daniel Renfer
user= (take 0 (lazy-cat [(println 10)] [(println 20)])) 10 nil What you see here is not an issue with lazy-cat, but rather an issue with take. The current implementation of take evaluates one more than the n passed to it. So in this case, 1 element of the seq is evaluated and 10 is printed. I

Re: CLI launcher

2008-12-22 Thread Daniel Renfer
On Fri, Dec 19, 2008 at 8:27 PM, Phil Hagelberg technoma...@gmail.com wrote: Tom Emerson tremer...@gmail.com writes: On Thu, Dec 18, 2008 at 12:56 PM, Phil Hagelberg technoma...@gmail.com wrote: This was one of the most disorienting things I encountered when starting with clojure. I'm

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Daniel Renfer
If you really want these commit messages to come to your mailbox, you could always use a service such as: http://www.rssfwd.com/ Note: This was merely the first Google result for rss email. I have not tested this service, but it looks like it should do the trick. Has there been any thought to

Re: SVN or release?

2008-11-30 Thread Daniel Renfer
One thing I'll mention is that most of the libraries and user code is going to be written with post-AOT changes in mind. Contrib is currently maintaining copies of the files in the old locations, but I doubt support for pre-AOT will continue much past the next release once everyone has switched.

Re: infix operators

2008-11-30 Thread Daniel Renfer
Since it's pretty much the topic, has anyone ever seen this: http://www.dwheeler.com/readable/ On Sun, Nov 30, 2008 at 10:03 AM, Dmitri [EMAIL PROTECTED] wrote: Thanks for the example, the macro is exactly the solution was looking for. On Nov 30, 1:11 am, Jeff Bester [EMAIL PROTECTED]

Re: loop recur vs recursion

2008-11-29 Thread Daniel Renfer
Even if you don't think you'll run into the possibility of blowing your stack, it's still a good idea to use recur when doing tail call recursion. The compiler will help you out by making sure it really is a tail call. Remember, recur isn't just for loop. It works with functions too. On Sat, Nov

Re: Poll: Which clojure.contrib libs should be bundled with Clojure?

2008-11-26 Thread Daniel Renfer
If you don't like viewing source code at sourceforge, you can always read the code from the git mirror at github. http://github.com/kevinoneill/clojure-contrib/tree/master I find that their servers respond faster for me and it is a bit easier to find the page I am looking for. Also, if you watch

Re: mutability

2008-11-20 Thread Daniel Renfer
It would be interesting to see how many lines a 1000 LOC Scala projects translates into idiomatic clojure clode. Step right up folks and place your bet. Without knowing anything about Scala or the project in particular, I'm guessing ~750. Any other takers? On Thu, Nov 20, 2008 at 11:31 PM,

Re: Readable names

2008-11-10 Thread Daniel Renfer
There is one thing I would like to point out. My editor of choice, (emacs) uses the length of the function name as a guide of where to indent the next line to in some situations. I find that in my code, I try to create functions that say what I want to say without pushing the body of my code too

Re: Print compiled Clojure svn revision?

2008-11-07 Thread Daniel Renfer
This wouldn't work if someone is using a mirror of the repository using a different SCM. For instance, there's a mirror on github. On Fri, Nov 7, 2008 at 2:23 PM, Matt Revelle [EMAIL PROTECTED] wrote: I'm just finishing up an addition to the build script that executes svnversion and stores

Re: problems with slime and emacs

2008-10-31 Thread Daniel Renfer
I believe you need to be using a newer version from SVN for this to work correctly. (probably a good idea anyway as some important fixes have made it in since that release.) On Fri, Oct 31, 2008 at 1:31 PM, Matthias Benkard [EMAIL PROTECTED] wrote: Hi, I'm sure it's something trivial that

Re: offtopic - where are you come from? (poll)

2008-10-17 Thread Daniel Renfer
Michigan, USA On Fri, Oct 17, 2008 at 5:27 AM, Rastislav Kassak [EMAIL PROTECTED] wrote: Hello Clojurians, I think after 1st year of Clojure life it's good to check how far has Clojure spread all over the world. So wherever are you come from, be proud and say it. I'm from Slovakia. :)