Re: An open call to the community: Let's prepare for 1.3

2011-09-03 Thread Luc Prefontaine
Being curious I checked references to contrib in our code base. Anyone knows what will happen to clojure.contrib.def and clojure.contrib.trace ? Luc P. On Sat, 3 Sep 2011 15:43:06 -0700 (PDT) Lee Hinman wrote: > I recommend the lein-multi plugin for testing against multiple > versi

Re: An open call to the community: Let's prepare for 1.3

2011-09-03 Thread Luc Prefontaine
Thanx I crossed another list in a different page stating the new names and structures but did not find this one. I'll keep the bookmark. So the only thing left on my list is c.c.trace. Any ideas of the future plans ? Need a volunteer ? Is there a bigger plan to regroup dev utilities ? Lu

Re: An open call to the community: Let's prepare for 1.3

2011-09-03 Thread Luc Prefontaine
Hi Phil, We use Eclipse/CCW, not much choices here, we have a mixed language app and as I age I have less memory space for different dev tools :) I'll ask Stuart if he has any plans for this. On Sat, 3 Sep 2011 20:37:36 -0700 Phil Hagelberg wrote: > On Sat, Sep 3, 2011 at 5:37

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

2011-09-04 Thread Luc Prefontaine
to refs and atoms. I suggest you look at atoms to hold values if they can mutate globally or at recur if you need to implement some recursion and rebind new values within a function's body. Luc P. On Sun, 04 Sep 2011 18:55:12 +0200 Dennis Haupt wrote: > -BEGIN PGP SIGNED

Re: An open call to the community: Let's prepare for 1.3

2011-09-05 Thread Luc Prefontaine
My CA has been mailed yesterday, should be in by Friday. I'll post my registration request to clojure-dev around that time. I'll have a look at the issue this week. Luc On Sun, 4 Sep 2011 14:10:17 -0700 (PDT) Stuart Sierra wrote: > FYI, I spoke with Luc and told him I'm happy

Re: Clojure vs Scala - anecdote

2011-09-07 Thread Luc Prefontaine
Hi, We have been running Clojure daemons 24/7 in prod. since Jan. 2009. We also considered Scala back in 2008. We could not agree more with your conclusions :) Luc P. On Tue, 6 Sep 2011 22:32:47 -0700 Sean Corfield wrote: > I just wanted to share this experience from World Sing

Re: Migration to 1.3 for mortals

2011-09-08 Thread Luc Prefontaine
Hi, I'll take care of c.c.trace. Just need to register on clojure-dev, my CA should be in by tomorrow. Luc P. On Thu, 8 Sep 2011 16:49:42 -0700 Sean Corfield wrote: > On Wed, Sep 7, 2011 at 5:44 AM, Jan Rychter > wrote: > > How do we mere mortals (that develop and ma

Re: Migration to 1.3 for mortals

2011-09-10 Thread Luc Prefontaine
of the old contrib available under the new modular structure to create apps based on 1.3. 1.3 will not be left on the shelf waiting for the outcome of this issue, it will be used. That's the ultimate test :) Luc P. On Sat, 10 Sep 2011 10:50:16 -0400 David Nolen wrote: > On Sat, Sep 10, 2

Re: Migration to 1.3 for mortals

2011-09-10 Thread Luc Prefontaine
to keep is the trace module by Stuart Sierra and we volunteer to move it to 1.3 and maintain it. Nothing to panic about here. A new release always involves some code rework anyway. Luc P On Sat, 10 Sep 2011 12:31:14 -0700 Sean Corfield wrote: > On Sat, Sep 10, 2011 at 9:46 AM, Jan Rychter

Re: Calling a Java call with array from Clojure

