Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread ultranewb
On Mar 27, 6:40 am, Mark Engelberg mark.engelb...@gmail.com wrote: Make sure the pane with your code is the active pane when you type Ctrl-c Ctrl-k.  It won't work if the focus is on the REPL. Nope, it doesn't work, no matter where the focus is. -- You received this message because you are

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Shantanu Kumar
On Mar 27, 11:21 am, ultranewb pineapple.l...@yahoo.com wrote: On Mar 27, 6:40 am, Mark Engelberg mark.engelb...@gmail.com wrote: Make sure the pane with your code is the active pane when you type Ctrl-c Ctrl-k.  It won't work if the focus is on the REPL. Nope, it doesn't work, no matter

Generating cross recursive lazy sequences in clojure

2011-03-27 Thread Christian Schuhegger
Hi all, I am continuing on my path to explore clojure in more detail and am trying to implement the following haskell algorithm in clojure: http://www.csse.monash.edu.au/~lloyd/tildeFP/Haskell/1998/Edit01/ Even after trying several different approaches and investing several hours I do not seem

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread ultranewb
On Mar 27, 2:29 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: I'm curious - did/could you give Eclipse and Counter-ClockWise plugin a try? I did not try Eclipse. I had a bad experience before with it. It seems to be the worst to deal with as far as all the project and dependency garbage,

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread ultranewb
For newbs, I did not see this anywhere, but just discovered it, and it is of immense value. In a REPL, you can just (load-file path/to/ filename) to load the code you typed into an editor. On Mar 27, 12:24 am, ultranewb pineapple.l...@yahoo.com wrote: NetBeans w/ Enclosure - Could get a REPL,

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Shantanu Kumar
On Mar 27, 1:45 pm, ultranewb pineapple.l...@yahoo.com wrote: On Mar 27, 2:29 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: I'm curious - did/could you give Eclipse and Counter-ClockWise plugin a try? I did not try Eclipse.  I had a bad experience before with it.  It seems to be

Re: ClojureCLR in production ?

