Re: (core.async/go nil) behavior?

2013-12-14 Thread Stephen Cagle
Huh, that is pretty clever. You're right, I just assumed I was seeing the body result. That is a pretty clever way to fix the issue. nil just closes the returned channel, causing future takes on it to return nil. Neat. On Saturday, December 14, 2013 11:18:07 AM UTC-8, Stephen Cagle wrote: > > c

Re: Clojure west?

2013-12-14 Thread Alex Miller
Clojure/West will be in San Francisco this year. We are working on a contract for the last week in March but this IS NOT YET a firm date. We will of course post here when we have a date/venue details. I expect the CFP to open in early January. Alex On Saturday, December 14, 2013 12:20:29 AM UT

Re: Clojure can't import some Java classes

2013-12-14 Thread Colin Fleming
I've just spent some time today looking at the compiler code, and unfortunately I think the answer is "no". When a symbol is imported, Clojure currently instantiates the Class object using Class.forName() and stores that in the namespace's mapping. At the point the Class is instantiated, static ini

Re: (core.async/go nil) behavior?

2013-12-14 Thread Timothy Baldridge
How do you know where the nil is coming from? Channels never accept nil, so any nil you get from a take is due to the channel bing closed. And yes, returning nil from a go causes the go's channel to close without a put. Timothy On Sat, Dec 14, 2013 at 4:35 PM, Brandon Bloom wrote: > Sounds like

Re: (core.async/go nil) behavior?

2013-12-14 Thread Brandon Bloom
Sounds like a bug to me. A nil value in return position of a go block should probably close the channel. On Saturday, December 14, 2013 2:18:07 PM UTC-5, Stephen Cagle wrote: > > core.async discourages you from placing nil in a channel, as nil is only > taken when the channel has been closed. Ho

Re: Caribou admin page: No template by the name login.html

2013-12-14 Thread Niels van Klaveren
Thanks Justin, got it working with a local build like instructed. Looks good so far ! On Saturday, December 14, 2013 6:08:19 PM UTC+1, Justin Smith wrote: > > This is a known issue > with > caribou under Windows, with a potential fix > upco

ANN Cassaforte 1.3.0-beta5 is released

2013-12-14 Thread Michael Klishin
Cassaforte [1] is a Clojure Cassandra client built around CQL. 1.3.0-beta5 release notes: http://blog.clojurewerkz.org/blog/2013/12/14/cassaforte-1-dot-3-0-beta5-is-released/ 1. http://clojurecassandra.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You re

(core.async/go nil) behavior?

2013-12-14 Thread Stephen Cagle
core.async discourages you from placing nil in a channel, as nil is only taken when the channel has been closed. However, if I create a go block with a body that evaluates to nil, core.async will return a channel that contains nil. This is a nil as a take! value, not a nil to indicate the chann

[ANN] clj.jdbc 0.1.0-beta4

2013-12-14 Thread Andrey Antukh
Alternative jdbc wrapper implementation for Clojure. Released: 2013-12-14 Changes: - General code cleaning. - Extensible transaction management (you can overwrite default behavior if you don't like it) - Custom sql types. - Rollback behavior changed (now only marks rollback a current transaction

Re: Caribou admin page: No template by the name login.html

2013-12-14 Thread Justin Smith
This is a known issue with caribou under Windows, with a potential fix upcoming . On Saturday, December 14, 2013 8:45:01 AM UTC-8, Niels van Klaveren wrote: > > Could it have something to do w

Re: Caribou admin page: No template by the name login.html

2013-12-14 Thread Niels van Klaveren
Could it have something to do with the caribou lein template ending up in \.m2\repository\caribou\lein-template ? All other dependencies end up in my local repository, which is set in both .m2\settings.xml and lein\profiles.cls {:user (:local-repo)) No idea why it's the only dependency not re

Caribou admin page: No template by the name login.html

2013-12-14 Thread Niels van Klaveren
Following the steps in the tutorial, clicking on the admin login link on the homepage of the running caribou app results in the following message: No template by the name login.html What could be the problem ? Windows 7 x64, Leiningen 2.3.4

ANN: core.matrix 0.17.0

2013-12-14 Thread Mikera
Hello Everybody, New release of core.matrix brings a number of improvements: - Any Java arrays can now be used as core.matrix arrays (exception of short[], which is broken because of CLJ-1306) - Ability to "rotate" arrays around arbitrary dimensions (experimental...) - Broadcasting support for "

Referential integrity constraints using only clojure.java.jdbc?

2013-12-14 Thread Simon Brooke
First, yes, I now know I could build referential integrity constraints using Korma, and that's almost certainly what I shall do next time. However, I'm quite a long way down building an app against a very tight deadline and I've declared my tables in clojure.java.jdbc, e.g. (defn create-categor

Craig Andera's talk on Datomic is impressive

2013-12-14 Thread i - blis
http://www.infoq.com/presentations/datomic-use-case -- -- 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 p