2011-09-13 Thread Luc Prefontaine
user=> (class (into-array String ["s" "a"])) [Ljava.lang.String; Luc P. On Tue, 13 Sep 2011 18:21:31 -0700 (PDT) ron peterson wrote: > I have a following API call that I need to make from Clojure: > > class A > > doSomething(java.lang.String arg1, Strin

Re: Calling a Java call with array from Clojure

2011-09-13 Thread Luc Prefontaine
Oups I did read the code entirely... you defined a varg method ? On Tue, 13 Sep 2011 21:34:33 -0400 Luc Prefontaine wrote: > user=> (class (into-array String ["s" "a"])) > [Ljava.lang.String; > > Luc P. > > > On Tue, 13 Sep 2011 18:21:31 -0700

Re: Calling a Java call with array from Clojure

2011-09-13 Thread Luc Prefontaine
My typos errors are horrible tonight, new laptop, new keyboard. So if you defined a variable argument Java method the String array should work. But I am not certain about the intent of ... in your code excerpt. On Tue, 13 Sep 2011 21:43:03 -0400 Luc Prefontaine wrote: > Oups I did read

Re: Calling a Java call with array from Clojure

2011-09-14 Thread Luc Prefontaine
On any platform, calling conventions are fictions enforced at the machine code level by compilers :) It's not specific to the JVM. Luc P. On Tue, 13 Sep 2011 19:33:54 -0700 (PDT) Alan Malloy wrote: > Varargs are a fiction of javac, and do not exist at the bytecode > level. In real

Re: confusion with map and dosync

2011-09-14 Thread Luc Prefontaine
. It's not because the REPL gives an output that you are not dealing with a lazy sequence. The REPL will consume the lazy seq if it's the last result available and walk through it to print you an output. Luc P. On Wed, 14 Sep 2011 22:39:42 -0700 (PDT) "c.taylor" wrote: >

Re: Is there a reason that def- isn't part of the core lib?

2011-09-18 Thread Luc Prefontaine
e get Clojure written in itself, the core has to be cleaned up of non-essential things and moved to layers were implementation differences have less/no impacts while helping shrink it. Luc P. On Sun, 18 Sep 2011 13:10:20 -0400 Stuart Halloway wrote: > > I don't understand your comment

Re: Clojure embedded in a Java Application

2011-09-18 Thread Luc Prefontaine
its use. https://github.com/lprefontaine/Boing/wiki/Using-Boing-from-java Luc P. On Sun, 18 Sep 2011 18:46:29 -0500 Kevin Downey wrote: > Just skimming this on the phone, has no one mentioned RT.map? > On Sep 18, 2011 5:58 PM, "Eamonn" wrote: > > Hi Meikel,Ken > >

Re: trace-forms macro

2011-09-23 Thread Luc Prefontaine
uable for runtime tracing. Luc P. On Mon, 12 Sep 2011 11:31:39 +0200 Jonathan Fischer Friberg wrote: > Hello, > > I made a small macro, if anyone is interested. > https://gist.github.com/1209498 > > It wraps one or more forms and if an exception is thrown, > prints th

Re: trace-forms macro

2011-09-24 Thread Luc Prefontaine
Fine, I will have a closer look at the issues you mentioned. I'll repost here when the code is available so you can have a look at it. Luc On Sat, 24 Sep 2011 21:33:47 +0200 Jonathan Fischer Friberg wrote: > > > > I am moving the trace contrib stuff to 1.3. I would like to

Re: trace-forms macro

2011-09-27 Thread Luc Prefontaine
Fine, I merged the new version and I will add a couple of tests related to these changes. Luc On Mon, 26 Sep 2011 18:46:12 +0200 Jonathan Fischer Friberg wrote: > I looked at it today and have updated the macro. > (same gist: https://gist.github.com/1209498) > > Additions: >

tools.trace (was Re: trace-forms macro on the clojure mailing list)

2011-09-27 Thread Luc Prefontaine
README.MD is on its way and I still need to review the code to see if they are remaining rough edges. Nothing beats a paper output and a coffee... I expect to work on the build process next week-end and get the first version out next week. Time to go to bed, my eyes are now useless ... Luc P. On Mon

Re: error after install java IO file not found

2011-09-28 Thread Luc Prefontaine
r c:/clojure-1.2.1/examples/snake.clj I am assuming that contrib will expand in clojure-contrib-1.2 and that the jar will be named clojure-contrib-1.2.jar but check the actual names and substitute them accordingly in the command line above. Luc On Wed, 28 Sep 2011 22:52:38 -0700 (PDT) jayvandal wr

Re: Using Clojure to Generate Java Source?

2011-09-29 Thread Luc Prefontaine
hopping to correct the problem. Luc On Thu, 29 Sep 2011 20:22:50 +0200 Dennis Haupt wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > compile to java class, decompile to java source. works in theory, > until someone actually looks at the source ;) > > btw, your ne

Re: suggestion for clojure development

2011-10-01 Thread Luc Prefontaine
hell/paradise accordingly :) Luc P. On Sat, 1 Oct 2011 20:10:47 -0700 (PDT) Tal Liron wrote: > On Saturday, October 1, 2011 9:34:46 PM UTC-5, David Nolen wrote: > > > > To give some context: > > > > I appreciate the context, David, and I agree that the change needed &g

Re: Equality comparison in 1.3

2011-10-02 Thread Luc Prefontaine
maps, then we cannot consider 3.0 and 3 to be equal else where, it's a matter of consistency. Luc P. On Sun, 2 Oct 2011 12:29:01 -0700 (PDT) Chris Perkins wrote: > Follow-up question: Can someone explain the rationale behind the > change to = semantics between integers and floating-po

Re: Equality comparison in 1.3

2011-10-02 Thread Luc Prefontaine
on: Duplicate key: 3 user=> (= 3.0 3) true user=> {3.0 :a 3 :b} {3.0 :a, 3 :b} This is non sense, if 3.0 and 3 are to be equal, then the last map should also fail with a duplicate entry. It's an inconsistent behavior. On Sun, 2 Oct 2011 13:31:40 -0700 (PDT) Chris Perkins wrote: >

Re: Equality comparison in 1.3

2011-10-02 Thread Luc Prefontaine
accepted side of the fence, then all the semantic issues that do not respect this must change. I would rather see something like this in the code: (= 3 (long 3.8)) or even better (= 3 (trunc 3.8)) Which clearly states what we want to test. Luc P. On Sun, 2 Oct 2011 14:03:47 -0700 (PDT)

ANN: tools.trace 0.7.1

2011-10-02 Thread Luc Prefontaine
n mess I created two days ago :)) Why 0.7.1 ? a) 7 is a lucky number :)) b) This library is near it's final release except if someone has a wonderful idea that would triple its size. -- Luc P. The rabid Muppet -- You received this message because you are subscr

