Re: why is it so annoying to run clojure code

2016-06-09 Thread Plínio Balduino
Thanks for the tutorial On Thu, Jun 9, 2016 at 2:36 PM, Miguel Ping wrote: > I highly recommend you to learn some kind of interactive tool for clojure, > such as emacs+cider. > > I wrote a mini tutorial about it: >

Re: Porting Clojure to Native Platforms

2016-04-27 Thread Plínio Balduino
Racket has this feature. On Wed, Apr 27, 2016 at 11:29 AM, Jason Felice <jason.m.fel...@gmail.com> wrote: > > > On Tue, Apr 26, 2016 at 7:42 PM, Plínio Balduino <pbaldu...@gmail.com> > wrote: > >> >> * Is there a way to compile C++ code at runtime?

Re: Porting Clojure to Native Platforms

2016-04-26 Thread Plínio Balduino
LISP Flavoured Erlang: http://lfe.io/ On Tue, Apr 26, 2016 at 9:45 PM, Timothy Baldridge wrote: > >> would you consider a Clojure port to Erlang VM a viable idea for > production workloads? I know Elixir comes pretty close, but I still prefer > Lisp : ) . > > I looked into

Re: Porting Clojure to Native Platforms

2016-04-26 Thread Plínio Balduino
Hi, J Based on my yet small experience: Can the Immutable Persistent Data Structures be implemented with a reference-counting scheme rather than a garbage collector? This may improve performance. - Yes, using Smart Pointers. I'm trying something like this, but I'm still in the very beginning. I

Re: Memory Locality - Maps vs. Vectors vs. Transient Maps & Vectors

2016-04-21 Thread Plínio Balduino
So, as Andy pointed, transients would do the trick for you. And maybe type hints could also help but, as Stuart said, benchmark it all the way down. Regards Plinio On Wednesday, April 20, 2016, JvJ wrote: > I don't think I'll go with primitive arrays. A big part of the

Re: Prevayler in Clojure

2015-05-30 Thread Plínio Balduino
Awesome, Klaus Thank you Plínio On Sat, May 30, 2015 at 4:31 PM, Klaus Wuestefeld klauswuestef...@gmail.com wrote: Prevalence is the fastest possible and third simplest ACID persistence technique, combining the two simplest ones. https://github.com/klauswuestefeld/prevayler-clj -- You

Re: Adding JavaDocs for Interoperability with Java?

2015-05-19 Thread Plínio Balduino
Hi, Timur AFAIK, JavaDocs are just comments with some predefined tags that are completely ignored by Java compiler. As Clojure works directly with bytecode, I think it's not possible to insert any kind of JavaDoc in Clojure compiled interface or class. Regards Plínio Balduino On Tue, May 19

Re: Clojure needs a web framework with more momentum

2015-05-03 Thread Plínio Balduino
Mr Herwig That said: I'd love to see a set of well-maintained, well-documented project templates to emerge from a common brand, for the benefit of beginners and 10h website creators. THIS is exactly what I was discussing right now with a friend. I think you nailed it. On Sun, May 3, 2015 at

Re: Wrapping org.apache.commons.math3.complex

2015-05-02 Thread Plínio Balduino
Hi Alan Excuse me if I didn't understand your question, but I think a type hint would solve. Maybe you could abstract this for the final user in Clojure. (.add (Complex. 1.0 2.0) ^double 2) On Sat, May 2, 2015 at 8:53 AM, Alan Forrester alanmichaelforres...@googlemail.com wrote: Hello I'm

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Plínio Balduino
Excuse me, Fluid. I have to agree with gvim. But I have the same impression. I think the state of Clojure development for web is quite immature if you compare with other languages. To be clear, I could spend lines and lines talking about all the high quality Clojure library related to web

Re: complex numbers in clojure

2015-04-29 Thread Plínio Balduino
Hi Before we try to guess what Rich will or won't think or want, are you interested in a proof of concept? So we could evaluate performance and complexity issues before the subject is definitively buried. What do you think about it? Plínio On Wed, Apr 29, 2015 at 12:56 AM, Mikera

Re: complex numbers in clojure

