Re: how do you name your protocols?

2014-12-29 Thread Luc Prefontaine
t see what would be the added value here, the wrapping fn would only be calling the protocol method. Nothing else... If you require more in your context then define your own wrapper. Nothing generic can help you at this point... I think... Luc P. > I was just refering to the fact that the &#x

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-11 Thread Luc Préfontaine
So far so good, will go in prod with it next Wednesday. Will run some heavy integrated tests in the next 48 hours. Will report if anything shows up. Thank you, Luc P. > For my projects swapping 1.7.0-alpha4 -> alpha5 has not culminated in any > abnormalities. So... looking good thus

[ANN]: clojure.tools.trace 0.7.9

2015-10-08 Thread Luc Prefontaine
with ThrowableRecompose * Added more tests for TTRACE-12 -- Luc Préfontaine SoftAddicts inc. Québec, Canada Rabat, Morocco -- 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: Clojure performance question

2014-03-02 Thread Luc Prefontaine
implementations. If someone comes up with a better implementation while providing the same behaviours as the current str fn, then it should make it's way maybe in clojure.string. "fast-strings" ? Whatever it may be named. Luc P. > Core fns should be simple, unsurprising, and general. &g

Re: Sharing optional arguments among functions

2014-03-17 Thread Luc Prefontaine
Use (apply base-fun opts) Luc P. > I'm trying to define a couple of functions that support the same options, > but return different return types. > > I have one function that is the "base" function that provides the most raw > access, and some other functions th

Re: STM and persistent data structures performance on mutli-core archs

2014-03-17 Thread Luc Prefontaine
course, this was to increase my general knowledge and to be more relaxed on the job :) Knowing your enemy is essential... Luc P. > On 16/03/14 18:24, Softaddicts wrote: > > I think that significant optimizations have to be decided at a higher level. > > I doubt that any of that can

Re: STM and persistent data structures performance on mutli-core archs

2014-03-17 Thread Luc Prefontaine
r random access to memory. This will probably shake the software stack a lot. Which brings other issues... Meanwhile we are stuck with finding the least painful path to get our stuff to run asap. Luc P. > From what I understand, a single core can easily saturate a memory bus. At > the sa

Re: Clojure compiletime vs runtime

2014-04-15 Thread Luc Prefontaine
make sure there's no missing references, ... But this is not used in interactive development where you want to redefine stuff, change states, and be as dynamic as possible. Do you have a specific need that you want to cover ? Luc P. > Why are the toplevel forms which arent macros e

Re: Light table

2014-04-17 Thread Luc Prefontaine
first version written in Teco on tops-20. In these times it was a vast improvement on line by line editing. But I can't get back to it, the keyboard shortcuts do not seem to fit in my brain anymore. Years of WYSIWYG probably shrank this brain function to a bare minimum :) Luc P. > >

Re: Functional programming and security

2014-05-06 Thread Luc Prefontaine
was I writing a few seconds ago ? Luc P. > On Tue, May 6, 2014 at 9:45 AM, Cecil Westerhof > wrote: > > 2014-05-05 19:48 GMT+02:00 Brian Craft : > >> I would never have guessed modularity as a reason to worry about security > >> in fp. > >> > >> I w

Re: Expected inconsistency between set and map w/ ArrayList?

2014-05-11 Thread Luc Prefontaine
getting them to participate on the Clojure side of the fence. But I may be old fashion... Luc P. > OK. this thread is a bit worrying. If I understand correctly, it means > that we've now got inconsistent hash and equals functions. I suspect this > hasn't bitten many

Re: Confusion about binding *ns* before defining a var

2014-05-30 Thread Luc Prefontaine
the new bindings evaled. Leaving def unwrapped would get it done at compilation time, not at runtime. Is this a bit clearer ? Luc P. > > On Thursday, May 29, 2014 8:43:58 PM UTC-7, squeegee wrote: > > > > > > On May 29, 2014, at 7:11 PM, ian.tegebo > > > w

Re: Top-down code in namspaces

2014-06-01 Thread Luc Prefontaine
me space switches while improving or fixing code. Luc P > Hi everyone, I'm looking to get some opinions on code style. > > Specifically, I like to write my code in a top-down. > > What I mean by that is that within a file the highest-level functions sit > at the top, and ar