Re: ANN: tools.trace 0.7.1

2011-10-03 Thread Luc Prefontaine
Oups, this one slipped.. I'll fix in the README now... On Mon, 03 Oct 2011 22:46:42 +0200 Rob Wolfe wrote: > Luc Prefontaine writes: > > [...] > > > Just add: > > > > [org.clojure/tools.trace "0.7.1"] > > > > to your dependency li

Re: ANN: tools.trace 0.7.1

2011-10-03 Thread Luc Prefontaine
Done... no need to re-publish yet. Thanx Luc On Mon, 3 Oct 2011 19:04:58 -0400 Luc Prefontaine wrote: > Oups, this one slipped.. I'll fix in the README now... > > > On Mon, 03 Oct 2011 22:46:42 +0200 > Rob Wolfe wrote: > > > Luc Prefontaine writes: >

Re: clojure.contrib.except's future?

2011-10-13 Thread Luc Prefontaine
to collect more shrapnel fragments in that 1.3 migration effort :))) Luc P. On Thu, 13 Oct 2011 12:09:48 -0700 Sean Corfield wrote: > On Thu, Oct 13, 2011 at 11:19 AM, ffailla wrote: > > Does anyone now if clojure.contrib.except being ported to the new > > contrib?  Thanks. >

Re: About metadat and #^ macro.

2011-10-19 Thread Luc Prefontaine
e at the expense of generality. Type hints are to be to improve performance AFTER your code is more or less stable. If you use type hints early in your development, you will carry them all the way and that can be a significant pain. Luc P. On Wed, 19 Oct 2011 22:03:31 -0700 (PDT) mmwaikar

Re: About metadat and #^ macro.

2011-10-20 Thread Luc Prefontaine
the code up to now. Luc P. On Wed, 19 Oct 2011 22:49:46 -0700 (PDT) Alan Malloy wrote: > I agree with the general sentiment: add typehints later, and only if > you need performance in this particular part of the code. I object to > the characterization as a "small loss of perform

Re: Clojure 1.3 treatment of integers and longs

2011-10-20 Thread Luc Prefontaine
s in other environments, loosing its identity along the way and creating a Babel tower. Luc P. On Thu, 20 Oct 2011 09:00:23 -0400 Stuart Halloway wrote: > > Yes, I understand the behavior perfectly well. The primitive int > > gets converted to a Long immediately, as this code demon

