Re: [ANN] Leiningen 2.0.0 released

2013-01-20 Thread kinleyd
I join Peter Taoussanis in congratulating and thanking Phil on this release. Thanks for the hard work you put in, and for making life saner for the rest of us. On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote: Hey, congratulations! Thank you so much Phil and everyone

Re: [ANN] Leiningen 2.0.0 released

2013-01-20 Thread kinleyd
I join Peter Taoussanis in congratulating and thanking Phil on this release. Thanks for the hard work you put in, and for making life saner for the rest of us. On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote: Hey, congratulations! Thank you so much Phil and everyone

Re: [ANN] Leiningen 2.0.0 released

2013-01-20 Thread kinleyd
I join Peter Taoussanis in congratulating and thanking Phil on this release. Thanks for the hard work you put in, and for making life saner for the rest of us. On Sunday, January 20, 2013 1:28:07 PM UTC+6, Peter Taoussanis wrote: Hey, congratulations! Thank you so much Phil and everyone

Re: [ANN] Leiningen 2.0.0 released

2013-01-20 Thread kinleyd
Oops, repeated posts in the middle of a connection drop. Apologies. On Sunday, January 20, 2013 2:35:16 PM UTC+6, kinleyd wrote: I join Peter Taoussanis in congratulating and thanking Phil on this release. Thanks for the hard work you put in, and for making life saner for the rest of us.

Re: Unexpected failure (split function)

2013-01-20 Thread Thomas
Tested this with Lein 2.0.0 and it works fine now. Thanks everybody for the quick response. Thomas On Friday, January 18, 2013 9:45:41 PM UTC, Andy Fingerhut wrote: Thanks, Chas. Sorry for the noise. I tested Thomas's bad case against the latest reply (version 0.1.8) standalone, and the

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Brandon Bloom
There are 176 forks on GitHub. Even assuming that all 51 contributors have a public fork (most probably do), that's 125 potential contributors unaccounted for. Only 29% of those forks account for an accepted contribution. What portion of the remainder might have been contributors? I was

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Marek Šrank
On Saturday, January 19, 2013 8:56:28 PM UTC+1, Andy Fingerhut wrote: Irakli: I am curious about the possibility of auto-creating patches from git pull requests, in case that would bridge the divide between people that would prefer submitting pull requests, and Clojure screeners that

Re: How to (easily) show the advantages of Clojure

2013-01-20 Thread Bruce Durling
Perhaps a bit too specialised, but there is a good example for hadoopers here: https://groups.google.com/forum/?fromgroups=#!topic/cascading-user/i3b4KZsusVg Paco Nathan rewrote the CoPA examples from his cascading work in Cascalog. cheers, Bruce -- @otfrom | CTO co-founder @MastodonC |

Current 'best practice' stack for CRUD website?