2015-04-28 Thread Plínio Balduino
My two cents: I started to develop some support to complex numbers in Clojure, but I don't know if the Core Team/Rich Hickey has any intererest in this subject. Even it's an unfinished work, I didn't notice any lost of performance so far. Regards Plínio Balduino On Tue, Apr 28, 2015 at 9:35

Re: complex numbers in clojure

2015-04-28 Thread Plínio Balduino
Not that tricky, really. But there's a lot of repetitive work. I changed the Clojure readers to understand the a+bi format, created a ComplexNumber class and changed the class on charge of arithmetic to work with complex numbers. So it's possible to make any operation mixing Numbers, Ratios and

Re: [ANN] bouncer 0.3.2

2015-01-23 Thread Plínio Balduino
This is awesome, Leonardo On Fri, Jan 23, 2015 at 9:39 AM, Leonardo Borges leonardoborges...@gmail.com wrote: bouncer is a validation library for Clojure apps Github: https://github.com/leonardoborges/bouncer Clojars: https://clojars.org/bouncer The main change with 0.3.2 is that bouncer

Re: Set equality bug?

2015-01-22 Thread Plínio Balduino
My one cent: But I think (and it's just my humble opinion) is in the scope of Clojure keep its consistency, am I right? I mean, if doubles and floats are different, and they are, I think we should always get equality test as false. Or always as true, if they're nominally the same value. Regards

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Plínio Balduino
Hi there, Alex and Clojure team Is there a planned date for the stable version release? Regards Plínio On Sun, Jan 11, 2015 at 12:34 PM, Alex Miller a...@puredanger.com wrote: I would greatly appreciate hearing any feedback about this (or any other) alpha, even if it's just: everything

Re: Why doe floor and ceil accept clojure.lang.Ratio but round not

2014-11-24 Thread Plínio Balduino
Hi, Cecil Because java.lang.Math#round supports only two types: float and double. Java won't find the equivalent signature with Ratio or Number. https://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#round(double) https://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#round(float)

Re: How do you refer to a previous value of a var, within a loop/recur?

2014-11-24 Thread Plínio Balduino
Hi Dan Please accept my two cents. I prefer the indentation; it makes more sense to me. No, he didn't misunderstand, sorry. Anyway, Batsov's Style Guide is an awesome resource, even though you won't follow the items ipsis literis, is good to understand how to work and think in the 'Clojure

Re: Dependency problem between clj-http and com.cemerick/friend

2014-11-06 Thread Plínio Balduino
. Regards Plínio Balduino On Thu, Nov 6, 2014 at 9:47 AM, Christian Egli christian.e...@sbs.ch wrote: Andy Fingerhut andy.finger...@gmail.com writes: Try running 'lein deps :tree deps.txt' in each of those projects, and diff them. I can't explain why the differences are there that exist

Re: Dependency problem between clj-http and com.cemerick/friend

2014-11-06 Thread Plínio Balduino
I noticed that. You're correct. I updated my local copy of httpclient to 4.3.5 Plínio On Thu, Nov 6, 2014 at 11:23 AM, Christian Egli christian.e...@sbs.ch wrote: Hi Plínio Plínio Balduino pbaldu...@gmail.com writes: I just forked friend, updated the library versions and opened a pull

Re: Dependency problem between clj-http and com.cemerick/friend

2014-11-05 Thread Plínio Balduino
Hi, Christian Did you try the issue list on GitHub? https://github.com/cemerick/friend/issues Regards Plínio Balduino On Wed, Nov 5, 2014 at 8:20 AM, Christian Egli christian.e...@sbs.ch wrote: Hi all I have a strange interaction between clj-http and com.cemerick/friend. I don't know

Re: Clojure Survey 2014 - Tag Clouds

2014-10-30 Thread Plínio Balduino
Awesome, Juan It's a very fast way to focus on the major issues. Regards Plínio On Wed, Oct 29, 2014 at 12:00 PM, juan.facorro juan.faco...@gmail.com wrote: Hi All, In case someone was interested in the results and how I got to them, I wrote an article about my attempt to visualize the

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Plínio Balduino
Hi Laurens Are you trying to access http or https? If you use HTTPSEverywhere like me, the browser will try to load the https version, that really doesn't work and you'll see only an horizontal strip. I hope it can help you Xfeep: thank you very much. I'm moving my web applications to

Re: [ANN] Clojure 1.7.0-alpha2

2014-09-10 Thread Plínio Balduino
That's also my explanation about the use of exclamation mark. IMHO, +1 for volatile, without !. Plínio On Wed, Sep 10, 2014 at 1:05 PM, Mark Engelberg mark.engelb...@gmail.com wrote: When I explain to new Clojurists what the ! means, I explain that it calls attention to a mutation function

Instaparse channel

2014-08-13 Thread Plínio Balduino
Hi there Is there any discussion list about Instaparse? Thank you Plínio -- 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

Re: ANN qarth 0.1.0, an OAuth library

2014-07-25 Thread Plínio Balduino
Hi, Fred I never used Friend and I don't have parameters to compare so, why Qarth? I didn't get the Qarth's goal is to fix the problem of Ring/Compojure and/or Friend apps reinventing the wheel for OAuth. explanation. Regards Plínio On Fri, Jul 25, 2014 at 3:47 AM, Robin Heggelund Hansen

Re: Moving average from Java to Clojure

2014-07-20 Thread Plínio Balduino
Hi Cecil Clojure has a clojure.lang.PersistentQueue to work with queues. I don't know why it doesn't have a reader macro, but works fine and returns you a Clojure collection you can handle with cons and peek. You can start with an empty queue with clojure.lang.PersistentQueue/EMPTY or insert

Re: When to use ! in function name

2014-07-10 Thread Plínio Balduino
IMO, ! is used when change any global state. A side effect like print on screen is not enough to cause a ! in the name. I think that's why the functions print/println don't have ! =) Plínio On Thu, Jul 10, 2014 at 12:28 PM, Cecil Westerhof cldwester...@gmail.com wrote: When a function returns

