Artificial Intelligence in Clojure

2009-06-06 Thread maxsu
Hi, i'd like to write some AI in clojure. Reading Russel & Norvig's AI: A Modern Approach, which focuses heavily on autonomous intelligence agents. Has anyone worked with these or other AI in clojure? Any libraries/git repos out there? Can/should we use clojure agents to encapsulate separate in

Re: clojure.contrib.except enhanced

2009-06-06 Thread Chouser
On Sat, Jun 6, 2009 at 10:42 AM, Stephen C. Gilardi wrote: > I've checked in changes to clojure.contrib.except to allow the functions it > provides to produce exceptions that wrap other exceptions: they now support > "causes". > > I believe it's now fully general and will be convenient to use for

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Matt Revelle
It may help to review the code and structure of open source Clojure projects, part of the mind-bend feeling could be coming from struggling to know where to begin when writing code and less from unfamiliarity with the theory of FP. I'd also recommend playing with Haskell and reviewing "Real World

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread prhlava
> Going beyond the language-specific Programming Clojure book, what > other books have best helped you make the (sometimes mind-bending) I have not yet read anything more mind-bending than this: http://www.gp-field-guide.org.uk/ (A field guide to genetic programming) It is free download - the

Re: improoved version of parallel factorial uploaded - is it possible to push the performance further?

2009-06-06 Thread prhlava
Oops - the link above is broken, but the code is in the files section, called: parallel-factorial-example-2.clj Vlad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

improoved version of parallel factorial uploaded - is it possible to push the performance further?

2009-06-06 Thread prhlava
Hello, Just uploaded better version of parallel factorial... Is is possible to push the performance further (short of implementing parallel multiplication algorithm)? Comments welcome. http://groups.google.com/group/clojure/files/parallel-factorial-example-2.clj Kind regards, Vlad --~--~---

Re: with-open and java interoperability

