Thanks! Great to hear positive benchmark results. I'd guess that if you did
(count (distinct (map hash your-set))) you'd see that was a lot smaller than
(count your-set) in 1.5.1 indicating hash collisions.
--
You received this message because you are subscribed to the Google
Groups Clojure
I'd agree with all that. One place we've seen nil but not false become more
prevalent lately is in core.async. Channels reserve special meaning for nil
(closed) but false is a valid channel value. So if-some and when-some are
particularly useful in go loops that take from a channel. There are a
Good library!
On Monday, February 10, 2014 12:54:59 AM UTC+8, 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).
*
Hi,
I'm reading the second edition of Joy of Clojure (the MEAP), and there is
an example that I don't quite get, and I was hoping someone here could help
me. It's in chapter 8, talking about macros. There is an example of a macro
called def-watched, which prints a message each time the root
inline
On Saturday, February 15, 2014 12:41:52 AM UTC-5, Mars0i wrote:
Could someone clarify for me why some? as a name for not nil makes sense
at all in the first place? Not criticizing. I just don't understand what
existence or there being some of something has to do with nil.
Maybe
Make sure your db is correct,
see
http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html#setting-up-a-data-source
Show your db and id values.
Best,
Eduard
On Saturday, February 15, 2014 5:55:35 AM UTC+2, The Dude (Abides) wrote:
Hi, I'm writing some queries using java.jdbc 0.3.3 as
Hi all,
I've just released a new version of
Clidgethttps://github.com/james-henderson/clidget- a very
lightweight library similar to Om, that watches your application
state and re-renders your UI components when necessary.
0.2.0 is a significant performance upgrade over 0.1.0 due to better
Hi Lee, I've already implemented the algorithm described in this paper
and it will be part of my upcoming geometry library. To not keep you
waiting for the release, I've extracted the relevant code and put up
here:
https://gist.github.com/postspectacular/9021724
I had quite a few problems to get
Hello Eric,
You can rewrite this functionality with key# and r# instead of ~'key and
~'r and it would work just as well,
it's only not necessary to use unique symbols here, because you are not
using them in the function body
anyway, so there is no danger of accidental var capture.
To be
Thank you all so much for the great insights references! Thanks to
Chas' sample project I got it all working now, so expect a few new lib
releases soon! Cheers, K.
On 14 February 2014 11:00, Chas Emerick c...@cemerick.com wrote:
I've added a sample.project.clj file to the cljx repo and pointed
On Feb 15, 2014, at 11:49 AM, Karsten Schmidt wrote:
Hi Lee, I've already implemented the algorithm described in this paper
and it will be part of my upcoming geometry library. To not keep you
waiting for the release, I've extracted the relevant code and put up
here:
I've just pushed the first version of ring-token-authentication, a Ring
middleware to authenticate HTTP API requests.
Token authentication is a popular way to authenticate API requests over
HTTP. A client sends a token in the Authorization header like so:
Authorization: Token token=notasecret
As previously mentioned, datalog/datomic both work over in-memory data and
are excellent libraries.
You might also consider a rule engine such as Clara:
https://github.com/rbrush/clara-rules
Depending on your requirements, particularly if you need to efficiently
match data as it changes over
Hi Jan,
OK, I get it, thanks a lot for your quick answer.
Eric
Le samedi 15 février 2014 17:49:57 UTC+1, Jan Herich a écrit :
Hello Eric,
You can rewrite this functionality with key# and r# instead of ~'key and
~'r and it would work just as well,
it's only not necessary to use unique
Thanks David!
I get this on a fresh clone (commit
7327bcdc17a665d5fde66376bfef9aa2b21c675a)
Compiling examples/tests/main.js failed.
java.io.FileNotFoundException: examples/tests/src (No such file or
directory)
$ mkdir examples/tests/src
and build again works fine.
--- long version
You can build individual examples, tests can't be built - it's just a
dummy thing that I use when I need to quickly verify something.
David
On Sat, Feb 15, 2014 at 3:00 PM, boz b...@cox.net wrote:
Thanks David!
I get this on a fresh clone (commit
7327bcdc17a665d5fde66376bfef9aa2b21c675a)
Thanks for all of the very helpful answers about nil and some. I
understand now. I'll add my voice to those who are bothered by the two
distinct uses of some (some, some-fn vs some-, some-, some?) bother
me.
I celebrate the semi-arbitrary quirkiness of function names in Common Lisp,
but
Thank you for all of the very helpful answers about nil and some. I
understand now.
I am *very* grateful to Rich Hickey and all of the other dedicated Clojure
developers. For what it's worth, I'll add my voice to those who are
bothered by the two distinct uses of some (some, some-fn vs
Thank you for all of the very helpful answers about nil and some. I
understand now.
I am *very* grateful to Rich Hickey and all of the other dedicated Clojure
developers. For what it's worth, I'll add my voice to those who are
bothered by the two distinct uses of some (some, some-fn vs
truthy? = identity
falsey? = not
--
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 post.
To unsubscribe from
That’s fair.
On February 15, 2014 at 1:02:43 PM, Alex Miller (a...@puredanger.com) wrote:
truthy? = identity
falsey? = not
--
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
Actually, truthy? = boolean.
Anyway, throw everything I said in the trash. :-) No more sleepy posts to the
ML from me.
On February 15, 2014 at 1:02:43 PM, Alex Miller (a...@puredanger.com) wrote:
truthy? = identity
falsey? = not
--
You received this message because you are subscribed to
Alex's suggestion is a good way to determine whether the 10k clj-tuples in
a set case is being sped up by the new hash function -- just look at the
variety of values of (hash x) for all x's in the set and see whether it is
significantly more unique hash values in 1.6.0-beta1 than with 1.5.1.
As
Hi all,
My team recently open-sourced its new distributed timer service, Chronos
(https://github.com/Metaswitch/chronos). As this might be of interest to
Clojurians, I've written a Clojure client library for it
(https://github.com/rkday/chronos-client-clj).
We work on distributed high-scale
Great job on the new release guys :)
My one bit of feedback is that if-some and when-some behave like a let, but
don't include let in the name. My guess is that this was chosen because
if-some-let and when-some-let are starting to get awkwardly long.
On Sat, Feb 15, 2014 at 2:32 PM, Andy
On 15 Feb 2014, at 18:53, Jason Stewart wrote:
I've just pushed the first version of ring-token-authentication, a Ring
middleware to authenticate HTTP API requests.
Token authentication is a popular way to authenticate API requests over HTTP.
A client sends a token in the Authorization
Guys,
I've been playing with reducers on and off for a while but have been
frustrated because they don't seem to fit a particular usecase that I have
in mind... specifically: getting as many associations into a hash-map as as
I can in as short a time as possible.
My understanding of the
You should try transients if you're looking to quickly fill collections -
you might not even need to split up the work this way.
On Saturday, February 15, 2014 5:06:24 PM UTC-6, Jules wrote:
Guys,
I've been playing with reducers on and off for a while but have been
frustrated because they
Hi,
Consider the following block of code:
## Sample Code
(ns test)
(def some-atom (atom {:tag :language
:name Clojure
:better-than [scheme java ruby python]}))
(defn demo-func []
(swap! some-atom assoc-in [:name] Clojure 1.6)
(swap!
On Sat, Feb 15, 2014 at 6:04 PM, t x txrev...@gmail.com wrote:
(defn what-I-want []
(with-atom some-atom
assoc-in ...
assoc-in ...
update-in ...))
I often do something like this and don't find it too ugly:
(swap! my-atom #(- %
(assoc-in [:k] v)
from src/clj/clojure/core.clj:
(defn into
Returns a new coll consisting of to-coll with all of the items of
from-coll conjoined.
{:added 1.0
:static true}
[to from]
(if (instance? clojure.lang.IEditableCollection to)
(with-meta (persistent! (reduce conj! (transient to) from))
On Thursday, February 13, 2014 8:55:00 PM UTC-6, David Nolen wrote:
I've been banging the drum about Om modularity for a while now and I've
come up with the very beginning of a simple reusable component that I think
demonstrates the power of Om's emphasis on modularity and application wide
On Sunday, 16 February 2014 09:26:18 UTC+8, Conrad wrote:
On Thursday, February 13, 2014 8:55:00 PM UTC-6, David Nolen wrote:
I've been banging the drum about Om modularity for a while now and
I've come up with the very beginning of a simple reusable component that I
think demonstrates
Thanks, here's the entire stack trace:
java.lang.ClassCastException: clojure.lang.LazySeq cannot be cast to
clojure.lang.IFn
members.clj:33 sikhpyar.routes.members/get-member
members.clj:50 sikhpyar.routes.members/fn
core.clj:94
I spot invalid let here:
(defn get-a-member [id]
(let [id (parse-int id) member]
[member (memberdb/get-member id)]
should be
(defn get-a-member [id]
(let [id (parse-int id)
member (memberdb/get-member id)]
On Sunday, February 16, 2014 4:01:03 AM UTC+2, The Dude (Abides)
Like this, just
not-nil?
if-not-nil
when-not-nil
is much better for me.
суббота, 15 февраля 2014 г., 7:12:21 UTC+4 пользователь Joel Holdbrooks
написал:
As an addendum to my last comment, *not-nil?* would also be a good
candidate. That really doesn't leave room for doubt.
This:
36 matches
Mail list logo