[ANN] jnanomsg 0.3.1 - Clojure and Java bindings for nanomsg.

2014-02-09 Thread Andrey Antukh
Clojure and Java bindings for nanomsg[1] (build on top of JNA) Changes: - New: experimental async api support for java bindings. - New: experimental core.async support for all sockets. - New: experimental core.async channels implementation (only for pipeline sockets) - Fixes: removed hardcoded sy

Re: map semantics

2014-02-09 Thread Michał Marczyk
The Contrib library algo.generic provides a function fmap which does preserve the type of its input. As for the idea that clojure.core/map should preserve type, it's worth remembering that in order to map a function over a set and return a set, we must do two things: (1) apply the function to each

Re: map semantics

2014-02-09 Thread Jozef Wagner
There are many types and flavors of equality, and only handful of symbols. Symbol '=' in Clojure does not represent yours fundamental = comparison operator. = in Clojure compares for the actual value ignoring concrete types of collections and the internal representation of how the items are stored.

Re: map semantics

2014-02-09 Thread Korny Sietsma
Agreed - there are always tradeoffs. Another common example is that pretty well any language that uses IEEE floating point is also breaking referential transparency in the interest of pragmatism: user=> (= 0.3 (+ 0.1 0.2)) false user=> (= (bigdec 0.3) (+ (bigdec 0.1) (bigdec 0.2))) true - Kor

cljs, binding, async/go

2014-02-09 Thread t x
Hi, ## Consider this block of code: (defn init [] ;; called from window.onload (def ^:dynamic *dvar*) (binding [*dvar* 20] (. js/console log (str "from main: *dvar*: " *dvar*)) (async/go (. js/console log (str "from go : *dvar*: " *dvar*) ## In Chrome, I get bac

Re: cljs, binding, async/go

2014-02-09 Thread Timothy Baldridge
Gos work with bindings on CLJ, CLJs biding support is different enough that it doesn't currently work with gos. Timothy On Sun, Feb 9, 2014 at 7:33 AM, t x wrote: > Hi, > > > ## Consider this block of code: > > (defn init [] ;; called from window.onload >(def ^:dynamic *dvar*) > > (bi

dynalint, lein-dynalint 0.1.3

2014-02-09 Thread Ambrose Bonnaire-Sergeant
Hi, dynalint 0.1.3 has a bunch of improvements. You can now configure linting with `configure-linting!`. Stack traces now look a lot nicer, dynalint wrappers should disappear ( example ). lein-dynalint 0.1.3 has a BREAKING CHANGE. The dynalint versi

Re: cljs, binding, async/go

2014-02-09 Thread t x
Hi Timothy, Useful to know this behavior is "normal" with respect to the current state of cljs/core.async -- for the longest time I thought I was doing something stupid / using wrong compiler options. Thanks! On Sun, Feb 9, 2014 at 6:35 AM, Timothy Baldridge wrote: > Gos work with bindings on

[Kind of off-topic] Enlightenment

2014-02-09 Thread Plínio Balduino
Hi there I would like to know about your experiences of enlightenment, "a-ha!" ou "now everything makes sense" when you finally understood how LISP works and what's so hot about that language/family of languages. As "LISP" I mean "any Lisp dialect, blessed or not by the good old lispers". I would

Re: Ethereum

2014-02-09 Thread Stephan Tual
Yes - add me on skype (stephan.tual) and I'll put you in touch On Sunday, February 9, 2014 4:48:58 AM UTC, jTA wrote: > > Has anyone a clojure-based project underway (or contemplating one) within > the Ethereum context? > Ethereum background accessible here: http://www.ethereum.org/ > http://

Using Apache Daemon with Clojure

2014-02-09 Thread Aaron France
Hi, I'm following the Clojure Cookbook blogpost[1] in order to Daemonize a clojure application. Yet the provided code[2] does not work on my system. When running the incantation to get JSVC to run, firstly I needed to change it to use the full path to the JSVC binary. This is fine. However, whe

[ANN] vim-typedclojure

2014-02-09 Thread Ambrose Bonnaire-Sergeant
Hi, Good news for core.typed + vim users (which includes me)! Check out vim-typedclojurefor some fun. Big thanks to Tim Pope for vim-fireplace and all his vim plugins of which I've copied the form

[ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Andrey Antukh
Hi! Buddy is an authentication, authorization and signing library for clojure, designed with simplicity in mind. Features / Sub libraries: * Modular Authentication (implemented using protocols). * Modular Authorization (with access rules) * Signing library. * Password hashers library. Is a stil

Re: map semantics

2014-02-09 Thread Andy C
On Sun, Feb 9, 2014 at 4:46 AM, Michał Marczyk wrote: The Contrib library algo.generic provides a function fmap which does > preserve the type of its input. > Thanks for the pointer. > So, these are some of the available conceptual arguments. There is > also a rather convincing practical argume

Re: [Kind of off-topic] Enlightenment

2014-02-09 Thread Duong BaTien
Yes, please. We are at the cross road where both positive and normative values can in parts of the modeling to know more about oneself and the environments we are parts. BaTien On Sun, Feb 9, 2014 at 8:15 AM, Plínio Balduino wrote: > Hi there > > I would like to know about your experiences of

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread john walker
I love the documentation. Thanks for building this. On Sunday, February 9, 2014 11:54:59 AM UTC-5, Andrey Antukh wrote: > > Hi! > > Buddy is an authentication, authorization and signing library for clojure, > designed with simplicity in mind. > > Features / Sub libraries: > * Modular Authenticati

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Bastien
Hi Andrey, Andrey Antukh writes: > Is a still young library and any feedback / api improvement > suggestions are welcome. Great to see new efforts in this area, thanks! And the documentation is clear. How does it compare to Chas Friend? https://github.com/cemerick/friend Thanks in advance!

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Andrey Antukh
Hi Bastien 2014-02-09 19:57 GMT+01:00 Bastien : > Hi Andrey, > > Andrey Antukh writes: > > > Is a still young library and any feedback / api improvement > > suggestions are welcome. > > Great to see new efforts in this area, thanks! > And the documentation is clear. > > How does it compare to Ch

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Bastien
Hi Andrey, Andrey Antukh writes: > An other very important goal of the project is to have good > documentation. I have very poor English and if any one can help to > fix any language issue, I'll be very grateful. I just forked your repo on github and will help fixing a few typos I'm no native e

Handy clojure function to transform prepared statement queries

2014-02-09 Thread Jan Herich
Hello folks, In the last days, i was working with clojure/java.jdbc and yesql libraries (which are both great piece of work), the experience was overall very positive, but one thing bothered me, that i was unable to use plain prepared statements (and sadly, yesql) when working with IN clauses

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization & Signing library for Clojure.

2014-02-09 Thread Joshua Ballanco
On Sunday, February 9, 2014 at 18:54, Andrey Antukh wrote: > Hi! > > Buddy is an authentication, authorization and signing library for clojure, > designed with simplicity in mind. > > Features / Sub libraries: > * Modular Authentication (implemented using protocols). > * Modular Authorization

ANN: core.logic 0.8.7

2014-02-09 Thread David Nolen
This release just fixes a bug around aliased logic vars and the new constraint verification functionality. More information here: http://github.com/clojure/core.logic Feedback welcome! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Handy clojure function to transform prepared statement queries

2014-02-09 Thread Sean Corfield
As maintainer of java.jdbc I'd say this is a more appropriate feature for a DSL library like SQLingvo or HoneySQL (which may already support something like this - I haven't checked). Sean On Sun, Feb 9, 2014 at 12:40 PM, Jan Herich wrote: > Hello folks, > > In the last days, i was working with c

Re: Using Apache Daemon with Clojure

2014-02-09 Thread Ryan Neufeld
Hey Aaron, I've responded on GitHub where you entered an issue: https://github.com/clojure-cookbook/my-daemon/issues/1 -Ryan On Sunday, February 9, 2014 11:25:21 AM UTC-5, Aaron France wrote: > > > Hi, > > I'm following the Clojure Cookbook blogpost[1] in order to Daemonize a > clojure applic

Re: unconditional append to end

2014-02-09 Thread Alan Thompson
Holy cow! Where have these been hiding! They don't show up on ClojureDocs.org at all!!! I was about to write my own macro vmap to implement (vec (map(...)) for just the use cases outlined above. I just looked on clojure.org, and searching on "map" doesn't return any (useful) results. I eventua

Re: unconditional append to end

2014-02-09 Thread Mars0i
On Sunday, February 9, 2014 10:45:04 PM UTC-6, Alan Thompson wrote: > > ... > I saw an email a while back that claimed ClojureDocs.org is working on a > re-write of the site, and an upgrade from Clojure 1.2 to 1.5. In the > meantime, is there a better way of exploring the API? > Not a full answ

Re: [Kind of off-topic] Enlightenment

2014-02-09 Thread Mars0i
I don't think I ever had an a-ha moment with Lisp per se, because it was one of the first languages I learned. But Friedman and Felleisen's *The Little Schemer* (then titled *The Little Lisper*) was a revelation. I didn't understand recursion until I worked through it, and it was also only th

Re: unconditional append to end

2014-02-09 Thread mynomoto
+1 to the Cheat Sheet although I prefer this version: http://jafingerhut.github.io/cheatsheet-clj-1.3/cheatsheet-tiptip-cdocs-summary.html After you go though the cheat sheet you can try http://clojure.github.io/clojure It's more complete but way less nice. On Monday, February 10, 2014 3:21:16