Re: Multiple indexing for vectors/maps

2008-10-18 Thread Parth Malwankar
On Oct 19, 3:12 am, kwatford <[EMAIL PROTECTED]> wrote: > Sorry if this has been asked before, but I couldn't find anything on > it. > If I have: (def A [ [ 1 2 3 ] [ 4 5 6 ] ] ) > then if I want to access a specific element, I have to do: > ((A 1) 1)   -or-  (get (get A 1) 1) get-in is probabl

Re: Clojure + Terracotta

2008-10-18 Thread Luc Prefontaine
Ok, I'll digest this in the next couple of weeks and have a look more closely at Clojure code and Terracotta's capabilities. I have a non-linear thinking process so it helps to have some early goals. I'll create some prototype setup here to help identify issues and run some basic tests. Thank you

Multiple indexing for vectors/maps

2008-10-18 Thread kwatford
Sorry if this has been asked before, but I couldn't find anything on it. If I have: (def A [ [ 1 2 3 ] [ 4 5 6 ] ] ) then if I want to access a specific element, I have to do: ((A 1) 1) -or- (get (get A 1) 1) I could make a macro for this of course, but I'd kind of like to change the call seman

Functional graphs

2008-10-18 Thread Scott Burson
Thanks, Rich, for sticking your head into comp.lang.lisp and pointing me at hash array mapped tries. It just occurred to me that they have another advantage, besides performance, over the binary trees I am currently using for FSet: they make it much easier to implement weak functional maps. And

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Jeff Valk
Palm Coast, Florida, USA - Original Message - From: mritun <[EMAIL PROTECTED]> Sent: Saturday 18 October 2008 17:05 To: Clojure Cc: Subject: Re: offtopic - where are you come from? (poll) Mumbai, India On Oct 17, 2:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojuria

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread mritun
Mumbai, India On Oct 17, 2:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojurians, > > I think after 1st year of Clojure life it's good to check how far has > Clojure spread all over the world. > > So wherever are you come from, be proud and say it. > > I'm from Slovakia. :) > >

ANN: Clojure Chimp v1.2.0

2008-10-18 Thread Meikel Brandmeyer
Dear vimming Clojurians, a new version of Chimp is available. Changes are: - fixed obsolete argument bug for EvalFile - added dw to lookup docstring for word under cursor - added ld to lookup arbitrary docstring - added fd to search for docstrings via find-doc - added pe to print the Except

Re: packaging App (cross-platform) without scripts, only jar

2008-10-18 Thread Zak Wilson
When I try this, I get the following if I try to run the jar: Exception in thread "main" java.lang.NoSuchMethodError: clojure.lang.RT.loadResourceScript(Ljava/lang/Class;Ljava/lang/ String;Z)V This is using the latest stable Clojure and a single source file. --~--~-~--~~~

Re: clojure.zip/goto proposal

2008-10-18 Thread Meikel Brandmeyer
Hi, Am 16.10.2008 um 23:07 schrieb Meikel Brandmeyer: I'll will mull a bit more about this. But something along the lines of (goto loc some-predicate path) seems like it could do what it want. Ok. The attached patch is what I came up with. It is actually split up in two functions walk-along-a

Re: Callstack from load-file

2008-10-18 Thread Parth Malwankar
On Oct 18, 9:40 pm, jim <[EMAIL PROTECTED]> wrote: > Hey all, > > I had a situation where a source file wouldn't load and the error > message was unhelpful: > > java.lang.IllegalArgumentException: Too many arguments to struct > constructor (source-file.clj:0) > > So, I threw together a quick hac

Callstack from load-file

2008-10-18 Thread jim
Hey all, I had a situation where a source file wouldn't load and the error message was unhelpful: java.lang.IllegalArgumentException: Too many arguments to struct constructor (source-file.clj:0) So, I threw together a quick hack to print the call stack: (defn callstack-str [thrown] (

Re: load-string string length limitation

2008-10-18 Thread Rich Hickey
On Oct 18, 11:42 am, Alexander Kjeldaas <[EMAIL PROTECTED]> wrote: > The following fails for me: > > (load-string >(format "(quote (%s))" >(nth (iterate #(format "%s%s" % %) "(1 2 3 4)") 13))) > java.lang.ClassFormatError: Unknown constant tag 32 in class file user/ > eval__2485 (NO_

load-string string length limitation

2008-10-18 Thread Alexander Kjeldaas
The following fails for me: (load-string (format "(quote (%s))" (nth (iterate #(format "%s%s" % %) "(1 2 3 4)") 13))) java.lang.ClassFormatError: Unknown constant tag 32 in class file user/ eval__2485 (NO_SOURCE_FILE:0) With 12 as the argument to nth, it works. Alexander --~--~---

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Simo Melenius
2008/10/17 Rastislav Kassak <[EMAIL PROTECTED]>: > So wherever are you come from, be proud and say it. Helsinki, Finland! br, S -- () Today is the car of the cdr of your life. /\ http://arc.pasp.de/ --~--~-~--~~~---~--~~ You received this message because you a

Beginners (and idiomatic Clojure)

2008-10-18 Thread Krukow
This post is intended to start a discussion about how to help beginners (like myself) going in the right direction learning *to actually use* Clojure in real-world programs. The presentation videos on the net are excellent -- they are what convinced my that Clojure is really worth learning, and l

Re: Clojure's first year

2008-10-18 Thread Krukow
I saw clojure mentioned on LtU and put it in my "to read soon" bookmarks (which I never get around). Then at JAOO 2008, I heard Guy Steele and I think also Kirk Pepperdine mention the language (just as a side remark), and I decided it was time to look again ;-) After seeing Rich's presentation vi

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread mikeyparker
Newcastle UK --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opt

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Krukow
Aarhus, Denmark. -- Karl --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED]

Clojure + Terracotta

2008-10-18 Thread Rich Hickey
On Fri, Oct 17, 2008 at 8:01 PM, Luc Prefontaine <[EMAIL PROTECTED]> wrote: > I am not very far from tackling this issue. In our bus messaging system, we > are using Terracotta with some Java components > and it's a matter of weeks before we start to investigate how we can bridge > Clojure and Ter

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread raybaq
Manila, Phiippines Ray [EMAIL PROTECTED] wrote: > Hubei,China > > gerry > > On Oct 17, 5:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > > Hello Clojurians, > > > > I think after 1st year of Clojure life it's good to check how far has > > Clojure spread all over the world. > > > > So wher

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread [EMAIL PROTECTED]
Hubei,China gerry On Oct 17, 5:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojurians, > > I think after 1st year of Clojure life it's good to check how far has > Clojure spread all over the world. > > So wherever are you come from, be proud and say it. > > I'm from Slovakia. :)

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Skandar
I'm from Mexico city but right now in Tokyo Japan. Regards. On Oct 17, 6:27 pm, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote: > Hello Clojurians, > > I think after 1st year of Clojure life it's good to check how far has > Clojure spread all over the world. > > So wherever are you come from, be p

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Helge Stahlmann
Hamburg, Germany On Oct 18, 8:22 am, "Alexander Kjeldaas" <[EMAIL PROTECTED]> wrote: > Trondheim, Norway > > 2008/10/18 Brett Morgan <[EMAIL PROTECTED]> > > > > > Sydney, Australia > > > On Sat, Oct 18, 2008 at 3:58 PM, Ande Turner <[EMAIL PROTECTED]> > > wrote: > > > Dunedin, Otago, NEW ZEALAND

Re: offtopic - where are you come from? (poll)

2008-10-18 Thread Pascal
Paris, France (but born Montreal, Canada) --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email t