Re: Question about the Clojure load-file command

2011-03-12 Thread Ken Wesson
On Sat, Mar 12, 2011 at 9:46 PM, Larry Travis wrote: > Ken: > The cause of my difficulty indeed was a corrupted file. I was looking for it > in a completely different direction, and I clearly don't know how to > correctly parse Java error messages! > > Thank you very much for sharing your cleverne

Re: Monad Lessons

2011-03-12 Thread Ken Wesson
On Sat, Mar 12, 2011 at 7:20 PM, Brian Marick wrote: > http://www.vimeo.com/20963938 Your sequence-decider can be simplified a bit: (mapcat rest-fn step-val). :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: Question about the Clojure load-file command

2011-03-12 Thread Larry Travis
Ken: The cause of my difficulty indeed was a corrupted file. I was looking for it in a completely different direction, and I clearly don't know how to correctly parse Java error messages! Thank you very much for sharing your cleverness and your expertise. --Larry On 3/12/11 7:39 PM, Ken W

Re: Question about the Clojure load-file command

2011-03-12 Thread Ken Wesson
On Sat, Mar 12, 2011 at 7:49 PM, Larry Travis wrote: > I'm having trouble getting the load-file command to work in a Clojure repl. > On some files it works and on some it doesn't. Here is an example of its not > working: > > I do: > > (load-file "/Users/larrytravis/AquaFiles/sdku-project-defns") >

Question about the Clojure load-file command

2011-03-12 Thread Larry Travis
I'm having trouble getting the load-file command to work in a Clojure repl. On some files it works and on some it doesn't. Here is an example of its not working: I do: (load-file "/Users/larrytravis/AquaFiles/sdku-project-defns") And I get the error message: java.lang.Exception: Unable to

Re: Monad Lessons

2011-03-12 Thread Adam
On Sat, Mar 12, 2011 at 18:20, Brian Marick wrote: > I don't know if this is useful, but I've been doing a series of videos on > monads. They have a different style than others I've read (very visual, > avoiding standard jargon, not caring about category theory). They might be > useful to people

Re: Monad Lessons

2011-03-12 Thread Brian Marick
I don't know if this is useful, but I've been doing a series of videos on monads. They have a different style than others I've read (very visual, avoiding standard jargon, not caring about category theory). They might be useful to people joining the session. http://www.vimeo.com/20717301 http:/

Re: How to do replacement operations on trees (nested vectors)?

2011-03-12 Thread Tassilo Horn
Stuart Sierra writes: Hi Stuart, > Look at Zippers. They can be used to navigate up and down a tree, > replacing things as needed. http://clojure.blip.tv/file/4503162/ Great, I'll have a look at that. Bye, Tassilo -- You received this message because you are subscribed to the Google Groups

Re: Clojure & CEDET?

2011-03-12 Thread Meikel Brandmeyer
Hi, On 12 Mrz., 18:46, Alex Ott wrote: > Phil's comment on SLIME's completion is very interesting - what if we > could implement generic interface to slime for cedet? Feel free to bring in ideas: http://dev.clojure.org/display/design/IDE+tooling+backend Sincerely Meikel -- You received this

Re: Clojure & CEDET?

2011-03-12 Thread Alex Ott
Hi I have "Clojure + CEDET" in my TODO list ;-) Code completion will require to add support for maven and leiningen, because we need to get information about used external packages, etc. - using this information we could pre-generate completion databases for java classes & "external" clojure libra

Re: RuntimeException: Can't embed object in code, maybe print-dup not defined

2011-03-12 Thread Ken Wesson
On Sat, Mar 12, 2011 at 10:44 AM, Stuart Sierra wrote: >> Yes, but "create a static final member in the class I'm generating >> bytecode for, stuff the object in that static member, and embed a >> reference to the static member here" seems like a sensible thing for >> it to do. > > That's easy for

Re: How to do replacement operations on trees (nested vectors)?

2011-03-12 Thread Stuart Sierra
Look at Zippers. They can be used to navigate up and down a tree, replacing things as needed. http://clojure.blip.tv/file/4503162/ -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: Reference Variables Question

2011-03-12 Thread Stuart Sierra
Memoization gives you the option of deferring this decision 'till later. Write a function that calculates the value you need and call it each time you need that value. If it turns out that the repeated calculation is slowing down your program, simply memoize the function so that the computati

Re: RuntimeException: Can't embed object in code, maybe print-dup not defined

2011-03-12 Thread Stuart Sierra
> > Yes, but "create a static final member in the class I'm generating > bytecode for, stuff the object in that static member, and embed a > reference to the static member here" seems like a sensible thing for > it to do. > That's easy for simple types like java.util.Date, but how could it work f

Re: Monad Lessons

2011-03-12 Thread jim
Thanks for all who responded. I'll be in touch in private email. On Mar 11, 1:50 pm, Daniel Werner wrote: > On Mar 9, 8:15 pm, jim wrote: > > > So, my question is how many would be interested in such a session? > > This would be a basic introduction to monads. Future session could be > > about m

Re: Reference Variables Question

2011-03-12 Thread niels.egbe...@gmail.com
On Sat, Mar 12, 2011 at 2:18 PM, WoodHacker wrote: > We create a reference > to the block's height and use it throughout the program.   But there > are many cases where we have to know HALF the height of the block. > My question is, is it more efficient to create another reference for > half the b

Reference Variables Question

2011-03-12 Thread WoodHacker
Hi, I have a simple general question about variables used in Clojure. Often you have an object that must be referenced because it is established at run time and not known beforehand. Lets say we have an block object and it has a certain height. We create a reference to the block's height and u

How to do replacement operations on trees (nested vectors)?

2011-03-12 Thread Tassilo Horn
Hi all, I have regular expressions steering graph traversal given as nested vector. For example [:p-* [:p-seq :--> :-->]] means that the sequence (:p-seq) of 2 consecutive outgoing edges may be traversed zero or many times (:p-*). Ok, now I want to make these regular expressions, which are indet