Re: Need some help with static files and ring...

2010-10-21 Thread Luc
maybe. Luc P. On Oct 18, 3:20 pm, David Jagoe davidja...@gmail.com wrote: Hey Luc, Are you deploying to Tomcat using a war file? Are you perhaps missing the :web-content key in your project.clj file (I presume you're using Leiningen + leiningen-war) (defproject myproject 0.0.1   :description

Re: Scheduling state change?

2014-07-21 Thread Luc
Oups typo in my last reply should be (fn [] ) IPhone quirk, tiny, very tiny keyboard... 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

Re: [ANN] Release 0.34.0 of Counterclockwise

2016-05-05 Thread Luc
I remember this problem but this is an eclipse bug if my memory is not failing. They had removed Marketplace by mistake. Are you using the latest version of Eclipse ? Luc P. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Two suggestions re: core.spec, `ns`, and clojure 1.9alpha11

2016-08-22 Thread Luc
That emacs joke gets my week started with some abdominal pain  I support strictness  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 n

Re: AOT classes with clj files on classpath causing ClassNotFoundException

2016-10-12 Thread Luc
We AOT often dependent projects. We are very careful meeting the exclusions suggestions reported by lein deps :tree. 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

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Luc
Works like a charm from my ipad pro  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 moderated - please be patient with your

HTTPS for dev.clojure.org?

2017-01-09 Thread Luc
At a minimum, nginx could proxy jira no ? You could force http redirection to https. My 2 cents. 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 n

Re: beginning to learn Clojure after imperative programming my whole life

2017-08-09 Thread Luc
The other unpleasant option to climb the learning curve asap is to end up with a deadline to spit out a product  I did it, 5 months of pure Hell  After that the pain went away, either my brain adapted or my nervous system could not feel it anymore, can't remember 藍 Luc P. -- You received

Re: Any data about just how much loc Clojure shaves off java?

2017-11-20 Thread Luc
At least 7-10 times less code on average. Except for UIs, UIs are naturally bloated code wise  I spend much more time thinking about solving problems and testing than writing code. It was the reverse in other languages. And refactoring is a piece of cake, no need for these heavy tools found in

Re: Clojure for beginners

2017-12-06 Thread Luc
Hi, Peruse github and read some code until you can find an anchor point to get you started. You might find some problem/need solved that relates to some of your past experience and allows you to train with ‘real’ code. Luc P. -- You received this message because you are subscribed

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
reproduced at runtime and post the result here. I need to revive some setups, it's a project that had been put on ice for a while. Thank you, Happy New Year, Luc On Friday, 29 December 2017 01:02:51 UTC, Alex Miller wrote: > > What’s the full stack trace on the original exception? (Or if same repro

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
ade to 1.9 :) It's bizarre at best. Thank you, Luc P. On Saturday, 30 December 2017 00:17:47 UTC, Luc wrote: > > Hi Alex, > > here it is, I did not get through the compiler source code yet, it might > be obvious to you: > > java.lang.UnsupportedOperationException: Can't

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-29 Thread Luc
Miller wrote: > > On Fri, Dec 29, 2017 at 6:17 PM, Luc <lprefo...@softaddicts.ca > > wrote: > > >> here it is, I did not get through the compiler source code yet, it might >> be obvious to you: >> >> java.lang.UnsupportedOperationException: Can't type

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-28 Thread Luc
lerated so far ? I looked at the macro expansion of the defrecord but did not find anything wrong on the surface. Note that I did not yet attempt to run this project from source. That's forthcoming but I would expect it to crash at runtime.. Any idea is welcomed. Thank you, Luc P. --

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-03 Thread Luc
Should have posted this instead, same protocol. (defprotocol Anonymous (start-job! [this])) ;; Clojure 1.8.0 => (defrecord NoopJob [] Anonymous (start-job! [this] (yabug.services.logger/environment))) (clojure.core/zipmap '(__meta this __extmap) [__meta this __extmap])

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-03 Thread Luc
see the point of going down further on this path. I will change the macro code here accordingly. Luc P. On Tuesday, 2 January 2018 22:22:18 UTC, Nicola Mometto wrote: > > The code that caused this issue is > > https://github.com/clojure/clojure/commit/a1c3dafec01ab02fb10d91f98b9ff

Re: [ANN] Clojure 1.9.0 is now available!

2018-01-02 Thread Luc
sheq __extmap]))) yabug.jobs.noop.NoopJob Grr... Will sleep on it and toy with it tomorrow by expanding a bit the test cases. It's nearly 22:00 Morocco time here. I need a break and some sleep. Luc P. On Saturday, 30 December 2017 01:00:05 UTC, Alex Miller wrote: > > On Fri, Dec 29, 2017 at 6

