Clojure-based scientific paper!

2010-07-13 Thread bOR_
Hi all, My first paper with results based on a clojure-build agent-based model is in press! If you have academic access to the journal, you can peek at it here: http://dx.doi.org/10.1016/j.epidem.2010.05.003 , but otherwise it is also available on mendeley: http://www.mendeley.com/profiles/boris

Re: ANN: Deview - Better test results

2010-07-13 Thread Heinz N. Gies
On Jul 14, 2010, at 6:40 , Phil Hagelberg wrote: > This is really cool! > > Unfortunately since I spend all my time in the terminal, (for remote > pairing) I can't really use a web-based interface like this for normal > work. Do you have any plans to create a command-line client? How hard > woul

Re: Clojure on BEAM

2010-07-13 Thread Stefan Tilkov
On Jul 14, 2010, at 7:24 AM, Kyle Schaffrick wrote: > But I have to admit, the performance numbers > Erjang is posting took me completely by surprise. A stroke of > brilliance using Kilim for the scheduler; I think my previous > indifference assumed a naive JVM Erlang implementation that mapped >

Re: ANN: Deview - Better test results

2010-07-13 Thread Brenton
Phil, Could you give me a little more detail as to why you can't use it? I also work from the command line and this works very well for me. I thought that this would work well for remote pairing. Do you work from sources on your machine or from a server? Either way you should be able to add the se

Re: Clojure on BEAM

2010-07-13 Thread Kyle Schaffrick
On Mon, 12 Jul 2010 02:06:05 -0700 (PDT) Krukow wrote: > > On Jul 11, 11:55 am, stewart wrote: > > Hi All, > > > > Has anybody considered implementing Clojure on BEAM. Are there any > > works or current attempts currently available? > > > > In your view where are the real trip ups for this to ha

Re: ANN: Deview - Better test results

2010-07-13 Thread Phil Hagelberg
On Tue, Jul 13, 2010 at 12:33 PM, Brenton wrote: > Deview is a tool for running tests in Leiningen projects which use > clojure.test. Test results are much better than plain text. Any > exception, either at compile time or in a test failure, is filtered > using clj-stacktrace. For other failures a