Re: Clojure 1.3 treatment of integers and longs

2011-10-20 Thread Luc Prefontaine
ehind because it's carrying 32 bit values ? Obviously it creates issues when you work at the fringe but interop is not the purpose of Clojure. It happens to be much more easier to access the "outside" world than in other environments but it cannot justify to compromise the performance

Re: Clojure 1.3 treatment of integers and longs

2011-10-20 Thread Luc Prefontaine
rd in the Java compiler. You ran in the ClassCast exception by yourself. Clojure did not push you into it. When using Java interop you have to obey to Java rules and bend accordingly. It's not Clojure that needs to bend, it's you to adapt to the interop restrictions/conventions. If Java

Re: Clojure 1.3 treatment of integers and longs

2011-10-21 Thread Luc Prefontaine
background of individuals. If you know the rules relative to numerics in Clojure and why they have been chosen, then its perfectly rational. Read carefully: http://dev.clojure.org/display/doc/Documentation+for+1.3+Numerics They is nothing else to say about this subject. Luc On Fri, 21 Oct

Re: Function to generate a SQL IN clause from a list of values

2011-10-21 Thread Luc Prefontaine
user=> (str "('" (apply str (interpose "', '" [1 2 3 4 5])) "')") "('1', '2', '3', '4', '5')" Would be a way to do it. Interpose returns a lazy sequence so you need to apply str

Re: Function to generate a SQL IN clause from a list of values

2011-10-21 Thread Luc Prefontaine
It all depends if you sanitize the arguments yourself before building the SQL string... Luc On Fri, 21 Oct 2011 19:23:22 -0700 (PDT) Alan Malloy wrote: > Augh don't do this, you are begging for SQL injection attacks. I'll > set one of the elements in your list to: > &

Re: Function to generate a SQL IN clause from a list of values

2011-10-21 Thread Luc Prefontaine
Always forgetting this one :) It performs better than the other solutions... On Fri, 21 Oct 2011 21:15:51 -0700 (PDT) Alan Malloy wrote: > clojure.string/join > > On Oct 21, 8:54 pm, Shoeb Bhinderwala > wrote: > > Thanks. It is so much cleaner with interpose. > > >

Re: Clojure 1.3 treatment of integers and longs

2011-10-22 Thread Luc Prefontaine
e content of the map itself. If they help make interop calls smoother fine. But do not tie their Java semantic to the Clojure semantic. It's unrelated outside of the interop domain. I do not care about Java centric stuff. I adopted Clojure to get away from Java ASAP. Luc P. On Sat, 22 Oct

Re: Clojure 1.3 treatment of integers and longs

2011-10-22 Thread Luc Prefontaine
itself. Interop stuff is low level and should remain there. If a single interop implementation starts to influence the Clojure language and result in such short term and narrow scope decisions, we will all have a problem in the future. Luc P. On Sat, 22 Oct 2011 15:04:33 -0400 Paul Stadig wro

Re: Clojure 1.3 treatment of integers and longs

2011-10-22 Thread Luc Prefontaine
s. You have been mixing Java objects with primitive types defined by the JVM since you entered this discussion. It's two different things. On Sat, 22 Oct 2011 16:06:04 -0400 Paul Stadig wrote: > Luc, > > On Sat, Oct 22, 2011 at 3:40 PM, Luc Prefontaine < > lprefonta...@softaddict

Re: Clojure 1.3 treatment of integers and longs

2011-10-22 Thread Luc Prefontaine
ch. You are using Java objects as keys, not primitive types. You're not in Clojure's playground anymore, half of your map is in Java's own sandbox. What's missing from your shortened example ? On Sat, 22 Oct 2011 14:23:24 -0700 (PDT) Chris Perkins wrote: > On Saturday, Octo

Re: Clojure 1.3 treatment of integers and longs

2011-10-22 Thread Luc Prefontaine
Ha ! Ok, I missed the digression here and I now understand the issue. Considering that a PersistentArrayMap may eventually become a PersistentHashMap this opens the door to *funny* bugs. Is this the only known case ? Luc On Sat, 22 Oct 2011 18:55:52 -0400 Paul Stadig wrote: > On Sat, Oct

Re: Clojure 1.3 treatment of integers and longs