[JOB] Remote Clojure Dev 2 month quick project 20-40 hours per week

2018-03-14 Thread Luc
Hi Arturo, this is how I work. Fully remote.B2B. Send me an email at lprefonta...@softaddicts.ca if you want us to discuss further. Thank you, Luc P. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

RE: [ANN] tools.trace 0.7.10

2018-09-28 Thread Luc
Oupse  I went a bit too fast on this post... sorry... Probably a sudden drop of caffein in my blood  That or I did not screw my head properly this morning 浪 Thank you Sean Luc P. -- You received this message because you are subscribed to the Google Groups "Clojure" grou

[ANN] tools.trace 0.7.10

2018-09-28 Thread Luc
in Morocco with a huge 4g pipeline. :) 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 moderated - please be patient with your

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Luc Prefontaine
changes and run a test suite against the new runtime within two weeks, maybe less. Luc On Mon, 2009-02-16 at 13:22 -0500, Stuart Halloway wrote: I agree with Walt, and there is no need to pressure the Prags, we are on it! :-) That said, it would be *very* helpful to me if we could get

Re: how to learn clojure ?

2009-02-19 Thread Luc Prefontaine
a closer look to the Lisp heritage. Luc On Thu, 2009-02-19 at 05:57 -0800, MLowman wrote: Programming Clojure is a good start. I have a copy myself. If there were a second book on Clojure, what approach would you like to see? On Feb 19, 6:46 am, Rayne disciplera...@gmail.com wrote: Telling

Re: how to learn clojure ?

2009-02-19 Thread Luc Prefontaine
learn to something you already know makes things harder to assimilate. The other approach of rewriting Java code to Clojure and improving the code is also a good complementary approach. Luc On Thu, 2009-02-19 at 12:34 -0500, David Nolen wrote: No offense here to Lispers but when I learn

Re: Clojure Naming Conventions

2009-02-21 Thread Luc Prefontaine
In our software, we use uppercase or +name+ as constant names. Both Java and RUBY use uppercase, I think it's more a matter of taste what you decide to use. Ideally it should be obvious by looking at the name that some name is a constant name. Both of the above satisfy this criteria. Luc On Sat

Re: Clojure Naming Conventions

2009-02-21 Thread Luc Prefontaine
uppercase for shared constants and +name+ for the Clojure only stuff that may eventually be shared in the future. Of course in a pure Clojure system, this may be unnecessary given the immutability by default behaviour. Luc On Sat, 2009-02-21 at 22:55 -0500, Chouser wrote: On Sat, Feb 21, 2009

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
in production , client caring to do, ... and other mundane tasks to get the bread and butter on the table. Comments/suggestions are welcomed... Luc On Fri, 2009-02-27 at 12:20 -0800, Paul Stadig wrote: I've recently done some experimentation with Clojure and Terracotta. I've detailed my experience

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
roots and refs also is something we want so we can initiate STM transactions involving multiple JVMs. We have much to learn from a prototype and that is what we strive to achieve the immediate future. After this step, real fun will begin, right now were having only an appetizer... Luc On Fri

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-27 Thread Luc Prefontaine
them removing unwanted classes from the configuration and tune the locking strategy as you test things. Luc On Fri, 2009-02-27 at 18:05 -0800, Rich Hickey wrote: On Feb 27, 6:54 pm, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Having the ability to redefine a function once for all

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Luc Prefontaine
. As of now we use a system property to toggle the modes, we will implement a transparent way (testing the presence of a terracotta property most probably). Luc On Sat, 2009-02-28 at 06:35 -0500, Paul Stadig wrote: My approach was just to share what few refs I wanted, but another approach (like Luc's

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread Luc Prefontaine
We think the same way. Our first implementation of an alternative to AtomicReference is straightforward, we will look at improving it if the need arises. It will be easier to do so when we get stats from Terracotta after running some benchmarks. There's much to do before getting there. Luc

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Luc Prefontaine
We will go for a TIM. Just looked at the doc and tes that would simplify our work a lot. Thank you, Luc On Sat, 2009-02-28 at 18:48 -0800, Nabib El-Rahman wrote: Hi guys, I work for Terracotta ( on the server side ) and find this work with Clojure + Terracotta very exciting. Writing

Re: Clojure + Terracotta = Yeah, Baby!

2009-03-01 Thread Luc Prefontaine
I'm in Montreal Quebec, we have several feet of snow here and still have a month of snow storms to go. Having some spare time I would love to visit you but there's too much work here and you area is a bit too far away :))) Luc On Sun, 2009-03-01 at 12:21 -0800, Amit Rathore wrote: Are any