Re: lein install

2014-07-08 Thread Plínio Balduino
I could guess that the problem is in the dot in the project name. Could you try to change it to zilch-mq or zilchmq and test? Plínio On Tue, Jul 8, 2014 at 8:39 AM, zhenxuanpan zhenxuan...@gmail.com wrote: when i run lein install lein install Compiling zilch.mq Exception in thread main

Re: Clojure Contributor Agreement process update

2014-06-09 Thread Plínio Balduino
\o/ On Mon, Jun 9, 2014 at 3:34 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2014-06-09 21:23 GMT+04:00 Alex Miller a...@puredanger.com: Starting today, we have updated the Clojure Contributor Agreement process. The prior process which involved signing and mailing a form has been

Re: bigint and biginteger

2014-06-09 Thread Plínio Balduino
Thank you, Mark and Mike Awesome explanation and examples Plínio On Sat, Jun 7, 2014 at 8:46 AM, Mike Fikes mikefi...@me.com wrote: Thanks for the historical perspective, puzzler! In addition to performance considerations, Clojure Programming points to an inconsistency between hash codes

bigint and biginteger

2014-06-06 Thread Plínio Balduino
Hi there. I read old threads and I didn't understand why Clojure has bigint and biginteger. Could you explain better? Thank you Plínio -- 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

Re: Checking: Java 8 and Clojure

2014-06-03 Thread Plínio Balduino
I'm also using Java 8 and I didn't have any problem so far. On Tue, Jun 3, 2014 at 1:20 PM, Rafal Lewczuk rafal.lewc...@gmail.com wrote: Java8+Clojure seems to work for me (not [yet] in production though). On 03.06.2014 18:17, Dave Tenny wrote: The clojure site says 1.6.0 is supported with

Re: practice for learning clojure

2014-05-27 Thread Plínio Balduino
Hi, Randy ClojureDocs has lots of examples with documentation, 4clojure and Clojure Koans are excellent start points and you can learn a lot reading the Clojure portion of Clojure source code. Regards Plinio Balduino 11 982 611 487 On 27/05/2014, at 08:58, Randy Chiu randyqi...@gmail.com

Re: Count vowels in a string