2011-10-23 Thread Luc Prefontaine
numeric values according to some interop convention that may vary according to the platform Clojure runs on. Luc P. On Sun, 23 Oct 2011 07:19:41 -0400 Paul Stadig wrote: > On Sat, Oct 22, 2011 at 5:51 PM, Stuart Halloway > wrote: > > > I am dropping off this thread now. At

Re: Clojure 1.3 treatment of integers and longs

2011-10-23 Thread Luc Prefontaine
On Sun, 23 Oct 2011 20:31:51 +0200 Ivan Koblik wrote: > Hello Luc, > > In all fairness I don't see how converting ints to Integers returned > by class methods would break the abstraction. If you start talking > about portability of Clojure code, then Long is as portable

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-25 Thread Luc Prefontaine
Please add me to "Clojure and the web", Luc P. On Tue, 25 Oct 2011 22:25:41 -0400 Michael Fogus wrote: > We built quite a large list before the internet graffiti started > taking over, so if you have an addition then please post it here and > it'll b

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-26 Thread Luc Prefontaine
Hi, it's me again, new subject: Java Dependency Injection using Clojure, presentation. 30mns max including Q&A. if it extends will end this with a couple of drinks. Please add me to the ClojureScript talk, Pallet and ClojureCLR. I'll bring my clones with me :) Thank you, Luc

Re: ClojureScript and Counterclockwise?

2011-10-27 Thread Luc Prefontaine
I run cljs_watch in a terminal window at the top of the project and I defined .cljs files to use the CCW editor. cljs_watch spots the changed .cljs files through Eclipse and recompiles on the fly. Then I refresh the browser. It does most of the job. Luc P. On Thu, 27 Oct 2011 10:27:29 -0700

Re: Leiningen: How to remove source code from uberjar

2011-11-03 Thread Luc Prefontaine
You have to make sure that all the dependencies you control are generated with :omit-source true But any dependency that has some clj files in its target will get bundled as is in the target jar. This includes Clojure itself,contrib, ... Luc P. On Thu, 3 Nov 2011 02:55:20 -0700 (PDT) finbeu

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread Luc Prefontaine
Same for me. I'll find a spot depending on the final schedule. I would like myself to attend some of these meetings :) Luc P. On Mon, 07 Nov 2011 13:31:47 -0500 daly wrote: > Well, despite my best efforts I'm unable to edit the spreadsheet. > > The Literate Software talk

Re: Overused phrases in the Clojure community

2011-11-17 Thread Luc Prefontaine
Maybe we should qualify non-idiomatic code as being "idiotmatic", that may help reducing the # of posts referencing "idiomatic". However this only a letter way from making (slight) mistakes in the posts :) I just spent my day's quota of idiotic writing ... Luc On

Re: clojure libs and logging

2011-11-22 Thread Luc Prefontaine
ematically. We do not use it here yet but at some point it will become unavoidable. Luc P. On Mon, 21 Nov 2011 21:10:31 -0800 (PST) Keith Irwin wrote: > Folks-- > > I'm working on an experimental library which interfaces with external > resources (i.e., not purely functional)

Re: clojure libs and logging

2011-11-22 Thread Luc Prefontaine
einingen includes a workaround for this; you can set > :clean-non-project-classes in project.clj, but it's not on by default > since there are edge cases with protocols where it breaks. The option > Luc mentioned is from an older version where it was turned on by > default. > &

Re: [ANN] Drift DB

2011-11-28 Thread Luc Prefontaine
is dropped. drift_db/core.clj at line 155 is not selecting it as a potential attribute of an integer field. I'll patch it locally so I can continue to play with it. Any reason why the id type does not accept optional attributes ? I use id auto incremented keys everywhere :) Thank you, Lu

Re: [ANN] Drift DB

