Re: [ANN] optparse-clj: Functional GNU-style command line options parsing

2013-08-07 Thread Wolodja Wentland
On Wed, Aug 07, 2013 at 10:53 -0500, guns wrote: I'd like to announce optparse-clj, a command line options parser that supports GNU option parsing conventions: The interface is modelled after clojure.tools.cli¹, but the parser is more flexible: Yes! Thank you so much for developing this and

End user applications

2013-06-13 Thread Wolodja Wentland
Hi all, I was recently trying to find some applications written in Clojure that are meant for end users. The aim was to find those that would be interesting to a user even though the user does not know anything about Clojure or that the application is written in it. Given that Clojure is not

Re: End user applications

2013-06-13 Thread Wolodja Wentland
On 14 Jun 2013 05:37, Ron Toland rontol...@gmail.com wrote: At rewryte.com, we use Clojure for all our back- end data processing. Sure, but I was rather looking for actual applications that can be downloaded and installed locally. It wasn't really my intention to compile a list of companies

Re: End user applications

2013-06-13 Thread Wolodja Wentland
PuppetDB is self-contained. Ah, wonderful. This is exactly what I was looking for (self-contained, open source application that appeals to users unfamiliar with Clojure). Ta! On 13 June 2013 10:01, Wolodja Wentland babi...@gmail.com wrote: Hi all, I was recently trying to find some

Re: End user applications

2013-06-13 Thread Wolodja Wentland
with though. On Thu, Jun 13, 2013 at 5:01 AM, Wolodja Wentland babi...@gmail.com wrote: Hi all, I was recently trying to find some applications written in Clojure that are meant for end users. The aim was to find those that would be interesting to a user even though the user does not know

Adopting plumbing/graph - But how?

2013-05-08 Thread Wolodja Wentland
Hi all, I am quite interested in using plumbing in one of my projects and have the feeling that it is a perfect fit and indeed a better solution to something I have written before. I can't, however, quite figure out the best way to translate what I have into an implementation that uses graphs.

[GSoC] Leiningen Clojure packaging in Debian

2013-04-15 Thread Wolodja Wentland
Dear Clojurists,  = Debian selected as a mentoring organization =  We are happy to announce that Google has selected Debian as a mentoring organisation for Google Summer of Code 2013! To see the current list of projects, please head to the dedicated wiki page [1] which includes, among other

Re: Tips for a Clojure workshop, for people who don't use emacs?

2013-04-13 Thread Wolodja Wentland
On Sat, Apr 13, 2013 at 04:46 -0700, Tj Gabbour wrote: I am helping run a Clojure workshop for a company's employees. (We will use Quil to program Conway's Game of Life, in pairs or small teams. We'll first show people how to use a cheatsheet of Clojure forms, which they can cut paste and

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Sat, Mar 02, 2013 at 17:42 -0600, Nelson Morris wrote: Or is this a bug in leiningen's dependency resolution? Unfortunately it's behaviour defined by maven. In order to be compatible lein has to do the same thing. I've written up a few things about version ranges at

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Mon, Mar 04, 2013 at 08:33 -0500, Chas Emerick wrote: FWIW, contributors to Pomegranate and Leiningen are working on general solutions to this sort of madness, but the use of version ranges will always be largely unwarranted, especially in published libraries. There are a lot of reasons

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Mon, Mar 04, 2013 at 06:01 -0800, Meikel Brandmeyer (kotarak) wrote: Ok. So instead of the range I specify [org.clojure/clojure 1.2]. What does that mean? Now I either excluded *all* clojure versions not= 1.2 or the version number doesn't mean anything. Then we should get rid of it

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Mon, Mar 04, 2013 at 15:04 +0100, Michał Marczyk wrote: On the other hand, if you care about securing your project, pulling in the latest bugfixes etc., you will need to monitor new releases anyway, regardless of the version numbering scheme used by their maintainers. And then release a

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Mon, Mar 04, 2013 at 14:42 +, David Powell wrote: 1.2 in this case is a soft dependency on 1.2.  This is probably what you want. http://docs.codehaus.org/display/MAVEN/ Dependency+Mediation+and+Conflict+Resolution# DependencyMediationandConflictResolution-DependencyVersionRanges

