Re: Efficiency of reduce function for lists.

2010-07-26 Thread ka
For the program, I know that when processing a character, I do not need the previous result. All I need is the current character, and I can return a function that acts on the result. I'm not sure if this is simple to implement in a functional way. Actually my understanding says that you need

Re: Small problem in CCW IDE

2010-07-26 Thread ka
So, it appears the (read-line) consumes the Clojure form (in-ns 'test.readln) probably stacked by CCW (at least I didn't type that!) Yup you're right, CCW typed that, you may disable that feature from the Windows Preferences Clojure Editor. Thanks -- You received this message because you

Re: Efficiency of reduce function for lists.

2010-07-26 Thread B Smith-Mannschott
On Mon, Jul 26, 2010 at 08:13, ka sancha...@gmail.com wrote: For the program, I know that when processing a character, I do not need the previous result. All I need is the current character, and I can return a function that acts on the result. I'm not sure if this is simple to implement in a

Re: Efficiency of reduce function for lists.

2010-07-26 Thread Michael Wood
On 26 July 2010 09:25, B Smith-Mannschott bsmith.o...@gmail.com wrote: [...] That said, don't use my code. It's hideous. And by now, I'm sure there's a cleaner solution possible for my approach: The idea is to split the input string into a lazy list of substrings alternating between strings

Re: Small problem in CCW IDE

2010-07-26 Thread Arie van Wingerden
Thanks ka! 2010/7/26 ka sancha...@gmail.com So, it appears the (read-line) consumes the Clojure form (in-ns 'test.readln) probably stacked by CCW (at least I didn't type that!) Yup you're right, CCW typed that, you may disable that feature from the Windows Preferences Clojure Editor.

Re: Feedback on Clojure web development post

2010-07-26 Thread ghadi
I really appreciate this article. Some of the compojure web development documentation is hard to find or out of date. I usually end up reading the source to have a better idea of what's going on. Clojure makes that pretty easy though. A couple quick questions: 1) Inside (view-input), there

Re: ANN: clj-dropbox, Dropbox client library in Clojure

2010-07-26 Thread Mikael Sundberg
Im at work now so cant access the code. But basiccly i used the example from the github page in the repl. Went to the url specified and approved it. I dont remember exactly if i had to run the code again or if it then returned the Token error message. To get it to work i basicly looked in the

Interest Inquiry

2010-07-26 Thread p.bernard
I've been consider doing some work in the rule process space and would be interested in the groups feedback. I'm considering two separate efforts, but will only have the time to work on one, and I'm curious which of the two the group would find collectively more useful and of interest in terms of

Re: Feedback on Clojure web development post

2010-07-26 Thread Michael Wood
On 26 July 2010 06:42, ghadi gshay...@gmail.com wrote: I really appreciate this article.  Some of the compojure web development documentation is hard to find or out of date.  I usually end up reading the source to have a better idea of what's going on. Clojure makes that pretty easy though.

Re: Interest Inquiry

2010-07-26 Thread jim
Hi. I did the min-kanren implementation and the second tutorial. I think the better path would be the inference engine in Clojure. Are you familiar with Kanren? (not mini-kanren but the full blown system) I'd be interested in your opinion of it compared to Prolog. I would think implementing it in

Re: Interest Inquiry

2010-07-26 Thread Michael Wood
On 26 July 2010 14:15, p.bernard paul.bern...@teleapp.com wrote: I've been consider doing some work in the rule process space and would be interested in the groups feedback. I'm considering two separate efforts, but will only have the time to work on one, and I'm curious which of the two the

Re: Interest Inquiry

2010-07-26 Thread Vagif Verdi
On Jul 26, 6:34 am, jim jim.d...@gmail.com wrote: One thing I'd like to do is implement a business rules engine in Clojure running the Rete algorithm or something similar. Sort of a Drools in Clojure. Wouldn't it be easier to implement clojure scripting for Drools ? As far as i know Drools

java.lang.OutOfMemoryError

2010-07-26 Thread atucker
Hi all! I have been trying to use Clojure on a student project, but it's becoming a bit of a nightmare. I wonder whether anyone can help? I'm not studying computer science, and I really need to be getting on with the work I'm actually supposed to be doing :) I am trying to work from a lot of

Re: Interest Inquiry

2010-07-26 Thread p.bernard
I didn't want to jade the group's response but I personally had more interest in an inference engine as well. I've used Drools, as well as ILog on several large projects but didn't like the proprietary nature of their underlying language implementations. In short their implementation was a

