[ANN] Alia 2.1.1 - Clojure client for cassandra

2014-08-27 Thread Max Penet
Alia is a thin wrapper around "java-driver" by Datastax. Datastax's java-driver 2.1 final was released yesterday, Alia was brought up to speed with this release, adding support for the latest features from the library it wraps and cassandra 2.1+ If you have no idea what I am talking about you

Re: [ANN] Alia 2.1.1 - Clojure client for cassandra

2014-08-27 Thread Max Penet
Another cool feature I forgot to mention: https://github.com/mpenet/alia/blob/master/CHANGELOG.md#200-rc3 execute-chan-buffered: it basically allows you to do a query that would return a huge amount of data, and take advantage of java-driver streaming properties to read that data from a core.a

ANN Langohr 3.0.0-rc2 is released

2014-08-27 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. 3.0.0-rc2 is a release candidate for 3.0, which has breaking public API changes. Change log: http://blog.clojurewerkz.org/blog/2014/08/27/langohr-3-dot-0-0-rc2-is-released/ 1. http://clojurerabbitmq.info -- @michaelklishin, g

ANN metrics-clojure 2.2.0 is released

2014-08-27 Thread Michael Klishin
metrics-clojure [1] is a Clojure interface to the Metrics library [2],  originally by Steve Losh [3].  Release notes: http://blog.clojurewerkz.org/blog/2014/08/27/metrics-clojure-2-dot-2-0-is-released/ If you're new to metrics and not sure why collecting them is a good idea,  take a moment to wat

What is happening in this code?

2014-08-27 Thread Hemant Gautam
I am new to Clojure, I am currently at Beginner level. While trying to run small programs, I found that I can load a file having duplicate code. Let me explain it with example. This is the code (ns clojure_begins_19_08_2014.core) (defn first-fn[x] (print x)) (defn first-fn[x] (print "Valu

Re: What is happening in this code?

2014-08-27 Thread Tassilo Horn
Hemant Gautam writes: Hi Hemant, > This is the code > > (ns clojure_begins_19_08_2014.core) Use hyphens instead of underscores for namespace and var names. > (defn first-fn[x] > (print x)) > > (defn first-fn[x] > (print "Value of x with String " x)) > > (first-fn 10) > > See, above code co

Re: What is happening in this code?

2014-08-27 Thread Tim Visher
Clojure is form-oriented so you can think of almost all of its evaluation as sending one form after another to a REPL. In that model of evaluation, you of course want to be able to re-define a symbol an arbitrary amount of times. The serialization of these forms into a file which has other forms i

ANN: ClojureScript 0.0-2322, Safari Hashing Fix

2014-08-27 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2322 Leiningen dependency information: [org.clojure/clojurescript "0.0-2322"] The primary reason for this release is a critical h

Re: What is happening in this code?

2014-08-27 Thread Mauricio Aldazosa
You can use a linter to find out this cases: https://github.com/jonase/eastwood#redefd-vars---redefinitions-of-the-same-name-in-the-same-namespace ​ Cheers, Mauricio -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: What is happening in this code?

2014-08-27 Thread Softaddicts
Repeat several times the magic incantation, dynamic, dynamic, dynamic, :))) Your second definition overrides the first one. Generating a warning when a redefinition occurs appears to me as not practical. In the REPL, you would not like it at all. Add another top level var to enable/disable t

Re: What is happening in this code?

2014-08-27 Thread Andy Fingerhut
FYI, if you *want* warnings about redefinition of functions, or any vars in general, the Clojure lint tool Eastwood does that, among other things: https://github.com/jonase/eastwood Andy On Wed, Aug 27, 2014 at 7:32 AM, Tassilo Horn wrote: > Hemant Gautam writes: > > Hi Hemant, > > > Thi

[ANN] Immutant 2.0.0-alpha1 "The Deuce"

2014-08-27 Thread Jim Crossley
Hey, we dropped our first Deuce today! ;-) Details here: http://immutant.org/news/2014/08/27/announcing-2-alpha1/ Immutant has evolved from "an application server for Clojure" to "an integrated suite of Clojure libraries for web, messaging, scheduling, and caching". And though they are now full

Re: [ANN] om-bootstrap 0.2.5 - Bootstrap 3 components in Om

2014-08-27 Thread henry w
Hi Sam, total noob question coming up (just got started with om beginner tutorial). React components can be used from om apparently (not that i have seen an example of this). So, why is there a need for this library? Is it providing boilerplate around react-bootstrap or doing something more? T

Re: GSoC: Congratulations Aleksandr and Prasant!

2014-08-27 Thread Nils Grunwald
Awsome! Thanks a lot, I can't wait to test this! On Monday, August 25, 2014 8:15:51 AM UTC+2, Mikera wrote: > > Hi All, > > Prasant and Aleksandr have been working all summer making Clojure even > better for data science / numerical computing. On behalf of myself and my > co-mentor Alex Ott I wa