Re: Wrong clojure version depending on lein dependencies (was: ANN: Clojure 1.5)

2013-03-04 Thread Wolodja Wentland
On Mon, Mar 04, 2013 at 09:54 -0500, Chas Emerick wrote: AFAICT, the vast majority of Leiningen users (same goes for Maven users as well) expect the dependency vector [org.clojure/clojure 1.2.0] to establish a lower bound, the equivalent of [1.2.0,). Further, people expect the maximum of

Reporting bugs [was: Re: Clojure 1.5 RC 14]

2013-02-10 Thread Wolodja Wentland
On Sun, Feb 10, 2013 at 18:59 +0100, AtKaaZ wrote: could you maybe also fix clojure.java.io/delete-file to return the result of the .delete ? (or I'm missing something? and it really isn't meant to return the result of the delete? true when deleted, false when not - if silently is true)

Re: Migrate from IDEs to emacs or vim (already experienced with it) ?

2013-02-04 Thread Wolodja Wentland
On Mon, Feb 04, 2013 at 10:56 +0200, Ersin Er wrote: Thank you all for your valuable comments! For now I've decided to invest more in my OS X Terminal, tmux and vim setup. You might be interested in https://groups.google.com/forum/?fromgroups#!forum/vimclojure where everything vim + clojure

Re: Migrate from IDEs to emacs or vim (already experienced with it) ?

2013-02-02 Thread Wolodja Wentland
On Sat, Feb 02, 2013 at 12:09 +0200, Ersin Er wrote: Just as Colin Yates announced in the thread emacs - how to wean me off the family of Java IDEs I am in the process of moving to emacs or vim for active development with Clojure. My question is a bit different: I am already an experienced

Re: [ANN] Cloverage - clojure code coverage

2013-01-26 Thread Wolodja Wentland
On Sat, Jan 26, 2013 at 07:42 -0800, Jacek Lach wrote: Cloverage 1.0.2 together with a leiningen plugin (lein-cloverage) were recently released. You can find the code at https://github.com/lshift/cloverage To try it out, add `[lein-cloverage 1.0.2]` to your leiningen plugins list, and

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-24 Thread Wolodja Wentland
On Thu, Jan 24, 2013 at 01:50 -0500, Wes Freeman wrote: This is great. Can you guys put [ClojureScript] in the email subject like most google groups do? Wouldn't mind if they put [Clojure] in the clojure emails, either. Just curious: But why would you want that? I would happily live without

Re: CollReduce and IKVReduce for nil?

2013-01-14 Thread Wolodja Wentland
On Sat, Jan 12, 2013 at 08:15 -0800, Andy Fingerhut wrote: The CLJ-1098 ticket was categorized as a minor enhancement when it was created. Defects (i.e. bugs) are considered with higher priority. I can see that this categorisation caused this bug to be prioritised lower than actual bugs that

CollReduce and IKVReduce for nil?

2013-01-12 Thread Wolodja Wentland
Hi all, I was wondering if there is some reason why CollFold and IKVReduce are not extended to nil. A patch for this rots away in JIRA [0] and could probably be merged as-is. Is this simply an oversight or a conscious design decision? [0] http://dev.clojure.org/jira/browse/CLJ-1098 -- Wolodja

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2013-01-07 Thread Wolodja Wentland
On Thu, Nov 01, 2012 at 22:34 +0900, Alan Busby wrote: On Thu, Nov 1, 2012 at 8:27 PM, Wolodja Wentland babi...@gmail.com wrote: Oh, fold-into-map and fold-into-map-with would be wonderful and I tried to implement the former along the lines of fold-into-vec, but the performance

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2012-11-01 Thread Wolodja Wentland
On Thu, Nov 01, 2012 at 15:11 +0900, Alan Busby wrote: On Mon, Oct 29, 2012 at 10:00 PM, Wolodja Wentland babi...@gmail.com wrote: I find this behaviour quite unfortunate because I now have to explicitly test for nil? and ensure consistent behaviour. This inconsistency violates

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2012-10-31 Thread Wolodja Wentland
On Tue, Oct 30, 2012 at 15:17 +0100, Herwig Hochleitner wrote: I've also run into this. Maybe this is just an oversight, since clojure handles nils gracefully almost everywhere else. Should CollFold and IKVReduce be extended to nil, or is there some rationale against it? I would