2009-06-06 Thread Rob Wolfe
Meikel Brandmeyer napisaƂ(a): > Hi, > > Am 06.06.2009 um 21:40 schrieb Rob Wolfe: > > > I'm trying to understand why this program throws an exception: > > It doesn't work because > > > (-> (new StringReader "abc") > > (new clojure.lang.LineNumberingPushbackReader)) > > expands to > > (new (new

Re: with-open and java interoperability

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2009 um 21:40 schrieb Rob Wolfe: I'm trying to understand why this program throws an exception: It doesn't work because (-> (new StringReader "abc") (new clojure.lang.LineNumberingPushbackReader)) expands to (new (new StringReader "abc") LineNumberingPushbackReader) while

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Daniel Lyons
I recommend "Purely Functional Data Structures" by Chris Okasaki. If you can get your hands on "OCaml for Scientists" it's pretty good too. And of course The Little Lisper/Schemer. I haven't made it through my copy of SICP or PAIP. -- Daniel On Jun 6, 2009, at 10:26 AM, kyle smith wrote:

with-open and java interoperability

2009-06-06 Thread Rob Wolfe
Hi, I'm trying to understand why this program throws an exception: $ clojure -e "(clojure-version)" "1.0.0-" $ cat test1.clj (ns rw.test (:import (java.io StringReader))) (def x (with-open [s (-> (new StringReader "abc") (new clojure.lang.LineNumberingPushbackReader)

Re: c.c.swing-utils: action and menu builders

2009-06-06 Thread Stephen C. Gilardi
On Jun 6, 2009, at 12:34 PM, Meikel Brandmeyer wrote: as threatened before here a first stab at a small action and menu builder suite. It is inspired by what Waterfront does. You basically create a map describing the action or menu and let the builder functions create them for you. Added:

c.c.swing-utils: action and menu builders

2009-06-06 Thread Meikel Brandmeyer
Hello Stephen and fellow Clojurians, as threatened before here a first stab at a small action and menu builder suite. It is inspired by what Waterfront does. You basically create a map describing the action or menu and let the builder functions create them for you. Example: (let [frame(J

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
This is probably the global _vimrc installed by Vim I think as much, vim needs this file to run. If you installed Vim as an administrator I always work as administrator. I will create that file and now what and what am I going to add to it. Regards, Emeka O On Sat, Jun 6, 2009 at 4:03 PM, Me

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread kyle smith
I read Norvig's PAIP. The concept of first defining a dsl and then writing an interpreter/compiler for it is amazing. Even something as simple as his sentence grammar shows the idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Nathan Hawkins
Higher Order Perl. While I don't want to use Perl anymore, I do know it very well, and it provided a good introduction to FP in a more familiar language. YMMV. Robert Campbell wrote: > Going beyond the language-specific Programming Clojure book, what > other books have best helped you make the

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2009 um 17:47 schrieb Emeka: Then it is pretty obvious that I have erred again. C:\Program files\Vim\_vimrc That's where I found that file. This is probably the global _vimrc installed by Vim. You should first try a _vimrc in your home directory. Just create it if it doesn't exis

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
Then it is pretty obvious that I have erred again. C:\Program files\Vim\_vimrc That's where I found that file. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2009 um 17:27 schrieb Emeka: C:\Users\rmicro\.viminfo That's what I found. Then it should be C:\Users\rmicro\_vimrc, I guess. Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature

Re: Interest in creating a NYC Clojure user group?

2009-06-06 Thread John D. Hume
On Thu, Jun 4, 2009 at 12:09 PM, Eric Thorsen wrote: > what kind of interest there might be in creating a Clojure user group > in the NY metro area to meet up in Manhattan once a month to discuss > all things Clojure. I'd make an effort to attend monthly Clojure meetings in NYC. -- http://elhum

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
C:\Users\rmicro\.viminfo That's what I found. Regards, Emeka --~--~-~--~~~---~--~~ 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 mem

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2009 um 17:05 schrieb Emeka: Do you edit the correct _vimrc? I found only one file bearing that name. Are you referring to other files? Well there should be your personal _vimrc. It should probably be: C:\Documents and Settings\\_vimrc. Although this might be different for you

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread CuppoJava
As messy of a language it is, learning Ruby was the final step needed to show me the philosophy and merits of FP. -Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Vincent Foley
I recommend "The Little Schemer" and if you want to go further, "The Seasoned Schemer". On Jun 6, 7:12 am, Robert Campbell wrote: > Going beyond the language-specific Programming Clojure book, what > other books have best helped you make the (sometimes mind-bending) > transition from OOP thinkin

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
Do you edit the correct _vimrc? I found only one file bearing that name. Are you referring to other files? Regards, Emeka > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

clojure.contrib.except enhanced

2009-06-06 Thread Stephen C. Gilardi
I've checked in changes to clojure.contrib.except to allow the functions it provides to produce exceptions that wrap other exceptions: they now support "causes". I believe it's now fully general and will be convenient to use for all of our exceptional needs. The attached text file contain

Re: performance concerns (again)

2009-06-06 Thread Jonah Benton
RSS is "resident set size"- as I recall from the days when I compiled my own kernels, it's based on a lazily-maintained not-guaranteed-to-be-accurate count of physical memory pages "in use" by the process. On linux, this number may overstate memory use by 50% or more for non-JVM processes. For JVM

Re: What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Robert Campbell
Talk about bad timing - reading the "Silly question from Programming Clojure" it looks like a book thread already got started there. Here were some additional mentions: Laurent PETIT: OOSC: Object Oriented Software Construction, but this is OOP so I'm disinclined to include it for this specific l

Re: performance concerns (again)

2009-06-06 Thread Jarkko Oranen
> > The problem was that it was not as fast as I expected it should be > given that it was using no less than 100% of the CPU on my system. > (two 3GHz Xeon CPUs [1 core]; 3GB RAM; a beefy workstation).  That > this was visible in the GUI shows how slow it appeared to me.  Also, > it was using 700

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2009 um 13:24 schrieb Emeka: I would like to use vimclojure and I have even installed all the needed applications, however I am still not able to use it. I tried to edit _vimrc but was told that it is a readonly file(this happened when I used vim to edit it). When I used other

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
Meikel, I would like to use vimclojure and I have even installed all the needed applications, however I am still not able to use it. I tried to edit _vimrc but was told that it is a readonly file(this happened when I used vim to edit it). When I used other editors, it does not prompt readonly, how

What books have helped you wrap your brain around FP and Clojure?

2009-06-06 Thread Robert Campbell
Going beyond the language-specific Programming Clojure book, what other books have best helped you make the (sometimes mind-bending) transition from OOP thinking to FP thinking? My bookshelf is piled high with OOP books like Design Patterns, Domain Driven Design, Analysis Patterns, etc. I've recen

Re: Threadring Benchmark

2009-06-06 Thread Parth
On Jun 6, 11:44 am, Sean Devlin wrote: > This problem came up on the mailing list recently: > > http://groups.google.com/group/clojure/browse_thread/thread/5e0c078d0... > > You might want to compare your code to what was done here, but at a > glance the implementations are similar. > > You prov

VimClojure v2.1.1 is released

2009-06-06 Thread Meikel Brandmeyer
Dear Vimming Clojurians, VimClojure v2.1.1 is out. This is only a bugfix release. No new features added. It mostly fixes bugs in the syntax highlighting. http://www.vim.org/scripts/script.php?script_id=2501 Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature

Re: defnk addition to c.c.def

2009-06-06 Thread Meikel Brandmeyer
Hi, Am 05.06.2009 um 00:22 schrieb Meikel Brandmeyer: sym-vals(apply hash-map (interleave syms values)) Ah! I always forget about zipmap... Clojure is just fun! :) Sincerely Meikel smime.p7s Description: S/MIME cryptographic signature

Re: Question for Clojure-Mode users.

2009-06-06 Thread Daniel Lyons
On Jun 5, 2009, at 3:27 PM, Phil Hagelberg wrote: > > "Stephen C. Gilardi" writes: > >> (my-cool-database-operation the-database >> (arg-exp-1 with operands) >> literal-arg >> angstroms) >> >> There doesn't seem to be an easy way to distinguish these two types >> of >> initial operands (or