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

2011-12-29 Thread Meikel Brandmeyer
Am 30.12.2011 um 00:19 schrieb Softaddicts: > I suggest the Klingon downward triangle Natural delimiter you said ? :) And the irony that it is only used in latin transliteration… Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

Re: Clooj is great :)

2011-12-29 Thread Arthur Edelstein
Hi Timothy, Thank you! I really appreciate your comments. I must admit there is still much left to be done on clooj and I haven't had much time to work on it of late. I thank everyone for their patience. Cheers, Arthur -- You received this message because you are subscribed to the Google Grou

Re: Want some books or issues about ClojureCLR

2011-12-29 Thread 王亚平
Why God like dmiller don't write such a book? It must be very interesting. On Tue, Nov 29, 2011 at 8:45 AM, dmiller wrote: > The wiki on the github repo has some information about getting started > and how to accomplish some interop that is special to CLR. > > https://github.com/richhickey/cloju

ANN: deep-freeze serialization library

2011-12-29 Thread Timothy Baldridge
A few months back I released 1.0 of deep-freeze, a binary serialization library for Clojure. Due to recent additions by Peter Taoussanis I thought it would be about time to let some more people know about this project, and bump the version number to 1.2 deep-freeze is a simple serialization librar

Re: Really loving Clooj but..

2011-12-29 Thread Cedric Greevey
On Thu, Dec 29, 2011 at 10:50 PM, Erlis Vidal wrote: > Cedric, you have a really good point, I just realized it after reading your > email. After sending the original email I saw what the error was, but what I > still unable to know is how could I debug from Clooj, other than using > println, any

Re: Really loving Clooj but..

2011-12-29 Thread Erlis Vidal
Guys, Thanks so much for all the answers, thanks for taking the time to give me so many hints even when my email shows my Clojure ignorance. Cedric, you have a really good point, I just realized it after reading your email. After sending the original email I saw what the error was, but what I sti

Re: Really loving Clooj but..

2011-12-29 Thread Cedric Greevey
On Thu, Dec 29, 2011 at 6:23 PM, Mark Engelberg wrote: > I'd also like to know whether Clooj has any debug or stacktracing > capabilities.  Also, can the Clooj repl control the print level of > infinite lazy structures? (set! *print-length* 20) (set! *print-level* 20) (.printStackTrace *e) Hav

Re: Really loving Clooj but..

2011-12-29 Thread Mark Engelberg
I'd also like to know whether Clooj has any debug or stacktracing capabilities. Also, can the Clooj repl control the print level of infinite lazy structures? Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

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

2011-12-29 Thread Softaddicts
I suggest the Klingon downward triangle Natural delimiter you said ? :) http://www.evertype.com/standards/csur/klingon.html Luc > Better yet we can say that function calls and forms always start with a > symbol and end with punctuation or some natural delimiter. So we could > write things l

Re: How to start using clojureCLR?

2011-12-29 Thread Benny Tsai
For VS integration, there is the following plugin. I haven't used it myself, so can't offer much help beyond this. Good luck! http://visualstudiogallery.msdn.microsoft.com/fb895809-2ae0-48aa-8a96-3c0d5b8e1fdc/ On Thursday, December 29, 2011 11:17:28 AM UTC-8, Erlis Vidal wrote: > > Hi! > > Tha

Re: Really loving Clooj but..

