parallel factorial (code in the files section)

2008-12-18 Thread prhlava
Hello folks, In the process of learning agents I have written a parallel implementation of factorial function. The code is in files section as "parallel-factorial-example.clj", shared in the hope that it can help others to understand the agents. It is by no means a production code... Comments

Re: Superficial barriers to entry

2008-12-18 Thread Jan Rychter
Mibu writes: > I recommended clojure to a dozen friends or so and after a while none > of them stuck with it. I know clojure being a lisp and being at the > current development stage is not for everyone, but after I probed why > people gave up with it I saw the barriers to entry were largely > su

trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread chris
I am trying to write an application using the above libraries. There is no point to this app at the moment other than to take my time and enjoy learning clojure. I am hoping that anyone else with these problems will be able to find this post, so I am going to dump. I have had a hell of time ge

Re: Superficial barriers to entry

2008-12-18 Thread janus
Mibu, Thanks for your post because it captures what I am passing through. I have not done FP before and I am not even a great programmer, and with FP comes a sea of concepts and abstracts I have not heard before. These concepts and abstracts led me to conclude that FP is not made for mere mortals

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Craig Andera
Does it makes sense to subscribe this group to those? I.e. to have commit messages appear here. I've done it both ways on my own projects, and I'm of split mind about it. On Wed, Dec 17, 2008 at 9:33 AM, Rich Hickey wrote: > > > > On Dec 17, 8:22 am, Rich Hickey wrote: >> I've moved Clojure's s

Re: Superficial barriers to entry

2008-12-18 Thread Jesse Aldridge
Regarding the editor part, Scite could be a good option, especially for beginners. It's a whole hell of a lot simpler than emacs and vim. All you really have to do by way of configuration is go to "Options" - > "Open User Options File" and paste in the following lines: --- file.patterns.lisp=*

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Dave Newton
-1 - Original Message > From: Craig Andera > To: clojure@googlegroups.com > Sent: Thursday, December 18, 2008 7:51:43 AM > Subject: Re: Clojure's code has moved to Google Code > > > Does it makes sense to subscribe this group to those? I.e. to have > commit messages appear here. I'v

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Christian Vest Hansen
On Thu, Dec 18, 2008 at 1:51 PM, Craig Andera wrote: > > Does it makes sense to subscribe this group to those? I.e. to have > commit messages appear here. I've done it both ways on my own > projects, and I'm of split mind about it. The clojure google group seems to me to be mostly for support an

Re: Superficial barriers to entry

2008-12-18 Thread Mibu
On Dec 18, 1:20 pm, Jan Rychter wrote: > I don't buy it. When you start using Python, nobody handholds you so > that you can pick an editor. You just use whatever you have. So what's > the deal here? An editor for a lisp language is not just a text editor for the source that you then compile. It

Re: Superficial barriers to entry

2008-12-18 Thread Dave Newton
--- On Thu, 12/18/08, Mibu wrote: > An editor for a lisp language is not just a text editor for > the source that you then compile. It's an environment that > interacts with a REPL. So people can't just use whatever > they've been using. Of course you can--there's no *requirement* that your edit

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Daniel Renfer
If you really want these commit messages to come to your mailbox, you could always use a service such as: http://www.rssfwd.com/ Note: This was merely the first Google result for "rss email". I have not tested this service, but it looks like it should do the trick. Has there been any thought to

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Rich Hickey
On Dec 18, 7:51 am, "Craig Andera" wrote: > Does it makes sense to subscribe this group to those? I.e. to have > commit messages appear here. I've done it both ways on my own > projects, and I'm of split mind about it. > It's a distinct list in order to give people choice and keep the noise ou

Re: Superficial barriers to entry

