[ANN] Happy 0.5.0 - a Clojure(Script) HTTP async client library

2015-09-20 Thread Julien Eluard
] abstraction, notably media-type driven body transformation via a representor [3] protocol. This first release ships with a Clojure client based on OkHttp and a ClojureScript client based on XHR. Julien [1] https://github.com/jeluard/happy/ [2] https://github.com/jeluard/happy#interceptor [3] https

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-26 Thread Julien
My bad I was using an older beta. With latest RC1 the issue goes away. Julien Le mardi 26 mai 2015 23:24:41 UTC-3, Alex Miller a écrit : > > No, please report if so. > > On Tuesday, May 26, 2015 at 8:39:32 PM UTC-5, Julien wrote: >> >> I just ported an app with signific

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-26 Thread Julien
I just ported an app with significant CLJX usage (55 files) to reader conditionals and it works perfectly! It looks like there is a small issue related to map literal containing comments but I am not sure if it has been reported yet. Julien Le jeudi 21 mai 2015 13:31:16 UTC-3, Alex Miller a

Re: [ClojureScript] ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-10 Thread Julien Eluard
Hi, that looks like a tools.reader version conflict. You can get more details about all your project dependencies using `lein deps :tree`. Make sure the only tools.reader is the one coming from ClojureScript. Julien Le vendredi 10 avril 2015 23:42:35 UTC-3, Ravindra Jaju a écrit : >

Re: ANN: ClojureScript 0.0-2371

2014-10-10 Thread Julien Eluard
:refer [defroute]] Is the proper way to include macros to rely on the top-level `require-macros` keyword? Thanks, Julien Le vendredi 10 octobre 2014 09:07:31 UTC-3, David Nolen a écrit : > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > README

Re: Clojure and clojurescript deps in libraries

2014-06-07 Thread Julien Eluard
ider that point. That said clojure/clojurescript are not regular dependency and by defining a version you also declare the minimum language features needed by your library. That's definitively a grey area as both concepts are merged now. Julien Le samedi 7 juin 2014 11:08:31 UTC-3, Nikita Belog

Re: Garden, Thorn - Looking for contributors

2014-03-25 Thread Julien
ithub issue would help start discussions? Julien Le samedi 22 mars 2014 22:41:04 UTC-3, Joel Holdbrooks a écrit : > > Greetings everyone, > > About a year ago I began working on Garden and in the short time the > library has been around it's grown a bit. Although many folks se

[ANN] Lucuma 0.2.0