Re: Feedback on Clojure web development post

2010-07-26 Thread Shawn Hoover
On Sat, Jul 24, 2010 at 3:30 AM, Mark McGranaghan mmcgr...@gmail.comwrote: Hi All, I recently posted to my blog on the process of developing and deploying a simple Clojure web application: http://mmcgrana.github.com/2010/07/develop-deploy-clojure-web-applications.html The purpose of this

Re: java.lang.OutOfMemoryError

2010-07-26 Thread Sean Devlin
My first thought is that you need to tweak your JVM settings. Try allocation a minimum of 512MB to the total. My second thought is that you need to use laziness to your advantage. Remove the print expression from the mapping operation. It's useful for debugging/prototyping, but shouldn't be in

Re: java.lang.OutOfMemoryError

2010-07-26 Thread Peter Schuller
Here is my function: (defn json-seq []  (apply concat         (map #(do (print f) (str/split (slurp %) #\nStatusJSONImpl))              out-files))) Assuming the str namespace is clojure.contrib.string, (str/split ..) won't be lazy. Currently it's implemented as: (defn split Splits

Re: Interest Inquiry

2010-07-26 Thread p.bernard
My response the Jim's post addresses why this is not compelling to me but you are correct. It would be easier. In fact so much so that I can't see a benefit in just creating a wrapper. Anyone could cook that up themselves in short order. There really isn't and value add. I'm invisioning

Re: Feedback on Clojure web development post

2010-07-26 Thread tguy
When developing a web app, my preference would be to edit files using SLIME with lein swank like all of my other development. So, I should be able to start and stop the server from the repl and can reflect my changes in the browser simply by reloading a function. I used to be able to develop like

Re: Feedback on Clojure web development post

2010-07-26 Thread Steve Purcell
On 26 Jul 2010, at 17:30, tguy wrote: When developing a web app, my preference would be to edit files using SLIME with lein swank like all of my other development. So, I should be able to start and stop the server from the repl and can reflect my changes in the browser simply by reloading a

Rick presentation at Emerging Languages

2010-07-26 Thread babui
Hi all, does anyone knows if (and where) the presentation Rick gave at the Emergin Languages Summit is available? Thanks, Juan Manuel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: java.lang.OutOfMemoryError

2010-07-26 Thread Randy Hudson
You can get a lazy sequence of all the lines in all the files by something like: (for [file out-files line (with-open [r (io/reader file)] (line-seq r))] line) If StatusJSONImpl is on a separate line, you can throw in a :when clause to filter them out: (for [file out-files line

Re: Rick presentation at Emerging Languages

2010-07-26 Thread Jeff Heon
See Phil's comment here http://technomancy.us/139 -- 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 with your first post. To

Re: Rick presentation at Emerging Languages

2010-07-26 Thread Laurent PETIT
BTW, it's Rich, not Rick 2010/7/26 babui jmgim...@gmail.com Hi all, does anyone knows if (and where) the presentation Rick gave at the Emergin Languages Summit is available? Thanks, Juan Manuel -- You received this message because you are subscribed to the Google Groups

Re: Rick presentation at Emerging Languages

2010-07-26 Thread babui
BTW, it's Rich, not Rick Sorry, Rich. JM PS: I hope this messsage does not contain any error :-) -- 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

Re: Interest Inquiry

2010-07-26 Thread Vagif Verdi
Back in the days when i was using common lisp (sbcl) i used this inference engine: http://lisa.sourceforge.net/ -- 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

ANN: Learning clojure? Here's a practical example using clojure and nmap.

2010-07-26 Thread Ryan Waters
I don't have a website I maintain right now so I thought I'd post this to the mailing list. I have a need to scan a list of IP addresses and I wanted the scan order to be random. Nmap can do this. However, I also want the scan order to be consistent so I can do handy things like diff output

Clojure/core Team Update 1

2010-07-26 Thread Aaron Bedra
Clojure/core Team Update 1 Monday, July 26, 2010 Welcome to the first Clojure/core team update. In these updates you will find: * Announcements of upcoming events * Project updates: summaries of recent work on Clojure and related projects that we support * New developments: other new things

Re: Remove-first function

2010-07-26 Thread Mark Engelberg
I expanded on this theme in a blog post: http://programming-puzzler.blogspot.com/2010/07/translating-code-from-python-and-scheme.html -- 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