Re: Top-down code in namspaces

2014-06-03 Thread Luc Prefontaine
o the readers of the above lines, I could not resist :))) Luc P. > It takes a while (a couple months) to get used to reading things > upside-down, but I wouldn't want to go back. Knowing with certainty that > some called method is defined above in the compilation strategy simplifies

Re: Top-down code in namspaces

2014-06-04 Thread Luc Prefontaine
x27;s voice here) else can do it :)) Luc P. Luc P. > > > On Wednesday, June 4, 2014 9:42:41 AM UTC-5, Mars0i wrote: > > > > ... Then I add the new functions to the declare statement by hand, or I > > periodically do something like: > > > > grep defn

Re: Clojure Contributor Agreement process update

2014-06-10 Thread Luc Prefontaine
;s now their own and that you should get lost. I hope you stay anchored in the real world :))) Luc P. > Sorry if that was already answered, > > Is there a possibility to get rid of this legalwall? > > I realize that there are good intents behind the existing practice, but it

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

2013-10-08 Thread Luc Prefontaine
Hopefully, we all knew it :)) And you should add that auto boxing Is done on the literal, otherwise this magic would not work. Otherwise, Java would be the most brittled language. It probably is anyway :)) Luc P.. > The string concatenation operator in java calls 'toString'

Re: Any interest in Compojure/Ring screencasts?

2013-10-29 Thread Luc Prefontaine
Count me in, Luc P. > I'm considering putting together a screencast, or a series of screencasts, > based on my Functional Web > Architecture<http://skillsmatter.com/podcast/home/functional-web> > talk. > The base presentation would be improved, and I'd probably w

Re: .length vs. count for string length

2013-10-30 Thread Luc Prefontaine
Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com &g

Re: .length vs. count for string length

2013-10-31 Thread Luc Prefontaine
I meant collection ... not sequence. Luc P. > Strings are character sequences, count is a better option to stay > within the sequence abstraction. > > Lic P. > > > > count does some type checks, but it's negligible in most cases as I already > > said.

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Luc Prefontaine
No, no, I can assure you, it's not an insult, you are well beyond. :))) --> toward the edge of the universe Luc P > Is that intended as some sort of an insult aimed at me? I'm just pointing > out that "the web" != "everything that might conceivabl

Re: Is Clojure more functional then Scala?

2013-12-16 Thread Luc Prefontaine
o do it. http://rotpier.over-blog.com/article-97207983.html Luc P. > I jumped on the FP bandwagon over a year ago and have been using Scala both > at work and for personal interest. Recently however I decided to take a > closer look at Clojure and see if it is something i actually

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

2013-12-23 Thread Luc Prefontaine
anguage and its related tools make your job so complex that your brain overloads then you are shooting yourself in the foot. Luc P. > Do you guys have any concrete examples? > > Sent from my iPhone > > On 23 Dec 2013, at 10:13, Korny Sietsma wrote: > > > This tie

Re: Is Clojure right for me?

2013-12-26 Thread Luc Prefontaine
? Luc P. -- Luc Prefontaine sent by ibisMail! -- -- 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 firs

Re: Is Clojure right for me?

2013-12-26 Thread Luc Prefontaine
This depends strictly on your learning speed which I will not comment here :) It took me three months full time to start to feel at ease with Clojure writing production code and I was around 45 years old at the time. Learning is never inefficient... when you want to learn. Luc P >

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
get the prototype working. Choose carefully... :) Luc P. > The point is that Clojure is not the only modern language out there. I > can't possibly learn them all in depth just to decide which language to use > for my production code. That would be time-inefficient because my goa

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
. Luc P. > Then we have more in common > than you may think :) > > I learned Ruby first, went through > Scala which appeared in the same > time frame, > all this to pick up the language of > choice to replace Java and Ruby > which we used to prototype our > produc

Re: Namespaces [was Re: Is Clojure right for me?]