Re: Laziness madness

2009-03-02 Thread Luc Prefontaine
confusion regarding laziness : Our brains is suppose to be like plasticine but as we grow older it gets a bit dryer :))) Luc On Mon, 2009-03-02 at 08:55 -0800, Bradbev wrote: On Mar 2, 3:29 am, Mark Volkmann r.mark.volkm...@gmail.com wrote: On Sun, Mar 1, 2009 at 11:06 PM, max3000 maxime.lar

Re: What is Clojure NOT good for?

2009-03-06 Thread Luc Prefontaine
to 8. When I started to code, computers were less powerful than the standard pocket calculator but we were doing a lot my designing accordingly. It's far more easier today given the amount of resources we have Luc On Fri, 2009-03-06 at 10:39 -0800, Dimiter malkia Stanev wrote: Clojure

Re: What is Clojure NOT good for?

2009-03-06 Thread Luc Prefontaine
it to save us time and pain ? BTW our internal git repositories (hosted on an XServer) respond pretty fast on our gigabit LAN :))) but not as fast a starting a REPL :))) Luc On Fri, 2009-03-06 at 14:50 -0800, Phil Hagelberg wrote: Luc Prefontaine lprefonta...@softaddicts.ca writes: I work

Re: What is Clojure NOT good for?

2009-03-10 Thread Luc Prefontaine
... Today, we can choose the appropriate technology for the task to do since we are now working on our own products. Our approach has not changed except that we have greater latitude in what we decide to use (and of course greater potential to hang ourselves). Luc On Tue, 2009-03-10 at 09:53 +0100

Re: I got to use Clojure at work today !!!

2009-03-17 Thread Luc Prefontaine
changes in our code when the lazy stuff came into play but it was not a pain to adapt. We should start testing this within 2 weeks. Luc On Tue, 2009-03-17 at 03:57 -0700, Elena wrote: On Mar 17, 1:27 am, Jeffrey Straszheim straszheimjeff...@gmail.com wrote: Only to do a tiny little test w

Re: I got to use Clojure at work today !!!

2009-03-17 Thread Luc Prefontaine
Sometimes I feel lucky to be able to take my own decisions and turn our development strategy on a dime :. My partners rely on me for these decisions and we never regretted one so far. 1.0 should not be too far away so your waiting is near it's end... :))) Luc On Tue, 2009-03-17 at 07:23

Re: Clojure STM and deadlocks

2009-03-17 Thread Luc Prefontaine
to be rewritten... Any attempt to custom fit an application design with a real or supposed internal behaviour of STM is bad... Guessing performance levels from an internal behaviour could be as bad as in the relational database early age. Luc On Tue, 2009-03-17 at 14:21 -0500, Mark Volkmann wrote: On Tue

Re: Slash mystery

2009-03-19 Thread Luc Prefontaine
back to the age of lint does not look to me a progress, more like a regression... Luc On Thu, 2009-03-19 at 11:53 -0400, Stephen C. Gilardi wrote: On Mar 19, 2009, at 11:33 AM, Michael Wood wrote: Fair enough, but why does the (defn) succeed if these symbols are reserved? Clojure does