2013-01-20 Thread Simon Brooke
I've finally cleared other projects from my desk far enough that I'm about to start trying to reimplement the CRUD part of http://sh.scenehere.info/ in Clojure. I've been meaning to do this for a long time, but paying projects have got in the way. However, it's now urgent because my old

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Josh Kamau
Hi Simon; Because we are in 2013, you could do alot of clientside templating on the client. So your clojure(ring/compojure) backend becomes a service for producing and consuming json. Then you use one of the many clientside javascript solutions to convert the json into html(or something like

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michael Klishin
2013/1/20 Aaron Cohen aa...@assonance.org Clojure is hardly the only project that doesn't accept pull requests. The Linux Kernel and Guava are two that immediately come to mind. For Guava's rationale, you might read the following:

[ANN] - 11th modern-cljs tutorial updated

2013-01-20 Thread Mimmo Cosenza
FWIW, I just updated the latest tutorial (11th) of modern-cljs series of tutorials on clojurescript with some more code on DOM events and manipulations using domina (which has very inspiring code - thanks Luke) and hiccups (thanks Tero).

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Shantanu Kumar
I really like Enlive, with its very clear separation of logic and presentation. Are there any other libraries I should be looking at at the templating layer, or is Enlive currently the one to go for? Enlive and Hiccup seem to be popular in the Clojure community. There are also ClojureScript

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michael Fogus
I'll just add a few points: Pull requests are not likely to happen. It's not worth fighting over. However, I think that is a weak excuse for not contributing. If you want to contribute a complex bug fix, then the patch process is trivial by comparison. If you want to contribute doc fixes and

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Mimmo Cosenza
Enlive and Hiccup seem to be popular in the Clojure community. I confirm that I use them on the server side. I'm now experimenting the corresponding enfocus [1] and hiccups [9] on the client-side, where I use also domina. I'll give also a try to dommy [3], which seems to be promising, even

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread kinleyd
Thanks Shantanu Kumar for your post - very informative. On Sunday, January 20, 2013 9:18:37 PM UTC+6, Mimmo Cosenza wrote: Enlive and Hiccup seem to be popular in the Clojure community. I confirm that I use them on the server side. I'm now experimenting the corresponding enfocus [1] and

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread kinleyd
Well said, Fogus, well said. On Sunday, January 20, 2013 9:16:35 PM UTC+6, Fogus wrote: I'll just add a few points: Pull requests are not likely to happen. It's not worth fighting over. However, I think that is a weak excuse for not contributing. If you want to contribute a complex

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 9:16:35 AM UTC-6, Fogus wrote: I'll just add a few points: Pull requests are not likely to happen. It's not worth fighting over. However, I think that is a weak excuse for not contributing. If you want to contribute a complex bug fix, then the patch process

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread David Nolen
It makes more sense to compare language projects. I note that ClojureScript does about as well as Scala in this comparison and much better than CoffeeScript. Scala and CoffeeScript use pull requests. I also do not like JIRA. But I think the happiness of contributing to ClojureScript far outweighs

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michael Fogus
Please don't ask people to not rehash this discussion. Don't tell them that it is a 'weak reason' for not contributing and 'not worth fighting over'. Well, that's only my opinion. I happen to think it's not worth fighting over so I don't. Rich has put in place a system he's happy with. I

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michael Klishin
2013/1/20 Michael Fogus mefo...@gmail.com We're all friends here. Everyone wants to help. There are ways to help that do not involve endless mailing list threads and personal distaste of process. Michael, I'm sorry but given Clojure/core's track record of *actions* (or lack of them,

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 10:22:04 AM UTC-6, Fogus wrote: Please don't ask people to not rehash this discussion. Don't tell them that it is a 'weak reason' for not contributing and 'not worth fighting over'. Well, that's only my opinion. I happen to think it's not worth fighting

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michael Fogus
I'm sorry but given Clojure/core's track record of *actions* (or lack of them, rather) this sounds a bit offensive to people who are not Clojure/core members, Clojure committers or screeners. Adding source annotations to a Github project's source base and starting an IRC channel have nothing

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Anthony Grimes
On Sunday, January 20, 2013 11:33:56 AM UTC-6, Fogus wrote: To make matters worse, Clojure/core consistently avoids discussing these issues in public I would guess because their position hasn't changed since the last time. This is only speculation. A page like what Anthony

unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread Jim - FooBar();
Hi everyone, I came back to a project of mine after a couple of months only to be surprised by some cryptic exception! Imagine a 2d vector: (def coords [[0 0] [0 1] [1 0] [1 1]]) ;;vector of vectors of longs ;;but let's try ints which are cached: (def coords (mapv #(apply vector-of :int

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Nelson Morris
On Sun, Jan 20, 2013 at 8:55 AM, Shantanu Kumar kumar.shant...@gmail.com wrote: I really like Enlive, with its very clear separation of logic and presentation. Are there any other libraries I should be looking at at the templating layer, or is Enlive currently the one to go for? Enlive and

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Shantanu Kumar
I just noticed that mustachquerade has a nice perf benchmark on various Mustache implementations: https://github.com/davidsantiago/mustachequerade Shantanu On Jan 21, 12:03 am, Nelson Morris nmor...@nelsonmorris.net wrote: On Sun, Jan 20, 2013 at 8:55 AM, Shantanu Kumar

ArrayVector for small vectors?

2013-01-20 Thread Jim - FooBar();
I've recently noticed this: http://dev.clojure.org/jira/browse/CLJS-453 It is for cljs but it makes sense right? We do have them for maps - how hard can it be to make them for small vectors as well? In fact I'm surprised we don't have them already but perhaps I'm missing crucial details...

Re: ArrayVector for small vectors?

2013-01-20 Thread David Nolen
I think we would need to see more comprehensive benchmarks before we can come to any conclusions. On Sun, Jan 20, 2013 at 2:03 PM, Jim - FooBar(); jimpil1...@gmail.comwrote: I've recently noticed this: http://dev.clojure.org/jira/browse/CLJS-453 It is for cljs but it makes sense right? We

ring-form-authentication - something between a library and scaffolding for form based authentication

2013-01-20 Thread Zbigniew Łukasiak
I have not seen something like that in Clojure - so as my first coding excercise in Clojure I've started porting my Perl library. https://github.com/zby/ring-form-authentication Quoting the README: It lets you quickly add to your application /login and /logout pages pluss all the redirects

Re: ArrayVector for small vectors?

2013-01-20 Thread Jim - FooBar();
yes of course, I noticed your comment and I 'm not saying otherwise but on the other hand I can't help it...this got me excited! Jim On 20/01/13 20:07, David Nolen wrote: I think we would need to see more comprehensive benchmarks before we can come to any conclusions. On Sun, Jan 20, 2013

Re: ArrayVector for small vectors?

2013-01-20 Thread Philip Potter
I second this. Optimizations should be backed by evidence. Further, the tail in PersistentVector seems to serve a similar role, at a high level, as ArrayMap does for maps, so it would be slightly surprising to me if this would have much effect. Phil On Jan 20, 2013 8:07 PM, David Nolen

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Irakli Gozalishvili
I just wanted to mention that pull request was one of the several notes I've made, but looks like it's being irritating enough people that it completely took over this thread. The problem itself is not a JIRA or that sending patches is too hard (even though I think it's too much incidental

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Brandon Bloom
I think the inflammatory thread subject didn't help... Java and cross-browser CI both sound great. I don't know if Clojure/core already has CI or what, but maybe you should take these ideas over to another thread? Possibly on the Dev mailing list. Because of the intentionally slow pace of

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread AtKaaZ
is this line 244? https://github.com/jimpil/Clondie24/blob/master/src/Clondie24/games/chess.clj#L238 On Sun, Jan 20, 2013 at 7:58 PM, Jim - FooBar(); jimpil1...@gmail.comwrote: Hi everyone, I came back to a project of mine after a couple of months only to be surprised by some cryptic

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Sean Corfield
On Sun, Jan 20, 2013 at 3:27 AM, Simon Brooke still...@googlemail.com wrote: So I'm looking around at what is the right stack to use to build a CRUD web application in Compojure. I really like Enlive, with its very clear separation of logic and presentation. Are there any other libraries I

Re: ArrayVector for small vectors?

2013-01-20 Thread Jozef Wagner
Hi, I've created that ticked and the initial implementation. Currently I don't have a spare time to prepare a jsperf test, sorry for that. In the ClojureScript, the performance gain is by skiping fromArray (directly create instance instead) and nth (in destructuring, directly access

Clojure integration testing

2013-01-20 Thread Andy Fingerhut
There currently is such testing of patches submitted to Clojure, which I've implemented with some Clojure programs I've cooked up. It tests all patches attached to Clojure JIRA tickets to see if they apply cleanly and whether the code compiles and passes existing unit tests. I've been

Re: ring-form-authentication - something between a library and scaffolding for form based authentication

2013-01-20 Thread Nelson Morris
On Sun, Jan 20, 2013 at 12:13 PM, Zbigniew Łukasiak zzb...@gmail.com wrote: I have not seen something like that in Clojure - so as my first coding excercise in Clojure I've started porting my Perl library. https://github.com/zby/ring-form-authentication Quoting the README: It lets you

Re: Clojure Literature

2013-01-20 Thread Rich Morin
On Jan 18, 2013, at 07:04, Brian Marick wrote: On Jan 18, 2013, at 8:46 AM, Reginald Choudari adnanchowdhur...@gmail.com wrote: I am looking for a new Clojure book to get me started on the language. Here's a beginning Clojure reading list, with some discussion:

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michał Marczyk
Clojure and contrib have long had extremely thorough CI in place, including matrix testing with multiple JVM implementations: http://build.clojure.org/ Cheers, M. On 20 January 2013 22:04, Brandon Bloom snprbo...@gmail.com wrote: I think the inflammatory thread subject didn't help... Java

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Michał Marczyk
On a separate note, if there are indeed tons of bugs when it comes to cross-browser compatibility in ClojureScript, pointing (as many as possible of) them out would be extremely helpful, indeed more than submitting the actual patches. That would also not require going through the patch submission

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread Jim - FooBar();
yes exactly! In the commit that github shows last line 238 is line 244 in my current branch...Since you're looking into it i can commit everything now so we're all on the same page... Jim On 20/01/13 21:10, AtKaaZ wrote: is this line 244?

Loading a file from classpath

2013-01-20 Thread Josh Kamau
Hi; I have a clojure lein project. I have a directory called resources which i believe is the classpath root directory.. I just want to (slarp resources/myfile.txt) , This doesnt work. How do i specify the path properly such that i will always work even after i uberjar or uberwar ? thanks josh

Re: Loading a file from classpath

2013-01-20 Thread Josh Kamau
Hi ; I figured it it out... (load /myfile);loads my file relative to classpath thanks Josh On Mon, Jan 21, 2013 at 2:14 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi; I have a clojure lein project. I have a directory called resources which i believe is the classpath root directory..

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Irakli Gozalishvili
On Sunday, 2013-01-20 at 14:27 , Michał Marczyk wrote: On a separate note, if there are indeed tons of bugs when it comes to cross-browser compatibility in ClojureScript, pointing (as many as possible of) them out would be extremely helpful, indeed more than submitting the actual patches.

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread AtKaaZ
I've managed to reduce this to: (ns Clondie24.games.xx1) (def ^:const mappings-8x8 (mapv #(apply vector-of :int %) [[0 0] [1 0] [2 0]]) ) (defn translate [mappings] (let [list-loc (.indexOf mappings [0 1])] )) (translate mappings-8x8);throws = (pst *e 121312)

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread AtKaaZ
Actually, it's even simpler: (def ^:const mappings-8x8 (mapv #(apply vector-of :int %) [[0 0] [1 0] [2 0]]) ) (class mappings-8x8) ;throws CompilerException java.lang.RuntimeException: Can't embed object in code, maybe print-dup not defined: clojure.core$reify__6186@1028,

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread AtKaaZ
Caused by: RuntimeException Can't embed object in code, maybe print-dup not defined: clojure.core$reify__6186@4e5db277 clojure.lang.Util.runtimeException (Util.java:223) clojure.lang.Compiler$ObjExpr.emitValue (Compiler.java:4571) clojure.lang.Compiler$ObjExpr.emitValue

Re: Loading a file from classpath

2013-01-20 Thread David Powell
If you want read a file from the classpath as a string, you can use clojure.java.io/resource; (require 'clojure.java.io) (slurp (clojure.java.io/resource META-INF/MANIFEST.MF)) On Sun, Jan 20, 2013 at 11:34 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi ; I figured it it out... (load

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread Jim - FooBar();
wow! nice job AtKaaZ...so if I understood correctly there is no issue with my code yes? translate-position sits at the bottom of my API (cannot live without it)... Jim On 21/01/13 00:33, AtKaaZ wrote: Caused by: RuntimeException Can't embed object in code, maybe print-dup not defined:

Re: unboxed primitives and *print-dup* odd exception!

2013-01-20 Thread AtKaaZ
yes, your code works if you don't use the ^:const, but why doesn't it work with ^:const when you just use the return of mapv (something with reify?)? It's either some clojure bug or missing feature, or something inherent that I don't understand(ie. maybe it doesn't make sense to def ^:const the

Re: [ANN] Leiningen 2.0.0 released

2013-01-20 Thread James Xu
Thanks! On Sunday, January 20, 2013 1:00:19 PM UTC+8, Phil Hagelberg wrote: Greetings fellow Clojure people. I've just pushed out the final release of Leiningen 2.0.0. The changes since the last release candidate have mostly been minor bugfixes. Highlights since 1.x include profiles, a

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-20 Thread Andy Fingerhut
On Jan 20, 2013, at 7:49 AM, Anthony Grimes wrote: In closing, I propose the following. If we're going to continuously deny people things they are accustomed to, instead of treating them like angry children having tantrums, why don't we get a response from clojure/core and have it

Re: Get digits of a number

2013-01-20 Thread Qiu Xiafei
yes... it would be better. On Sun, Jan 20, 2013 at 2:30 AM, David Brown cloj...@davidb.org wrote: Qiu Xiafei qiuxia...@gmail.com writes: (defn num-digits [num] (loop [n num res []] (if (zero? n) res (recur (long (/ n 10)) (cons (mod n 10) res) How about

Re: clojure-jack-in problem with a project using clj and cljs files.

2013-01-20 Thread mmwaikar
For everyone's benefit - I installed nrepl and used nrepl-jack-in which works fine (with the same project structure). Manoj. On Friday, January 18, 2013 4:54:41 PM UTC+5:30, mmwaikar wrote: Hi, I have a project which uses both Clojure and Clojurescript. Hence in its project.clj file, I

lazy maps in Clojure?

2013-01-20 Thread Larry Travis
One of the neat things about Clojure (maybe all functional languages) is that functions can be defined either extensionally or intensionally. How can one create a Clojure structure that mixes these two types of definition? That is, I would like to define a function f that saves its result the

Re: lazy maps in Clojure?

2013-01-20 Thread AtKaaZ
memoize? On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis tra...@cs.wisc.edu wrote: One of the neat things about Clojure (maybe all functional languages) is that functions can be defined either extensionally or intensionally. How can one create a Clojure structure that mixes these two types of

Re: lazy maps in Clojure?

2013-01-20 Thread Alex Baranosky
memoize, or delay maybe On Sun, Jan 20, 2013 at 10:29 PM, AtKaaZ atk...@gmail.com wrote: memoize? On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis tra...@cs.wisc.edu wrote: One of the neat things about Clojure (maybe all functional languages) is that functions can be defined either

New Functional Programming Job Opportunities

2013-01-20 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently:Software Engineer at Relayhttp://functionaljobs.com/jobs/122-software-engineer-at-relayClojure Developer at doohttp://functionaljobs.com/jobs/121-clojure-developer-at-dooCheers,Sean MurphyFunctionalJobs.com --

Re: lazy maps in Clojure?

2013-01-20 Thread Jozef Wagner
Or maybe https://bitbucket.org/kotarak/lazymap ? On Monday, January 21, 2013 7:38:01 AM UTC+1, Alex Baranosky wrote: memoize, or delay maybe On Sun, Jan 20, 2013 at 10:29 PM, AtKaaZ atk...@gmail.com javascript:wrote: memoize? On Mon, Jan 21, 2013 at 7:27 AM, Larry Travis