2013-12-27 Thread Luc Prefontaine
makes it easy to implement. Versioning is mainly a way for us to revert back to previous configs but it's also a way to fake an immutable config state. It's an operational requirement more than a code or design issue. Luc P. > On Fri, Dec 27, 2013 at 10:35 AM, Softaddicts > wrote

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
missing piece in the puzzle. Not sure that this kind of book would be popular these days. Luc P. > That makes me think that maybe there's a need for more books about Clojure. > There are many introductory books but nothing more advanced such as best > practices, patterns, etc... &g

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
Been writing these on my iPhone most of the day and if I do not cut lines myself, it looks pretty ugly on my side :) I am pretty bad at writing poetry, glad to see I could fake at it :) Luc P. > Luc, I've just got to say, your tiny margin widths always make me think > your message i

Re: In your opinion, what's the best, and what's the worst aspects of using Clojure?

2013-12-30 Thread Luc Prefontaine
We added this as part of our standard logging, not only when exceptions are raised. It does help a lot in prod... Luc P. > > On Dec 27, 2013, at 11:33 PM, guns wrote: > > > On Fri 27 Dec 2013 at 11:23:22PM -0500, Lee Spector wrote: > >> > >> On Dec

Re: core.async - extracting code from a go block

2013-12-31 Thread Luc Prefontaine
I would say use macros to avoid hiding calls from the go macro scope. Luc P. > I recently discovered that parking calls only work if they're directly > contained within a go block. So this works fine: > > (defn foo [ch] > (go > ( > But this: > > (defn

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
You are trying to close a nil channel. W/O the code it's all I can say :) Did you check to make sure you are not trying to handle nil as a channel ? Luc P. > Hi, > > I'm getting the following error over and over again in my code, I've tried > adding in some print

Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-07 Thread Luc Prefontaine
data compliant with our business model it simplifies the support of these plugins. Thank you, great idea :) Luc P. > Yesql is a simple library for blending SQL queries & Clojure together, > cleanly. Here's how it > works<https://github.com/krisajenkins/yesql#rationale&g

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
nic on the look of the expansion, the code shuffling is kind of heavy. Luc > I do not have a single close! statement in my code anywhere. I've double > checked with grep -lhr "close\!" . through my whole codebase and all the > projects in it. > > > >

Re: clojure.core.async java.lang.IllegalArgumentException

2014-01-07 Thread Luc Prefontaine
Just got your email, I remember vaguely about this issue maybe when Tim did is presentation at fhe Conj. Or maybe on the mailing list. You may try what I described in my previous email and make your mind about this. Luc P. > > I've changed all of the go blocks to thread and got a

Re: clojure.edn/read-string exceptions => nil

2014-01-16 Thread Luc Prefontaine
Wrap the read in a try catch just return nil in the catch clause for this specific exception and wrap it in a function for ease of use. You might want to throw up any other exceptions and only catch this one Luc P. > I should add: this problem arises due to cljs / clojure talking over

Re: clojure.edn/read-string exceptions => nil

2014-01-16 Thread Luc Prefontaine
Oups, skipped the last part of your emal. With edn I see no way to do this. Luc > Either you misunderstood my question or I misunderstood your answer. > > I don't want the entire expression to return nil. I only want the > _unparsable_ part to return nil. > > Thus, the

Re: Security implications of code is data/data is code

2014-01-21 Thread Luc Prefontaine
r w/o some deeper analysis :))) Luc P. > Hi Daniel, > > I'm not an expert in security but AFAIK this is not a problem. Every user > input is a string and you chose how to parse it. There is a edn reader that > is safe, but you can use specific parsers depending on the input

Re: Security implications of code is data/data is code

2014-01-22 Thread Luc Prefontaine
Just joking :) There are a bunch of "golden rules" that violate on a regular basis for good reasons. With some satisfaction I have to confess. When you have a muti purpose tool in your hands that you can bend to almost any use it's hard to be restrained by taboos :) Luc P.

Re: Enhanced Primitive Support

2010-06-20 Thread Luc Préfontaine
s approach. Swapping the name space or adding one to overload the default one is quite practical. The line by line annotation is a painful approach to such changes and should be only required in rare cases (mixed operand computations ?) Luc P. Sent from my iPod On 2010-06-20, at 6:39 AM, Ni

Re: Enhanced Primitive Support