Re: March 20th 2009 Rich Hickey Appreciation Day!

2009-03-21 Thread Luc Prefontaine
together these concepts that make up Clojure is a significant step for the entire software community. Now, it's up to us the community to implement applications in Clojure and give it a significant exposure to the rest of the world. Luc Préfontaine Armageddon was yesterday, today we have a real

Re: STM and useful concurrency

2009-03-23 Thread Luc Prefontaine
applications written in other languages with Clojure equivalents. It's looks much more complex to implement and use STM in other languages because of the lack of the default immutability rule that Clojure provides. I apologize to those who believe very hard in their daily horoscope : Luc

Re: Scala vs Clojure

2009-03-31 Thread Luc Prefontaine
the product becomes chaotic and points in every directions. Luc On Tue, 2009-03-31 at 17:44 +0200, Christian Vest Hansen wrote: On Tue, Mar 31, 2009 at 5:20 PM, Chas Emerick cemer...@snowtide.com wrote: We shipped production software built in Scala last year, but likely will never do so again

Re: A large Clojure deployment

2009-04-08 Thread Luc Prefontaine
a larger audience and that's good for all of us. Luc On Thu, 2009-04-09 at 06:06 +1200, Abhishek Reddy wrote: On 4/8/09, Baishampayan Ghose b.gh...@ocricket.com wrote: Excuse my ignorance, but which one is the first famous Clojure app? That could be a reference to Luc Prefontaine's

Re: Is Clojure production ready?

2009-04-16 Thread Luc Prefontaine
are probably all dreaming around here :) Luc On Thu, 2009-04-16 at 04:14 -0700, André Thieme wrote: I suggest you to use Clojure. There is no more risk involved than with anything else. Clojure supports in its current version all of Java. It has very nice libs, macros, cuncurrency engine

Re: Is Clojure production ready?

2009-04-16 Thread Luc Prefontaine
of the times 20 code lines or less to do that. Luc On Thu, 2009-04-16 at 07:38 -0700, Stuart Sierra wrote: On Apr 16, 10:00 am, Greg Harman ghar...@gmail.com wrote: - Don't let people use arbitrary versions of Clojure and Java (and Contrib, if you'll use it). Pick one, package it with your

Re: The Path to 1.0

2009-04-17 Thread Luc Prefontaine
and that should remain your main responsibility but for all the other stuff you could establish the priorities and guidelines to follow. Then the community could tackle these things in an orderly fashion. Consensus can be a great thing but often it costs precious time... Luc On Fri, 2009-04-17 at 06

Clojure to the rescue....

2009-05-22 Thread Luc Prefontaine
back to more serious stuff on our product. Luc Préfontaine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group

Re: Spring and Clojure

2009-06-03 Thread Luc Prefontaine
of the low level stuff we wrote in Java. Being curious, can you shed any light of the use you would make of Clojure beans ? Luc P. On Wed, 2009-06-03 at 09:02 -0700, Dmitriy Kopylenko wrote: Hello. I'm just wondering is there a way to create Clojure beans and inject them into other Spring beans

Re: Silly question from Programming Clojure

2009-06-04 Thread Luc Prefontaine
is driven by the var, not the value, it's like our sweethearts, they drive the show and they can unbind us at any time : Luc On Thu, 2009-06-04 at 08:28 -0400, Andrew Wagner wrote: Hey ya'all! Just got my copy of Programming Clojure last night (great book, kudos Stuart!). I've got a silly

Re: catching exception error

2009-06-11 Thread Luc Prefontaine
\ IllegalArgumentException. Did you print the RuntimeException ? There might a be a text messages there that can tell us where it came from within the Clojure run time. Luc On Thu, 2009-06-11 at 10:12 -0700, peg wrote: Hi clojurians, I was happily clojure-coding whent I tried to catch

Re: You know you've been writing too much Clojure when...

2009-06-12 Thread Luc Prefontaine
You get back into Java code and find it cumbersome, clunky, (add your own) ... and wish you had written it in Clojure in the first place. Then you realize that this code was written ... before Clojure was born. Bouhouhou !! Luc On Fri, 2009-06-12 at 13:24 +0200, Christophe Grand wrote: You

