[ANN] clojure.java.jdbc 0.2.3 available on Maven Central

2012-06-20 Thread Sean Corfield
Just two changes in this release: * as-str now treats a.b as two identifiers separated by . so quoting produces [a].[b] instead of [a.b] This was a bug that I'm kind of surprised no one had tripped over yet. I fell over it as soon as I tried to build a DSL on top of the library. * Add :connectio

Re: correctness / error checking for Clojure

2012-06-20 Thread Ambrose Bonnaire-Sergeant
Hi Chris, Many of your ideas are already implemented in Typed Racket. For using the context of following the current branch to refine the type, see occurrence typing (paper, "Logical Types For Untyped Languages"). Typed Racket combines static checks and runtime contracts in a very cool way. You

Re: correctness / error checking for Clojure

2012-06-20 Thread Jack Moffitt
> So taking up the task of insuring correctness/consistency but leaving aside > static typing as is typically practiced.   How can we best catch errors and > inconsistencies in our code before our end users do? How can we do this > better than any competing system (like Haskell)? How quickly can er

correctness / error checking for Clojure

2012-06-20 Thread cperkins
Awhile back I read a short essay by Olin Shivers (*) wherein he observed that static typing could help the compiler optimize code for the best performance, check the code for correctness/consistency and also provided a bit of documentation to the interface of a function. This one activity, sta

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-20 Thread John Gabriele
On Jun 18, 10:23 pm, Chris Zheng wrote: > I was using textmate and a repl for the longest time because I was put off > by the intricacies of emacs.. and then {snip} > Now I have everything I need to develop in clojure like hinting, > autocomplete and docs. Most importantly, it has a black backgro

Re: clojurescript crate library fails on non-nested list of tags

2012-06-20 Thread Sean Neilan
Actually, (crate/html [:div] [:div]) works! I don't need to put all the elements into a list! Nevermind! On Wed, Jun 20, 2012 at 4:03 PM, Sean Neilan wrote: > (Sorry it took me a while to respond.) > > I can do that. But, that crashes when I pass that list into another > crate/html function. >

Re: clojurescript crate library fails on non-nested list of tags

2012-06-20 Thread Sean Neilan
(Sorry it took me a while to respond.) I can do that. But, that crashes when I pass that list into another crate/html function. I think I'll write a patch for this. On Sun, Jun 10, 2012 at 12:44 AM, Dave Sann wrote: > probably something like: > > (map crate/html (list [:div.class1] [:div.class

Re: How to speed up Clojure Training for New Recruitment

2012-06-20 Thread Andy Coolware
> Oh, and I also believe training is mostly a waste of resources. Training is > pushing information. It really depends how it is constructed. If it is a domain knowledge - this is just a info push. If this is a skill to be acquired - I have seen many hands on dedicated labs very effective. Now

Re: source of functions

2012-06-20 Thread Phil Hagelberg
On Wed, Jun 20, 2012 at 8:13 AM, Rogier Peters wrote: > With all the higher-order functions in the new reducers, I was > wondering if it is possible to print a generated function, like using > (source f). You need serializable-fn for that: https://github.com/technomancy/serializable-fn -Phil -

Re: source of functions

2012-06-20 Thread Ambrose Bonnaire-Sergeant
This might possible in CLJS (?), but I don't think you can recover the source in Clojure. Thanks, Ambrose On Wed, Jun 20, 2012 at 11:13 PM, Rogier Peters wrote: > Hi, > > With all the higher-order functions in the new reducers, I was > wondering if it is possible to print a generated function, l

source of functions

2012-06-20 Thread Rogier Peters
Hi, With all the higher-order functions in the new reducers, I was wondering if it is possible to print a generated function, like using (source f). This doesn't work: user=> (defn f[x] (fn[y] (+ y x))) #'user/f user=> (def plus5 (f 5)) #'user/plus5 user=> (source plus5) Source not found nil -

Re: How to speed up Clojure Training for New Recruitment

2012-06-20 Thread Jay Fields
That's a complicated question. I think consultants* are incentivized to present new technologies to clients and convince them it's the right choice.** However, I don't think it ends up being the right choice for the company on most occasions. I wish that weren't true, but I believe that's the most

Re: Wildcards in Leiningen Dependencies Versions

2012-06-20 Thread Murtaza Husain
Phil, Tasillo thanks for the reply. The plugin is very helpful. On Tuesday, June 19, 2012 11:52:41 AM UTC+5:30, Tassilo Horn wrote: > > Phil Hagelberg writes: > > >> Does leiningen support wildcards in dependencies version numbers ? I > >> would usually like to use the latest version for some

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-20 Thread László Török
+1, I had the same experience as Chris, lot of frustration until I found Emacs-live On Jun 20, 2012 1:54 PM, "Chris Zheng" wrote: > I was using textmate and a repl for the longest time because I was put off > by the intricacies of emacs.. and then I found this: > > https://github.com/overtone/ema

Re: Standard alias for partial?

2012-06-20 Thread Joel Ericson
I propose using ☃. I don't think it has any other uses yet. ;) On Tue, Jun 19, 2012 at 8:57 PM, Joel Ericson wrote: > Only case I can see where it doesn't "work". > > user=> (def % partial) > #'user/% > user=> (map #(% + %) [1 2 3]) ;trying to use #(% + %) instead of #(partial > + %) > ClassCast

Re: Standard alias for partial?

2012-06-20 Thread Joel Ericson
Only case I can see where it doesn't "work". user=> (def % partial) #'user/% user=> (map #(% + %) [1 2 3]) ;trying to use #(% + %) instead of #(partial + %) ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn user/eval2/fn--3 (NO_SOURCE_FILE:2) ; (Also: my first post in this group

Re: memoization of an no-arg fn that returns a map?makes sense?

2012-06-20 Thread Maik Schünemann
Memoization of a no arg function sounds silly but maybe a deref is what you are looking for. The first time you access it it is computed the next times it is just there Am 19.06.2012 13:47 schrieb "Jim - FooBar();" : > Ok we've established that accessing records fields is much faster than > using

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-20 Thread Chris Zheng
I was using textmate and a repl for the longest time because I was put off by the intricacies of emacs.. and then I found this: https://github.com/overtone/emacs-live and the tutorial that recommended it http://www.vijaykiran.com/2012/01/11/web-application-development-with-clojure-part-1/ It's

Re: Standard alias for partial?

2012-06-20 Thread Vinzent
Why it has to be reader macro? I don't see any reason. среда, 20 июня 2012 г., 0:56:15 UTC+6 пользователь Jay Fields написал: > > I'd actually like to see %(...) become (partial ...), as I think > people associate % with anonymous functions. Which is why I chose (% > ...), as it's close to what

Re: How to speed up Clojure Training for New Recruitment

2012-06-20 Thread Julian
Thanks Jay, Those articles are indeed inspirational. I was just wondering - back from your TW days - would the arguments in those articles make sense for a TW consultant to present to a client? Cheers, Julian On Tuesday, 19 June 2012 01:22:34 UTC+10, Jay Fields wrote: > > > learning curve, an