2010-06-20 Thread Luc Préfontaine
that choice depending on its purpose. Luc P. Sent from my iPod On 2010-06-20, at 8:35 AM, Paul Moore wrote: On 19 June 2010 15:26, cageface wrote: Maybe it's only because I'm coming from Ruby, in which number promotion is automatic and everything is slow, but if I have to choose betw

Re: Enhanced Primitive Support

2010-06-22 Thread Luc Préfontaine
ntrol they do not need yet. Luc P Sent from my iPod On 2010-06-22, at 12:44 AM, Mark Engelberg wrote: The new uber-loop is fantastic. So I guess the main point still to be finalized is whether the default arithmetic ops will auto-promote or error when long addition overflows. Playing a

Re: Enhanced Primitive Support

2010-06-22 Thread Luc Préfontaine
rious implementations provide plenty of options to attain the nirvana of high performance. That's good. Lets just make things easy for the average guy.., Luc P Sent from my iPod On 2010-06-22, at 7:53 AM, Nicolas Oury wrote: On Tue, Jun 22, 2010 at 12:45 PM, Luc Préfontaine a>

Re: Enhanced Primitive Support

2010-06-22 Thread Luc Préfontaine
As the implementor Rich, it's your call as I said :)) If auto promotion brings in chaos then lets drop it entirely. If people want to eat elephants they can still choose to use directly big number implementations. Luc P Sent from my iPod On 2010-06-22, at 10:46 AM, Rich Hickey

Re: State of Clojure web development

2010-06-25 Thread Luc Préfontaine
rtial renderings provided by the plugin. We just provide layouts and customize CSS stuf. We will give a closer look to Compojure this year and see if can achieve the same code ratio somehow. Luc P Sent from my iPod On 2010-06-24, at 12:27, Daniel Gagnon wrote: I don't use Cloju

Re: Newb Question

2010-06-28 Thread Luc Préfontaine
ts to return to java iterators now :))) Luc P. Sent from my iPod On 2010-06-27, at 14:22, José Luis Romero wrote: Hi! I am learning the core of clojure, and so far, I am loving it. But I am not a lisp programmer (python, java, among others), but never functional programming. I am practicing with c

Re: Let's respect CLOJURE_HOME

2010-07-01 Thread Luc Préfontaine
r apps and establish a common ground in the supporting scripts we use. It helps structuring the file space were all our components reside in dev test and prod. Honestly, by the time this thread ends on that simple and obvious matter, Clojure 1.5 will be released... Luc P. Sent from my iPod On

Re: Managing the classpath

2010-07-01 Thread Luc Préfontaine
Yep, we have been using this for a year or so and this solves the classpath/jar file location issue nicely. Hence the usefulness of CLOJURE_HOME and alikes to locate this single folder from a very simple wrapper script... Luc P. Sent from my iPod On 2010-07-01, at 10:29, Laurent PETIT wrote

Re: Managing the classpath

2010-07-01 Thread Luc Préfontaine
folder. Luc P Sent from my iPod On 2010-07-01, at 10:49, Paul Moore wrote: On 1 July 2010 15:29, Laurent PETIT wrote: Hello, note that with java 6 you can specify at once to add all the jars located in a directory: java -cp "libs/*" clojure.main and you can place any jar y

Re: Clojure for NSF grant funding

2010-07-07 Thread Luc Préfontaine
NSF documentation and I am not convinced that the red tape is minimal. You certainly loose some flexibilty by having to get scope changes approved by them. Anyone got involved with them ? Luc P Sent from my iPod On 2010-07-07, at 14:49, David Blubaugh wrote: To All, I am extremely intereste

Re: ClojureDocs.org

2010-07-10 Thread Luc Préfontaine
Zack if you need help with this Rail app let us now. We can give you a hand, the wish list keeps growing :))) Luc P. Sent from my iPod On 2010-07-09, at 15:07, zkim wrote: Hi Justin, thanks again for the go-ahead to pull examples from http://clojure-examples.appspot.com. Zack, you had

Re: ClojureDocs.org