Re: What are people using Clojure for?

2009-06-18 Thread Luc Prefontaine
to create and extend. Luc On Thu, 2009-06-18 at 09:39 -0700, Howard Lewis Ship wrote: I've been doing a number of presentations on Clojure lately (TheServerSide, Portland Code Camp, Open Source Bridge), and I'm getting some interest in Clojure and functional programming. A question that keeps

Re: Casting java arguments...

2008-10-14 Thread Luc Prefontaine
. 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 a workaround... I was able to register the driver using -Djdbc.drivers

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=

Re: Casting java arguments...

2008-10-16 Thread Luc Prefontaine
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) --~--~-~--~~~---~--~~ You

Re: Clojure + Terracotta

2008-10-18 Thread Luc Prefontaine
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 some Java components and it's a matter of weeks

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, I think after 1st year of Clojure life it's good

Re: Using a Java Debugger with Clojure

2008-10-29 Thread Luc Prefontaine
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 Consultant Object Partners, Inc

Re: (string?) bug

2008-11-08 Thread Luc Prefontaine
. 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-11-08 at 23:07 -0700, Brian Doyle wrote: This seems like a bug

Re: Clojure for LISP programmers....

2008-11-16 Thread Luc Prefontaine
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) (baz) (plugh)) This particular CL difference is listed on the wiki page you listed: http

Re: Clojure for LISP programmers....

2008-11-17 Thread Luc Prefontaine
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-11-17 at 14:22 +0100, Konrad Hinsen

Re: French translation of the Clojure rationale

2008-11-23 Thread Luc Prefontaine
tant mieux, ça nous fait plus d'air à respirer :))) Luc On Sun, 2008-11-23 at 04:01 -0800, verec wrote: Cela dit, au cours des derniers mois je me suis tenu dans des groupes de discussions de programmation francophones et j'ai découvert qu'un nombre assez important de gens sont soit très mal

Re: JMS and Clojure?

2008-11-24 Thread Luc Prefontaine
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 already experimented, with good results: rhickey: I did some playing (in Clojure) with JMS and OpenMQ

Re: Serializing Clojure objects

2008-12-02 Thread Luc Prefontaine
interrupting the service. e) I want the data serialized, not the access to it... If size of the YAML output becomes an issue then zip it. Luc On Tue, 2008-12-02 at 00:57 -0800, Tayssir John Gabbour wrote: Hi! How should I approach serialization? I made a little test function which

Re: memory issue with nth

2008-12-06 Thread Luc Prefontaine
(repeatedly (fn [] 0)) 1000)) Elapsed time: 128680.557706 msecs 0 user= Increasing the # of iterations still works for me with a 128M heap. I refreshed my Clojure version from CVS today (Saturday). Luc On Sat, 2008-12-06 at 22:18 -0800, Paul Mooser wrote: I also have this problem, unless I

Re: How to encapsulate local state in closures

2008-12-31 Thread Luc Prefontaine
do not deal with these issues very often or in a very superficial way. I expect this will have to change when parallel designs will become common. I would rather have more options than less to tune up my design and increase throughput... so atoms are welcomed. Luc From a guy who's been doing

Re: making code readable

2008-12-31 Thread Luc Prefontaine
agree ultimately code is the thing that runs... not your comments or your documentation. Many people still speculate about system behaviour from the comments they read and eventually derive plans from this. Bad mistake... go to the code for your own sake. Luc On Wed, 2008-12-31 at 08:41 -0800

Re: making code readable

2008-12-31 Thread Luc Prefontaine
to be adapted to the languages used today and coders have to show some willingness to add significant comments to their code. If people are reluctant to do this then such a tool does not have any future : Luc On Wed, 2008-12-31 at 17:23 -0800, Joseph Jones wrote: On Dec 31, 2008, at 1:29 PM, Luc

Re: making code readable