2011-12-29 Thread Hubert Iwaniuk
Just add (println min) before if-let and you will see what is happening. Hubert. On Thu, Dec 29, 2011 at 10:23 PM, Erlis Vidal wrote: > Hi guys, > > I've using Clooj and following the labrepl but I'm hitting a wall right now. > How can I debug here? > > This the code I want to debug > > (defn mi

Re: Really loving Clooj but..

2011-12-29 Thread Laurent PETIT
2011/12/29 Erlis Vidal > Hi guys, > > I've using Clooj and following the labrepl but I'm hitting a wall right > now. How can I debug here? > > This the code I want to debug > > (defn min-1 [x & more] > (loop [min x > more (seq more)] > (if-let [x (first more)] > (recur (if (<

Re: Really loving Clooj but..

2011-12-29 Thread Bronsa
you are invoking the function in the wrong way what you really want to do is this: user> (min-1 2 1 3) 1 2011/12/29 Erlis Vidal > Hi guys, > > I've using Clooj and following the labrepl but I'm hitting a wall right > now. How can I debug here? > > This the code I want to debug > > (defn min-1

Really loving Clooj but..

2011-12-29 Thread Erlis Vidal
Hi guys, I've using Clooj and following the labrepl but I'm hitting a wall right now. How can I debug here? This the code I want to debug (defn min-1 [x & more] (loop [min x more (seq more)] (if-let [x (first more)] (recur (if (< x min) x min) (next more)) min))) This

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

2011-12-29 Thread Michael Fogus
Better yet we can say that function calls and forms always start with a symbol and end with punctuation or some natural delimiter. So we could write things like: defn f [x] println "hi"! 42; . doseq [e range 10 20] f e; . map fn [x] Math/pow x 2.0, range 10. if even 3? :even :odd.

Re: :arglists question

2011-12-29 Thread Sean Corfield
On Thu, Dec 29, 2011 at 11:27 AM, vitalyper wrote: > My question is why do we have BOTH :arglists metadata and usual fn > args destructuring? As Meikel surmised, it's to improve the docstring (shown by the doc function). We (the CongoMongo team) have not been terribly consistent about it tho' :(

Re: :arglists question

2011-12-29 Thread Meikel Brandmeyer
Hi, Am 29.12.2011 um 20:27 schrieb vitalyper: > My question is why do we have BOTH :arglists metadata and usual fn > args destructuring? Probably to make things a bit clearer in the docstring. The usual destructuring is powerful but rather unreadable for a quick glance at the reference. Similar

Re: How to start using clojureCLR?

2011-12-29 Thread Erlis Vidal
Hi! Thanks for the link. I really appreciate it. It looks like the CLR project is really in it first stage. Is someone working on the tools? Any plans to integrate it with VS? thanks! and thanks for the CLR version! On Thu, Dec 29, 2011 at 2:04 PM, Benny Tsai wrote: > Hi Erlis, > > This is th

Re: How to start using clojureCLR?

2011-12-29 Thread Benny Tsai
Hi Erlis, This is the most recent blog entry I've found w.r.t. getting up and running with Clojure CLR: http://www.myclojureadventure.com/2011/10/getting-started-with-clojure-clr.html What I really like about this particular blog is that the author has also written follow-up articles (in Nov.

:arglists question

2011-12-29 Thread vitalyper
Came across the following in one of the clojure libs (congomongo to be exact) https://github.com/aboekhoff/congomongo/blob/master/src/somnium/congomongo.clj:464 (defn command "Executes a database command." {:arglists '([cmd {:options nil :from :clojure :to :clojure}])} [cmd & {:keys [options

[ANN] s3-wagon-private

2011-12-29 Thread Phil Hagelberg
One common problem when developing closed-source Clojure applications is finding a good place to store private dependencies. Up until now the recommended method was to run your own Archiva or Nexus server, which involves more moving parts than most people rightly want to bother with. Last week I

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

2011-12-29 Thread Erlis Vidal
do you mean syntax sugar = macro ? On Thu, Dec 29, 2011 at 12:48 PM, James Reeves wrote: > On 29 December 2011 16:35, Louis Yu Lu wrote: > > Agree on looking from the angle of data structure and their internal > > presentation. But conceptually, [] and {} are just syntax sugars: > > [x y] -> (v

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

2011-12-29 Thread James Reeves
On 29 December 2011 16:35, Louis Yu Lu wrote: > Agree on looking from the angle of data structure and their internal > presentation. But conceptually, [] and {} are just syntax sugars: >  [x y] -> (vector x y) >  {x y} -> (hash-map x y) >  #{x y} -> (hash-set x y) Well, no, not really. It's true

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

2011-12-29 Thread Softaddicts
Why not create a klingon version ? > How about using a and b instead of ( ) so we could have faab which would be > the equivalent of (f a) so it would rule out symbolnames with an a in any > place but the first it, also we could go for less used characters as I don't > know ¥ and µ for exampl

Re: Interested in a port of Ruby's String#unpack

2011-12-29 Thread Geoff Salmon
I think I fixed the take-ulong problem, and I've pushed 0.2.0 to clojars. Let me know if you have any problems with it. - Geoff On Dec 27, 12:47 pm, Geoff Salmon wrote: > I've pushed some updates to get it running with 1.3. take-ulong is > still broken because clojure.lang.BigInt doesn't seem to

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

2011-12-29 Thread Heinz N. Gies
How about using a and b instead of ( ) so we could have faab which would be the equivalent of (f a) so it would rule out symbolnames with an a in any place but the first it, also we could go for less used characters as I don't know ¥ and µ for example so that would not be half as fun I think. --

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

2011-12-29 Thread Mark Rathwell
The thing about lisps, though, is that code and data are represented with the same structure. Adding sugar that makes them appear to be different things would not help anyone, especially the beginner. It will make grasping macros, among other things, much more difficult down the road. Getting us

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

2011-12-29 Thread Louis Yu Lu
Agree on looking from the angle of data structure and their internal presentation. But conceptually, [] and {} are just syntax sugars: [x y] -> (vector x y) {x y} -> (hash-map x y) #{x y} -> (hash-set x y) The 2 element structures are all become 3 element lists. Louis On Dec 29, 7:03 am, Ja

Re: about partial and clojure curry

2011-12-29 Thread Jay Fields
Sorry if this has already been addressed... I can understand both Ron's pain and the reasoning why it's not possible to have Haskell style currying; however, I wonder if there's a compromise possible. Right now, we: (map #(+ 3 %) [1 2 3] or (map (partial + 3) [1 2 3]) The (partial + 3) is a b

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

2011-12-29 Thread James Reeves
On 29 December 2011 04:49, Louis Yu Lu wrote: > Instead of using overloaded (), may be f[x] will cause less trouble, > and more inline with clojure's syntax as [ ] already being used for > defining the arguments of the function. I think you need to look at this from a slightly different angle. I

Re: [ANN] swank-clojure 1.3.4 released

2011-12-29 Thread Baishampayan Ghose
On Thu, Dec 29, 2011 at 3:07 AM, Phil Hagelberg wrote: >> On Wed, Dec 28, 2011 at 6:33 AM, Phil Hagelberg wrote: >>> I just pushed out version 1.3.4 of Swank Clojure. >> >> Does it work with Clojure 1.2? What exclusions do I need for that in >> my project.clj? > > I'm not aware of any issues with