odd failure on recursive use of protocol member

2013-12-10 Thread Michael Blume
I have a protocol RestSerializable to represent data that can be serialized to json from a REST interface. (defprotocol RestSerializable (rest-serialize [this] "Convert to something Cheshire can JSONify")) By default, things are left alone (extend Object RestSerializable {:rest-seriali

Re: odd failure on recursive use of protocol member

2013-12-10 Thread Michael Blume
ersion, you will get > the behaviour you expected > > On 12/10/13, 11:50 AM, Michael Blume wrote: > > I have a protocol RestSerializable to represent data that can be > serialized > > to json from a REST interface. > > > > (defprotocol RestSerializable > >

ANN Elastisch 1.3.0 is released

2013-12-12 Thread Michael Klishin
Elastisch [1] is a minimalistic feature complete Clojure client for ElasticSearch. 1.3.0 is a minor feature and usability release. Release notes: http://blog.clojurewerkz.org/blog/2013/12/12/elastisch-1-dot-3-0-is-released/ 1. http://clojureelasticsearch.info -- MK http://github.com/michaelkli

ANN Neocons 2.0.1 is released

2013-12-12 Thread Michael Klishin
Neocons [1] is a Clojure client for Neo4J REST API. 2.0.1 fixes one compatibility issue with Neo4J 2.0 GA. Release notes: http://blog.clojurewerkz.org/blog/2013/12/12/neocons-2-dot-0-1-is-released/ 1. http://clojureneo4j.info -- MK http://github.com/michaelklishin http://twitter.com/michaelkli

ANN Machine Head 1.0.0-beta5 is released

2013-12-12 Thread Michael Klishin
Machine Head [1] is a minimalistic Clojure MQTT client. beta5 is a development milestone release. Release notes: http://blog.clojurewerkz.org/blog/2013/12/12/machine-head-1-dot-0-0-beta5-is-released/ 1. http://clojuremqtt.info -- MK http://github.com/michaelklishin http://twitter.com/michaelkl

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

ANN Langohr 2.0 is released

2013-12-16 Thread Michael Klishin
Langohr [1] is a small RabbitMQ client. 2.0 is a major release that introduces automatic topology recovery (exchanges, queues, bindings, consumers). Release notes: http://blog.clojurewerkz.org/blog/2013/12/15/langohr-2-dot-0-0-is-released/ There's also a new documentation guide to accompany this

ANN Langohr 2.0.1 is released

2013-12-22 Thread Michael Klishin
Langohr [1] is a feature complete Clojure client for RabbitMQ. 2.0.1 is a bug fix release. Release notes: http://blog.clojurewerkz.org/blog/2013/12/22/langohr-2-dot-0-1-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- --

Re: How to go about 'proving' why dynamically typed languages are better.

2013-12-23 Thread Michael Swierczek
> > Agreed -- which is why I find your speculation about "lightening up" with > "more experience ... meeting the demands of practical coding" to be unsound. > For those of us whose "practical programming" context includes a high cost > associated with most any runtime bug, greater embrace of static

Re: Finding available methods or docs for a value type

2013-12-24 Thread Michael Gardner
On Dec 24, 2013, at 07:58 , John Kida wrote: > Or is there some technique I can use in the repl to tell me what methods are > available to work with this particular datastructure.. that sounds not > possible due to the dynamic lisp nature of clojure, but I wanted to ask the > community to see

Re: [ANN] Clojure.Joda-Time 0.1.0

2013-12-25 Thread Michael Klishin
2013/12/25 dm3 > There's quite a comprehensive README on github: > https://github.com/dm3/clojure.joda-time > which could use some very visible dependency/installation info ;) -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message because

Re: Contributors needed for Rouge (Clojure on Ruby)

2014-01-04 Thread Michael Gardner
On Jan 4, 2014, at 11:52 , gvim wrote: > This looks like the best of the scripting language implementations of Clojure > in that it attempts to match the JVM implementation on PyPy. Sadly, however, > there doesn't seem to have been any activity since last April so it may be a > dead project.

ANN Langohr 2.1.0 is released

2014-01-07 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. 2.1.0 is a bug fix and usability improvements release. Release notes: http://blog.clojurewerkz.org/blog/2014/01/07/langohr-2-dot-1-0-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://t

ANN Route One 1.0.0 is released

2014-01-07 Thread Michael Klishin
Route One [1] is a small library that generates URLs/URIs from routes and parameters. Release notes: http://blog.clojurewerkz.org/blog/2014/01/04/route-one-1-dot-0-0-is-released/ 1. https://github.com/clojurewerkz/route-one -- MK http://github.com/michaelklishin http://twitter.com/michaelklishi

ANN Validateur 1.6.0 is released

2014-01-07 Thread Michael Klishin
Validateur [1] is a Clojure data validation library. Release notes: http://blog.clojurewerkz.org/blog/2014/01/04/validateur-1-dot-6-0-is-released/ 1. http://clojurevalidations.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message becaus

ANN Machine Head 1.0.0-beta6

2014-01-07 Thread Michael Klishin
Machine Head [1] is a small Clojure MQTT client. Release notes: http://blog.clojurewerkz.org/blog/2014/01/07/machine-head-1-dot-0-0-beta6-is-released/ 1. http://clojuremqtt.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message because y

ANN Meltdown 1.0.0-beta3 is released

2014-01-07 Thread Michael Klishin
Meltdown [1] is a Clojure interface to Reactor [2]. Release notes: http://blog.clojurewerkz.org/blog/2014/01/07/meltdown-1-dot-0-0-beta3-is-released/ 1. http://github.com/clojurewerkz/meltdown 2. https://spring.io/blog/2013/11/12/it-can-t-just-be-big-data-it-has-to-be-fast-data-reactor-1-0-goes-g

Re: simple procedure for updating a value one level down

2015-01-26 Thread Michael Willis
(def categories [ [ { :id 1 :text "foo" } { :id 2 :text "bar" :ack 5 } ] [ { :id 3 :age 7 } ] ]) #'user/categories (update-in categories [1 0] merge { :age 12 :somethingElse 29 }) [[{:text "foo", :id 1} {:text "bar", :ack 5, :id 2}] [{:age 12, :somethingElse 29, :id 3}]] On Monday, January 26,

Re: simple procedure for updating a value one level down

2015-01-26 Thread Michael Willis
n categories [1 3] merge { :age 12 :somethingElse 29 }) [{1 {:text "foo"}, 2 {:text "bar", :ack 5}} {3 {:age 12, :somethingElse 29}}] On Monday, January 26, 2015 at 9:42:56 AM UTC-6, Michael Willis wrote: > > (def categories [ [ { :id 1 :text "foo" } { :id

Re: call superclass constructor in clojure class generation with defrecord

2015-01-30 Thread Michael Blume
(defn my-window [] (proxy [Window] [])) should do the trick Proxy takes a vector of implemented interfaces and at most one superclass (in your case, Window), and then a second vector of arguments to pass to the superclass constructor (in your case, an empty vector) and then a series of methods

Re: call superclass constructor in clojure class generation with defrecord

2015-01-31 Thread Michael Blume
anels goes here ] (.addComponent this horizontal-panel) this)) Note, I'm calling a variable 'this' but it's *just a variable, the only reason I called it 'this' was to make it look more like the java version. On Sat Jan 31 2015 at 9:53:30 AM coco wr

Re: call superclass constructor in clojure class generation with defrecord

2015-02-01 Thread Michael Blume
Yes, but that's for methods you're overriding and OP wants a constructor On Sun, Feb 1, 2015, 12:22 AM Fluid Dynamics wrote: > On Saturday, January 31, 2015 at 6:34:10 PM UTC-5, Michael Blume wrote: >> >> The defn wrapping the call to proxy basically is the constructo

Re: print-table bug?

2015-02-02 Thread Michael Blume
Difference looks like so: https://github.com/MichaelBlume/clojure/compare/pr-str-table On Mon Feb 02 2015 at 12:49:42 PM Steve Miner wrote: > Looks like a bug in clojure.pprint/print-table. Probably should be use > `pr-str` instead of `str`. > > user=> (str ()) > "clojure.lang.PersistentList$

Inconsistency in overflow handling between type-hinted and reflective calls

2015-02-09 Thread Michael Blume
(import 'java.io.DataOutputStream) (import 'java.io.ByteArrayOutputStream) (defn- ->bytes "Convert a Java primitive to its byte representation." [write v] (let [output-stream (ByteArrayOutputStream.) data-output (DataOutputStream. output-stream)] (write data-output v) (seq (.

Why can't I override equals & hashCode in defrecord?

2015-02-11 Thread Michael Sperber
I'm implementing some low-level data structures using arrays, and I'd like to use defrecord to make type for them. I need to override equals & hashCode, but defrecord won't let me do it. I know this has been discussed before: https://groups.google.com/forum/#!topic/clojure/Nvz0WDhj0qk The advice

Re: Is this the good way to write get-percentage

2015-02-11 Thread Michael Blume
I think you could replace your condp = with case, since all your mode keywords are known at compile-time, otherwise looks about right. On Tue Feb 10 2015 at 11:32:58 PM Cecil Westerhof wrote: > I needed a function to get the percentage as an int. Input is place and > total-count. > I want the no

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-12 Thread Michael Blume
Strange, when I run your code I don't get 9 or 15 On Thu Feb 12 2015 at 11:02:00 AM Jorge Marques Pelizzoni < jorge.pelizz...@gmail.com> wrote: > Hi, there! Please bear with me as I am very new to Closure (this is my > second program ever) but have a kind of solid Haskell background. > > I was tr

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-12 Thread Michael Blume
Oh, well this is fun -- with bleeding edge clojure I get the right answer, but with 1.6.0 I see the same results you did. On Thu Feb 12 2015 at 11:47:54 AM Michael Blume wrote: > Strange, when I run your code I don't get 9 or 15 > > On Thu Feb 12 2015 at 11:02:00 AM Jorge Mar

Re: [newbie] strange behaviour in self-referential primes lazy-seq attempt

2015-02-12 Thread Michael Blume
Feb 12 2015 at 12:06:28 PM Jorge Marques Pelizzoni < jorge.pelizz...@gmail.com> wrote: > Well, that's a bug then :) And seems to have been fixed. Thanks! > > Em quinta-feira, 12 de fevereiro de 2015 17:51:13 UTC-2, Michael Blume > escreveu: > >> Oh, well this is fu

Re: Performant string concatenation (of many, large strings)

2015-02-14 Thread Michael Blume
For minimal change to the presented code, what about (defprotocol appendable (append-to [this ^StringBuilder sb])) (extend-protocol appendable String (append-to [this ^StringBuilder sb] (.append sb this)) clojure.lang.IFn (append-to [this ^StringBuilder sb] (this sb)) Object (append-t

Re: Performant string concatenation (of many, large strings)

2015-02-14 Thread Michael Blume
er, s/(comp val)/val On Sat Feb 14 2015 at 12:17:18 AM Michael Blume wrote: > For minimal change to the presented code, what about > > (defprotocol appendable (append-to [this ^StringBuilder sb])) > > (extend-protocol appendable > String > (append-to [this ^StringBu

Re: Performant string concatenation (of many, large strings)

2015-02-14 Thread Michael Blume
...Annoyingly, almost all the time for my version is spent in protocol dispatch, so there's probably a much faster way to do that. On Sat Feb 14 2015 at 12:21:11 AM Michael Blume wrote: > er, s/(comp val)/val > > On Sat Feb 14 2015 at 12:17:18 AM Michael Blume > wrote: > &

Re: Performant string concatenation (of many, large strings)

2015-02-14 Thread Michael Blume
Basically same way you profile java, I usually use jvisualvm, if you feel like shelling out for yourkit that can be nicer. On Sat Feb 14 2015 at 11:23:12 AM Ivan L wrote: > What is the best way to profile Clojure? I tried a reduce doto thing but > it was way slowe than apply str. would love to

Re: Continuously Integrating Leiningen Projects

2015-02-17 Thread Michael Blume
What we do at Climate is avoid SNAPSHOT builds. Every build gets a version string with timestamp and git commit. If an upstream library is changed, it's up to downstream maintainers to update their dependency on it. If you update a dependency and your build fails, you a) don't update your dependenc

Re: Continuously Integrating Leiningen Projects

2015-02-17 Thread Michael Blume
Related -- we run lein ancient as part of a lot of our builds so that we can easily pick up dependencies with newer available versions. On Tue Feb 17 2015 at 11:13:44 AM Michael Blume wrote: > What we do at Climate is avoid SNAPSHOT builds. Every build gets a version > string with timesta

Re: Continuously Integrating Leiningen Projects

2015-02-17 Thread Michael Blume
which I'm > expecting to keep more current. > > R. > > On 17 February 2015 at 19:14, Michael Blume wrote: > > Related -- we run lein ancient as part of a lot of our builds so that we > can > > easily pick up dependencies with newer available versions. >

Re: Continuously Integrating Leiningen Projects

2015-02-18 Thread Michael Blume
lein-git-version: > > https://github.com/cvillecsteele/lein-git-version > > Which seems to follow project middleware approach you describe, but > for a different use case. > > R. > > On 18 February 2015 at 06:18, Michael Blume wrote: > > We use a Leiningen plugin to set th

Re: ANN: Onyx Dashboard 0.5.2.1

2015-02-18 Thread Michael Drogalis
Hi Colin, This is well supported within Onyx, and has seen recent progress (http://yuppiechef.github.io/cqrs-server/) The examples should give you a good indication if it's a fit for your problem (https://github.com/MichaelDrogalis/onyx-examples). We hang out in Gitter if you have any question

Re: How to create jar for data.int-map

2015-02-19 Thread Michael Griffiths
Clojure and Clojure contrib libraries are uploaded to Sonatype when released. e.g. https://oss.sonatype.org/content/groups/public/org/clojure/data.int-map/ There should be both a jar with sources and jar without sources for each released version of each lib. Michael -- You received this

ANN Monger 2.1.0 is released

2015-02-22 Thread Michael Klishin
Monger [1] is a Clojure MongoDB client for a more civilized age. 2.1.0 is a minor feature released. Change log: http://blog.clojurewerkz.org/blog/2015/02/22/monger-2-dot-1-0-is-released/ There will be no more 2.x releases (except for bug fixes, of course). Monger development will focus on 3.0 no

Re: Is Caribou Dormant ?

2015-02-25 Thread Michael Blume
Sure looks dormant to me. My usual rule is, if you think you'd feel comfortable maintaining it yourself if it ever became necessary, use it, otherwise look elsewhere. On Wed, Feb 25, 2015 at 3:36 PM Geraldo Lopes de Souza wrote: > Hi, > > I'm checking Caribou, and wanna know if anyone is using i

How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-26 Thread Michael Griffiths
ehind a proxy, try setting the 'http_proxy' environment variable. Am I doing something wrong? Michael -- 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

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Michael Griffiths
Maybe clojure.data.zip.xml (in clojure.data.zip) is close to what you're looking for? http://clojure.github.io/data.zip/#clojure.data.zip.xml On Friday, 27 February 2015 12:53:51 UTC, Henrik Heine wrote: > Hi folks, > > do you know of a lib that let's you navigate around nested Clojure > struct

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Michael Griffiths
Sorry, please ignore me. I misread your post entirely :-). I think clojure.zip and clojure.data.zip (not the XML parts) will get you partway to where you want, but I do not know of any XPATH-like API over the top of them. On Friday, 27 February 2015 14:08:19 UTC, Henrik Heine wrote: > This see

ANN Langohr 3.1.0 is released

2015-02-27 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2015/02/27/langohr-3-dot-1-0-is-released/ 1. http://clojurerabbitmq.info -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-27 Thread Michael Griffiths
and build master directly in the meantime - thank you. Michael On Thursday, 26 February 2015 23:11:05 UTC, Sean Corfield wrote: > > On Feb 26, 2015, at 11:21 AM, Michael Griffiths > wrote: > > I have the following in my project.clj: > > > > :dependencies [[org.clojur

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-28 Thread Michael Griffiths
maven-metadata.xml.sha1 contains: 5c88ee9a5d32a33ad7d16246ec3363fc98631b0a Which makes it seem like an issue with the deployed artifact/metadata? I'm not really sure why it's working for you but not me! Thanks, Michael On Saturday, 28 February 2015 00:18:34 UTC, Sean Corfield wrote

[ANN] Onyx 0.5.3: Flow Conditions

2015-03-04 Thread Michael Drogalis
Onyx is a distributed, masterless, fault tolerant data processing system for Clojure. Version 0.5.3 is out with a new feature called Flow Conditions. Flow Conditions isolate logic for message routing within your cluster, offering extraordinary flexibility for runtime specification. Blog post:

Re: Who's using Clojure?

2015-03-05 Thread Michael Richards
I'm about to start training 4 devs on my team at Oracle in Clojure. My manager is very nervous about putting Clojure into the product. I'm forging on regardless :) I rewrote some components of our product in Clojure in my spare time, mainly as a proof of concept that we could do some of our

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-05 Thread Michael Klishin
On 6 March 2015 at 00:45:47, adrian.med...@mail.yu.edu (adrian.med...@mail.yu.edu) wrote: > it strikes me as odd that this project would not come out of > direct collaboration with Clojure's core contributors. I should point out that there's enough people in the community who do not find Clojur

Re: Disk based caching for Clojure app

2015-03-06 Thread Michael Blume
Possibly stupid question: can you just pretend you have more memory than you do and let the operating system do the heavy lifting? On Fri, Mar 6, 2015, 10:54 AM JPatrick Davenport wrote: > Hello, > I'm been thinking about an idea for a cache layer. It's driven by two > trends. > > Most caches ar

Re: Clojure Culture Question on TDD

2015-03-24 Thread Michael Blume
It is rare to see an open source clojure project without tests. Clojure itself is pretty thoroughly tested, as is leiningen. I don't know about test-first. I think it's actually more common to see "REPL-first" -- build something through exploration in the REPL and then turn whatever you did in the

Re: Clojure Jobs Available

2015-03-30 Thread Michael Klishin
On 31 March 2015 at 04:45:39, Jan Drake (jan.s.dr...@gmail.com) wrote: > We have teams in Seattle, Sydney, and Costa Rica and are looking > to hire senior engineers with Clojure/Lisp experience. Jan, It would help if you clarify what locations/timezones you require candidates to be in. Many tal

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Michael Blume
I've proposed a patch to instaparse to fix this, I realize it's not the most elegant version check ever, but it should fix the problem https://github.com/Engelberg/instaparse/pull/94 On Tue, Mar 31, 2015 at 3:21 PM Sean Corfield wrote: > Looks like a great set of updates! > > Unfortunately, as s

Newbie re-implement 'interleave' found type conversion error

2015-04-02 Thread michael zhuang
: i'm new to clojure, when I try to implementation 'interleave', get error from type convertion "java.lang。Long cannot be cast to clojure.lang.IFN". ; Now im reading stack trace, try to figure out what's going on.. (defn myIL [col1 col2] (loop [m [] s1 (first col1) s2 (fi

Re: How to coerce to bigint ?

2015-04-04 Thread Michael Gardner
On Sat, Apr 4, 2015 at 11:36 AM, Paul Roush wrote: > (range 5N) => (0 1 2 3 4) ; i.e. the "bigint-ness" is lost > > So in this particular case I needed to "inject" bigint into the process > later in some way. > You could try (range (* 0 n) n). A little silly, but does avoid the conditiona

Re: Newbie question about filtrering defrecord

2015-04-04 Thread Michael Blume
your list doesn't contain the records, your list contains the symbols 'a1 and 'a2. You can't make a list the way you're trying to. On Sat, Apr 4, 2015 at 5:14 PM Luc Préfontaine wrote: > You mean the a1 record no ? > > > > Hi! > > > > I'm new to clojure, and have problem understanding how to fil

Re: Has anyone seen this error while running lein-cloverage?

2015-04-07 Thread Michael Blume
Yes. Cloverage needs to merge https://github.com/lshift/cloverage/pull/59 -- in the meantime, you can add https://github.com/MichaelBlume/cloverage-compojure-fix to your project and it will route around the problem. On Tue, Apr 7, 2015 at 11:27 AM Jonathon McKitrick wrote: > Here's a test in que

Re: Generating .clj files with content

2015-04-08 Thread Michael Blume
What James said -- if you want the results to be human readable, if you want control of how it's formatted, if you want to be able to comment it, if you want people to use it as a starting point for code they're going to write, then check out the punctions in https://github.com/technomancy/leininge

Are keys and vals guaranteed to return in the same order?

2015-04-17 Thread Michael Blume
In other people's Clojure code I sometimes see things like (zipmap (map some-fn (keys m)) (map other-fn (vals m))) If it were my code I'd be much more inclined to write (into {} (for [[k v] m] [(some-fn k) (other-fn v)])) Is this a to-each-their-own thing or is the latter preferred?

ANN Langohr 3.2.0 is released

2015-04-18 Thread Michael Klishin
Langohr [1] is a small Clojure client for RabbitMQ.  Release notes: http://blog.clojurewerkz.org/blog/2015/04/19/langohr-3-dot-2-0-is-released/ 1. http://clojurerabbitmq.info -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed to the Google Gr

Re: JDK8

2015-05-07 Thread Michael Blume
Not quite sure what you're asking -- I think Clojure itself is intended to be fully supported on JDK 8, and I regularly build it/build my projects with JDK 8 (though I think I'm using the Oracle version) On Thu, May 7, 2015 at 1:25 PM Pierre-Yves Ritschard wrote: > Hi, > > There hasn't been a JD

Re: contains? on String

2015-05-12 Thread Michael Gardner
On May 12, 2015, at 1:54 PM, Shantanu Kumar wrote: > I agree about the counter-intuitiveness. I'm only wondering whether the error > message is a bit misleading "contains? not supported on type: > java.lang.String" because of course (contains? "hello" 2) works fine. It seems odd that (contains?

Re: contains? on String

2015-05-12 Thread Michael Gardner
On May 12, 2015, at 3:28 PM, Fluid Dynamics wrote: > Strings and arrays support constant-time access by index. Yes, but why should that mean that contains? should work on Strings? "Because it can" doesn't seem compelling to me. In discussions about contains?, one often hears that it works on as

Help with timestamp with timezone in YeSQL

2015-05-16 Thread Michael Cramm
Out of curiosity have you tried clj-time.coerce/to-sqs-time ? -- 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

Is there some method to implement quartz cluster without spring in clojure?

2015-05-24 Thread savior michael
I have tried the quartz to run time job, but I failed to config cluster to run job singleton. I have tried to use the immutant but i have no idea how to config it yet. Is there someone use the cluster time job? -- You received this message because you are subscribed to the Google Groups "Cloju

Re: [ANN] System 0.0.8

2015-05-25 Thread Michael Klishin
On 24 May 2015 at 03:59:52, Daniel Szmulewicz (daniel.szmulew...@gmail.com) wrote: > System 0.0.8 has just been released, but it is not the same anymore. Then perhaps it deserves at least a minor version bump.   Non-standard, confusing version numbers is already a significant enough problem in

Re: [ANN] System 0.0.8

2015-05-25 Thread Michael Klishin
 On 26 May 2015 at 03:45:04, Daniel Szmulewicz (daniel.szmulew...@gmail.com) wrote: > Is there a consensus as to what versioning scheme works best? > Or is there no such beast? > Peter Taoussanis has expressed some reservations regarding > SemVer and is proposing a variation on it, which he ca

Re: [ANN] System 0.0.8

2015-05-25 Thread Michael Klishin
On 26 May 2015 at 03:54:35, Daniel Szmulewicz (daniel.szmulew...@gmail.com) wrote: > Yes, sir. Well understood. > > On top of that, the announcement was mistaken. System's version > is at 0.1.8, not 0.0.8. > > Will do better next time. Thank you!  This sounds like a project that can grow in

Re: Is there a cheet sheet for some of the pure symbolic functions like #'

2015-06-06 Thread Michael Wood
In addition to what the others said, try symbolhound: http://symbolhound.com/?q=%23%27+clojure -- Michael Wood On 05 Jun 2015 10:05 PM, "Dru Sellers" wrote: > Trying to google what #' means is tricky to say the least. > > Is there a good name for these that I can g

Identifying dependency that's pulling in SLF4J

2015-06-08 Thread Michael Gardner
I've started to see unwanted SLF4J console messages from one of my projects. I'm not (directly) using SLF4J, and would like to find out which of my dependencies is. But the dependency tree is a bit large to search by hand. Is there a better way? -- You received this message because you are sub

Re: Identifying dependency that's pulling in SLF4J

2015-06-08 Thread Michael Gardner
> On Jun 8, 2015, at 10:30 AM, Stephen Gilardi wrote: > > Does “lein deps :tree” help? Yes, that's very helpful. Thanks. -- 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 f

[ANN] Onyx 0.6.0

2015-06-09 Thread Michael Drogalis
I'm happy to announce that Onyx 0.6.0 is officially out! Blog post: http://michaeldrogalis.github.io/jekyll/update/2015/06/08/Onyx-0.6.0:-Going-Faster.html GitHub: https://github.com/onyx-platform/onyx Website: www.onyxplatform.org Chat: https://gitter.im/onyx-platform Thanks to all the contrib

Single-atom update ordering guarantees

2015-06-09 Thread Michael Gardner
This might be blindingly obvious to some, but I can't find any discussion about it. Let's say I have code like the following: (def a (atom 1)) ... (swap! a inc) (swap! a dec) Is there any possibility of another thread seeing a=0? If not, what provides this guarantee? -- You received this mess

Re: Single-atom update ordering guarantees

2015-06-09 Thread Michael Gardner
en by normal sequential > execution the atom should change from 1 to 2, then from 2 back to 1. > > Andy > > On Tue, Jun 9, 2015 at 9:38 AM, Atamert Ölçgen wrote: > > > On Tue, Jun 9, 2015 at 7:30 PM, Michael Gardner wrote: > This might be blindingly obvious t

Re: Single-atom update ordering guarantees

2015-06-09 Thread Michael Gardner
model guarantees as Java fields declared volatile. I don't have a > good authoritative link handy for Java documentation on volatile, but the > basic idea is that they should not be cached locally by individual threads, > but be visible to all. > > Andy > > > On Tue, J

[ANN] honeysql now available from Clojurescript

2015-06-14 Thread Michael Blume
Using reader conditionals, I've put up an experimental branch of honeysql which seems to work just fine from both Clojure and Clojurescript. If you need to generate SQL from your Node service, please try it out. https://github.com/michaelblume/honeysql/tree/rcond Will update soon with my experien

Re: let vs. let*

2015-06-18 Thread Michael Blume
Basically you the user should not worry about the starred versions On Thu, Jun 18, 2015 at 1:40 PM Johannes wrote: > thanks > > Am Donnerstag, 18. Juni 2015 22:35:53 UTC+2 schrieb raould: >> >> http://lmgtfy.com/?q=clojure+%22let+vs.+let*%22 >> > -- > You received this message because you are s

ANN Monger 3.0.0-rc2 is released

2015-06-27 Thread Michael Klishin
Monger [1] is a Clojure MongoDB driver for a more civilized age. Monger 3.0 is a major release that sets up ground for various MongoDB 3.x improvements and uses MongoDB Java driver 3.0 under the hood. There are breaking changes in 3.0. You can learn more about 2.x to 3.0 changes in the RC1 releas

Different macro definitions via reader conditionals?

2015-07-02 Thread Michael Sperber
I'd like to define a macro differently for Clojure and for ClojureScript. Is there a way to do this via reader conditionals? (My mind boggles.) Regards, Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: core.async status?

2015-07-05 Thread Michael Blume
Looking through the tickets at http://dev.clojure.org/jira/browse/ASYNC might give you a better idea of what's planned. On Sat, Jul 4, 2015 at 8:52 PM Martin Raison wrote: > thanks! > > Le samedi 4 juillet 2015 20:38:22 UTC-7, Alex Miller a écrit : >> >> Oh just busy. We will get to a new releas

Re: Advice on introducing a Java dev to Clojure

2015-07-09 Thread Michael McLellan
That brings up an interesting point - what's the ramp-up time usually like for the Java devs that convert to Clojure? On Thursday, July 9, 2015 at 9:16:25 PM UTC-4, raould wrote: > > > and I need to be 10 times more productive. =) > > you mean, after your 2 week ramp-up time, right? > -- You

Re: How do I expand a variable that I pass to a macro?

2015-07-12 Thread Michael Blume
First of all, I'm pretty sure compojure will let you do the thing, because it's less macro-heavy than what you're using. But to answer the general question, this is a fundamental problem with macros. Once you're making heavy use of macros you start having to write more macros in order to compose t

ANN Monger 3.0.0 is released

2015-07-18 Thread Michael Klishin
Monger [1] is a modern Clojure MongoDB client. 3.0 has breaking API changes. Release notes: http://blog.clojurewerkz.org/blog/2015/07/16/monger-3-dot-0-0-is-released/ 1. http://clojuremongodb.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this me

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Michael Blume
Sean, I think that was identified as a bug in Potemkin. The pull was merged but I'm not sure if there's been a release since. Zack? https://github.com/ztellman/potemkin/pull/40 http://dev.clojure.org/jira/browse/CLJ-1208?focusedCommentId=39632&page=com.atlassian.jira.plugin.system.issuetabpanels:

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Michael Blume
Looks like it has, pinning to Potemkin 0.4.1 should probably sort you out On Sun, Jul 19, 2015 at 4:50 PM Michael Blume wrote: > Sean, I think that was identified as a bug in Potemkin. The pull was > merged but I'm not sure if there's been a release since. Zack? > > https

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Michael Blume
(It looks like you're depending on Potemkin through clj-http, so upgrading to clj-http 2.0.0 will also solve the problem) On Sun, Jul 19, 2015 at 4:53 PM Michael Blume wrote: > Looks like it has, pinning to Potemkin 0.4.1 should probably sort you out > > On Sun, Jul 19, 2015 at 4

Re: Best Practice on loading namespaces

2015-07-23 Thread Michael Blume
This is component, all of it: https://github.com/stuartsierra/component/blob/master/src/com/stuartsierra/component.clj -- that's well below the size threshold where I'm comfortable saying "if someone else is maintaining it, that's one less thing for me to do; if they ever stop, this'll become part

ANN Langohr 3.3.0 is released

2015-07-27 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ.   Release notes: http://blog.clojurewerkz.org/blog/2015/07/27/langohr-3-dot-3-0-is-released/  1. http://clojurerabbitmq.info -- MK -- You received this message because you are subscribed to the Google Groups "Clojure

[ANN] Onyx 0.7.0: 2x Throughput, 5x Latency Improvement

2015-08-04 Thread Michael Drogalis
We're happy to announce version 0.7.0 of the Onyx Platform. This release of Onyx features a massive jump in performance with the integration of the new peer-to-peer library Aeron. Additionally, we've begun to open the door for cross language support into Java. Blog post: http://michaeldrogalis

Re: Lispers of Legends

2015-08-17 Thread Michael McLellan
Dota player, not League player - but this looks really cool. I'm not sure if I'll have any time to help out but I'll definitely keep an eye on your project to see what you come up with. On Sunday, August 16, 2015 at 1:02:46 AM UTC-4, Pepijn de Vos wrote: > > Hi all, > > Are there any League of

ANN Monger 1.7.0 is released

2014-01-11 Thread Michael Klishin
Monger [1] is a MongoDB Clojure driver for a more civilized age. Release notes: http://blog.clojurewerkz.org/blog/2014/01/11/monger-1-dot-7-0-is-released/ 1. http://clojuremongodb.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message be

ANN Validateur 1.7.0 is released

2014-01-11 Thread Michael Klishin
Validateur [1] is a data validation library. 1.7.0 introduces support for ClojureScript. Release notes: http://blog.clojurewerkz.org/blog/2014/01/11/validateur-1-dot-7-0-is-released/ 1. http://clojurevalidations.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin --

ANN Langohr 2.2.0 is released

2014-01-12 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2014/01/10/langohr-2-dot-2-0-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this mes

ANN Langohr 2.2.1

2014-01-13 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. Hot on the heels of 2.2.0, 2.2.1 is out with one bug fix. Release notes: http://blog.clojurewerkz.org/blog/2014/01/14/langohr-2-dot-2-1-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http:

Re: Clojure development & laptop battery usage

2014-01-20 Thread Michael Gardner
On Jan 20, 2014, at 11:14 , Mars0i wrote: > Just to be clear, Leiningen only eats CPU when started in an arbitrary > directory. When started from a Leiningen project directory, it doesn't use > CPU unless I tell it to. I have not investigated what it is in the project > directory that Leinin

Re: [ANN] play-clj, a game library

2014-01-20 Thread Michael Gardner
On Jan 20, 2014, at 09:31 , Zach Oakes wrote: > Today I'm releasing play-clj, a Clojure wrapper for LibGDX that allows you to > write games for desktop OSes, Android, and iOS from the same Clojure codebase. Neat! How is Clojure’s performance on the latest Android devices? Good enough for simp

Re: [Large File Processing] What am I doing wrong?

2014-01-21 Thread Michael Gardner
On Jan 21, 2014, at 07:11 , Chris Perkins wrote: > This part: (some #{hashed} already-seen) is doing a linear lookup in > `already-seen`. Try (contains? already-seen hashed) instead. Or just (already-seen hashed), given that OP's not trying to store nil hashes. To OP: note that if you’re stori

Re: clojure.java.shell/sh and expand wildcard

2014-01-21 Thread Michael Gardner
Try (sh “bash” “-c” “ls *.txt”). On Jan 21, 2014, at 21:51 , John Gabriele wrote: > I'd like to do something like: > > user=> (require '[clojure.java.shell :as sh]) > user=> (sh/sh "ls" "*.txt") > > but get: > > {:exit 2, :out "", :err "ls: cannot access *.txt: No such file or >

ANN Langohr 2.3.2 is released

2014-01-22 Thread Michael Klishin
Langohr [1] is a minimalistic, feature complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2014/01/22/langohr-2-dot-3-2-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received t

<    1   2   3   4   5   6   7   8   9   10   >