2011-11-30 Thread Luc Prefontaine
get there eventually (now I am laughing very loudly :) Luc On Wed, 30 Nov 2011 09:54:26 +0200 Michael Wood wrote: > Hi > > On 29 November 2011 07:03, Luc Prefontaine > wrote: [...] > > It yields in MySql: > > > > CREATE TABLE meta_entities  ( > >    id          in

Re: Drift DB

2011-11-30 Thread Luc Prefontaine
Thank you, Luc On Wed, 30 Nov 2011 07:18:56 -0800 (PST) Matt wrote: > This should now be fixed in version 1.0.6. > > -Matt > > On Nov 29, 12:03 am, Luc Prefontaine > wrote: > > Hi Matt, > > > > working with this stuff... pretty sure I ca

Re: Clojure list syntax sugar: f(x) notation

2011-12-27 Thread Luc Prefontaine
involving a mix of fns and macros ? I cannot see people having to dig to find out if some of these calls are macros versus fns and change the shape according to what is being called. You missed the point that I made about the fact that code is data and can be modified accordingly either through m

ANN: Boing update release

2011-12-27 Thread Luc Prefontaine
/Boing/wiki/Road-map. The jar files have been pushed to Clojars. Note that they are AOT compiled with no source code. This will likely change in 2012. The source code is properly tagged on Github so it's always possible to get at the source code if needed. Happy New Year... --

Re: Getting started with Counterclockwise

2011-01-18 Thread Luc Prefontaine
We have been using ccw for more than a year here. Never had significant problems with it nor with updates to it. We have been using Eclipse since 2002. Can you provide the plugin list from Eclipse ? (About -> Installation details) Luc P. On Tue, 18 Jan 2011 10:21:50 -0500 Ken Wesson wr

Re: Getting started with Counterclockwise

2011-01-19 Thread Luc Prefontaine
I invite others that find your tone inconvenient to do the same. You can still rant in the desert, at least I will not spend anymore time reading your unconstructive complaints. Have a nice day, Luc P. On Wed, 19 Jan 2011 08:49:35 -0500 Ken Wesson wrote: > On Wed, Jan 19, 2011 a

Re: Leiningen and apache commons

2011-01-19 Thread Luc Prefontaine
full name: (defn get-logger [] (org.apache.commons.logging.LogFactory/getLog (str *ns*))) Luc P. On Wed, 19 Jan 2011 16:49:11 -0800 (PST) Andreas Kostler wrote: > Hi All, > Can someone please tell me how to import the Apache commons net > library? I'm using leiningen. The pro

Re: Getting started with Counterclockwise

2011-01-20 Thread Luc Prefontaine
ve material, so I did not bother to > read further. > > Have a good day. > -- 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

Re: Calling .close() on resources -- with-open macro

2011-01-24 Thread Luc Prefontaine
; example, setup transaction-strategy based on the types of exception > thrown, (b) the exception 'A' is lost and I never come to know about > it. +1 > > Regards, > Shantanu > -- Luc P. The rabid Muppet -- You received this message because you ar

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-26 Thread Luc Prefontaine
somewhere. Depending on what your code does you may blow it even if you increase it significantly. Luc P. On Wed, 26 Jan 2011 07:04:51 -0800 (PST) Harrison Maseko wrote: > Hi all, > I need some help in understanding some basic concept. The book > Programming Clojure on pages 134 -

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-26 Thread Luc Prefontaine
>From what I recall from a previous thread it would require so much byte code >tweaking that Hot Spot optimizations would become useless. You can search the mailing list, you will find a couple of instructive discussions about this. Luc P. On Wed, 26 Jan 2011 10:01:04 -0800 Raoul Duke

Re: What is the difference between a tail-recursive function and a recursive function using recur?

2011-01-26 Thread Luc Prefontaine
and-coded with ASM > as my compiler doesn't do TCO yet). That seems to work but I wonder > what issues may come up. > > int fact(int n, int r) { > if (n == 0) return r; > else return fact(n-1, n*r); > } >0: iload_0 >1: ifne6 >4:

Re: Compilation question - why initialize classes when loading for compilation?

2011-01-26 Thread Luc Prefontaine
sure you are doing simple things in the class static initializers without any odd side effects. -- 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@googlegr

Re: Compilation question - why initialize classes when loading for compilation?

2011-01-26 Thread Luc Prefontaine
nother story I think. Passing this to the JVM doing the compilation is by far easier. Of course it might be quite an amount of work to add this in all the classes that do static inits but it could be a workaround for the most problematic cases. Luc P. On Wed, 26 Jan 2011 15:36:42 -0800 (PST) Paul M

Re: Compilation question - why initialize classes when loading for compilation?

2011-01-26 Thread Luc Prefontaine
Just keep the solution in your back pocket :) Luc On Wed, 26 Jan 2011 17:54:17 -0800 (PST) Paul Mooser wrote: > Thanks for providing some background and cases where you ran into this > as well - it's very helpful! > > Thus far I've been able to justify adding clojur