2010-07-11 Thread Luc Préfontaine
. We monitor the situation however and will change our mind as soon as it looks promiding... Zack, keep the focus on the problem to solve :))) Luc P. Sent from my iPod On 2010-07-11, at 19:31, zkim wrote: Rich- It sounded to me like he was only saying that he's more familiar with Ruby/

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Luc Prefontaine
lifies it a lot. You cannot expect a tool to "guess" your project dependencies. Dependencies are a fact of life and cannot be avoided in any significant project. It's not "gargage"... -- Luc P. The rabid Muppet -- You received this message because

Re: A newbie's summary - what worked, what didn't

2011-03-28 Thread Luc Prefontaine
in day to day use by most of us. You should get used to it or live as an hermit on some far away mountain. Which I am tempted to do from time to time but for real bureaucratic issues like income tax reports :) Life can be hard... Luc On Sun, 27 Mar 2011 21:30:54 -0700 (PDT) ultranewb wrote: &

Re: A newbie's summary - what worked, what didn't

2011-03-28 Thread Luc Prefontaine
he above did not ring a bell. Hence the expectancy reset. Learn to live with it because there will not be a solution as simple as the one you expect in the near future. So much for FANPERV.. We should call this FAMUNE (FAilure to Meet Unrealistic Newbie's Expectations :) Luc O

ANN: Java dependency injection in Clojure

2011-05-03 Thread Luc Prefontaine
r. Comments are welcomed. The TODO list is not yet published but we see a few things we want to add to it especially in the area of resource management and some optimizations. Code wise I think it's not too horrible given that I had to squeeze this in my already ultra-tight schedule in the last

Re: ANN: Java dependency injection in Clojure

2011-05-07 Thread Luc Prefontaine
you have suggestions, they are welcomed. I saw DynaSpring but lacked the time to go trough it throughly. I will have more time in the next month to look at it deeper. Thanx, Luc P. On Wed, 4 May 2011 02:21:05 -0700 (PDT) Alessio Stalla wrote: > On 4 Mag, 06:53, Luc Prefontaine wrote: >

Re: New to Clojure

2011-05-20 Thread Luc Prefontaine
. > > Any help, tips, or insight would be very much appreciated on this > one! Is there is a more appropriate group to address this question? > > Thanks so much! > Dudaroo > -- Luc P. The rabid Muppet -- You received this message because you are su

Re: How to convert a string to a data structure

2011-05-25 Thread Luc Prefontaine
Use: (read-string (read-string "[{:a \"blah\" :b 23} {:d 34 :c \"hello\"}]") I believe your expression is wrong, (:d should be {:d. Luc P. On Wed, 25 May 2011 18:04:11 -0700 (PDT) ron peterson wrote: > Hi, > > If I have a following string for example:

Re: Recur and primitives?!?

2011-05-26 Thread Luc Prefontaine
h) > (> k m-v) (recur l (dec m)) > :else m) > > This bombs out with: > java.lang.IllegalArgumentException: recur arg for primitive local: h > must be matching primitive > > With 1.3.0-master-SNAPSHOT it works fine. Any ideas what I

Re: Recur and primitives?!?

2011-05-26 Thread Luc Prefontaine
boxed value. No mystery here. Life should be simpler in 1.3 in numeric computations. Luc P. On Fri, 27 May 2011 13:31:46 +1000 Andreas Kostler wrote: > The question is though, why doesn't this work to begin with and why > does it work on 1.3.0-master-SNAPSHOT...? Is it brok

Re: hammock driven development...

2011-06-10 Thread Luc Prefontaine
ed that this stuff was no accident. It's an efficient thinking process and it's not restricted to my bath. I remember mornings where I woke up and wrote solutions on paper, they literally popped in my mind suddenly by the moment I woke up. Luc P. On Thu, 9 Jun 2011 19:09:34 +0200 Brian Mari

Follow-up: Java dependency injection in Clojure

2011-06-19 Thread Luc Prefontaine
onths aside from eventual bug fixes. The other features on the to do list can wait. Luc P. -- 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 mod

Re: Clojure for large programs

2011-07-02 Thread Luc Prefontaine
gt; (get (transient {:a 1}) :a) 1 user=> ((transient {:a 1}) :a) 1 user=> (get [1] 0) 1 user=> (get (transient [1]) 0) 1 user=> (get #{1} 1) 1 user=> (get (transient #{1}) 1) nil <--- Oups... user=> Dunno if it is fixed in 1.3, no time to play with it these times. -- L

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-06 Thread Luc Prefontaine
And I thought my posts were long :) Luc P. On Wed, 6 Jul 2011 19:26:04 -0700 (PDT) nchubrich wrote: > It did go on too long. I hope when someone \does read it, they will > see I am not being wholly unreasonable. > > On Jul 6, 7:21 pm, Ken Wesson wrote: > > On Wed,

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
in industry seriously > considers Clojure for enterprise systems. -- Luc P. The rabid Muppet -- 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: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
red "enterprise" then? > > > > On 10/07/2011, at 9:07 AM, Sean Corfield wrote: > > > >> In which case, apologies to Shree... but those lists don't really > >> offer many companies that would generally be considered > >> "enterprise&qu

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Luc Prefontaine
Hey, if it does not take a year and an army of nuclear scientists to implement, it would already be better : On Sun, 10 Jul 2011 09:22:18 +0530 Vivek Khurana wrote: > On Sun, Jul 10, 2011 at 9:06 AM, Luc Prefontaine > wrote: > > > > Maybe we should create somethi

Re: Is gensym used for anything except alpha-conversion in macros?

2011-07-10 Thread Luc Prefontaine
No, use it any time you need an arbitrary symbol. On Sun, 10 Jul 2011 10:41:56 +0200 Kazimir Majorinc wrote: > Is gensym used for anything in Clojure except for alpha-conversion in > macros? > -- Luc P. The rabid Muppet -- You received this message becaus

Re: Local bindings w/o let

2011-07-10 Thread Luc Prefontaine
binding without a > > let? > > > > Question 2: What is the map   {:added "1.0"} doing? > > > > Thanks. > > cmn > -- Luc P. The rabid Muppet -- You received this message because you are subscribed to the Google Groups "Cloju

Re: Local bindings w/o let

2011-07-10 Thread Luc Prefontaine
ot;x" is a different binding in each of the forms, not the same "x" across forms. Luc P. On Sun, 10 Jul 2011 16:51:32 -0700 (PDT) octopusgrabbus wrote: > If the function is called with one argument, what Clojure language > rule allows x to appear outside the vector brack

Re: Results from 2011 State of Clojure survey

2011-07-13 Thread Luc Prefontaine
We use 1.2 in prod with protocols... no need to wait for 1.3 Luc P. On Wed, 13 Jul 2011 06:52:01 -0400 Albert Cardona wrote: > Chas, > > "It seems that relatively few people are taking advantage of some of > Clojure’s most sophisticated and unique features: metadata; protocol

Re: meta data question

2011-07-13 Thread Luc Prefontaine
:doc "Returns the value mapped to key, not-found or nil if key not present."} works because a contains the fn object (get in this case). If your intent is to get the meta data of an unnamed fn at runtime the above solves your issue. Luc P. On Wed, 13 Jul 2011 18:35:00 -0700 (PDT) Tim

Re: meta data question

2011-07-13 Thread Luc Prefontaine
By string I mean human readable... On Wed, 13 Jul 2011 21:56:58 -0400 Luc Prefontaine wrote: > # is a string representation of > the fn object, not the object itself. > > user=> (def a get) > #'user/a > user=> (meta a) > {:ns #, :name get, :file > "

Re: Expanding symbols and expression in macros.

2011-07-13 Thread Luc Prefontaine
(defmacro choose [[c choices] & body] `(choose* (fn [~c] ~@body) ~choices)) <--- not ~@, just ~ ~@ expects a sequence result In your first example, [:a :b :c] is a sequence but in the second example, y is not. body is a sequence (& body), using ~@ there is ok there. Luc P. On

Re: Anyone on Google+ yet?

2011-07-14 Thread Luc Prefontaine
features and now, apart from the occasional annoying red > notification icon in Gmail, I can completely ignore it. > > Is it just a case of "ooh, shiny! Google released a new toy!" or is > there actually some tangible useful benefit to a developer being on > G+? -- Luc P.

Re: how to preserve the natural reading order in clojure program?

2011-07-17 Thread Luc Prefontaine
Use (declare ...) to declare vars not yet defined (vars include fns). You will be able to preserve the presentation order you want. This will also make it clear which "implementation details" are defined in the same source file versus stuff imported from another name space. Luc P.

Re: how to preserve the natural reading order in clojure program?

2011-07-17 Thread Luc Prefontaine
erent name spaces is even more work. Luc P. On Sun, 17 Jul 2011 04:33:19 -0700 (PDT) Jevgeni Holodkov wrote: > Hello, > > Usually, when I write a program, I tend to organize the function to > keep with higher abstraction on the top and the details implementation > in the

Re: The Last Programming Language

2011-07-20 Thread Luc Prefontaine
deal with. Divide to conquer they say... I think this division created faked walls that slowed down improvements in software in general. Luc P. On Wed, 20 Jul 2011 10:22:13 -0400 daly wrote: > On Tue, 2011-07-19 at 22:16 -0700, Sean Corfield wrote: > > On Tue, Jul 19, 2011 at 5:14

Re: One syntax to rule them all

2011-07-23 Thread Luc Prefontaine
ource constraints, mobile apps,...) Not having read-eval in this context is acceptable for a number of very good reasons as Rich explained. But this does not mean that this recipe should be applied wall to wall to all Clojure implementations. Luc P. On Sun, 24 Jul 2011 00:12:02 +1200 Mark Derr

Re: JavaScript is Assembly Language for the Web

2011-07-25 Thread Luc Prefontaine
in the 1980s/90s in low level libraries and in resource constrained environments (bank tellers, ...) Being able to use Java libs from Clojure in the same fashion is valuable. No one would like to rewrite all the Java libs in Clojure or any other of today's high level language. It's simply

Re: ClojureScript Memory Requirements

2011-07-26 Thread Luc Prefontaine
You can lower the values. I changed them to -Xmx1G -Xms1G There was not enough memory on my machine to meet these values. My next laptop will have 8Gigs of RAM but now I am topped to 4Gigs... Luc P. On Tue, 26 Jul 2011 09:53:06 -0400 Tamreen Khan wrote: > I've removed the first t

Re: The Number of Clojure (Was: Alright, fess up, who's unhappy with clojurescript?)

2011-07-26 Thread Luc Prefontaine
No need to wait in desperation for this, just add a filter rule in your email client to send these to trash directly. I have a couple of these and it saves me a significant # of frustrating hours :) Luc P. On Tue, 26 Jul 2011 21:30:25 -0700 (PDT) pmbauer wrote: > These "unhappy"

Re: Libraries and build management hell

2011-07-28 Thread Luc Prefontaine
that's a breeze compared to the hell we went through with the build process before jumping in the Leiningen wagon. Luc P. On Thu, 28 Jul 2011 16:49:42 -0700 Sean Corfield wrote: > On Thu, Jul 28, 2011 at 2:23 PM, Michal B > wrote: > > Why does it have to be so complicated to use

Re: Digest for clojure@googlegroups.com - 14 Messages in 9 Topics

2011-07-28 Thread Luc Prefontaine
have created something as coherent as Clojure. It's entirely up to you to live with hairy dependency problems if you wish so. Choose your own hell, use Maven as-is, Ant or even manage you dependencies by hand with -cp .... when starting the JVM. Luc P. On Fri, 29 Jul 2011 01:23:08 +0

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-30 Thread Luc Prefontaine
od track record decision wise + an astounding achievements. Stop hammering on him and if you are not happy with Clojure, find another language that matches your aspirations. They are plenty out there. Luc P. daly wrote: > > > Try to see the situation from the lead developer pe

Re: clojurescript additional js dependencies

2011-08-01 Thread Luc Prefontaine
s about 28kb (5kb > zipped) in advanced mode for a simple example. > -- Luc P. The rabid Muppet -- 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 tha

Re: clojurescript additional js dependencies

2011-08-02 Thread Luc Prefontaine
buzz. It's nearly 700 lines. Not sure you would like to code that directly in JavaScript:) (I would not) Luc P. On Tue, 2 Aug 2011 11:21:08 +0300 Sergey Didenko wrote: > Yes, after compiling this example and its raw Google Closure > equivalent: > > (ns bgcolor > (:r

Re: clojurescript additional js dependencies

2011-08-02 Thread Luc Prefontaine
Hi Rich, Zero footprint ? If you ever approach that goal I suggest a name change like ClojureRTA (Clojure Running on Thin Air:)) Luc P. On Tue, 2 Aug 2011 20:25:43 -0400 Rich Hickey wrote: > That said, it is our intention to look at minimizing the base > footprint as far as we ca

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Luc Prefontaine
otherwise. I rarely now type code to call a function without the required parenthesis. The advantage here is that most of the time you have less code lines to deal with compared to its Java equivalent. Luc P. On Tue, 2 Aug 2011 15:19:05 -0700 Sean Corfield wrote: > On Tue, Aug 2, 201

Re: Coding Standard - ns usage

2012-11-11 Thread Luc Prefontaine
that once you require a name space, is entirely loaded so the explicit narrowing of function used looks to me an overkill. Especially if you have an alias in your require call. There's no possible confusion with an alias and calls are can easily be searched as text strings which all IDEs

Re: Coding Standard - ns usage

2012-11-11 Thread Luc Prefontaine
l play with this in the next couple of days. Luc On Sun, 11 Nov 2012 14:26:03 -0800 Mark Engelberg wrote: > I can relate to Denis' issue. I find it pretty common to have a > common set of dependencies across every file in a project. Copying > and pasting this header to every

Re: lein gets error java 1.6.0_26 ???

2011-08-18 Thread Luc Prefontaine
You are missing the robert hook library. https://github.com/technomancy/robert-hooke This is used by leiningen and should be installed as part of the leiningen install. Did you do a clean reinstall of leinigen with the windows dist to ensure you have all the pieces ? Luc P. On Wed, 17 Aug

Re: a question about using the delay macro

2011-08-22 Thread Luc Prefontaine
Or you could use Boing to create your data source and hide most of that wiring away from your code. I am doing a sales pitch here for my own stuff :))) https://github.com/lprefontaine/Boing/blob/master/examples/spring-1-to-boing.clj Luc P. On Mon, 22 Aug 2011 03:04:29 -0700 (PDT) "M

Re: Define a protocol as a superset of another

2011-08-28 Thread Luc Prefontaine
On Sun, 28 Aug 2011 14:19:46 -0400 Alexandre Patry wrote: Some reading: http://david-mcneil.com/post/1475458103/implementation-inheritance-in-clojure Luc P. > Hi, > > I would like to define a protocol as a super set of another. For > example: > > (defprotoc

Re: Define a protocol as a superset of another

2011-08-28 Thread Luc Prefontaine
tocol to change them. It's not inheritance, it's overriding implementations. Luc P. On Sun, 28 Aug 2011 14:42:46 -0400 Alexandre Patry wrote: > > On 2011-08-28, at 2:27 PM, Luc Prefontaine wrote: > > > On Sun, 28 Aug 2011 14:19:46 -0400 > > Alexandre Pa

Re: Could anyone explain to me why ^hint woks?

2011-08-31 Thread Luc Prefontaine
If I recall correctly, #^String is the "old" type hint syntax. Can't remember when the change occurred however. The later (^String) is the syntax to use. Luc P. On Wed, 31 Aug 2011 19:45:56 -0700 (PDT) yeejlan wrote: > Hi Guys, > > Here is what I did: > > us

Re: Guidelines for contributing?

2011-09-01 Thread Luc Prefontaine
Look at this: http://clojure.org/contributing Luc P. On Thu, 1 Sep 2011 04:53:20 -0700 (PDT) Ralph Moritz wrote: > Hi Clojurians! > > I created my first JIRA issue today (CLJ-834), but I didn't assign it > to anyone, because I didn't know who to assign it to! Also, I

Re: coming from statically typed oo languages - how do deal with complex objects graphs in clojure?

2011-09-03 Thread Luc Prefontaine
quot;Returns the meaningful "blblblbl..." string. It expects a single parameter, the length of the returned string" [length] ...) You can describe the expected inputs and the result, ... Do the same thing with your name space definitions, protocols. ... It's easy, fits with your

<    1   2   3   4   >