Re: [ANN] s3-wagon-private

2012-01-01 Thread David Jagoe
Thanks Phil, looks great. I'll have an opportunity to try it out within the next few weeks. I'm also moving to Seattle from South Africa soon, so I look forward to meeting you! Cheers, David On 29 December 2011 20:24, Phil Hagelberg wrote: > > One common problem when developing closed-source

Re: ANN: deep-freeze serialization library

2012-01-01 Thread James Reeves
On 31 December 2011 17:44, Timothy Baldridge wrote: > Yeah, I hadn't thought of the issue of the refs, but I don't think > it's a exceptionally hard problem to solve. It's not really possible to solve completely. If I serialize, then deserialize an immutable data structure, then for all intents

metadata reader macro

2012-01-01 Thread liulei
I write one function,example: (defn #^{:return String} shout [#^{:tag String} s #^{:tag String} s1] (.toUpperCase s)) The function has two parameters: s and s1, I hope the two parameters are both String type. But I run the command: (shout "1" 2), the command print "1", why the command don't t

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

2012-01-01 Thread CmdrDats
Talking from a strong PHP and Java background and zero previous Lisp experience - All I can say is, keep it simple. With the (f x) form, there's zero syntactical ambiguity. There are bigger problems in the world besides where the paren goes. Move along. :) On Dec 28, 12:26 am, Gert Verhoog wrote

Re: [ANN] hexdump 0.1.0 released

2012-01-01 Thread Eugene Koontz
On 12/27/11 6:56 PM, Tim McIver wrote: Hello Clojure community! I'd like to announce the release of a small and simple hexdump utility. As is usually the case, this project was born out of a need I had in my own work which often requires looking at raw data dumps. This is my first time releasin

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

2012-01-01 Thread mnicky
I can't imagine what benefits M-expressions in Clojure would give us. -- 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: Clooj is great :)

2012-01-01 Thread Jonguk Kim
Yeah. I totally agree with you. I think some improvements of syntax highlighting and REPL interaction will make clooj perfect. Jonguk On Dec 29, 9:18 am, Timothy Pratley wrote: > Have just been trying Clooj out and I have to say, it is really really good! > Thanks Arthur for the neat tool. > I p

Re: [ANN] swank-clojure 1.3.4 released

2012-01-01 Thread Pavel Exarkhopoulo
> after the underlying CDT library is released. 1.2.6.2-SNAPSHOT is in clojars, but does anyone happen to know when the cdt github repo is to be updated? or has the project moved? Thanks! On Tue, Dec 27, 2011 at 8:03 PM, Phil Hagelberg wrote: > > I just pushed out version 1.3.4 of Swank Clojur

Re: about partial and clojure curry

2012-01-01 Thread Yoav Rubin
Hi, Why not do things the other way around, and instead using partial to curry the first argument, just repeat it as the second argument. i.e., (map + [1 2 3] (repeat 3)) . This approach seems to me as much more readable and clean. Yoav On Dec 29, 4:22 pm, Jay Fields wrote: > Sorry if this has

New command-line argument parser library for Clojure

2012-01-01 Thread Tatsuhiro
Hi, I created the command-line argument parser library for Clojure. It is a wrapper for argparse4j Java library. Argparse4j is developed based on Python's argparse module. I know the tools.cli. This library is a little bit more powerful and has additional features such as sub-commands and multipl

Is Clojure affected by the hash table vulnerability in Java?

2012-01-01 Thread mnicky
A few days ago, Alexander Klink and Julian Walde showed how a flaw in implementation of hash tables in some programming languages can be used to launch DoS against some web servers. According to their paper [1], Java is also vulnerable. I don't know how much Clojure relies on Java (HashMap etc.

Re: swank-clojure 1.3.4 released

2012-01-01 Thread Alasdair MacLeod
On Dec 28, 1:03 am, Phil Hagelberg wrote: > I just pushed out version 1.3.4 of Swank Clojure. > I see the fix for windows file name separators has gone in. clojure-jack-in now works on my windows laptop. Many thanks, Alasdair -- You received this message because you are subscribed to the Google

Prefix tree creation in clojure

2012-01-01 Thread rahulpilani
I am relatively new to clojure and still trying to learn my way around. In my day job, my primary language is Java, so breaking the imperative and mutable habit was kind of tough for me. To get my feet wet, I wrote a small set of functions to implement a prefix tree. It's larger than something I f

lein-cljsbuild 0.0.1 released

2012-01-01 Thread Evan Mezeske
Hello, I just pushed out the first release of my new lein plugin, lein- cljsbuild. It adds a lein task that can either build your ClojureScript one time, or watch for modifications and automatically build it when necessary (like cljs-watch). It also has support for hooking into the "lein compile

Re: Colliding hashes

2012-01-01 Thread mnicky
I wrote a topic about this yesterday, but as a new member my posts are moderated and it seems that moderators of this forum are somewhat inactive... :-) For more information about this, you can see the paper [1], slides from the presentation [2] and twitter account dedicated to this vulnerabili