2011-03-27 Thread Jules
Thanks David, fortunately this is not one of the things that I would be using it for :-) but the heads up is very welcome and useful as well, I am sure, to other people reading this list. regards, Jules -- You received this message because you are subscribed to the Google Groups Clojure

Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
How do you guys normally manage resources when using lazy sequences? I was playing around with this question, and I looked into extending line-seq to take a file path parameter that is coerced to reader: (defn line-seq ([^java.io.BufferedReader rdr] (when-let [line

Re: gen-class and state...

2011-03-27 Thread Stefan Sigurdsson
Aieh, I oversimplified a bit here, and forgot about not being able to overload with the same arity, without multimethods. Here is the actual code I was experimenting with, which actually runs... (defn- read-seq- [reader extract advance] (let [segment (extract reader) reader (advance

Re: Generating cross recursive lazy sequences in clojure

2011-03-27 Thread Christian Schuhegger
I understand now the problem. Clojure is really not lazy enough :) I was forgetting that clojure evaluates its function arguments eagerly like lisp and not lazily like haskell. I have to wrap the function arguments that should be evaluated lazily into closures (fn [] value). Once I have a

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Luc Prefontaine
On Sun, 27 Mar 2011 01:45:37 -0700 (PDT) ultranewb pineapple.l...@yahoo.com wrote: On Mar 27, 2:29 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: I'm curious - did/could you give Eclipse and Counter-ClockWise plugin a try? I did not try Eclipse. I had a bad experience before with it.

Re: Generating cross recursive lazy sequences in clojure

2011-03-27 Thread Christian Schuhegger
Finally! I have a solution. You can have a look at it here: https://gist.github.com/889354/ I would like to hear comments about how to do it better or in a more idiomatic clojure way. Especially I am uncertain about my use of binding and the top level declares. I needed the ability to reference

clojure.contrib.str-utils in counterclockwise

2011-03-27 Thread larry
In installed counterclockwise plugin for eclipse. clojure.contrib is supposed to be installed with this but when I try: (require 'clojure-contrib.str-utils) I Could not locate clojure_contrib/str_utils__init.class or clojure_contrib/str_utils.clj on classpath: (test.clj:2) How do I fix this?

Re: clojure.contrib.str-utils in counterclockwise

2011-03-27 Thread Shantanu Kumar
On Mar 27, 10:03 pm, larry larrye2...@gmail.com wrote: In installed counterclockwise plugin for eclipse. clojure.contrib is supposed to be installed with this but when I try: (require 'clojure-contrib.str-utils) I Could not locate clojure_contrib/str_utils__init.class or

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread ultranewb
On Mar 27, 11:09 pm, Luc Prefontaine lprefonta...@softaddicts.ca wrote: You cannot expect a tool to guess your project dependencies. Dependencies are a fact of life and cannot be avoided in any significant project. It's not gargage... Anything I have to do besides what I should be doing is

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Laurent PETIT
2011/3/27 ultranewb pineapple.l...@yahoo.com On Mar 27, 11:09 pm, Luc Prefontaine lprefonta...@softaddicts.ca wrote: You cannot expect a tool to guess your project dependencies. Dependencies are a fact of life and cannot be avoided in any significant project. It's not gargage...

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Shantanu Kumar
On Mar 27, 11:52 pm, ultranewb pineapple.l...@yahoo.com wrote: On Mar 27, 11:09 pm, Luc Prefontaine lprefonta...@softaddicts.ca wrote: You cannot expect a tool to guess your project dependencies. Dependencies are a fact of life and cannot be avoided in any significant project. It's

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Chas Emerick
On Mar 27, 2011, at 2:52 PM, ultranewb wrote: On Mar 27, 11:09 pm, Luc Prefontaine lprefonta...@softaddicts.ca wrote: You cannot expect a tool to guess your project dependencies. Dependencies are a fact of life and cannot be avoided in any significant project. It's not gargage...

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Lee Spector
On Mar 27, 2011, at 8:12 PM, Chas Emerick wrote: Dependency management and other garbage are definitely garbage, but I know of no nontrivial programming language that doesn't have its share of it. If you know of any magical environments that eliminate such administrivia, do share. A lot

Why I'm getting an empty result?

2011-03-27 Thread HB
Hi, Would you please have a look at this code: (def *objects* '(bottle bucket frog chain)) (def *object-locations* {:bottle 'living-room, :bucket 'living- room, :chain 'garden, :frog 'garden}) (defn objects-at [loc objs obj-locs] (letfn [(is-obj-at? [obj] (= (obj obj-locs) loc))]

Re: Why I'm getting an empty result?

2011-03-27 Thread CuppoJava
What exactly does the line (= (obj obj-locs) loc) do? What is an obj exactly? From your code it seems that an obj is going to be 'bottle or 'bucket. I'm not sure what happens if you treat a symbol as a function. -Patrick On Mar 27, 10:02 pm, HB hubaghd...@gmail.com wrote: Hi, Would you

Re: Why I'm getting an empty result?

2011-03-27 Thread HB
I figured it out. My code is going to compare keywords with non-keywords which will returns false and hence an empty result set from filter function. On Mar 28, 4:09 am, CuppoJava patrickli_2...@hotmail.com wrote: What exactly does the line (= (obj obj-locs) loc) do? What is an obj exactly?

[ANN] appengine-magic 0.4.0: Clojure on Google App Engine

2011-03-27 Thread Constantine Vetoshev
I would like to announce the release of appengine-magic version 0.4.0, a library designed to make it easier to write Clojure applications for Google App Engine. appengine-magic abstracts away nearly all the boilerplate necessary to deploy an App Engine application. It also enables interactive

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread ultranewb
On Mar 28, 7:51 am, Lee Spector lspec...@hampshire.edu wrote: Dependency management and other garbage are definitely garbage, but I know of no nontrivial programming language that doesn't have its share of it.   If you know of any magical environments that eliminate such administrivia,

Re: Generating cross recursive lazy sequences in clojure

2011-03-27 Thread Alan
(1) lazy-cat is old. There's no reason to use it anymore; lazy-seq is better for generating custom lazy seqs, and concat is already lazy. (2) declare is overkill for this; just use letfn and avoid creating a bunch of global functions that nobody else will ever use. On Mar 27, 9:43 am, Christian

Re: A newbie's summary - what worked, what didn't

2011-03-27 Thread Kasim
Hi, I am the guy who did ClojureW. I just updated the instruction to get a REPL with Jline. Thank you for reporting. I am also working on a Just Works emacs setup for all platforms and would be happy to hear your opinion. I really want to make it as simple as ClojureW. Have fun, Kasim --