2014-05-21 Thread Plínio Balduino
My one cent: (defn count-vowels ([^String text] (count-vowels text aeiouAEIOU)) ([^String text ^String accepted-vowels] (let [vowel? (set accepted-vowels)] (- text (filter vowel?) count user= (count-vowels Plínio Balduino) 6 user= (count-vowels Plínio

clojure.repl/pst problem

2014-05-07 Thread Plínio Balduino
Hi there Inside REPL there's a function pst that shows the stacktrace of last exception: (doc pst) - clojure.repl/pst ([] [e-or-depth] [e depth]) Prints a stack trace of the exception, to the depth requested. If none supplied, uses the root cause of the most recent

Re: clojure.repl/pst problem

2014-05-07 Thread Plínio Balduino
That's true. My Leiningen is using 1.5.1 yet. Thank you Stephen. On Wed, May 7, 2014 at 3:18 PM, Stephen Gilardi scgila...@gmail.com wrote: On May 7, 2014, at 12:55 PM, Plínio Balduino pbaldu...@gmail.com wrote: But the documentation also shows that I can set the depth of stacktrace, what

Re: Converting sequence from sort into a list

2014-05-02 Thread Plínio Balduino
Hi Dave Sorry if I didn't get it, but doesn't sort already return a list? Could explain? Plínio On Fri, May 2, 2014 at 11:53 AM, Dave Tenny dave.te...@gmail.com wrote: I have a sequence from a call to 'sort'. I want a list. What is the best way to do this? (apply list (sort ...))?

The Box

2014-04-29 Thread Plínio Balduino
Hi there Where is the class clojure.lang.Box used in Clojure? https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Box.java Regards Plínio -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: The Box

2014-04-29 Thread Plínio Balduino
/clojure/lang/PersistentHashMap.java#L141 On Tue, Apr 29, 2014 at 1:21 PM, Plínio Balduino pbaldu...@gmail.comwrote: Hi there Where is the class clojure.lang.Box used in Clojure? https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Box.java Regards Plínio -- You

Re: Books for learning Clojure

2014-04-23 Thread Plínio Balduino
A nice post by Nikola Peric about this subject with what to read and what to avoid. http://deltadata.wordpress.com/2014/04/19/learning-clojure-tutorial-books-and-resources-for-beginners/ Plínio On Wed, Apr 23, 2014 at 1:27 PM, Cecil Westerhof cldwester...@gmail.comwrote: 2014-04-23 15:05

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
Some will say that Joy of Clojure is not the best choice for the newcomer. I read all the books more in your list more than once and had the better comprehension with JoC. The important thing is that I didn't get Clojure reading the first or second book. I just really understood after read the

Re: Books for learning Clojure

2014-04-22 Thread Plínio Balduino
, 2014 at 3:45 PM, Cecil Westerhof cldwester...@gmail.comwrote: 2014-04-22 20:32 GMT+02:00 Plínio Balduino pbaldu...@gmail.com: Some will say that Joy of Clojure is not the best choice for the newcomer. I read all the books more in your list more than once and had the better comprehension

Re: [ANN] immutable-int-map

2014-04-21 Thread Plínio Balduino
Got it. Awesome. Good job, Zach On Mon, Apr 21, 2014 at 1:52 AM, Zach Tellman ztell...@gmail.com wrote: I could represent the map {0 :foo, 100 :bar} as an array, but it would have to be a million element array with a lot of empty space. This would be (maybe) faster w.r.t. lookups, but

Re: [ANN] immutable-int-map

2014-04-20 Thread Plínio Balduino
it's an immutable map that can only have positive integers as keys -- Like an array? (My question is child of my complete ignorance, and I'm not questioning your knowledge or motivation) Plínio On Mon, Apr 21, 2014 at 1:40 AM, Zach Tellman ztell...@gmail.com wrote: This one's pretty simple:

Re: What's the difference between -? and some- ?

2014-04-10 Thread Plínio Balduino
/swiss-arrows - clojure/core.incubator https://github.com/clojure/core.incubator - Build An Arrow ← http://www.clojure.net/2013/10/16/Build-an-arrow/ Hth Tim Washington Interruptsoftware.com http://interruptsoftware.com On Mon, Apr 7, 2014 at 10:02 PM, Plínio Balduino pbaldu

Logo usage

2014-04-09 Thread Plínio Balduino
Hi there Is there any restriction about the usage of Clojure logo in magazines, books and printed materials? Thank you Plinio Balduino -- 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

Re: Logo usage

2014-04-09 Thread Plínio Balduino
Thank you On Wed, Apr 9, 2014 at 5:16 PM, Tim Visher tim.vis...@gmail.com wrote: On Wed, Apr 9, 2014 at 4:06 PM, Plínio Balduino pbaldu...@gmail.comwrote: Hi there Is there any restriction about the usage of Clojure logo in magazines, books and printed materials? Yes. You must get

What's the difference between -? and some- ?

2014-04-07 Thread Plínio Balduino
Hi there It's being hard to find updated documentation with 1.5+ features and I'm confused about as- and some-. Basically, what's the difference between the contrib -? and the core some- ? Thank you Plínio -- You received this message because you are subscribed to the Google Groups Clojure

Re: InvokeDynamic

2014-04-04 Thread Plínio Balduino
Hi, Hansen Fogus (from here) and Nutter (from JRuby) wrote nice posts about it. http://blog.fogus.me/2011/10/14/why-clojure-doesnt-need-invokedynamic-but-it-might-be-nice/ http://blog.headius.com/2011/10/why-clojure-doesnt-need-invokedynamic.html?m=1 Plinio Balduino 11 982 611 487 On

Re: InvokeDynamic

2014-04-04 Thread Plínio Balduino
read, but I can’t see that this is actually being worked on for Clojure? 4. apr. 2014 kl. 11:43 skrev Plínio Balduino pbaldu...@gmail.com: Hi, Hansen Fogus (from here) and Nutter (from JRuby) wrote nice posts about it. http://blog.fogus.me/2011/10/14/why-clojure-doesnt-need

Changing a value in let

2014-04-04 Thread Plínio Balduino
Hi there I wrote this code expecting an error, but it worked: (let [x 3 x (* valor 2)] x) ; 6 Is It the expected behavior or, considering that a local binding could not be modified, it should really raise an error? Thank you Plínio -- You received this message because you are

Re: Changing a value in let

2014-04-04 Thread Plínio Balduino
with a new version of x. The binding above is shorthand for: (let [x 3] (let [x 42] (println x)) (println x)) ;; prints: 42 3 Timothy On Fri, Apr 4, 2014 at 10:23 AM, Plínio Balduino pbaldu...@gmail.comwrote: Hi there I wrote this code expecting an error, but it worked

Re: InvokeDynamic

2014-04-04 Thread Plínio Balduino
, Robin Heggelund Hansen skinn...@gmail.com wrote: Yeah, those were the blog posts I've read, but I can't see that this is actually being worked on for Clojure? 4. apr. 2014 kl. 11:43 skrev Plínio Balduino pbal...@gmail.com: Hi, Hansen Fogus (from here) and Nutter (from JRuby) wrote nice

Re: Changing a value in let

2014-04-04 Thread Plínio Balduino
...@gmail.comwrote: That's correct, and often clojure compilers (like ClojureScript) many actually completely rename the variable to something else. Timothy On Fri, Apr 4, 2014 at 10:34 AM, Plínio Balduino pbaldu...@gmail.comwrote: Thank you I imagined something like that. Anyway

Re: using contrib functions

2014-04-03 Thread Plínio Balduino
You can copy the source to your project or write your own. That function basically wraps Socket and SocketServer Java classes inside a loop/recur infinite loop. Exactly as you already did with Java. Regards Plinio Balduino 11 982 611 487 On 03/04/2014, at 22:27, Alex Wang

Re: declare and def

2014-03-14 Thread Plínio Balduino
...@gmail.com wrote: No difference, but declare can take multiple vars as arguments. Thanks, Ambrose On Thu, Mar 13, 2014 at 9:51 PM, Plínio Balduino pbaldu...@gmail.comwrote: Hi there Is there any difference between declare and def when I'm making a forward declaration? Thanks Plínio

declare and def

2014-03-13 Thread Plínio Balduino
Hi there Is there any difference between declare and def when I'm making a forward declaration? Thanks Plínio -- 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

fn and let are special forms or macros?

2014-03-05 Thread Plínio Balduino
Hi there Clojure.org says fn and let are special forms, but using the macro sourceshows that both are macros calling fn* and let* respectivelly. So fn and let are special special forms, or clojure.org is incorrect/outdated? If fn and let are really special forms and not macros, could you

[Kind of off-topic] Enlightenment

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

Re: ANN: core.logic 0.8.6

2014-02-08 Thread Plínio Balduino
David, first of all, congratulations for core.logic. I would like to start with logic programming, but the texts I found aren't for starters like me, even though I have a good experience as software developer and functional programming is not a mistery anymore. What would you recommend for

Re: ANN: core.logic 0.8.6

2014-02-08 Thread Plínio Balduino
any documentation or tutorial can. David On Sat, Feb 8, 2014 at 4:26 PM, Plínio Balduino pbaldu...@gmail.com wrote: David, first of all, congratulations for core.logic. I would like to start with logic programming, but the texts I found aren't for starters like me, even though I have

Code layout

2013-12-10 Thread Plínio Balduino
Hi there What is the ideal way to format Clojure code? I'm following Batsov's Style Guide but, in some moments, it sounds a bit confuse to me. To the point: (reduce + (filter even? nums)) or (reduce + (filter even? nums)) Which one is preferable, more

Clojure User Groups in Brazil

2013-12-08 Thread Plínio Balduino
Brasil as soon as other cities start to organize their own user meetings. If any of you have any interest, you can have more information about Rio's meeting in http://www.meetup.com/clj-sp/events/154074712/ and Sao Paulo's meeting in http://www.meetup.com/clj-sp/events/154319832/ Regards Plínio

Re: [ANN] fsrun : file change notifier high order lein task

2013-11-27 Thread Plínio Balduino
Hi, Deniz I cloned the repo and installed locally to use with my code that count the size of and article and it was very useful. Thanks for your contribution and congratulations for your work. Plinio Balduino On 27/11/2013, at 05:00, Deniz Kurucu makka...@gmail.com wrote: Ah yes, sorry

Re: Scala interop (or, aliasing imported Java classes)

2013-11-01 Thread Plínio Balduino
+1 On Fri, Nov 1, 2013 at 6:49 PM, Cedric Greevey cgree...@gmail.com wrote: I vote for adding :as to import. I've personally thought of other situations where this could be useful. Being able to alias a (Java) package might be useful too: (import '((java.util.concurrent :as juc)

Re: [ANN] JUST CREATED GOOGLE + CLOJURE COMMUNITY FOR TUNISIA

2013-10-20 Thread Plínio Balduino
Awesome, Josh And also I am in Brazil. On Sun, Oct 20, 2013 at 5:13 AM, Josh Kamau joshnet2...@gmail.com wrote: Conglats. I am working on the same for Kenya. On Sat, Oct 19, 2013 at 6:14 PM, Plínio Balduino pbaldu...@gmail.com wrote: Congratulations IMHO, local communities

Re: [ANN] JUST CREATED GOOGLE + CLOJURE COMMUNITY FOR TUNISIA

2013-10-19 Thread Plínio Balduino
Congratulations IMHO, local communities are the best way to make the language more popular and even to create a job market for Clojure. Wish you all the success Plínio On Oct 19, 2013 12:11 PM, Rafik NACCACHE rafik.nacca...@gmail.com wrote: Dear All, It is my pleasure to announce that we

Re: Clojure Macro Tutorial

2013-08-19 Thread Plínio Balduino
Awesome, Steve. Thank you for the tutorial. Plínio On Mon, Aug 19, 2013 at 1:10 PM, Steve Shogren steve.a.shog...@gmail.comwrote: http://deliberate-software.com/intro-to-macros/ I wrote this tutorial up for a friend of mine who is a Ruby programmer thinking of learning Clojure, as my

Re: Clojure 1.5.1 and Sockets

2013-08-11 Thread Plínio Balduino
Hi, Christian If you look the sources of create-server, you will see it's using Java sockets wrapped as Clojure functions. The same thing about Java threads. It's not a bad thing and soon or later you will find some Java object wrapped somewhere. IMHO, I don't think Clojure need something

Re: clojure maven plugin starts a server when compiling

2013-07-25 Thread Plínio Balduino
try mvn compile -Dmaven.test.skip=true On Thu, Jul 25, 2013 at 12:24 PM, Horace adram...@googlemail.com wrote: I am using the clojure maven plugin to build a project. The projects contains a test, let us mytest.clj, that looks like the following: (def ^:dynamic *server* (create-server

Re: Introducing a new SQL migration library for clojure / jdbc

2013-07-20 Thread Plínio Balduino
Thank you, Chris I think it will be very useful for my next project. Regards Plínio On Sat, Jul 20, 2013 at 7:19 PM, Chris Kuttruff kuttr...@gmail.com wrote: When starting a project to create a clojure blog with ring/compojure/hiccup, I quickly found myself looking for an SQL migration

OAuth2

2013-07-15 Thread Plínio Balduino
Hi there What are you using to authenticate with Google, Facebook, GitHub or Twitter? Thanks Plínio -- -- 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: Core Logic Reference Documentation

2013-07-11 Thread Plínio Balduino
Hey, good job. I missed a cheat sheet like this. Thank you. On Thu, Jul 11, 2013 at 3:06 PM, Benjamin Peter benjaminpe...@arcor.dewrote: Hello, I went through the clojure core logic code and picked the functions I though that might go into the cheat sheet. The groups are pretty much

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Plínio Balduino
Yup. It's the same problem. That lib is only available on OSX. On Fri, Jun 28, 2013 at 1:04 PM, Gary Trakhman gary.trakh...@gmail.com wrote: Happens on linux too: gary@gary-dell:~/dev$ java -jar ~/Downloads/clooj-0.4.1-standalone.jar #Thread Thread[main,5,main]

Re: In what OS do you code?

2013-06-15 Thread Plínio Balduino
I code on Windows, due the company standards, on OSX at my machine and Android with Clojure REPL. I really miss a machine with Linux. Plínio On Sat, Jun 15, 2013 at 10:24 AM, Softaddicts lprefonta...@softaddicts.ca wrote: Ubuntu everywhere aside from my iPad :) Stable and easily customizable.

Clojure lang issue tracker

2013-06-15 Thread Plínio Balduino
Hi there I would like to make a small contribution to Clojure and I would to like to see if it's already fixed or if there's an issue tracker to report or find the problem and even continue contributing with the language development. Thank you Plínio -- -- You received this message because

Re: Clojure lang issue tracker

2013-06-15 Thread Plínio Balduino
Thank you On Sat, Jun 15, 2013 at 2:13 PM, Mikera mike.r.anderson...@gmail.com wrote: Clojure uses JIRA as an issue tracker: http://dev.clojure.org/jira/browse/CLJ See also the contributing guidelines: http://clojure.org/contributing On Saturday, 15 June 2013 17:05:23 UTC+1, Plinio

Re: while loop

2013-06-13 Thread Plínio Balduino
I would use loop/recur something like this: (loop [item (get-next-entry)] (when item (do (do-something) (recur (get-next-entry On Thu, Jun 13, 2013 at 2:20 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi there ; How do i implement the following in clojure

Re: Clojure in production

2013-06-11 Thread Plínio Balduino
Come on. JavaScript is an awesome and misunderstood language =) Thank you all for your help. I have lots of examples to show where we're using Clojure. Plínio On Jun 11, 2013 10:20 PM, Eric MacAdie emaca...@gmail.com wrote: OT, but, personally, I look forward to a world free of Javascript.

Clojure in production

2013-06-10 Thread Plínio Balduino
Hi there I'm writing a talk about Clojure in the real world and I would like to know, if possible, which companies are using Clojure for production or to make internal tools. Thank you Plínio Balduino -- -- You received this message because you are subscribed to the Google Groups Clojure

Re: Clojure in production

2013-06-10 Thread Plínio Balduino
to know, if possible, which companies are using Clojure for production or to make internal tools. Thank you Plínio Balduino -- -- 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

Re: feeding leiningen a local JAR file

2013-06-08 Thread Plínio Balduino
I'm using the localrepo plugin. On Sat, Jun 8, 2013 at 3:10 PM, Jay Fields j...@jayfields.com wrote: David Chelimsky recently released: https://github.com/dchelimsky/lein-expand-resource-paths On Friday, June 7, 2013 10:37:46 PM UTC-4, David Williams wrote: Try here

Re: Loop run until a Clojure Agent send-off is complete

2013-05-27 Thread Plínio Balduino
404? On May 10, 2013 8:04 AM, Kelker Ryan theinter...@yandex.com wrote: I would like to share a library that allows for bodies of code to loop run until a Clojure Agent send-off is complete. https://github.com/runexec/hollywood#how -- -- You received this message because you are

Re: Lisp In Summer Projects

2013-05-10 Thread Plínio Balduino
Or sticks, t-shirts, whatever. I would do it just for fun. On Fri, May 10, 2013 at 2:18 AM, Terje Norderhaug te...@in-progress.com wrote: I suggest allowing participants from the listed countries, but give an eventual prize to a charity of choice to avoid a cash payment. On Thu, May 9, 2013

Re: Lisp In Summer Projects

2013-05-09 Thread Plínio Balduino
'(sad) On Thu, May 9, 2013 at 11:58 AM, Nico Balestra nicobales...@gmail.com wrote: Contest is also not open to residents of Brazil, Italy, Quebec, and Saudi Arabia I'm UK resident but born Italian and I find the above a bit distressing. It is better to have 100 functions operate on one

Re: Lisp 2013 summer programming contest

2013-05-07 Thread Plínio Balduino
Oh heck, residents of Brazil cannot participate. Legalese things ruin all the fun. Plínio On Tue, May 7, 2013 at 2:28 AM, Andy Fingerhut andy.finger...@gmail.com wrote: I have not heard of this before. Wanted to pass on the word in case anyone was interested in applying. $2000 grand prize,

Re: [ANN] bleach 0.0.11

2013-05-05 Thread Plínio Balduino
And there's also a lot less syntax to learn. On Sun, May 5, 2013 at 3:07 PM, Moritz Ulrich mor...@tarn-vedra.de wrote: It's also nice for printing on paper. Ink is expensive. On Sun, May 5, 2013 at 6:49 PM, Michał Marczyk michal.marc...@gmail.com wrote: On 5 May 2013 15:19, Simone Mosciatti

[ANN] Portugal Clojure

2013-04-30 Thread Plínio Balduino
Hi there (I'll translate the announcement) We opened a Clojure group for discussion in Portuguese (Brazilian, European and African Portuguese). It's a small effort to increase the usage of Clojure in Brazil and Portugal and help the newcomers to enjoy this awesome language. Regards Plínio

Question about code style

2013-04-24 Thread Plínio Balduino
Hi there Which one is preferred when adding doc-string in a function? This: (defn bubbles Here I put some description [] (code)) Or this: (defn bubbles Here I put some description ([] (code))) Thank you in advance Plínio -- -- You received this message because you are

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
Nothing weird there. Looks like an usual floating point operation. On Tue, Apr 9, 2013 at 9:27 AM, Rostislav Svoboda rostislav.svob...@gmail.com wrote: Can anyone explain me please why I get: Clojure 1.5.1 user= (* 148.52 0.0256) 3.80211206 The correct result should be:

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
This article explains better how it works: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems Regards Plínio On Tue, Apr 9, 2013 at 9:27 AM, Rostislav Svoboda rostislav.svob...@gmail.com wrote: Can anyone explain me please why I get: Clojure 1.5.1 user= (* 148.52 0.0256)

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
In languages that doesn't give you support to arbitrary precision like Clojure do, it's a usual practice compare values using round functions. In pseudo-C it would be like that: float a = 148.52 * 0.0256; float b = 3.802112; a == b; = false round(a, 5) == round(b, 5); = true Or, if possible,

- operator and monads

2013-04-03 Thread Plínio Balduino
Hi there Is it correct to say that - operator is a kind of monad in Clojure? Thank you in advance. Plínio Balduino -- -- 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

Re: - operator and monads

2013-04-03 Thread Plínio Balduino
. -marko On Wednesday, April 3, 2013 8:21:43 PM UTC+2, Plinio Balduino wrote: Hi there Is it correct to say that - operator is a kind of monad in Clojure? Thank you in advance. Plínio Balduino -- -- You received this message because you are subscribed to the Google Groups Clojure