clj-http - how to use cookies in subsequent request

2012-01-01 Thread djh
I'm really struggling with this one. Basically I'm trying to login to reddit programmatically (I know i know there's an API but just for the purposes of this) and I figured the http library would be the best way to do this. So, using the following code (post "https://ssl.reddit.com/post/login"; {

Moderation queue cleared

2012-01-01 Thread Stuart Sierra
Hi folks, The Clojure mailing list moderators were on vacation for a few days after December 25th. :) I just cleared out the moderation queue, and we will be continuing to monitor it on a regular basis. Thanks for your patience, -Stuart Sierra clojure.com -- You received this message because

Re: metadata reader macro

2012-01-01 Thread Stuart Sierra
Hi LiuLei, Clojure's type hints are just that, hints. They're only there to help the compiler emit more efficient bytecode without using Java reflection. They are not type declarations, and they are not enforced by the compiler. -Stuart Sierra clojure.com -- You received this message because

Re: metadata reader macro

2012-01-01 Thread Meikel Brandmeyer
Hi, Am 28.12.2011 um 10:32 schrieb liulei: > I write one function,example: > > (defn #^{:return String} shout [#^{:tag String} s #^{:tag String} s1] > (.toUpperCase s)) > > The function has two parameters: s and s1, I hope the two parameters > are both String type. > But I run the command: (sh

Re: clojure.math.combinatorics jar

2012-01-01 Thread Stuart Sierra
Yes, *-SNAPSHOT versions are development snapshots, generated automatically by Git / Hudson / Maven. Non-SNAPSHOT releases of Clojure and clojure-contrib are available in the Maven Central repository. SNAPSHOT releases, if they exist, are available in the Sonatype OSS repository. See http://d

Re: [ClojureScript] Wrapping all def into a load event handler

2012-01-01 Thread Stuart Sierra
Hi Takahiro, This will work. It's not 100% idiomatic Clojure, but it's an acceptable workaround to the DOM loading issue. If ClojureScript had `alter-var-root`, which it doesn't, you could use that to set the Vars in your init function. But ClojureScript doesn't really have Vars either, so I

Re: Should read-string support \x.. escaped characters?

2012-01-01 Thread Stuart Sierra
One of the goals of having a reader/printer in ClojureScript is to enable transparent data exchange between Clojure and ClojureScript. I don't know right away what the correct approach here should be: either pr-str in ClojureScript should print character escapes in the form expected by the Cloj

Re: Which Clojure libraries with 1.2 dependencies should we upgrade to 1.3?

2012-01-01 Thread Stuart Sierra
Thanks for collecting this list, Sean. It looks correct to me. Also, as the original author of prxml, I will grant my blessing to anyone who is willing to port / maintain it as a new contrib. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Group

Re: Clojurescript and google closure library versions?

2012-01-01 Thread Stuart Sierra
At the moment, ClojureScript is so heavily reliant on the Google Closure Library that it would be difficult to support the expectation that it will work with any version. The current release plan in the works for ClojureScript is to package the Google Closure Library and Compiler along with Clo

Re: unchecked-int returning long?

2012-01-01 Thread Stuart Sierra
Hi Joel, Since release 1.3.0, Clojure defaults to Long for all integer types. Primitive 32-bit ints are only available as local variables in loops. More information available here: http://dev.clojure.org/display/doc/Documentation+for+1.3+Numerics as well as many mailing list discussions. Stua

Re: New home for ClojureCLR

2012-01-01 Thread Stuart Sierra
And thanks to David Miller for his excellent and continued work on ClojureCLR! I'm happy that we have such a great community to support Clojure on the .NET platform. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: Clojure/ClojureScript code and refs

2012-01-01 Thread Stuart Sierra
Hi Nicolas, You're the first person to bring this up, as far as I know. ClojureScript, of course, is designed to run in JavaScript VMs, which are usually single-threaded, so Refs don't really apply. I'm not sure you even need to do special detection whether Refs are available: just define some

Emacs: Optimize Imports?

2012-01-01 Thread Daniel Glauser
Hello folks, Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the system to optimize the imports? I'm looking for something similar to the way Intellij does things: http://www.jetbrains.com/idea/webhelp/optimizing-imports.html Converting existing Java example to Clojure and many o

Re: Emacs: Optimize Imports?

2012-01-01 Thread gaz jones
I believe this might be what close to what you are looking for: https://github.com/technomancy/slamhound On Sun, Jan 1, 2012 at 1:03 PM, Daniel Glauser wrote: > Hello folks, > > Does anyone know a way with Emacs/Leiningen/Slime/Swank to ask the > system to optimize the imports?  I'm looking for

Re: Emacs: Optimize Imports?

2012-01-01 Thread Daniel Glauser
Perfect. Thanks! On Jan 1, 12:05 pm, gaz jones wrote: > I believe this might be what close to what you are looking for: > > https://github.com/technomancy/slamhound > > > > > > > > On Sun, Jan 1, 2012 at 1:03 PM, Daniel Glauser wrote: > > Hello folks, > > > Does anyone know a way with Emacs/Lei

Re: distincto

2012-01-01 Thread David Nolen
On Sat, Dec 31, 2011 at 10:10 PM, cej38 wrote: > Ambrose, > Thanks for pointing me to the cKanren branch. > > Happy New Year. Just to be clear, hardly anythings works in the cKanren branch at the moment. But yes that definition of distincto looks good. David -- You received this message b

Re: clj-http - how to use cookies in subsequent request

2012-01-01 Thread Stephen Compall
On Sun, 2012-01-01 at 08:11 -0800, djh wrote: > How do I use this response as part of any subsequent requests? The > response contains a 302 code which I'd imagine should redirect to the > homepage as a logged in user, but I'm struggling to understand how to > make clj-http use the authenticated co

Re: [ANN] swank-clojure 1.3.4 released

2012-01-01 Thread Phil Hagelberg
Takahiro writes: > http://imgur.com/5NCEW > Is any procedure needed? > I've tried 1.3.4 with clojure 1.2.1/1.3.0 and Emacs 23.3. > My .emacs.el includes only load-path and marmalade settings. > >>> including [ring "1.0.1"] in my project.clj, which uses clj-stacktrace >>> 0.2.2 instead of 0.2.4. >

Re: Prefix tree creation in clojure

2012-01-01 Thread Stephen Compall
On Fri, 2011-12-30 at 15:21 -0800, rahulpilani wrote: > https://gist.github.com/1541958 > > I would appreciate any pointers on style or if I could implement it > any better. Here are some style pointers on 74487e9, though they may be more specific than you were looking for. > 1: (ns prefix-tre

Re: New home for ClojureCLR

2012-01-01 Thread rippinrobr
I would also like to thank David for his work on ClojureCLR. ClojureCLR is going to make for a great 2012 for me! -Rob Rowe On Jan 1, 1:01 pm, Stuart Sierra wrote: > And thanks to David Miller for his excellent and continued work on > ClojureCLR!  I'm happy that we have such a great community to

Re: Emacs: Optimize Imports?

2012-01-01 Thread Matthew Boston
It would be cool to get an emacs command to run slamhound directly in a file... h #lightbulb On Jan 1, 2:08 pm, Daniel Glauser wrote: > Perfect.  Thanks! > > On Jan 1, 12:05 pm, gaz jones wrote: > > > > > > > > > I believe this might be what close to what you are looking for: > > >https://gi

Re: Emacs: Optimize Imports?

2012-01-01 Thread Phil Hagelberg
Matthew Boston writes: > It would be cool to get an emacs command to run slamhound directly in > a file... h #lightbulb It exists (heck, you can run it on your whole project with one command), but it's not very polished since the pretty-printing of ns forms is difficult. If you're interested

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 5:55 PM, Stephen Compall wrote: > On Fri, 2011-12-30 at 15:21 -0800, rahulpilani wrote: >>   1: (ns prefix-tree) > > While this is just a sample, namespaces without at least one `.' are > discouraged.  I favor the Java convention (prefix with backwards > Internet domain that

Re: Prefix tree creation in clojure

2012-01-01 Thread Stephen Compall
On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: > Odd that this isn't named not-empty? with a ? character. Not at all; it's not a predicate. See also `every?' versus `some'. > Where are these documented? Better yet, all the differences from 1.2 > in 1.3? There's one frequently-reference

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 10:31 PM, Stephen Compall wrote: > On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: >> Odd that this isn't named not-empty? with a ? character. > > Not at all; it's not a predicate.  See also `every?' versus `some'. It's useful as an if or cond clause; that to me sa

Re: Prefix tree creation in clojure

2012-01-01 Thread Cedric Greevey
On Sun, Jan 1, 2012 at 11:09 PM, Cedric Greevey wrote: > On Sun, Jan 1, 2012 at 10:31 PM, Stephen Compall > wrote: >> On Sun, 2012-01-01 at 22:10 -0500, Cedric Greevey wrote: >>> Odd that this isn't named not-empty? with a ? character. >> >> Not at all; it's not a predicate.  See also `every?' ve