2008-12-18 Thread Mibu
On Dec 18, 2:37 pm, janus wrote: > I think I need a mentor! Come to the IRC channel (#clojure on irc.freenode.net). The people there are friendly, helpful, and surprisingly patient. Mibu --~--~-~--~~~---~--~~ You received this message because you are subscribed

20081217 Release

2008-12-18 Thread Rich Hickey
I've cut a new release, 20081217, which is available from Google Code: http://clojure.googlecode.com/files/clojure_20081217.zip It reflects the many enhancements made since the last release: AOT Compilation gen-class gen-interface clojure.main proxy performance tweaks move to EPL io! blocks ato

Re: code golf

2008-12-18 Thread lpetit
Hello, On Dec 18, 5:49 am, Chouser wrote: > Which leads me to this, though it fails for reasons that escape me: > (defn enc[s e](apply str(map`{~@(take-nth 2 e)}s))) This one maybe fails because ~@ is a reader form that needs to expand at compile time. So if at compile time, e is not known (e.g

Re: Superficial barriers to entry

2008-12-18 Thread Meikel Brandmeyer
Hi, On 18 Dez., 14:09, Mibu wrote: > An editor for a lisp language is not just a text editor for the source > that you then compile. It's an environment that interacts with a REPL. We should stay on the carpet, shouldn't we? If you have such an environment, fine. I use vim, which is undoubtedly

Re: Superficial barriers to entry

2008-12-18 Thread janus
Mibu On Dec 18, 1:22 pm, Mibu wrote: > On Dec 18, 2:37 pm, janus wrote: > > > I think I need a mentor! > > Come to the IRC channel (#clojure on irc.freenode.net). The people > there are friendly, helpful, and surprisingly patient. > > Thanks for your advice,however, if you wont mind I will ant

YAREPL - GUI repl updated

2008-12-18 Thread MikeM
Yet Another REPL I uploaded a GUI repl to the group files earlier this year, and I've been updating it as Clojure has evolved. A new version has been uploaded (tested with SVN 1162) http://clojure.googlegroups.com/web/repl.clj , and I've also uploaded a couple of pictures, http://clojure.googlegr

Re: 20081217 Release

2008-12-18 Thread Mark Fredrickson
> This release should facilitate everyone using the same post-AOT API, > and brings us closer to the 1.0 release. I'll be going through the > docs to bring them up to date. If you are using an old release, please > move to this one, as it is what the documentation will reflect moving > forward. R

Re: 20081217 Release

2008-12-18 Thread Rich Hickey
On Dec 18, 2008, at 10:03 AM, Mark Fredrickson wrote: > >> This release should facilitate everyone using the same post-AOT API, >> and brings us closer to the 1.0 release. I'll be going through the >> docs to bring them up to date. If you are using an old release, >> please >> move to this one

Re: FAQ

2008-12-18 Thread Stuart Sierra
On Dec 17, 6:28 pm, kkw wrote: > What's the recommended way of getting Clojure up and running? > - Download the latest snapshot with SVN > - Create the Clojure.jar file with Ant > - Test by starting up the REPL with "java -cp clojure.jar > clojure.lang.Repl" That's a good FAQ suggestion, Kev. W

Re: 20081217 Release

2008-12-18 Thread Stuart Sierra
FYI, I noticed that the readme.txt in the release still says to run with clojure.lang.Repl, when all you need now is: java -jar clojure.jar -Stuart Sierra On Dec 18, 8:46 am, Rich Hickey wrote: > I've cut a new release, 20081217, which is available from Google Code: > > http://clojure.googleco

Re: YAREPL - GUI repl updated

2008-12-18 Thread Mark Volkmann
On Thu, Dec 18, 2008 at 8:44 AM, MikeM wrote: > > Yet Another REPL > > I uploaded a GUI repl to the group files earlier this year, and I've > been updating it as Clojure has evolved. A new version has been > uploaded (tested with SVN 1162) http://clojure.googlegroups.com/web/repl.clj > , > and I'

Re: 20081217 Release

2008-12-18 Thread Rich Hickey
On Dec 18, 10:44 am, Stuart Sierra wrote: > FYI, I noticed that the readme.txt in the release still says to run > with clojure.lang.Repl, when all you need now is: > java -jar clojure.jar > Starting with -jar shuts down the classpath, so is not something I think you want to show someone, as th

Re: 20081217 Release

2008-12-18 Thread Mark Volkmann
On Thu, Dec 18, 2008 at 9:44 AM, Stuart Sierra wrote: > > FYI, I noticed that the readme.txt in the release still says to run > with clojure.lang.Repl, when all you need now is: > java -jar clojure.jar I wonder how many people will really use it that way (with -jar). The problem is that you can'

Re: FAQ

2008-12-18 Thread Rich Hickey
On Dec 18, 10:42 am, Stuart Sierra wrote: > On Dec 17, 6:28 pm, kkw wrote: > > > What's the recommended way of getting Clojure up and running? > > - Download the latest snapshot with SVN > > - Create the Clojure.jar file with Ant > > - Test by starting up the REPL with "java -cp clojure.jar >

Re: Superficial barriers to entry

2008-12-18 Thread Mike Perham
I would like to see more practical screencasts. RH's Clojure talks are interesting but only at a high level. I'd like to see a screencast on Emacs/SLIME because I have no idea what the hell it is or what it offers over a basic screencast. Likewise, doing screencasts on macros, concurrency primi

CLI launcher (was: Superficial barriers to entry)

2008-12-18 Thread Phil Hagelberg
Jan Rychter writes: > Let people use whatever they want, try their stuff from the command-line > and REPL, and once they get used to it, move up to Emacs and SLIME. Agreed. > I agree there are superficial barriers, though. I believe it is very > important for Clojure to: > > a) have an build

Re: Superficial barriers to entry

2008-12-18 Thread Luc Prefontaine
I agree, IDE wise, SciTe or Vim, a running REPL in a shell and load-file just does it for us... Years ago I was using Emacs but left it for other IDEs (Eclipse) for so long that I would need a few weeks to get back into it. Not having the time in the last 6 months to dedicate getting fluent again

Re: FAQ

2008-12-18 Thread Daniel Eklund
> Suggestions for entries welcome here. > > Rich How about: What language constructs/objects may be found in the function position of an expression? Ii like the fact that sets, maps and vectors are all 'functions of their keys', and that keywords and symbols are functions of maps. ((([ + - ap

Re: Superficial barriers to entry

2008-12-18 Thread Mark Engelberg
On Thu, Dec 18, 2008 at 3:20 AM, Jan Rychter wrote: > I don't buy it. When you start using Python, nobody handholds you so > that you can pick an editor. You just use whatever you have. So what's > the deal here? At least on Windows, Python comes with IDLE, which is surprisingly full-featured gi

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread AA
Generally speaking, there are complications with using OpenGL from multiple threads, I wonder if the calls you make via the Slime/Swank interface are in a different thread than the one that allocated the OpenGL context. Here's some documentation that may be relevant if you are using OS X: http:/

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread chris
I think you are absolutely correct. I am using -XstartOnFirstThread, but I noticed when the application works it outputs a message about the CocoaCompatibilty enabled. This is triggered somehow from the jogl calls. This indicates there is some threading going on behind the scenes as that compat

Re: Superficial barriers to entry

2008-12-18 Thread Michael Wood
On Thu, Dec 18, 2008 at 7:52 PM, Mike Perham wrote: > > I would like to see more practical screencasts. RH's Clojure talks > are interesting but only at a high level. I'd like to see a > screencast on Emacs/SLIME because I have no idea what the hell it is > or what it offers over a basic screen

running Gorilla

2008-12-18 Thread Mark Volkmann
I'm probably doing something wrong, but I haven't been able to get Gorilla to work with Vim. The installation instructions say: 1) Copy the after, doc and plugin directories into your .vim directory. I've done this. My ~/.vim directory now contains afterbin doc ftplugin plugin auto

Re: running Gorilla

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 11:52, Mark Volkmann wrote: > I'm probably doing something wrong, but I haven't been able to get > Gorilla to work with Vim. The installation instructions say: > > ... > > I've done this, but it doesn't seem to recognize Gorilla shortcuts. > Should I be able to open a

(Ab)using agents for inter-process communication

2008-12-18 Thread Stephan Mühlstrasser
Hi, I've not yet seen any examples on how to deal with external processes in Clojure (I hope I didn't overlook something in clojure-contrib). The following is my attempt to start a sub-process and to pass through stdout and stderr. The shell command prints out 1000 lines "hello" and a final "co

find returns symbol keys without their metadata

2008-12-18 Thread Chris Kent
Hi I've been playing around using symbols with metadata as struct map keys after reading this message: http://groups.google.com/group/clojure/msg/68e7036dbd8ded29 It all works OK except when you use find to extract an entry. find returns an entry containing the key passed to it, not the key in

Re: running Gorilla

2008-12-18 Thread Meikel Brandmeyer
Hi, Am 18.12.2008 um 20:52 schrieb Mark Volkmann: I've done this, but it doesn't seem to recognize Gorilla shortcuts. Should I be able to open a REPL buffer by entering ":sr"? The keymappings are only active in Clojure buffers. Try editing a clojure file or set the filetype manually with ":set

Re: running Gorilla

2008-12-18 Thread Mark Volkmann
On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz wrote: > > On Thursday 18 December 2008 11:52, Mark Volkmann wrote: >> I'm probably doing something wrong, but I haven't been able to get >> Gorilla to work with Vim. The installation instructions say: >> >> ... >> >> I've done this, but it doesn'

Re: running Gorilla

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 12:13, Mark Volkmann wrote: > On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz wrote: > > ... > > > > First of all, check whether you Vim has the necessary Ruby support: > > > > % vim --version |sed -n -e 1p -e '/ruby/p' > > ... > > > > If you see "-ruby" then you'r

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 12:07, Stephan Mühlstrasser wrote: > Hi, > > I've not yet seen any examples on how to deal with external processes > in Clojure (I hope I didn't overlook something in clojure-contrib). > > The following is my attempt to start a sub-process and to pass > through stdout

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Stephan Mühlstrasser
On Dec 18, 9:24 pm, Randall R Schulz wrote: > On Thursday 18 December 2008 12:07, Stephan Mühlstrasser wrote: > > > (let [pb (new ProcessBuilder ["sh" "-c" "yes hello | head -1000; echo > > command finished"]) > >         proc (.start pb) > >         stdout (reader (.getInputStream proc)) > >  

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 12:43, Stephan Mühlstrasser wrote: > On Dec 18, 9:24 pm, Randall R Schulz wrote: > > On Thursday 18 December 2008 12:07, Stephan Mühlstrasser wrote: > > > ... > > > > > > Is this use of agents incorrect? > > > > I would say it's an appropriate use, but you need to do

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Chouser
On Thu, Dec 18, 2008 at 3:07 PM, Stephan Mühlstrasser wrote: > > The following is my attempt to start a sub-process and to pass through > stdout and stderr. The shell command prints out 1000 lines "hello" > and a final "command finished". The problem is that nothing is printed > by the Clojure p

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread Michael Reid
For what its worth, I've had a similar setup working on Mac OS X 10.5: Aquamacs SLIME jogl-1.1.1 I'm pretty sure I'm running Java 1.6 (can't check now). I had no issues with hangs. Perhaps QT is the bad ingredient. /mike. On Thu, Dec 18, 2008 at 2:40 PM, chris wrote: > > I think you are abso

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Stephan Mühlstrasser
On Dec 18, 10:10 pm, Chouser wrote: > On Thu, Dec 18, 2008 at 3:07 PM, Stephan Mühlstrasser > > wrote: > > > The following is my attempt to start a sub-process and to pass through > > stdout and stderr.  The shell command prints out 1000 lines "hello" > > and a final "command finished". The prob

Re: trolltech QT opengl SLIME REPL mac os x

2008-12-18 Thread Matt Revelle
On Dec 18, 2008, at 4:35 PM, Michael Reid wrote: > > For what its worth, I've had a similar setup working on Mac OS X 10.5: > > Aquamacs > SLIME > jogl-1.1.1 > > I'm pretty sure I'm running Java 1.6 (can't check now). I had no > issues with hangs. Perhaps QT is the bad ingredient. I'm thinking t

Re: Clojure's code has moved to Google Code

2008-12-18 Thread Wayne R
On Dec 18, 7:19 am, "Daniel Renfer" wrote: > If you really want these commit messages to come to your mailbox, you > could always use a service such as:http://www.rssfwd.com/ > Or you could just join that group. Google will send you emails. --~--~-~--~~~---~--~~

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Stephan Mühlstrasser
On Dec 18, 10:01 pm, Randall R Schulz wrote: > > > My question was not precise enough. I meant why can the parent > > process - the Clojure program - terminate before all all the output > > has been passed through. > > Because it can terminate whenever it wants to. Child processes do not > place

Persistent storage

2008-12-18 Thread r
Hi, Perhaps this question has been asked here before but quick search didn't show anything relevant. Is is possible to use some kind of backend storage for Clojure's data structures? I mean something like Perl's "tie" function that makes data structures persistent (in sense of storage, not immut

Typo on "Refs and Transactions" page

2008-12-18 Thread MattyDub
Hi all, I don't know if this is the right place to post this (if it's not, please let me know where to go), but the documentation on "Refs and Transactions" (http://clojure.org/refs) has a typo in the first sentence: "While Vars ensure safe use of mutable mutable storage locations". There shoul

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Dave Griffith
> > Ah, I believe I finally understand the difference between send and > send-off. To describe it in my own words, send-off creates a new > thread each time, while send schedules to a thread in a thread pool. > Not quite true, but close. Send-off requests a thread from a CachingThreadPool, but

Re: running Gorilla

2008-12-18 Thread Mark Volkmann
On Thu, Dec 18, 2008 at 2:18 PM, Randall R Schulz wrote: > > On Thursday 18 December 2008 12:13, Mark Volkmann wrote: >> On Thu, Dec 18, 2008 at 2:07 PM, Randall R Schulz > wrote: >> > ... >> > >> > First of all, check whether you Vim has the necessary Ruby support: >> > >> > % vim --version |sed

Re: running Gorilla

2008-12-18 Thread Meikel Brandmeyer
Hi, Am 18.12.2008 um 23:06 schrieb Mark Volkmann: Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: line 558: LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: dlopen(/usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle, 9): Symbol not found: _rb_eStandardE

Re: Typo on "Refs and Transactions" page

2008-12-18 Thread Rich Hickey
On Dec 18, 2008, at 4:52 PM, MattyDub wrote: > > Hi all, > I don't know if this is the right place to post this (if it's not, > please let me know where to go), but the documentation on "Refs and > Transactions" (http://clojure.org/refs) has a typo in the first > sentence: > "While Vars ensure

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 13:33, Stephan Mühlstrasser wrote: > On Dec 18, 10:01 pm, Randall R Schulz wrote: > > > My question was not precise enough. I meant why can the parent > > > process - the Clojure program - terminate before all all the > > > output has been passed through. > > > > Beca

Re: running Gorilla

2008-12-18 Thread Mark Volkmann
On Thu, Dec 18, 2008 at 4:10 PM, Meikel Brandmeyer wrote: > Hi, > > Am 18.12.2008 um 23:06 schrieb Mark Volkmann: >> >> Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: >> line 558: >> LoadError: /usr/local/lib/ruby/1.8/i686-darwin9.3.0/socket.bundle: >> dlopen(/usr/local/lib

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Stephan Mühlstrasser
On Dec 18, 11:30 pm, Randall R Schulz wrote: > On Thursday 18 December 2008 13:33, Stephan Mühlstrasser wrote: > > > Nothing fancy: > > (defn cat-stream > >   (.flush *out*))) > As Chouser pointed out, the flush is the important ingredient. After thinking a while about this, I'm wondering

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 14:40, Stephan Mühlstrasser wrote: > On Dec 18, 11:30 pm, Randall R Schulz wrote: > > On Thursday 18 December 2008 13:33, Stephan Mühlstrasser wrote: > > > > > > Nothing fancy: > > > > (defn cat-stream > > > >   (.flush *out*))) > > As Chouser pointed out, the fl

Re: running Gorilla

2008-12-18 Thread Brian Doyle
LocalLeader usually means \ On Thu, Dec 18, 2008 at 3:36 PM, Mark Volkmann wrote: > > On Thu, Dec 18, 2008 at 4:10 PM, Meikel Brandmeyer wrote: > > Hi, > > > > Am 18.12.2008 um 23:06 schrieb Mark Volkmann: > >> > >> Error detected while processing /Users/Mark/.vim/plugin/gorilla.vim: > >> line

Re: (Ab)using agents for inter-process communication

2008-12-18 Thread Randall R Schulz
On Thursday 18 December 2008 14:44, Randall R Schulz wrote: > On Thursday 18 December 2008 14:40, Stephan Mühlstrasser wrote: > > ... > > > > As Chouser pointed out, the flush is the important ingredient. > > > > After thinking a while about this, I'm wondering why it is > > necessary. The output

Re: find returns symbol keys without their metadata

2008-12-18 Thread Rich Hickey
On Dec 18, 2:30 pm, Chris Kent wrote: > Hi > > I've been playing around using symbols with metadata as struct map > keys after reading this > message:http://groups.google.com/group/clojure/msg/68e7036dbd8ded29 > > It all works OK except when you use find to extract an entry. find > returns an

test-is possible bug in are

2008-12-18 Thread Mark Volkmann
If I understand correctly, (are (< 1 2, 5 7)) is equivalent to (is (< 1 2)) (is (< 5 7)) The following may be incorrect usage of are: (are < 1 2, 5 7) However, instead of complaining about the arguments, it hangs forever. -- R. Mark Volkmann Object Computing, Inc. --~--~-~--~~

Re: Persistent storage

2008-12-18 Thread Chouser
On Thu, Dec 18, 2008 at 4:47 PM, r wrote: > > Is is possible to use some kind of backend storage for Clojure's data > structures? I mean something like Perl's "tie" function that makes > data structures persistent (in sense of storage, not immutability). > > Such storage should be inherently immu

Re: running Gorilla

2008-12-18 Thread Meikel Brandmeyer
Hi, Am 18.12.2008 um 23:36 schrieb Mark Volkmann: The documentation says sr. I don't know what LocalLeader means. Is that just a colon? The is a key you define yourself. I remapped the \ to , since \ is awkward to type on german keyboards. is for plugins, is for filetype plugins. See ":help

REPL Namespace Display

2008-12-18 Thread brian
Hope this is the appropriate place for this... anyway, very trivial issue. I was playing around in an effort to begin to understand the ns fns & managed to get the current/active ns & REPL displayed ns out of synch via the following: user> *ns* # user> (in-ns 'howdy) # howdy> (clojure.core/refer

Re: A try on condp

2008-12-18 Thread Meikel Brandmeyer
Hi, I reworked my initial proposal according to the comments of Rich. The syntax now looks as follows: (condp predicate expr test-expr result-expr test-expr :> result-expr ... default-expr) A result-expr is chosen according to (predicate test-expr expr). In the first form, result-expr i

Suggestion: introduce (defn name attr-map? [params*] doc-string body) form.

2008-12-18 Thread Christian Vest Hansen
All. I think it would be nice if the doc-string was allowed (in addition to current behavior) to immediately follow the params vector in the various defsomethings. To the best of my knowledge, such a change would be non-breaking because, a) It should be implemented such that (defn foo [] "bar")

Re: REPL Namespace Display

2008-12-18 Thread Chouser
On Thu, Dec 18, 2008 at 6:02 PM, brian wrote: > > Hope this is the appropriate place for this... anyway, very trivial > issue. I was playing around in an effort to begin to understand the > ns fns & managed to get the current/active ns & REPL displayed ns out > of synch via the following: > > us

Re: Persistent storage

2008-12-18 Thread Kyle Schaffrick
On Thu, 18 Dec 2008 18:06:40 -0500 Chouser wrote: > > On Thu, Dec 18, 2008 at 4:47 PM, r wrote: > > > > Is is possible to use some kind of backend storage for Clojure's > > data structures? I mean something like Perl's "tie" function that > > makes data structures persistent (in sense of stora

Re: Persistent storage

2008-12-18 Thread r
On Thu, Dec 18, 2008 at 11:06 PM, Chouser wrote: > > I've pondered a couple approaches, though only enough to find > problems. > > One approach would work act like a Clojure collection, with structural > sharing on-disk. This would be great because it would have > multi-versioning and transactio

Preparing for Release 1.0 (was: Re: 20081217 Release)

2008-12-18 Thread bc
On Dec 18, 5:46 am, Rich Hickey wrote: > I've cut a new release, 20081217, which is available from Google Code: > > http://clojure.googlecode.com/files/clojure_20081217.zip Reading noob comments on this list, I suspect many people downloaded the September Clojure tarball and tried (with mixed su

Re: Persistent storage

2008-12-18 Thread Mark McGranaghan
I've likewise though a fair bit about this, but haven't been able to come up with a particularly satisfying solution. One approach I've considered is a watcher-type system where persistence is defined in terms of immutable snapshots and append-only journals: you snapshot the data to disk occasion

Re: running Gorilla

2008-12-18 Thread Mike Perham
I think the point is that the installation documentation is a little lacking right now. Can you create a more thorough install doc which walks us through the setup? I'm an experienced Java developer so I had no problem getting the Gorilla server running but the vim setup is a mystery to me. I c

Re: Typo on "Refs and Transactions" page

2008-12-18 Thread Daniel Eklund
> > Fixed - thanks for the report. > ahh since you're here and responding, there is a reference to 'boot.clj' at http://clojure.org/getting_started which is no longer valid.. this page also points to sourceforge ... any plans for a bug/typo tracking system so we don't fill up the group with to

Workflow troubles - exceptions in other threads

2008-12-18 Thread levand
I must say, this is absolutely the first thing I've found about Clojure that is difficult or cumbersome - I've been more than pleased with how easy everything else has been. I'm a new to Emacs+Slime, and their learning curve has been the most difficult part, but so far I've overcome everything. H

Re: test-is possible bug in are

2008-12-18 Thread Stuart Sierra
On Dec 18, 6:05 pm, "Mark Volkmann" wrote: > If I understand correctly, > > (are (< 1 2, 5 7)) > > is equivalent to > > (is (< 1 2)) > (is (< 5 7)) Not exactly. The first argument to "are" is a template expression, which is sort of like #(). The arguments to the template are symbols named "_1"

Re: Workflow troubles - exceptions in other threads

2008-12-18 Thread Bill Clementson
On Thu, Dec 18, 2008 at 7:05 PM, levand wrote: > > I must say, this is absolutely the first thing I've found about > Clojure that is difficult or cumbersome - I've been more than pleased > with how easy everything else has been. I'm a new to Emacs+Slime, and > their learning curve has been the mo

Re: Workflow troubles - exceptions in other threads

2008-12-18 Thread levand
You, sir, are a genius. Thank you! Your blog posts on clojure+slime are excellent, too... this is what I get for trying to run with my own setup instead of just following your example. Many thanks, -Luke On Dec 18, 10:16 pm, "Bill Clementson" wrote: > On Thu, Dec 18, 2008 at 7:05 PM, levand wr

Re: REPL Namespace Display

2008-12-18 Thread brian
That's correct. And I couldn't reproduce with the java clojure.lang.Repl either. Guess I was thinking it was just a pass through... I'm an emacs & slime noob too ;) -Brian On Dec 18, 6:00 pm, Chouser wrote: > On Thu, Dec 18, 2008 at 6:02 PM, brian wrote: > > > Hope this is the appropriate p

Re: FAQ

2008-12-18 Thread Adrian Cuthbertson
> Suggestions for entries welcome here. > > > > Rich > Here's another that was a "gotcha" for me for an hour or two... Why after using map/reduce/for to change a java object does the object remain unchanged? (defn initv1 [myseq] (let [v (java.util.Vector.)] (for [x myseq] (.addElement v x)) v))

Re: running Gorilla

2008-12-18 Thread Meikel Brandmeyer
Hi, On 19 Dez., 02:47, Mike Perham wrote: > Can you create a more thorough install doc which walks us through > the setup? Yes. It seems this is necessary. There is a small screencast available explaining the installation of VimClojure with a minimal set of required options. http://de.youtube.

Re: running Gorilla

2008-12-18 Thread Axel Schlueter
Hi, On Fri, Dec 19, 2008 at 2:47 AM, Mike Perham wrote: > ./after/ftplugin/clojure: > total 8 > -rw-r--r-- 1 mperham mperham 1698 Dec 18 17:40 gorilla.vim The directory name "after" is IMHO just meant as a hint like in "copy this files AFTER building the gorilla jar" but not as the name of t

Re: Preparing for Release 1.0 (was: Re: 20081217 Release)

2008-12-18 Thread Meikel Brandmeyer
Hi, On 19 Dez., 02:10, bc wrote: > For clojure-contrib, it would make sense to create a matching tarball > whenever a Clojure release occurs. For the other 3, it would be > necessary for someone to test and save off a copy of the libraries > somewhere (that by itself  would make getting started

Re: running Gorilla

2008-12-18 Thread Meikel Brandmeyer
Hi, On 19 Dez., 08:04, "Axel Schlueter" wrote: > The directory name "after" is IMHO just meant as a hint like > in "copy this files AFTER building the gorilla jar" but not as > the name of the final directory. No it is not. The after is there on purpose. It says "load this file after loading th