Re: clojure.algo.monads - no tests for monadic laws

2021-03-30 Thread Leonardo Borges
No real reason - probably lack of time. For what it's worth, I've written such tests for my imminent library here: https://github.com/theleoborges/imminent/blob/master/test/imminent/laws_test.clj - could be useful. Leonardo Borges @theleoborges <https://twitter.com/theleobor

Re: how to be notified when a Future is realized?

2017-08-02 Thread Leonardo Borges
I created imminent for this purpose : https://github.com/leonardoborges/imminent It's based on Java's completable futures. I've written an extensive README in the repo. Have a look, it might be useful for your case. Cheers, Leonardo Borges On 3 Aug. 2017 7:19 am, "Justin Smith"

Re: Attempt At Futures

2016-04-09 Thread Leonardo Borges
Something like imminent might be useful here. In particular the section about combinators: https://github.com/leonardoborges/imminent#combinators On Sat, Apr 9, 2016 at 9:33 PM Gary Verhaegen wrote: > You could: > > * Create all futures *without* deref'ing them, so

[ANN] bouncer 1.0.0

2015-12-21 Thread Leonardo Borges
with Clojurescript! - thanks Robin(@Skinney)! Additionally, since this is a breaking change, I bumped the version to 1.0.0 and will be using Semantic Versioning (http://semver.org/) from now on. Full CHANGELOG: https://github.com/leonardoborges/bouncer/blob/master/CHANGELOG.md Enjoy! :) Leonardo Borges

Re: Processing futures and promises asynchronously

2015-10-26 Thread Leonardo Borges
Hi Daniel, Since you're used to Scala futures, you might find this library easy to get started with: https://github.com/leonardoborges/imminent (A composable Futures library for Clojure) The next release will also include ClojureScript support. Cheers, Leonardo Borges www.leonardoborges.com

Re: [ANN][Book] Clojure Recipes published and for sale on Amazon

2015-10-22 Thread Leonardo Borges
Congratulations Julian! I'll share this around! On Thu, Oct 22, 2015 at 9:51 PM Julian wrote: > My book Clojure Recipes just got published and is for sale on Amazon! > http://clojurerecipes.net/ > >

Re: Paper on Immutable Persistent Data Structures

2015-07-20 Thread Leonardo Borges
for Clojure developers: https://www.youtube.com/watch?v=7BFF50BHPPo Cheers, Leonardo Borges On Tue, Jul 21, 2015 at 10:46 AM Daniel Compton daniel.compton.li...@gmail.com wrote: Jean Niklas L'orange has some posts about it at http://hypirion.com/musings/understanding-persistent-vector-pt-1 (there's

Re: Opinion on core.async vs callbacks in abstract APIs?

2015-06-01 Thread Leonardo Borges
For people interested in using the 'futures' approach, this might be of interest: https://github.com/leonardoborges/imminent It's a library that implements composable futures for Clojure on top of JVM's ForkJoin framework. It allows you to attach callbacks as well as apply combinators such as

Re: Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-25 Thread Leonardo Borges
Leonardo Borges,;; :id 1} (- leo (t/assoc :name Leo) (t/assoc :posts [{:title Title New, :content I'm totally new!} {:title Title 2, :id 21, :content whooo wh}]) t/save!) (first (select authors :include [posts])) ;; {:posts;; ({:title Title 2, :id 21, :content

Re: [ANN][book] Clojure Reactive Programming

2015-04-30 Thread Leonardo Borges
:02 UTC+1 schreef Leonardo Borges: Hi all, Some of you may know that I have been working on a book for the better part of last year. I'm happy to announce it has finally been published! Here's the link: https://www.packtpub.com/web-development/clojure-reactive-programming I hope you find

Re: [ANN][book] Clojure Reactive Programming

2015-04-21 Thread Leonardo Borges
On Saturday, April 11, 2015 at 7:21:21 AM UTC+10, Shaun Mahood wrote: Finished my first read-through last night, I really enjoyed the book and thought it was an excellent and informative read. Best resource I've read yet for understanding reactive programming as a whole. Thanks for writing

Re: [ANN][book] Clojure Reactive Programming

2015-03-28 Thread Leonardo Borges
I promise this was no marketing stunt! Not a planned one anyway :p On 27/03/2015 11:35 pm, Jeremy Heiler jeremyhei...@gmail.com wrote: Congrats, Leonardo! On Tue, Mar 24, 2015 at 10:25 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi all, Some of you may know that I have been

Re: [ANN][book] Clojure Reactive Programming

2015-03-26 Thread Leonardo Borges
in the topic I highly recommend picking it up. Thanks for writing it Leonardo! On Tuesday, March 24, 2015 at 8:26:02 AM UTC-6, Leonardo Borges wrote: Hi all, Some of you may know that I have been working on a book for the better part of last year. I'm happy to announce it has finally

[ANN][book] Clojure Reactive Programming

2015-03-24 Thread Leonardo Borges
it together! Cheers, Leonardo Borges www.leonardoborges.com -- 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

Re: Rationale behind the naming and semantics for agents.

2015-02-03 Thread Leonardo Borges
themselves: http://doc.akka.io/docs/akka/snapshot/scala/agents.html Cheers, Leonardo Borges -- 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

[ANN] bouncer 0.3.2

2015-01-23 Thread Leonardo Borges
the changes in the CHANGELOG: https://github.com/leonardoborges/bouncer/blob/master/CHANGELOG.md Enjoy! :) Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure

Re: OT: Github Alternatives

2014-06-30 Thread Leonardo Borges
I can't speak for price but I've worked in a couple of clients who used Stash [1], which is Atlassian's internal version of Bitbucket. I had no issues while using that. [1]: https://www.atlassian.com/software/stash [2]: https://bitbucket.org/ Leonardo Borges www.leonardoborges.com On Mon, Jun

Re: lazy list comprehension

2014-06-27 Thread Leonardo Borges
Try using map : (map str '(my-list-of-crap) (iterate inc 0)) -- 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

Re: use :only in ns

2014-06-05 Thread Leonardo Borges
I believe you want: (ns providence.core (:gen-class) (:require [seesaw.chooser :refer [choose-file]])) Cheers, Leonardo Borges www.leonardoborges.com On Thu, Jun 5, 2014 at 4:08 PM, Glen Rubin rubing...@gmail.com wrote: In my ns i am using a couple of libraries, e.g. (ns

Re: use :only in ns

2014-06-05 Thread Leonardo Borges
This will make available the whole seesaw.chooser namespace available via prefixed notation, with the bonus that choose-file which will be accessible without a namespace prefix. If just a couple vars are needed, then the :use :only is a preferable solution. Ah good point. I tend to forget

Re: The future of CongoMongo?

2014-02-26 Thread Leonardo Borges
I'd like to see CongoMongo's API completely overhauled, to remove dependencies on dynamic global variables etc, so this would be introduce a new API, and deprecate the old API. I've used both libraries but since I haven't worked with Mongo extensively from Clojure I still don't have a

Re: liberator video, compression question

2014-01-18 Thread Leonardo Borges
beat me to it. But yes, that's also what I got from the talk. Leonardo Borges www.leonardoborges.com On Sun, Jan 19, 2014 at 12:40 PM, Brian Craft craft.br...@gmail.com wrote: http://www.youtube.com/watch?v=OEZZOz6__CY At about 30 min he mentions that gzip, etc. aren't so interesting here

Re: [ANN] bouncer 0.3.0

2014-01-02 Thread Leonardo Borges
) syntax change Happy new year! Cheers, Leonardo Borges www.leonardoborges.com On Thu, Aug 15, 2013 at 11:01 PM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi all, bouncer is a validation library for Clojure apps Github: https://github.com/leonardoborges/bouncer Clojars: https

[ANN] bouncer 0.3.1-beta1 released

2014-01-02 Thread Leonardo Borges
available. Feedback welcome. Cheers, Leonardo Borges www.leonardoborges.com -- -- 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

Re: Comparing core.async and Reactive Extensions

2013-12-17 Thread Leonardo Borges
Thought not specifically about Rx, this thread talks about core.async and FRP (of which Rx is an implementation): https://groups.google.com/forum/#!topic/clojure/jHhwufCjrR8 -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: Comments on first function

2013-11-18 Thread Leonardo Borges
)) (recur (.read r) (println (slurp http://google.com;)) You can read more about with-open in this link: http://clojuredocs.org/clojure_core/clojure.core/with-open Cheers, Leonardo Borges www.leonardoborges.com On Mon, Nov 18, 2013 at 2:00 PM, jskdlfj...@outlook.com wrote: Hi

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Leonardo Borges
decode the string before passing it to the cookie-store. Not sure this is the case here. FWIW, I'm running Java 1.7 and Lein 2.3.3 Cheers, Leonardo Borges www.leonardoborges.com On Wed, Nov 13, 2013 at 5:25 PM, Ryan Spangler ryan.spang...@gmail.com wrote: Justin, As far as I know, Immutant

Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-13 Thread Leonardo Borges
Thanks for that reference. I'll give it a try. Cheers, Leonardo Borges www.leonardoborges.com On Wed, Nov 13, 2013 at 8:46 PM, Ryan Spangler ryan.spang...@gmail.com wrote: Hi Leonardo, It seems that on certain default java installs keys are restricted to 16 bytes: http://stackoverflow.com

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

2013-10-08 Thread Leonardo Borges
be viewed by Strange Loop 2013 attendees! Maybe Alex can comment on whether it's possible for those who didn't attend to watch this video at all. I'd be very keen. Leonardo Borges www.leonardoborges.com On Tue, Oct 8, 2013 at 2:11 AM, gaz jones gareth.e.jo...@gmail.com wrote: Martin Odersky

Re: [ANN] core.typed 0.2.5, News

2013-09-10 Thread Leonardo Borges
Thanks for all your work ambrose! Core.typed is quite a feat. And I can confirm ambrose is amazingly responsive on freenode. Every time I bug him, it works :) On 10/09/2013 9:57 PM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi, Pushing another release of

Re: Improving a nested if, or How to use multimethods the right way.

2013-09-04 Thread Leonardo Borges
You could use pattern matching with core.match On 05/09/2013 6:57 AM, Bruno Kim Medeiros Cesar brunokim...@gmail.com wrote: I'm writing (another) basic graph library, and would like to treat inputs depending on the type of the graph. A graph can be - Directed, in which case edges are

Re: Sorting a collection on multiple fields

2013-08-31 Thread Leonardo Borges
Would this help? (sort-by (juxt :key1 :key2) your-list-of-maps) On 31/08/2013 7:57 PM, ulsa ulrik.sandb...@gmail.com wrote: I wanted to sort a sequence of maps using a spec consisting of an ordered map of key and order, like this: (array-map :name 1 :age -1) I couldn't find a ready-made

Re: Model validation - exceptions as side-effects?

2013-08-18 Thread Leonardo Borges
to think about the scenarios where sending back validation errors could be helpful for your API clients Thanks! (BTW, your blog is great, great content) Thank you for the kind words :) Cheers, Leonardo Borges -- -- You received this message because you are subscribed to the Google Groups

Re: Model validation - exceptions as side-effects?

2013-08-16 Thread Leonardo Borges
in languages that support pattern matching. If you'd rather not use core.match for whatever reason, I'd still opt out of throwing an exception. The function would just need a little bit more code to simulate the behaviour above. [1]: https://github.com/clojure/core.match Leonardo Borges

[ANN] bouncer 0.2.4-alpha1 [breaking changes]

2013-08-15 Thread Leonardo Borges
://github.com/leonardoborges/bouncer/blob/master/CHANGELOG.md for details. Feedback on this version and the new API is greatly appreciated. Cheers, Leonardo Borges www.leonardoborges.com -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: [ANN] bouncer 0.2.4-alpha1 [breaking changes]

2013-08-15 Thread Leonardo Borges
Hi Moritz, Thanks for the suggestion. You're right and I missed this. I'll make sure I take this into account for the next release - I could release it as 0.3.0-alpha1 but then I'd like to remove 0.2.4-alpha1 from Clojars which doesn't seem to be a trivial thing to do. Leonardo Borges

Re: [ANN] bouncer 0.2.4-alpha1 [breaking changes]

2013-08-15 Thread Leonardo Borges
/clojars-web/issues/163 Thanks Leonardo Borges www.leonardoborges.com On Fri, Aug 16, 2013 at 12:26 AM, Joseph Smith j...@uwcreations.com wrote: I like releasing it as 0.3.0. --- Joseph Smith j...@uwcreations.com @solussd On Aug 15, 2013, at 9:20 AM, Leonardo Borges leonardoborges

Re: [ANN] bouncer 0.2.4-alpha1 [breaking changes]

2013-08-15 Thread Leonardo Borges
and of course by prefix I meant suffix! Ok. Time for bed. Leonardo Borges www.leonardoborges.com On Fri, Aug 16, 2013 at 12:41 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Sold. I've released it as 0.3.0-alpha1. I kept the alpha prefix as I'm the only one using this version now

Re: [ANN] bouncer 0.2.3-beta4

2013-08-12 Thread Leonardo Borges
Hi All, I just pushed 0.2.3 final to Clojars. There are no changes since beta4 below. As always, feedback is welcome. Cheers, Leonardo Borges www.leonardoborges.com On Wed, Jul 17, 2013 at 10:12 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi all, bouncer is a validation DSL

Re: Domain-specific language design books

2013-07-18 Thread Leonardo Borges
Every time you write a macro, you're writing a domain specific language. To that end, I have found Let Over Lambda most valuable. Cheers On 19 Jul 2013 06:30, JvJ kfjwhee...@gmail.com wrote: Does anyone know of any good books on DSL design, in Clojure or any other Lisp? -- -- You received

Re: Domain-specific language design books

2013-07-18 Thread Leonardo Borges
about it. Maybe that'd be of help? Leonardo Borges www.leonardoborges.com On Fri, Jul 19, 2013 at 11:51 AM, JvJ kfjwhee...@gmail.com wrote: Thanks. Mostly, I'm looking for something that's about design principles rather than a how-to. I figure I might as well get educated before I just

ANN: rx-cljs, A ClojureScript wrapper for Reactive Extensions

2013-05-21 Thread Leonardo Borges
it: Github: https://github.com/leonardoborges/rx-cljs Clojars: https://clojars.org/com.leonardoborges/rx-cljs [1]: https://github.com/Reactive-Extensions/RxJS Cheers, Leonardo Borges www.leonardoborges.com -- -- You received this message because you are subscribed to the Google Groups Clojure

Re: New Relic installation on Heroku

2013-05-08 Thread Leonardo Borges
Are you using lein with lein trampoline? If so, your app is running on a separate JVM, so you need to add this to your project.clj: :jvm-opts [-javaagent:newrelic/newrelic.jar] That was the bit missing for me. Hope this helps. Cheers, Leonardo Borges www.leonardoborges.com On Wed, May 8

Re: memorize-clj

2013-04-28 Thread Leonardo Borges
As a matter of fact Clojure core has it :) Check it out: http://clojuredocs.org/clojure_core/clojure.core/memoize Leonardo Borges www.leonardoborges.com On Mon, Apr 29, 2013 at 1:51 PM, Jorge Urdaneta jorge.urdan...@gmail.comwrote: Hi, I started a library called memorize-clj https

Re: Memoization in clojure

2013-04-13 Thread Leonardo Borges
time: 0.058 msecs (time (fib-memo 30)) ;; Elapsed time: 0.042 msecs Leonardo Borges www.leonardoborges.com On Sat, Apr 13, 2013 at 4:46 PM, Cedric Greevey cgree...@gmail.com wrote: To get the benefit of memoization, you need to store the memoized function and use it again. (memoize fib-nocur

[ANN] bouncer 0.2.3-beta1

2013-03-14 Thread Leonardo Borges
pipelining. It was an undocumented assumption. - Initial support for inter-field validation via validator pre-conditions (alpha) Please have a look at the CHANGELOGhttps://github.com/leonardoborges/bouncer/blob/master/CHANGELOG.md for details. As always, feedback is welcome. Cheers, Leonardo Borges

with-redefs for vars in a different namespace for tests (midje facts)

2013-02-17 Thread Leonardo Borges
just doing something wrong. Has anyone seen this before? Thanks, Leonardo Borges www.leonardoborges.com -- -- 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

Re: with-redefs for vars in a different namespace for tests (midje facts)

2013-02-17 Thread Leonardo Borges
is available. Is this the case? More importantly, is this how I should be doing this? The source for cache/set is the same as before. Cheers, Leonardo Borges www.leonardoborges.com On Mon, Feb 18, 2013 at 10:07 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi, I have some caching code

Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Leonardo Borges
- what has been your experience with it? Anyone else hitting this problem? Cheers, Leonardo Borges www.leonardoborges.com -- -- 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: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Leonardo Borges
Hi Timothy, I should have mentioned I'm using lein2. Heroku performs AOT compilation for you by default when that's the case. Cheers, Leonardo Borges www.leonardoborges.com On Thu, Feb 14, 2013 at 1:30 PM, Timothy Licata timothy.lic...@gmail.com wrote: Hi Leonardo, I ran into something

multiple nrepl sessions in emacs

2013-02-12 Thread Leonardo Borges
connecting to the next repl - otherwise nrepl creates a nrepl.2 buffer but sends my evaluation commands to the original nrepl buffer. Is there an efficient way to work with multiple nrepl sessions in emacs? I hope I'm just missing something obvious. Thanks, Leonardo Borges www.leonardoborges.com

Re: multiple nrepl sessions in emacs

2013-02-12 Thread Leonardo Borges
Excellent! Thanks, will give it a shot soon! Cheers, Leonardo Borges www.leonardoborges.com On Wed, Feb 13, 2013 at 11:23 AM, Hugo Duncan duncan.h...@gmail.com wrote: Leonardo Borges leonardoborges...@gmail.com writes: Is there an efficient way to work with multiple nrepl sessions in emacs

Re: Clojure/West (Portland, Mar 18-20) - Mission Kontrol, unsessions, lightning talks

2013-02-07 Thread Leonardo Borges
ah now that makes sense. I'll watch the twittersphere :) Leonardo Borges www.leonardoborges.com On Thu, Feb 7, 2013 at 7:07 PM, Rich Morin r...@cfcl.com wrote: On Feb 6, 2013, at 21:07, Leonardo Borges wrote: Where can we find more about this datomic hack session? Sorry, it appears that I

Re: Clojure/West (Portland, Mar 18-20) - Mission Kontrol, unsessions, lightning talks

2013-02-06 Thread Leonardo Borges
Hey Rich, Where can we find more about this datomic hack session? Leonardo Borges www.leonardoborges.com On Thu, Feb 7, 2013 at 4:03 PM, Rich Morin r...@cfcl.com wrote: On Feb 6, 2013, at 18:27, Alex Miller wrote: If you're coming in the night before the conference, we've got Mission

Re: [ANN] oauth-clj

2013-02-05 Thread Leonardo Borges
Thanks for the answer Roman! In the end I went with Matt's lib purely based on the number of stars and forks - so far so good. Cheers, Leonardo Borges www.leonardoborges.com On Wed, Feb 6, 2013 at 3:25 AM, r0man roman.sche...@burningswell.com wrote: When I started this library I wanted

Re: Clojure - Python Style suggestion

2013-02-04 Thread Leonardo Borges
the entire point. my 2c. Cheers, Leonardo Borges www.leonardoborges.com On Tue, Feb 5, 2013 at 10:50 AM, Mikhail Kryshen mikh...@kryshen.net wrote: The problem of readability of S-expressions has been discussed since the beginnings of Lisp. Some known alternative notations: http://en.wikipedia.org

Re: [ANN] oauth-clj

2013-02-04 Thread Leonardo Borges
Nobody ever replied to this and I'm now wondering the same. Any opinions one way or the other? On Tuesday, January 24, 2012 5:08:44 PM UTC+11, Dave Sann wrote: Hi r0man, I am curious as to similarities/differences of your library to: https://github.com/mattrepl/clj-oauth Dave -- --

Re: How to use pmap over a partition-all list of list?

2013-02-02 Thread Leonardo Borges
this works: (apply pmap + (partition-all 5 (range 1 20))) And then reducing the overall result: (reduce + (apply pmap + (partition-all 5 (range 1 20 Leonardo Borges www.leonardoborges.com On Sun, Feb 3, 2013 at 12:35 AM, Leandro Moreira leandro.rhc...@gmail.com wrote: Hi Jim, Thanks

Re: Performance issue with hashing records

2013-02-02 Thread Leonardo Borges
No clue as to the reason though - but it seems something might have changed from 1.4 to 1.5? Leonardo Borges www.leonardoborges.com On Sun, Feb 3, 2013 at 5:07 PM, Mark Engelberg mark.engelb...@gmail.com wrote: I just went through the process of converting my map-based program over

Re: ANN: bouncer, validation library for clojure

2013-01-15 Thread Leonardo Borges
Excellent. I'll push 0.2.2 final to clojars soon - as soon as I get the ANN email out. Thanks for the help. Cheers Leonardo Borges www.leonardoborges.com On Wed, Jan 16, 2013 at 4:37 AM, Gary Johnson gwjoh...@uvm.edu wrote: Worked like a charm. Thanks. On Tuesday, January 15, 2013 12:33

[ANN] bouncer 0.2.2 released

2013-01-15 Thread Leonardo Borges
number of arguments - New validators - Better docs - minor bug fixes - more... Please have a look at the CHANGELOGhttps://github.com/leonardoborges/bouncer/blob/master/CHANGELOG.md for details. As always, feedback is welcome. Cheers, Leonardo Borges www.leonardoborges.com -- You received

Re: blank? implementation

2013-01-15 Thread Leonardo Borges
This is interesting. We can get quite a huge performance boos by type hinting that impl. Times on my system running Clojure 1.4.0: user= (defn s-blank? [s] (every? #(Character/isWhitespace %) s)) user= (time (dotimes [n 2] (s-blank? asdf))) Elapsed time: 247.252 msecs Now if we type hint

Re: ANN: bouncer, validation library for clojure

2013-01-14 Thread Leonardo Borges
Hi Gary, Thanks for the bug report. Which version of Clojure causes the issue? I've been using Clojure 1.4 and the exact snippet you posted works flawlessly. As well as bouncer, given I have test cases around validators with no explicit messages. Cheers, Leonardo Borges www.leonardoborges.com

Re: ANN: bouncer, validation library for clojure

2013-01-14 Thread Leonardo Borges
against Clojure 1.3, 1.4 and 1.5-RC1 - The README has a build status indicator from travis.ci. This should prevent version bugs like this one from appearing in the future. Thanks for the report, Cheers Leonardo Borges www.leonardoborges.com On Tue, Jan 15, 2013 at 9:51 AM, Leonardo Borges

map destructuring mismatch between Clojure 1.4.0 and 1.5.0-RC1

2013-01-14 Thread Leonardo Borges
discussed somewhere - maybe JIRA? - if someone would be so kind as to point me to the ticke, that'd be much appreciated. Cheers, Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: map destructuring mismatch between Clojure 1.4.0 and 1.5.0-RC1

2013-01-14 Thread Leonardo Borges
Thanks! Leonardo Borges www.leonardoborges.com On Tue, Jan 15, 2013 at 11:08 AM, Sean Corfield seancorfi...@gmail.comwrote: See http://dev.clojure.org/jira/browse/CLJ-1140 On Mon, Jan 14, 2013 at 3:57 PM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi all, A user reported

Re: ANN: bouncer, validation library for clojure

2013-01-14 Thread Leonardo Borges
Sean pointed me to it in the other thread. I read the ticket and discussion - I personally don't feel it's abuse. To me it feels as natural a use of destructuring as any other. just my 2c. Leonardo Borges www.leonardoborges.com On Tue, Jan 15, 2013 at 11:14 AM, Toby Crawley t...@tcrawley.org

Re: ANN: bouncer, validation library for clojure

2013-01-13 Thread Leonardo Borges
and; - a short-circuit mechanism as suggested by Gary If everything looks good or I don't hear back, I'll push 0.2.2 final to clojars tomorrow and send a full ANN post. Cheers and thanks for the great feedback. Leo. Leonardo Borges www.leonardoborges.com On Fri, Jan 11, 2013 at 10:35 AM, Leonardo Borges

Re: ANN: bouncer, validation library for clojure

2013-01-13 Thread Leonardo Borges
Thanks, really appreciate the kind words. I just pushed [bouncer 0.2.2-RC1] so feel free to give that a go :) Cheers, Leo Leonardo Borges www.leonardoborges.com On Fri, Jan 11, 2013 at 3:44 PM, faenvie fanny.aen...@gmx.de wrote: i took a look at it. bouncers DSL seems smart inside and out

Re: ANN: bouncer, validation library for clojure

2013-01-11 Thread Leonardo Borges
Leonardo Borges www.leonardoborges.com On Jan 11, 2013 3:44 PM, faenvie fanny.aen...@gmx.de wrote: i took a look at it. bouncers DSL seems smart inside and out. Has an excellent Documentation too. Thanks for sharing it. -- You received this message because you are subscribed to the Google

Re: ANN: bouncer, validation library for clojure

2013-01-10 Thread Leonardo Borges
Hi Gary, First off, I wanna thank you for you thorough review and feedback of bouncer - it's very much appreciated. Please see my comments inline. On Fri, Jan 11, 2013 at 2:35 AM, Gary Johnson gwjoh...@uvm.edu wrote: Also, I agree with Stathis that there is a problem including the errors map

Re: ANN: bouncer, validation library for clojure

2013-01-09 Thread Leonardo Borges
The ones I looked at were https://github.com/r0man/validation-clj and https://github.com/michaelklishin/validateur Cheers, Leonardo Borges www.leonardoborges.com On Wed, Jan 9, 2013 at 4:29 PM, Karim Nassar karim.nas...@acm.org wrote: what are the other validation libraries? TIA, Karim

Re: ANN: bouncer, validation library for clojure

2013-01-09 Thread Leonardo Borges
a single value: the errors map. I'm happy for you to argue otherwise though. Do you think having the qualified keywords in the original map is still useful? I'll be releasing a new version over the weekend that will include this change. Thanks for the feedback Leonardo Borges

Re: Copying (immigrating) macros from namespace to namespace

2013-01-06 Thread Leonardo Borges
/leonardoborges/bouncer Leonardo Borges www.leonardoborges.com On Mon, Jan 7, 2013 at 12:04 PM, Brian Marick mar...@exampler.com wrote: On Jan 6, 2013, at 3:34 PM, Sean Corfield seancorfi...@gmail.com wrote: Here's what I use to pull symbols from Enlive into FW/1: Midje plays similar tricks to make

Re: Copying (immigrating) macros from namespace to namespace

2013-01-06 Thread Leonardo Borges
On Mon, Jan 7, 2013 at 1:17 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: I've said it before and I will keep saying it: copying symbols by interning vars breaks the identity of the original vars. It breaks dynamic binding, with-redefs, and the ability to redefine functions at the REPL.

Re: Different concrete type reported from macro

2013-01-04 Thread Leonardo Borges
Tks for link. I'll work around it. Leonardo Borges www.leonardoborges.com On Fri, Jan 4, 2013 at 12:24 PM, Stephen Compall stephen.comp...@gmail.com wrote: On Jan 3, 2013 6:24 AM, Leonardo Borges leonardoborges...@gmail.com wrote: As you can see, when using macroexpand-1, the type

Different concrete type reported from macro

2013-01-03 Thread Leonardo Borges
?) %)) ;;clojure.lang.Cons As you can see, when using macroexpand-1, the type of the arg is clojure.lang.PersistentList. However, when actually executing the macro, the type is clojure.lang.Cons Is this behaviour expected? Cheers, Leonardo Borges www.leonardoborges.com -- You received

ANN: bouncer, validation library for clojure

2013-01-03 Thread Leonardo Borges
/leonardoborges/bouncer Clojars: https://clojars.org/bouncer The README file on github contains a detailed guide to using the library, hopefully that's enough should you want to try it out. Cheers, Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed

Re: abysmal multicore performance, especially on AMD processors

2012-12-28 Thread Leonardo Borges
In that case isn't context switching dominating your test? .isArray isn't expensive enough to warrant the use of pmap Leonardo Borges www.leonardoborges.com On Dec 29, 2012 10:29 AM, cameron cdor...@gmail.com wrote: Hi Lee, I've done some more digging and seem to have found the root

Re: Clojure videos deleted from blip.tv?

2012-12-14 Thread Leonardo Borges
Ilshad, Thanks a lot! Cheers, Leonardo Borges www.leonardoborges.com On Fri, Dec 14, 2012 at 7:21 PM, Ilshad Khabibullin astoon@gmail.comwrote: I'm sorry, Russian link. English is: https://itunes.apple.com/en/podcast/michael-fogus-fertile-ground/id275488598?i=126465057mt=2

Re: Clojure videos deleted from blip.tv?

2012-12-13 Thread Leonardo Borges
Are these videos available elsewhere? Yes, in iTunes podcasts. Really? I tried finding them in itunes but no luck. Would you be able to point me to one of them? Cheers, Leo -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: Clojure web framework

2012-10-01 Thread Leonardo Borges
-boilerplate It tries to bridge that gap. The idea is to clone it, follow the readme and you should have a new webapp running in a short amount of time. I would like to turn it into a lein template but haven't had the time to do so. Still, it could be useful to some. Cheers, Leonardo Borges -- You

Re: Clojure : a good start for non-programmers?

2012-09-25 Thread Leonardo Borges
the examples to Clojure without too much effort. just my 2c. Best of luck! Leonardo Borges www.leonardoborges.com On Mon, Sep 24, 2012 at 4:11 PM, Gregorius R. gzym...@gmail.com wrote: Hello Clojurists! I'm a person in middle age (you know, too old to rock'n'roll, to young to die) and would like

Re: clj-logging-config, lein2 and AOT compilation == NullPointerException

2012-09-05 Thread Leonardo Borges
] https://dl.dropbox.com/u/6251992/logging-tests.zip [2] https://github.com/malcolmsparks/clj-logging-config/issues/15 On Tuesday, September 4, 2012 2:57:21 PM UTC+10, Leonardo Borges wrote: Hi all, I've been debugging an issue in my Clojure app deployed on Heroku and after some time I finally

clj-logging-config, lein2 and AOT compilation == NullPointerException

2012-09-03 Thread Leonardo Borges
overlooked. [1] https://github.com/malcolmsparks/clj-logging-config [2] https://github.com/malcolmsparks/clj-logging-config/issues/15 Thanks, Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Deprecation of Swank Clojure, long live nrepl.el

2012-08-22 Thread Leonardo Borges
this ring a bell to anyone? Cheers, Leonardo Borges www.leonardoborges.com On Thu, Aug 23, 2012 at 7:52 AM, Warren Lynn wrn.l...@gmail.com wrote: Hi Warren, You may want to check out https://github.com/purcell/ac-nrepl. Cheers, Tim Thank you. I tried it out. It basically works but has

Re: Deprecation of Swank Clojure, long live nrepl.el

2012-08-22 Thread Leonardo Borges
: (defproject blah/blah 1.0.0-SNAPSHOT :dependencies [[org.clojure/clojure 1.4.0] ... Cheers, Leonardo Borges www.leonardoborges.com On Thu, Aug 23, 2012 at 12:03 PM, Leonardo Borges leonardoborges...@gmail.com wrote: I must be missing something here. I followed the steps on the leiningen upgrade wiki

Re: Deprecation of Swank Clojure, long live nrepl.el

2012-08-22 Thread Leonardo Borges
. Cheers, Leonardo Borges www.leonardoborges.com On Thu, Aug 23, 2012 at 1:06 PM, Leonardo Borges leonardoborges...@gmail.com wrote: Moreover, not only it starts an old version of Clojure, but it randomly picks a clojure version each time I start the repl (?!) from within the same project

Re: What concurrency models to document?

2012-08-08 Thread Leonardo Borges
/ (it is biased towards a threaded model though). Would this be way out of scope for your book? - Even not exactly what you were after when you asked about concurrency models? [1] https://github.com/ztellman/aleph/ Cheers, Leonardo Borges www.leonardoborges.com On Fri, Aug 3, 2012 at 1:11 PM, cej38

Re: Idea around SCMs and Clojure

2012-07-18 Thread Leonardo Borges
be clear to you and perhaps some of your team. New members - and existing ones - might lack that context. My point is that I don't think the proposed output should replace a well hand crafted commit message. Cheers, Leonardo Borges www.leonardoborges.com -- You received this message because you

Re: mcache 0.1.0 released

2012-02-20 Thread Leonardo Borges
There's this one: https://github.com/shughes/clojure-memcached It's two years old so definitely out of date but maybe worth forking? Cheers, Leonardo Borges www.leonardoborges.com On Sun, Feb 19, 2012 at 12:14 PM, DHM davidhmar...@gmail.com wrote: Hi, I want to announce the release

Re: Calling all Melbourne, Australia, Clojure users

2012-02-07 Thread Leonardo Borges
. Also, do visit us if you ever come to Sydney. Cheers, Leonardo Borges www.leonardoborges.com On Tue, Feb 7, 2012 at 10:23 PM, James Sofra james.so...@gmail.com wrote: Hi all, I have been discussing recently possibly starting a Melbourne Clojure meetup. We have a possible location scouted

[ANN] Sydney Clojure User Group

2012-02-05 Thread Leonardo Borges
://bit.ly/yLfPTr Meetup.com page: http://www.meetup.com/clj-syd/ So that's it, if you're ever in town, come say hi. We have parenthesis, pizza and beer :) Cheers, Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed to the Google Groups Clojure group

Re: Distributed transactions

2011-12-31 Thread Leonardo Borges
Distributed transactions slow u down Why the hell would you want that? I'm yet to see a valid use case! They require sticky sessions *whi*ch suck for scalability! Keep in mind it's 4am on the 31st of December :-) Leonardo Borges www.leonardoborges.com Sent from my Galaxy Nexus

Re: Simplicity, and implications on usage of SQL

2011-10-25 Thread Leonardo Borges
/nkallen/arel Cheers, Leonardo Borges www.leonardoborges.com On Wed, Oct 26, 2011 at 1:04 PM, Brent Millare brent.mill...@gmail.comwrote: In the thread about Rich Hickey's talk on simplicity, people bring up the point that Rich suggests to *finally*, learn SQL. The idea is to use declarations

Re: Shameless self promotion - JavaOne

2011-10-04 Thread Leonardo Borges
How about putting it up on slideshare? Pretty sure they can import pptx ;) Cheers, Leonardo Borges www.leonardoborges.com On Wed, Oct 5, 2011 at 3:55 PM, Dennis shr3ks...@gmail.com wrote: Here is a link to my presentation. http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring

Neighbors function from The Joy of Clojure

2011-09-14 Thread Leonardo Borges
I missing something or they are really equivalent? And if so, why is the first syntax supported or better yet, when is it best to use it? Cheers, Leonardo Borges www.leonardoborges.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Neighbors function from The Joy of Clojure

2011-09-14 Thread Leonardo Borges
Ah, got ya. Did not think of that :) Thanks for the insight! Cheers, Leonardo Borges www.leonardoborges.com On Wed, Sep 14, 2011 at 11:29 PM, Chouser chou...@gmail.com wrote: On Wed, Sep 14, 2011 at 8:58 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Hi Guys, I'm pretty new

Re: Neighbors function from The Joy of Clojure

2011-09-14 Thread Leonardo Borges
It certainly helped :) I played around with it last night after chouser's response and it all made sense, thanks! Cheers, Leonardo Borges www.leonardoborges.com On 15/09/2011, at 1:39 AM, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 14, 2011 at 5:58 AM, Leonardo Borges