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

2010-07-13 Thread Heinz N. Gies
On Jul 13, 2010, at 2:44 , Folcon wrote: On Jul 13, 1:36 am, ngocdaothanh ngocdaoth...@gmail.com wrote: Are there any ways to restrict how many resources a user has access to? If you use Linux, you see /etc/security/limits.conf. That is useful and I will keep that in mind, however I

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 he...@licenser.net wrote: On Jul 13, 2010, at 2:44 , Folcon wrote: On Jul 13, 1:36 am, ngocdaothanh ngocdaoth...@gmail.com wrote: Are there any ways to restrict how many resources a user has access to? If you use Linux, you see

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

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 mfoo)

Re: Bug report: function metadata is broken

2010-07-13 Thread Meikel Brandmeyer
Hi, On Jul 13, 11:52 am, Mike Mazur mma...@gmail.com 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

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)

Re: ClojureDocs.org

2010-07-13 Thread j-g-faustus
On 13 Jul, 01:28, j-g-faustus johannes.fries...@gmail.com wrote: On Jul 13, 12:25 am, j-g-faustus johannes.fries...@gmail.com 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

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: 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.

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

Re: CCW zombie error markers

2010-07-13 Thread Laurent PETIT
2010/7/12 Lee Spector lspec...@hampshire.edu 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.

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

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 stuart.hallo...@gmail.com wrote: Hi Cam, Your tests aren't

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]

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

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
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: ClojureDocs.org

2010-07-13 Thread Paul Moore
On 12 July 2010 23:25, j-g-faustus johannes.fries...@gmail.com 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

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 jree...@weavejester.com wrote: On 10 July 2010 15:06, Stuart Halloway stuart.hallo...@gmail.com

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

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 comments after

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: Executable clojure scripts (#!/usr/bin/env clj)

2010-07-13 Thread Mike Meyer
On Tue, 13 Jul 2010 21:55:15 +0100 Paul Richards paul.richa...@gmail.com 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

Re: ClojureDocs.org

2010-07-13 Thread Rick Moynihan
On 11 July 2010 12:05, Lukasz Urbanek resc...@gmail.com 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

Re: ClojureDocs.org

2010-07-13 Thread j-g-faustus
On Jul 13, 8:37 pm, Paul Moore p.f.mo...@gmail.com 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

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

Re: ANN: Deview - Better test results

2010-07-13 Thread Phil Hagelberg
On Tue, Jul 13, 2010 at 12:33 PM, Brenton bashw...@gmail.com 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

Re: Clojure on BEAM

2010-07-13 Thread Kyle Schaffrick
On Mon, 12 Jul 2010 02:06:05 -0700 (PDT) Krukow karl.kru...@gmail.com wrote: On Jul 11, 11:55 am, stewart setor...@gmail.com 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

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