Re: Clojure 1.3.0-alpha4 - number wierdness

2011-02-01 Thread Luc Prefontaine
t even try 1.3 alpha yet). All the pros and cons are available in the mailing list archive, search for Enhanced primitive support. There's a lengthy thread about it (summer 2010). -- Luc P. The rabid Muppet -- You received this message because you are subscribed to the G

Re: Hosted REPL, suggestions?

2011-02-03 Thread Luc Prefontaine
or other Java centric IDEs. Luc P. On Thu, 3 Feb 2011 15:52:42 -0800 (PST) Stuart Sierra wrote: > The new Amazon Elastic Beanstalk hosts web apps packaged as WAR > files. I haven't heard of anyone using it with Clojure, but I know > Clojure works in WAR containers, so it shouldn&

Re: Hosted REPL, suggestions?

2011-02-03 Thread Luc Prefontaine
Of course I meant "why it would NOT work in any..." :) Luc P. On Thu, 3 Feb 2011 19:23:58 -0500 Luc Prefontaine wrote: > We deployed a Compojure app on the hospital intranet as a war file > in Geronimo a couple of months ago. > We ditched Glassfish for a number of reasons bu

Re: Confusion about JARs & Leiningen

2011-02-04 Thread Luc Prefontaine
section listing dependencies. Some will be flagged as required while others are optional. Each dependency states it's group, artifact is and version. Leiningen will pull these also. With other libraries, you may have to refer to the project home site to find out what extra compo

Casting java arguments...

2008-10-09 Thread Luc Prefontaine
laptop following you there :))) If you need some help to pull it together, I could start this thing. The HTML stuff on the site is ok if you already know a good chunk about clojure and you need quick references. Of course the implementation has to be stable enough, you're the judge o

Re: Casting java arguments...

2008-10-09 Thread Luc Prefontaine
ld like to force the registering of the driver myself at startup avoiding the whole issue. Any ideas ? Sorry for what may seem "basic" questions... Thanks Luc On Thu, 2008-10-09 at 13:03 -0400, Stephen C. Gilardi wrote: > > > On Oct 9, 2008, at 12:06 PM, Luc Prefontaine wr

Re: Casting java arguments...

2008-10-09 Thread Luc Prefontaine
w. It loads fine with this patch. Thank you all, Luc On Thu, 2008-10-09 at 16:54 -0400, J. McConnell wrote: > > The following fails: > > > > user=> (cast java.sql.Driver (clojure.lang.RT/classForName > > "com.mysql.jdbc.Driver")) > > java.lang.

Re: Casting java arguments...

2008-10-14 Thread Luc Prefontaine
this eventually. Thank you all for the suggestions. Luc Now I still did not understand why it was not working when I was calling the library On Fri, 2008-10-10 at 02:45 -0700, mritun wrote: > > > On Oct 10, 1:46 am, Luc Prefontaine <[EMAIL PROTECTED]> > wrote: > > I found

Re: Making a living on Clojure

2008-10-14 Thread Luc Prefontaine
now 3 (me and my two partners). Who else ? Luc On Tue, 2008-10-14 at 13:13 -0700, Fogus wrote: > I am attempting to work Clojure (at least partially) into my job, but > in doing so I wonder how many of you here use it at your own jobs as > oppo

Re: Casting java arguments...

2008-10-16 Thread Luc Prefontaine
Ouf ! I'm not insane, (at least regarding this bug :))) I just realized that when I explicitly register the driver, there are now two instances begin added: Clojure user=> (println (enumeration-seq (. java.sql.DriverManager getDrivers))) ([EMAIL PROTECTED]) ;; No instance registered nil user=> (c

Re: Casting java arguments...

2008-10-16 Thread Luc Prefontaine
ql :)). A change in the actual implementation would surprise me, too many performance impacts and possible behaviour problems may rise from a change. Thank you, Luc On Thu, 2008-10-16 at 22:03 -0400, Stephen C. Gilardi wrote: > Class/forName "com.mysql.jdbc.Driver") --~--~

Re: Erlang vs Clojure