reduce, reduce-kv, map, mapv, reducers/map and nil

2012-10-29 Thread Wolodja Wentland
Hi all, I am currently testing performance of different reduce and map implementations in my programs and have problems because their treatment of nil is different. The normal clojure.core implementations of reduce and map work well when called on nil, but reduce-kv and functions in

Re: Parallelising reduce-kv - r/fold into maps

2012-10-10 Thread Wolodja Wentland
On Tue, Oct 09, 2012 at 15:31 -0700, Jean Niklas L'orange wrote: On Tuesday, October 9, 2012 9:14:51 PM UTC+2, Wolodja Wentland wrote: --- snip --- (reduce-kv  (fn [ret k v]   (assoc ret k (func-that-does-something-with v)))  some-map)) --- snip

Parallelising reduce-kv

2012-10-09 Thread Wolodja Wentland
Hi all, I've noticed that I wrote the following recently and wonder if this can be done in a more succinct/idiomatic way and also if it can be parallelised: --- snip --- (reduce-kv (fn [ret k v] (assoc ret k (func-that-does-something-with v))) some-map)) --- snip -- I am using reducers in

ClojureDocs and Clojure 1.4

2012-09-11 Thread Wolodja Wentland
Hi all, I was wondering when ClojureDocs might be updated to show documentation for Clojure 1.4 as well. It is just that I thought that it'll happen eventually but it hasn't yet and I am unsure if there is somebody that can/should be poked about this. It is just that I consider ClojureDocs to be

Re: ForkJoinTask not found under Java 7?

2012-09-11 Thread Wolodja Wentland
On Tue, Aug 21, 2012 at 19:40 +0100, Jim - FooBar(); wrote: Hi everyone, I get this very strange error even though I'm using clojure 1.5 alpha3 and java version 1.7.0_02 on Java HotSpot(TM) 64-Bit Server VM ! ClassNotFoundException jsr166y.ForkJoinTask I've just filed

Re: ClojureDocs and Clojure 1.4

2012-09-11 Thread Wolodja Wentland
On Tue, Sep 11, 2012 at 08:24 -0700, John Gabriele wrote: My vague understanding is that clojuredocs is currently written in Ruby and there have been plans to rewrite it in Clojure. It would be good to know what the plans are as I find ClojureDocs to be quite an important tool when I

Re: Found bug in contains? used with vectors.

2012-09-05 Thread Wolodja Wentland
On Tue, Sep 04, 2012 at 13:51 +0200, Ben Smith-Mannschott wrote: The naming of contains? is one of Clojure's small warts. Almost everyone seems to stumble over it when they're starting out. I know I did. Naming it contains-key? would have prevented a great deal of confusion, but I guess that

Concatenating InputStreams (was: Re: Parsing SGML)

2012-07-13 Thread Wolodja Wentland
On Wed, Jul 11, 2012 at 14:46 +0200, Tassilo Horn wrote: Hm, probably yes. But you can implement the other arities quiet easily. So that version also accepts the version that reads into a byte array. The third version is left as an exercise for the reader. ;-) Thanks, I've done that and had

Re: Using dynamic variables in libraries [Re: ANN clojure.java.jdbc 0.2.0]

2012-05-01 Thread Wolodja Wentland
On Fri, Apr 27, 2012 at 22:21 -0700, Sean Corfield wrote: On Fri, Apr 27, 2012 at 4:14 AM, Wolodja Wentland babi...@gmail.com wrote: Could you elaborate on that please? I see that dynamic variables are used quite often to give the user the ability to configure/change the behaviour

Using dynamic variables in libraries [Re: ANN clojure.java.jdbc 0.2.0]

2012-04-27 Thread Wolodja Wentland
On Thu, Apr 26, 2012 at 23:35 -0700, Sean Corfield wrote: On Tue, Apr 24, 2012 at 8:30 PM, Michael michael-a...@db.com wrote: Would it be possible to make resultset-seq a dynamic var No, that certainly is not going to happen. Dynamic vars are not the right way to build an API in Clojure.

Re: Clojure 1.4.0 released silently?