Clojure(script) Job Opportunity in NYC

2014-08-27 Thread Dylan Butman
We're looking for a full-time clojure(script) dev to join our team in NYC. Here's the posting. Shoot be an email at dy...@ib5k.com if you're interested. Posting: We are IB5k ( http://ib5k.com ), a software dev shop based in SOHO, and we are looking for a promising developer to become a co

destructuring help: `(let [{:keys [...]} ...]` in a `defn` vs in a `let`

2014-08-27 Thread John Gabriele
Why is it that although this works: ~~~clojure (defn foo [& args] (let [{:keys [a b]} args] (str a \~ b))) ;;=> #'some-app.core/foo (foo :a 1 :b 2) ;;=> "1~2" ~~~ this does not: ~~~clojure (let [{:keys [a b]} [:a 1 :b 2 :c 3]] (str a \~ b)) ;;=> "~" ~~~ ? And even stranger, *this* *does* work:

Re: destructuring help: `(let [{:keys [...]} ...]` in a `defn` vs in a `let`

2014-08-27 Thread Ben Wolfson
The reason is that in the macroexpansion of "let", map-based destructuring has a seq? test which the list passes but the vector doesn't: > (clojure.pprint/pprint (macroexpand-1 '(let [{:keys [a b]} [:a 1]] a))) (let* [map__34214 [:a 1] map__34214 (if (clojure.core/seq? map__34214) (cl

Re: destructuring help: `(let [{:keys [...]} ...]` in a `defn` vs in a `let`

2014-08-27 Thread Ben Wolfson
... the other half of the answer being that when you have rest args with (defn foo [& args] ...), "args" is bound to a seq. On Wed, Aug 27, 2014 at 11:27 AM, Ben Wolfson wrote: > The reason is that in the macroexpansion of "let", map-based destructuring > has a seq? test which the list passes b

Re: destructuring help: `(let [{:keys [...]} ...]` in a `defn` vs in a `let`

2014-08-27 Thread James Reeves
Apparently a list can be destructured as a map, but a vector cannot. The "& args" syntax returns the result as a list, not a vector. - James On 27 August 2014 19:20, John Gabriele wrote: > Why is it that although this works: > > ~~~clojure > (defn foo [& args] (let [{:keys [a b]} args] (str a

Re: [ANN] om-bootstrap 0.2.5 - Bootstrap 3 components in Om

2014-08-27 Thread Sam Ritchie
Hey Henry, I started the project because I wanted to write schemas (using Prismatic's schema library) for all of the react-bootstrap components; I ended up doing this rewrite because I wanted to leverage the huge performance gains Om can get over straight-up React due to Clojure's immutable d

[ANN] om-bootstrap 0.2.6 released

2014-08-27 Thread Sam Ritchie
This release adds a bunch of new active components - notably, dropdown buttons, split dropdown buttons and a navbar. The navbar allowed me to beef up the doc site with a proper navbar, more pages and client-side javascript navigation using Secretary and Html5 pushState: http://om-bootstrap.her

om tutorial, java.lang.UnsupportedClassVersionError

2014-08-27 Thread Brian Craft
The basic tutorial fails on cljsbuild, with Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CompilerOptions : Unsupported major.minor version 51.0, compiling:(cljs/closure.clj:1:1) I gather this is some java version issue. Is there a workaround?

Re: om tutorial, java.lang.UnsupportedClassVersionError

2014-08-27 Thread Sam Ritchie
Looks like you're using JDK6 on your local machine - upgrade to JDK7 and you'll be all set. Brian Craft August 27, 2014 at 1:44 PM The basic tutorial fails on cljsbuild, with Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascrip

Re: [ANN] Alia 2.1.1 - Clojure client for cassandra

2014-08-27 Thread coltnz
Some unsolicited testimony: Max is doing a great job with Alia and in keeping it up to date with the current Cassandra driver. We're happily using it in a bunch of projects. cheers Colin -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: What is happening in this code?

2014-08-27 Thread Hemant Gautam
HI Andy, Thanks for your reply. On Wed, Aug 27, 2014 at 8:29 PM, Andy Fingerhut wrote: > FYI, if you *want* warnings about redefinition of functions, or any vars > in general, the Clojure lint tool Eastwood does that, among other things: > > https://github.com/jonase/eastwood > > Andy > > >

Re: What is happening in this code?

2014-08-27 Thread Tassilo Horn
Andy Fingerhut writes: Hi Andy, > FYI, if you *want* warnings about redefinition of functions, or any > vars in general, the Clojure lint tool Eastwood does that, among other > things: > > https://github.com/jonase/eastwood Nice. It really occured to me that while refactoring some working