2008-10-17 Thread Luc Prefontaine
our system even if not all the pieces are delivered in the very short term. Luc On Wed, 2008-10-08 at 06:59 -0700, Krzysztof Kliś wrote: > Due to my interest in Erlang and functional programming in general, > for some time I have been following a blog by Jonas Bonér at > http://jonasboner

Re: Clojure + Terracotta

2008-10-18 Thread Luc Prefontaine
c tests. Thank you, Luc On Sat, 2008-10-18 at 08:50 -0400, Rich Hickey wrote: > On Fri, Oct 17, 2008 at 8:01 PM, Luc Prefontaine > <[EMAIL PROTECTED]> wrote: > > I am not very far from tackling this issue. In our bus messaging system, we > > are using Terracotta with som

Re: offtopic - where are you come from? (poll)

2008-10-20 Thread Luc Prefontaine
Montreal prov. of Québec in Canada Luc Préfontaine On Fri, 2008-10-17 at 11:53 +0200, Mikael Hall wrote: > I'm from sweden. > > Mikael Hall > > > 2008/10/17 Rastislav Kassak <[EMAIL PROTECTED]> > > > Hello Clojurians, > &g

Re: Using a Java Debugger with Clojure

2008-10-29 Thread Luc Prefontaine
ix of Spring beans, Java and Clojure components. Luc On Tue, 2008-10-28 at 11:58 -0700, Scott Hickey wrote: > It should work. Before I had a debugging working in Eclipse with Groovy, I > used JSwat, JEdit and Ant for project work with success. > > Scott Hickey > Senior Consulta

Re: Using a Java Debugger with Clojure

2008-10-29 Thread Luc Prefontaine
o load the beans on demand. We avoided POJOs invoked by the Spring framework for the moment but later we will look at the possibility of getting Clojure code invoked by Spring using some code bridge in Java. Luc On Wed, 2008-10-29 at 09:53 -0400, Stuart Halloway wrote: > Hi Luc, > >

Re: (string?) bug

2008-11-08 Thread Luc Prefontaine
user=> (.getClass (.toString (java.lang.StringBuilder. "hello"))) java.lang.String user=> (.getClass "ABCDE") java.lang.String Clojure uses Java String, not StringBuffer or StringBuilder as it's String representation. You can write your own predicate if you need one. Luc On Sat, 2008

Re: Clojure for LISP programmers....

2008-11-16 Thread Luc Prefontaine
me to market schedules. I think that Clojure's main audience are these people drowning in this ocean of java code, not the LISP advocates :))) Luc On Sun, 2008-11-16 at 15:32 -0800, Dave Newton wrote: > I'll add that: > > (cond (foo bar) (baz plugh)) => (cond (foo) (bar)

Re: Clojure for LISP programmers....

2008-11-17 Thread Luc Prefontaine
f the world... It's not only a taste issue, it's about habits and mind flexibility. Like any new language (I'm up to around 15 excluding half a dozen assembly languages) I had to bend my mind a bit to learn Clojure but no need to get myself lobotomized here :))) Luc On Mon, 2008-

Re: French translation of the Clojure rationale

2008-11-22 Thread Luc Prefontaine
spagnole. Ça vous pouvez vous en douter à la lecture de ce qui précède mais je pense qu'il y a des réalités qu'il faut savoir reconnaître... Bonne chance tout de même, cousins :))) A+ Luc Montréal, Québec On Sat, 2008-11-22 at 04:43 -0800, peg wrote: > j'ai oublié ... peut

Re: French translation of the Clojure rationale

2008-11-23 Thread Luc Prefontaine
t pas, ça c'est un vrai régionalisme ! http://fr.wiktionary.org/wiki/contrecrisser Ceux qui ne s'adaptent pas meurent c'est la vie et c'est tant mieux, ça nous fait plus d'air à respirer :))) Luc On Sun, 2008-11-23 at 04:01 -0800, verec wrote: > > Cela dit, au cou

Re: JMS and Clojure?

2008-11-24 Thread Luc Prefontaine
ok is in progress, i am also catching up rapidly about the language and expect to spit out more elegant code in the near future :))) Luc On Mon, 2008-11-24 at 16:36 -0800, falcon wrote: > What is the best way of accessing Java Messaging Service though > Clojure? > > Sounds like Rich has

<    1   2   3   4