2014-02-20 Thread Julien Eluard
definition reusability, greatly improves properties support and rationalizes the syntax. I consider its API fairly stable at this stage. Next release [4] will focus on introducing a new syntax to unify document definition with dynamic document changes. [5] Feedback welcomed! Thanks, Julien [1

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-09 Thread Julien
Impressive! Did you run some benchmark? How does it compare to ring-jetty and http-kit? Julien Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : > > [image: Alt > text]<https://github.com/xfeep/nginx-clojure/blob/master/logo.png>Nginx-Clojure > > is a Ng

Re: request for feedback

2013-10-31 Thread Julien
our license is incompatible with the license of one of the dependencies) (sonatype has some product doing that: http://www.sonatype.com/application-health-check) Maybe some sort of extension mechanism could be helpful? Julien Le mercredi 30 octobre 2013 21:09:02 UTC-3, Anton Podviaznikov a éc

Re: [ClojureScript] Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Julien Eluard
files (at least goog/base.js) and call goog.require. Is that something that could be automatically added to the entry point js? Thanks, Julien -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Fast path to having fun with ClojureScript

2013-10-28 Thread Julien Eluard
? Is it worth my time to investigate that? Also I am not entirely clear when the output-dir property should be used and how it interacts with output-to and source-map. Could you clarify that? Thanks, Julien Le lundi 28 octobre 2013 01:25:31 UTC-3, David Nolen a écrit : > Given the source

Re: another game of exploding heap, via clojure.string/split

2013-09-17 Thread Julien
You might want to give Eclipse MAT (http://www.eclipse.org/mat/) a try. It can be used as a standalone tool. Julien Le mardi 17 septembre 2013 12:45:41 UTC-3, Brian Craft a écrit : > > I did, of course, spend a lot of time with google before posting. All of > the hits point to jcons

Re: ANN: ClojureScript 0.0-1877 (Breaking change)

2013-09-09 Thread Julien Eluard
not quite sure what the incremental compilation does exactly). Interestingly resulting js file seems correct. Let me know if I should open a JIRA/create a simple reproducing example. Thanks for the awesome work on ClojureScript, Julien Le dimanche 8 septembre 2013 20:42:51 UTC-3, Dav

Re: Exception propagation design in Clojure web APIs.

2013-03-24 Thread Julien Dreux
y/throw was becoming nightmarish very quickly. Thank you all for your input on this. Julien On Thursday, March 21, 2013 3:27:07 AM UTC-4, Marko Topolnik wrote: > > On Wednesday, March 20, 2013 11:29:55 PM UTC+1, James Reeves wrote: > >> On 20 March 2013 16:41, Marko Topolnik wrote:

Re: Exception propagation design in Clojure web APIs.

2013-03-20 Thread Julien Dreux
UTC+1, Julien Dreux wrote: > >> Thank you all for your answers, >> >> I like Marko's approach. >> >> What I had in mind, related to OP's post, would be a middleware that does >>> (binding [*validation-failures* []] >>>(handler req)

Re: Exception propagation design in Clojure web APIs.

2013-03-20 Thread Julien Dreux
Thank you all for your answers, I like Marko's approach. What I had in mind, related to OP's post, would be a middleware that does > (binding [*validation-failures* []] >(handler req) >(do-something-about *validation-failures*)) > There would be a global function, such as *add-failure

Exception propagation design in Clojure web APIs.

2013-03-19 Thread Julien Dreux
(handle-validation-errors validation)) Any guidance appreciated. Cheers, Julien -- -- 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 moderate

Re: Can "lein install" create checksum (MD5, SHA-1) files?

2012-03-27 Thread Julien Chastang
On Tuesday, March 27, 2012 4:54:56 PM UTC-6, Phil Hagelberg wrote: > > Julien Chastang writes: > > > Can lein install create checksum (MD5, SHA-1) files when installing > > artifacts in a local Maven repository? Heroku requires artifacts be > > deployed with checksum f

Can "lein install" create checksum (MD5, SHA-1) files?

2012-03-27 Thread Julien Chastang
Can lein install create checksum (MD5, SHA-1) files when installing artifacts in a local Maven repository? Heroku requires artifacts be deployed with checksum files. lein install generates a pom.xml, but when running mvn install -DcreateChecksum=true from that pom.xml, mysteriously the .cl

Re: Could be my favourite improvement in 1.4

2011-12-22 Thread Julien Kirch
for these cases wouldn't be simpler to paste the map in a string and to create a function that could parse such a json-compatible map into a clojure map ? A. On Dec 20, 2011, at 1:36 PM, Alex Baranosky wrote: > For what it's worth, I think colon's as whitespace in maps adds confusion, > witho

Are reader macros and "regular" macros handled differently by the compiler?

2011-12-01 Thread Julien Chastang
Are reader macros and "regular" macros handled differently by the compiler? If possible, please give some contrasting details about what the compiler is doing in each case. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: Possible Issue with Listing 11.5 from the "Joy of Clojure"

2011-07-30 Thread Julien Chastang
on a partially constructed object. You may be able to reason otherwise, but it is simply confusing to do so. Just access shared mutables in a safe manner and you will be OK. On Jul 29, 3:38 pm, Ken Wesson wrote: > On Fri, Jul 29, 2011 at 3:19 PM, Julien wrote: > > This listing is an a

Possible Issue with Listing 11.5 from the "Joy of Clojure"

2011-07-29 Thread Julien
Hi Everyone. I have been reading the "Joy of Clojure" with great interest, but I may have noticed a possible problem with listing 11.5. For those of you who don't have the book, here is the listing: (defn make-safe-array [ t sz] (let [a (make-array t sz)] (reify SafeArray (count

Re: Set performance

2010-04-01 Thread Julien
Did you run the test with the -server jvm option? This command line argument is usually recommended when measuring performance. -Julien On Mar 31, 10:56 am, Krukow wrote: > On Mar 29, 10:21 pm, Krukow wrote:> Hello, > [snip..] > > What was surprising to me wasn't that

Re: Clojure function varargs (not Java interop varargs)

2010-02-19 Thread Julien
Thanks Timothy. That did the trick. One small comment below. On Feb 19, 12:11 am, Timothy Pratley wrote: > On 19 February 2010 18:04, Julien wrote: > > > > > Question #1 > > > I want to write a vararg function that does something like this: > > > (map vect

Clojure function varargs (not Java interop varargs)

2010-02-18 Thread Julien
so (rotate [[1 2 3] [4 5 6]]) would yield ([1 4] [2 5] [3 6]) How can I achieve this? Many thanks for this great language. -Julien -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: Clojure Conference Poll

2010-01-26 Thread Julien
What about colocating this conference with say OOPSLA (or ECOOP). You will probably get good attendance. On Jan 26, 1:29 pm, Michel Vollebregt wrote: > +1 for Europe > > On Jan 26, 12:22 am, mudphone wrote: > > > +1 Paris > > > On Jan 22, 11:54 pm, Konrad Hinsen wrote:> On > > 22 Jan 2010, at

Re: java faster than clojure?(probably not)

2009-05-10 Thread Julien
here's a improved version of the byte-array-sound function which is probably easier to understand. based upon a real mathematical formula. (defn byte-array-sound-2 [frequency sample-rate nb-frame] (let [sample-array (make-array (. Byte TYPE) (* nb-frame 2)) sample-interval (/ 1 (double

Re: java faster than clojure?(probably not)

2009-05-10 Thread Julien
On May 10, 2:08 am, David Nolen wrote: > What's a sample set of values you would pass to this function? (byte-array-sound 2000 44100 10) here frequency would be the pitch of the sound generated 2000Hz, sample-rate set to 44100Hz. Thank you David, it does work faster now. I uploaded the

Re: java faster than clojure?(probably not)

2009-05-09 Thread Julien
> Out of curiosity, how long does that function take to execute in Java? The java version is much faster even with much more work to do, which put me perplex. I didn't check how much it takes, must be about 100ms. Thx for the tips, though that doesn't really improve anything. My guess is that i

java faster than clojure?(probably not)

2009-05-09 Thread Julien
I'm interested to do audio synthesis and eventually audio DSP on the JVM using the Java sound API and I think that it could be fun to do that following the functional programming paradigm. I don't intend to build a huge library but just to try some experiment on my own to better understand how dig

Re: Interfaces : not fully implemented in clojure?

2009-05-09 Thread Julien
, thanks for the advices and solutions. Using type hint solves the problem, but if I put the def form in a try it fails. So I assume top level def cannot occur in a try, but it's ok I don't need that anymore. -Julien --~--~-~--~~~---~--~~ You receiv

Interfaces : not fully implemented in clojure?

2009-05-09 Thread Julien
this the expected clojure behavior? or what I am doing wrong? -Julien --~--~-~--~~~---~--~~ 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 To unsubsc

Re: Does read-string ignore bindings local to forms?

2009-05-01 Thread Julien
Well thank you Christophe. I didn't know it was possible to redirect the output like this. Even got the exception working. Thank you for your expertise and your time, it works perfect, just what wanted. --~--~-~--~~~---~--~~ You received this message because you ar

Re: Does read-string ignore bindings local to forms?

2009-05-01 Thread Julien
Thanks for your quick answer. On May 1, 3:53 pm, Christophe Grand wrote: > > Whate are you trying to achieve? > I'll try to clarify my problem. I'm a newcomer to clojure (enthusiast about it) and I'm working on small project to get familiar with clojure. The idea consist of making a jabber bo

Does read-string ignore bindings local to forms?

2009-05-01 Thread Julien
Here is a quick newbie question. (def test1 "test1") (let [test2 "test2"] (eval (read-string "(println test1)")) (eval (read-string "(println test2)")) ) -output test1 1:1 user=> java.lang.Exception: Unable to resolve symbol

Re: testing the reader...

2009-05-01 Thread Julien
Thanks a lot for this thorough explanation. I appreciate it. Changing \"(println text1)\" to \"(println user/text1)\" actually do the job. I had to read it several time to begin to understand but I do have a better understanding of how compilation and namespaces work now. Thank you Stephen. --~-

Re: clojure-contrib build error

2009-04-30 Thread Julien
You can try the eclipse plug in for clojure. It is easy to install and provided with its own clojure.jar and clojure-contrib.jar. here is the link: http://code.google.com/p/clojure-dev/ you will need Eclipse though. --~--~-~--~~~---~--~~ You received this message

testing the reader...

2009-04-30 Thread Julien
Hi all, I'm currently working on a small project to get started with clojure. I can't solve this problem which seem to be related to the reader. So I ran some test against it. -here's the clojure code: (def text1 "testing thread") (def T (proxy [Thread] []

Re: clojure-contrib build error

2009-04-30 Thread Julien
You can try the eclipse plug in for clojure. It is easy to install and provided with its own clojure.jar and clojure-contrib.jar. here is the link: http://code.google.com/p/clojure-dev/ you will need Eclipse though. --~--~-~--~~~---~--~~ You received this message