2009-01-01 Thread Luc Prefontaine
gives you a sense of where we come from and where we might be going. As for Steve's post, it's about serious matters. Nonetheless, have a Happy New Year :))) and sorry for the heavy post... Luc On Thu, 2009-01-01 at 09:32 -0600, Hugh Winkler wrote: I hesitate to extend this unpleasant thread

Re: Clojure now running in production

2009-01-13 Thread Luc Prefontaine
to understand what went wrong. Luc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr

Re: Parallel inner product

2009-01-26 Thread Luc Prefontaine
;)) but I would be surprised that you beat dot-product... Luc On Mon, 2009-01-26 at 16:08 -0800, redhotmonk wrote: Could someone who has a machine with more than 2 cores please run the following code? It calculates the inner product of two given vectors. Usage: (inner-product [1 2 3] [4 5 6

Re: lancet can now build itself!

2009-01-27 Thread Luc Prefontaine
the rebuild of clojure and clojure-contrib in build.clj to keep your versions of the jar files and I restricted these jars usage to lancet tasks only. Thank you, Luc On Mon, 2009-01-26 at 14:34 -0500, Stuart Halloway wrote: Lancet is a build DSL written in Clojure, and a sample app in the book [1

Re: lancet can now build itself!

2009-01-27 Thread Luc Prefontaine
if there are any impacts with the changes made recently. I am due for a minor release in production next week so I have plenty of time to adapt my code if any changes are required. Thanks, Luc On Tue, 2009-01-27 at 16:12 -0500, Stuart Halloway wrote: Hi Luc, Are you suggesting a new

Re: lancet can now build itself!

2009-01-27 Thread Luc Prefontaine
mystery solved in this disorganized period of my life, pre/post-production periods are always a bit awkward... Luc On Wed, 2009-01-28 at 09:22 +0200, Michael Wood wrote: On Tue, Jan 27, 2009 at 11:53 PM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: No need for an official release

Re: Memory Consumption of Large Sequences

2009-02-02 Thread Luc Prefontaine
do you think ? Luc On Mon, 2009-02-02 at 13:48 -0800, Keith Bennett wrote: Paul - Clojure definitely has its benefits, but in terms of memory footprint, Java appears to be *much* more economical, unless elements can be discarded shortly after use as Christian describes, in which case it's

Re: Memory Consumption of Large Sequences

2009-02-02 Thread Luc Prefontaine
the way :))) Regards, Luc On Mon, 2009-02-02 at 17:32 -0800, Keith Bennett wrote: Luc - It is I (Keith) who posed the original question. I am just now learning Clojure, and for me, understanding what's going on underneath the surface helps me understand how to use the language properly

Re: Is Clojure more functional then Scala?

2013-12-16 Thread Luc Prefontaine
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 like. I have to admit at first the syntax form was awkward, but im starting

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

2013-12-23 Thread Luc Prefontaine
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 ko...@sietsma.com wrote: This ties in nicely to my summary of how I feel about static typing

Re: Is Clojure right for me?

2013-12-26 Thread Luc Prefontaine
? Luc P. -- Luc Prefontainelprefonta...@softaddicts.ca 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

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 On Thursday

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
to 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 goal in not to learn

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 product. All this took around 9 months

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

2013-12-27 Thread Luc Prefontaine
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 lprefonta

Re: Is Clojure right for me?

2013-12-27 Thread Luc Prefontaine
that this is the 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... That's maybe

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 is some kind

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 27, 2013, at 11:18 PM, guns wrote: (defmacro dump

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 (! ch))) But this: (defn bar [ch] (! ch)) (defn foo

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 statement and suddenly

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 workshttps://github.com/krisajenkins/yesql#rationale, and how to use it https

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

2014-01-07 Thread Luc Prefontaine
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. On Tuesday, 7 January 2014 21:05:53 UTC+1, Luc wrote

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 an exception

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 above answer should

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

2014-01-21 Thread Luc Prefontaine
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. Of course if you read and eval

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. Sorry Luc P

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. 'Improving' str may

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 that call this base function and do

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

2014-03-17 Thread Luc Prefontaine
of 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 be implemented

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

2014-03-17 Thread Luc Prefontaine
. 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 same time L2 and L3 caches are so small

  1   2   3   4   >