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 wrote: > This gist https://gist.github.com/3019801 shows a lein cljsbuild failure > with the error: > > Could not locate clojure/instant__i

Re: Clojurescript long polling questions

2012-05-03 Thread Daniel Renfer
s 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 wrote: >> >> I think your issue is, you say you want long polling,

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 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 the closure l

Re: Anyone on Google+ yet?

2011-07-15 Thread Daniel Renfer
On Thu, Jul 14, 2011 at 1:12 PM, Claudia Doppioslash 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 "Clojure" group. > To po

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 wrote: > user> (defmacro foo [x] >        (let [name# (symbol (str "foo-" x))] >          `(defn ~name# [] ( > #'user/foo > user> (le

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 wrote: > On Thu, Jun 2, 2011 at 11:07 PM, Daniel

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 wrote: > On Thu, Jun 2, 2011 at 10:06 PM, nil wrote: >> Hi >>

Re: Debugging with 1.3 and CDT

2011-01-30 Thread Daniel Renfer
know how it goes. > > Thanks for "going were no man has gone before!" > > g > > > > On Jan 30, 8:12 am, Daniel Renfer wrote: >> I'm trying to set up debugging for my application using the Clojure >> Debugging Toolkit. I'm fairly certain

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: 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" wrote: I need to make a data structure for a

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 wr

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 ove

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 show

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: 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 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 the Ruby meetings

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 Fleckenstein wrote: > > Thanks Stuart, > > Just an FYI, I added

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 Horn wrote: > > Matthias Benkard writes: > > Hi Matthias, > >> On 28 Aug., 13:42, Tassilo Horn wrote: >>> I have a licensing question. Am

Re: Ant build.xml snippet: compile

2009-07-22 Thread Daniel Renfer
On Wed, Jul 22, 2009 at 2:46 PM, Christopher Wilson 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 file. > The way that I do th

Re: Clojure as a CGI language?

2009-07-22 Thread Daniel Renfer
On Wed, Jul 22, 2009 at 3:36 AM, robert hickman 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 > lot of web apps do it. >

Re: Grails And Clojure

2009-07-19 Thread Daniel Renfer
On Sun, Jul 19, 2009 at 8:01 PM, Vagif Verdi wrote: > > On Jul 19, 4:19 pm, "Howard M. Lewis Ship" 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 the thread who said there are

Re: Troll in our midst - please ignore them

2009-06-28 Thread Daniel Renfer
On Sun, Jun 28, 2009 at 4:51 PM, CuppoJava 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, > but I didn't think to a

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

2009-05-12 Thread Daniel Renfer
On Tue, May 12, 2009 at 4:51 PM, Howard Lewis Ship 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 same Ma

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 predicate-first,

Re: How do *you* use Compojure?

2009-01-31 Thread Daniel Renfer
Personally, I AOT compile a stub servlet class and load my webapp into Tomcat. This will require that you set up your directory structure following the Servlet API spec. I also have some code in same file that my servlet is defined in that will start a swank server only if the code is not being c

Re: Documentation of lazy-cat should contain a warning

2009-01-31 Thread Daniel Renfer
Ok, I take it back. (no pun intended) I know that this used to be a problem, but looking through my email history, it appears that the over-eager take was reported by Chouser, and subsequently fixed by Rhickey. On Sat, Jan 31, 2009 at 9:47 AM, André Thieme wrote: > > On 31 Jan., 02:44,

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.

Re: CLI launcher

2008-12-22 Thread Daniel Renfer
On Fri, Dec 19, 2008 at 8:27 PM, Phil Hagelberg wrote: > > "Tom Emerson" writes: > >> On Thu, Dec 18, 2008 at 12:56 PM, Phil Hagelberg >> wrote: >>> This was one of the most disorienting things I encountered when starting >>> with clojure. I'm used to codebases providing a bin/ directory or at

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: 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 PROTECTE

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: 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, Paul

Re: Working combination of .emacs, Aquamacs, swank-clojure, clojure-mode?

2008-11-20 Thread Daniel Renfer
perhaps what we need is a clojure-in-a-box solution. We could create a package containing a version of clojure, emacs, slime, swank-clojure, clojure-mode, and clojure-contrib. This could be as simple as a zip file, but even better would be to have a simple installer exe. All a new user would have

Re: Why are symbols resolved when a function is defined?

2008-11-11 Thread Daniel Renfer
Rich, Would you recommend using declare even if you are able to arrange your code to avoid dependency issues, or only if you can't work around it? On Tue, Nov 11, 2008 at 9:16 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > > On Nov 11, 12:24 am, Paul Barry <[EMAIL PROTECTED]> wrote: >> In Comm

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 c

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 st

Re: Open Source project hosting for clojure.

2008-11-04 Thread Daniel Renfer
Once Clojure gets a decent CLJDoc-like tool, it would be cool to see the uploaded code automatically be color-coded, documented, and cross-referenced on the site. On Tue, Nov 4, 2008 at 6:07 AM, Paul Stadig <[EMAIL PROTECTED]> wrote: > >> Maven is a bit heavy and obnoxious, but it does do a lot t

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 t

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 Slov