2012-04-17 Thread Wolodja Wentland
On Tue, Apr 17, 2012 at 18:14 +0530, Ravindra Jaju wrote: All are supposed to implement their own readers which can read this event from the repository's tags. Haha! But in earnest: clojure-1.4.0 tag: https://github.com/clojure/clojure/commit/0ba3ff1a059625704500445c2d8553811301520b

Re: How to be lazy…

2012-02-23 Thread Wolodja Wentland
On Thu, Feb 16, 2012 at 14:06 -0600, Michael Gardner wrote: On Feb 16, 2012, at 11:08 AM, Wolodja Wentland wrote: Thanks for the explanation. What would be a good way to ensure that the subseqeuence are lazy too? I can't think of a good way to do this with higher-order functions, so

How to be lazy…

2012-02-16 Thread Wolodja Wentland
Hi all, I am trying to implement a function that splits any given sequence on a subsequence. I would like it to behave like this: user (split-at-subsequence [5 6] (range 10)) ((0 1 2 3 4) (7 8 9)) user (split-at-subsequence [5 7] (range 10)) ((0 1 2 3 4 5 6 7 8 9)) user

Re: How to be lazy…

2012-02-16 Thread Wolodja Wentland
On Thu, Feb 16, 2012 at 10:51 -0600, Michael Gardner wrote: partition-by is lazy in that it only splits its argument into as many subseqs as requested; the subseqs themselves are not lazy. So when you partition-by the result of (replace-subseq-with-sentinel [1 2] sentinel (range)) and then

Re: Invoking varargs Java methods

2012-01-11 Thread Wolodja Wentland
On Tue, Jan 10, 2012 at 22:46 +, Norman Gray wrote: I've run into a situation which (I think) is the Clojure analogue of http://stackoverflow.com/questions/5672778/class-getmethod-when-parameter-is-varargs, and I'm not sure how to apply the solution there to Clojure (I'm a Clojure

Leiningen in Debian

2011-08-05 Thread Wolodja Wentland
Hi all, I have been working with Phil on the packaging of Leiningen for Debian and it has just been uploaded into the archive. The installation on most Debian versions is pretty painless: Sid --- # apt-get install leiningen Squeeze --- You can easily backport the packages from sid and

Re: Leiningen in Debian

2011-08-05 Thread Wolodja Wentland
On Fri, Aug 05, 2011 at 13:39 +0100, Wolodja Wentland wrote: # apt-get build-dep librobert-hooke-clojure-clojure # apt-get source -b librobert-hooke-clojure-clojure # dpkg -i librobert-hooke-clojure*.deb This should have been librobert-hooke-clojure not librobert-hooke-clojure

ClojureScript mailing list?

2011-07-28 Thread Wolodja Wentland
Hi all, given the recent interest in ClojureScript and the resulting influx of mails regarding it I was wondering if a distinct mailing list for it would make sense. What do you think? -- Wolodja babi...@gmail.com 4096R/CAF14EFC 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC signature.asc

Re: Radically simplified Emacs and SLIME setup

2011-05-27 Thread Wolodja Wentland
: Why don't you use the excellent vimclojure plugin for vim? If you decide to do so, I would also recommend the paredit implementation in the slimv plugin. -- .''`. Wolodja Wentlandbabi...@gmail.com : :' : `. `'` 4096R/CAF14EFC `- 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30

Re: Debian packages

2011-05-27 Thread Wolodja Wentland
://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593790 [3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566963 [4] http://githubredir.debian.net/ -- .''`. Wolodja Wentlandbabi...@gmail.com : :' : `. `'` 4096R/CAF14EFC `- 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC

Re: VimClojure omnicompletion woes

2011-02-10 Thread Wolodja Wentland
. Be that as it may, thank a lot for the prompt and very helpful reply and may you all have a nice day. -- .''`. Wolodja Wentlandwolodja.wentl...@ed.ac.uk : :' : `. `'` 4096R/CAF14EFC `- 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC signature.asc Description

VimClojure omnicompletion woes

2011-02-09 Thread Wolodja Wentland
let vimclojure#WantNailgun = 1 *adjust user in the path above* -- .''`. Wolodja Wentlandwolodja.wentl...@ed.ac.uk : :' : `. `'` 4096R/CAF14EFC `- 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC signature.asc Description: Digital signature