Re: Executable clojure scripts (#!/usr/bin/env clj)

2010-07-13 Thread Phil Hagelberg
On Tue, Jul 13, 2010 at 1:55 PM, Paul Richards wrote: > I'm new to Clojure, and I've found it possible to make Clojure scripts > executable by adding '#!/usr/bin/env clj' as the first line (and > 'chmod +x' of course). > > E.g. My sample script: > > #!/usr/bin/env clj > > (println "Hello World") >

closure discrepancy

2010-07-13 Thread Brent Millare
I noticed that (def z (let [d 3] (fn [] d))) (eval `(identity ~z)) fails and raises java.lang.ExceptionInInitializerError while (def y (fn [] 3)) (eval `(identity ~y)) works properly. Is there some rule about evaluating closures I'm missing here? Notes: Using latest 1.2.0-SNAPSHOT commit 047

Re: ClojureDocs.org

2010-07-13 Thread j-g-faustus
On Jul 13, 8:37 pm, Paul Moore wrote: > Can I suggest omitting the "Table of contents" sidebar when printing? > I've not tried printing the document to see how it looks, but removing > the sidebar would be an essential starting point... Why would anyone want to print it? I occasionally print lon

Re: ClojureDocs.org

2010-07-13 Thread Rick Moynihan
On 11 July 2010 12:05, Lukasz Urbanek wrote: > Looks very nice! > > Hoping for the categories to arrive to the core namespace. This really > saves a lot of time for a clojure beginner like me. +1 > Additionally, I'd prefer if the source was wasn't exposed by default > (It's quite distracting whe

Re: Executable clojure scripts (#!/usr/bin/env clj)

2010-07-13 Thread Mike Meyer
On Tue, 13 Jul 2010 21:55:15 +0100 Paul Richards wrote: > I'm new to Clojure, and I've found it possible to make Clojure scripts > executable by adding '#!/usr/bin/env clj' as the first line (and > 'chmod +x' of course). > > E.g. My sample script: > > #!/usr/bin/env clj > > (println "Hello Wor

Executable clojure scripts (#!/usr/bin/env clj)

2010-07-13 Thread Paul Richards
I'm new to Clojure, and I've found it possible to make Clojure scripts executable by adding '#!/usr/bin/env clj' as the first line (and 'chmod +x' of course). E.g. My sample script: #!/usr/bin/env clj (println "Hello World") This seems like a very convenient way to dabble with Clojure, yet I

Re: ClojureDocs.org

2010-07-13 Thread Meikel Brandmeyer
Hi, Am 13.07.2010 um 14:26 schrieb j-g-faustus: >>> I made my own cheat sheet for private use over the past month or so, >>> core functions only. It's at the 80% stage, I don't expect it will >>> ever be 100%, but I have found it useful: >>> http://faustus.webatu.com/clj-quick-ref.html Some comm

ANN: Deview - Better test results

2010-07-13 Thread Brenton
Hello Group. Another child (aleph being the other) of the June Bay Area Clojure Meetup. At the meetup, George Jahad presented difform; a tool for displaying the diff of two forms. I decided to take this to the next level. Deview is a tool for running tests in Leiningen projects which use clojure.

Re: ClojureDocs.org

2010-07-13 Thread .Bill Smith
I agree. The in-code function documentation serves its purpose but could be improved upon in a medium where space is at less of a premium. Bill Smith Austin, TX On Jul 10, 12:36 pm, James Reeves wrote: > On 10 July 2010 15:06, Stuart Halloway wrote: > > > (6) Because docstrings are designed f

Re: ClojureDocs.org

2010-07-13 Thread Paul Moore
On 12 July 2010 23:25, j-g-faustus wrote: > The site looks very nice, I especially like the "find real world > examples" functionality and the fact that it collects documentation > for common non-core libraries as well. > > I made my own cheat sheet for private use over the past month or so, > cor

Re: faster flatten?

2010-07-13 Thread Cam
OK, all submitted. The tickets are up for discussion at http://www.assembla.com/spaces/clojure/support/tickets/400-a-faster-flatten http://www.assembla.com/spaces/clojure/support/tickets/401-promote--seqable---from-contrib- I will mail my CA in tomorrow morning. Thanks Stu and Mark! On Jul 13,

Re: faster flatten?

2010-07-13 Thread Stuart Halloway
Hi Cam, Please submit the modified version, and, if you want, create a separate ticket for "seqable?". I would like to review the latter separately. Stu > Hi again, I modified my-flatten to return the empty list for sets and > maps as core/flatten does. It doesn't seem to handle Arrays anymore

Re: faster flatten?

2010-07-13 Thread Cam
Hi again, I modified my-flatten to return the empty list for sets and maps as core/flatten does. It doesn't seem to handle Arrays anymore though. I'm assuming it's because ArrayList and (int-array ...) don't implement Sequential. None the less should I still submit this modified version that behave

Re: faster flatten?

2010-07-13 Thread Stuart Halloway
Hi Cam, The full instructions for joining the team and then submitting a patch are at [1] an [2], but in short: * send in a CA * join the Assembla space under you real name * post a patch there linking to this thread Thanks! Stu [1] http://clojure.org/contributing [2] http://clojure.org/patche

Re: faster flatten?

2010-07-13 Thread Cam
Hi Stuart, Thanks for checking that out for me! Sorry for not realizing in the first place. I of course would be happy to submit a patch. Should I submit that here or over on the assembla page? On Jul 13, 9:10 am, Stuart Halloway wrote: > Hi Cam, > > Your tests aren't testing the interesting pa

Re: ANN: cache dot clj - caching impure functions

2010-07-13 Thread Nicolas Oury
Dear all, I had the time to clean up my code. It's quite similar to your lib but it uses google-collections and so ConcurrentHashMap instead of (atom {}), which should allow more concurrency. I am a bit annoyed with the semantic of google-collections MapMaker as it does not allow soft keys with eq

Re: CCW zombie error markers

2010-07-13 Thread Laurent PETIT
2010/7/12 Lee Spector > > Thanks Laurent. > > FWIW I had looked for the ccw-specific mailing list but not found it... > perhaps that should be advertised a bit more (e.g. I don't see it mentioned > on http://code.google.com/p/counterclockwise/). Thanks for pointing it out > to me. > It's under t

Stepping, debugging in REPL

2010-07-13 Thread Adam Schmideg
I just made this debugger. It works but is still a bit rough around the edges. I'd be happy to hear your feedback. http://code.google.com/p/taskberry/wiki/Stepl -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: DataLog

2010-07-13 Thread Avram
I am new to clojure but learning quickly. I haven't yet tried clojure.contrib.Datalog, but I analyze big data and I can say that I quite like Nathan Marz's Cascalog. Cascalog is reminiscent of datalog syntax but executes queries on Hadoop via Cascading for data that is too big to fit in memory.

Re: faster flatten?

2010-07-13 Thread Stuart Halloway
Hi Cam, Your tests aren't testing the interesting part without a doall. That said, my quick tests with doall show your approach faring even better. :-) Also, I think what my-flatten does with Java arrays is intuitive (and the current flatten not so much). A patch that preserves the semantics

Re: ClojureDocs.org

2010-07-13 Thread j-g-faustus
On 13 Jul, 01:28, j-g-faustus wrote: > On Jul 13, 12:25 am, j-g-faustus wrote: > > > I made my own cheat sheet for private use over the past month or so, > > core functions only. It's at the 80% stage, I don't expect it will > > ever be 100%, but I have found it useful: > > http://faustus.webatu.

Re: alter atom while iterating

2010-07-13 Thread Chouser
On Sun, Jul 11, 2010 at 9:24 PM, Jeffrey Schwab wrote: > On 7/11/10 9:08 PM, Michał Marczyk wrote: >> >> On 12 July 2010 02:37, Jeffrey Schwab  wrote: >>> >>> I did not know whether the sequence expressions (the right halves of the >>> binding-forms) were evaluated strictly, or re-evaluated on eac

Re: terracotta?

2010-07-13 Thread Paul Stadig
I have not pursued any further work with Terracotta, because I haven't had a real project that required it. I'd be glad to try to pick something back up, especially if there are others interested in helping out. Paul http://paul.stadig.name/ (blog) 703-634-9339 (mobile) pjstadig (twitter) p..

Re: Bug report: function metadata is broken

2010-07-13 Thread Meikel Brandmeyer
Hi, On Jul 13, 11:52 am, Mike Mazur wrote: > I asked in the IRC channel about metadata on functions[1], and was > told that it's indeed possible in 1.2. I tried this at the REPL and > saw the following behavior (which looks like a bug): > >   user=> (defn ^{:foo "v1.0"} mfoo "mfoo docstring" []

Bug report: function metadata is broken

2010-07-13 Thread Mike Mazur
Hi, I asked in the IRC channel about metadata on functions[1], and was told that it's indeed possible in 1.2. I tried this at the REPL and saw the following behavior (which looks like a bug): user=> (defn ^{:foo "v1.0"} mfoo "mfoo docstring" [] (println "foo v1.0")) #'user/mfoo user=> (meta

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Folcon
Well I was thinking of providing a simplified subset of the language which be converted into clojure syntax and then executed, that way I would hopefully not give them the full power of the language, but they would still get a reasonable scripting language. Only the keywords that I choose would be

Re: Atomic execution of a SELECT and UPDATE

2010-07-13 Thread Adrian Cuthbertson
Hi Sean, I think there are two ways to do this; 1) Use an agent. You can "send-off" a fn to the agent with your select/update logic and this will run within the agent thread - guaranteed to be serial so you only need your select/update and no retry logic. The state of the agent is not important -

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Mike Meyer
On Tue, 13 Jul 2010 08:29:00 +0200 "Heinz N. Gies" wrote: > > On Jul 13, 2010, at 2:44 , Folcon wrote: > > > > > > > On Jul 13, 1:36 am, ngocdaothanh wrote: > >>> Are there any ways to restrict how many resources a user has access to? > >> > >> If you use Linux, you see /etc/security/limits

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Nicolas Oury
Yes and No but more No than Yes. If they can execute full Clojure, they can use all the memory they want. If they have the right to do a very small number of operation (building block for the program), you can limit the program they execute to those having those shape. But capping memory and CPU