Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Rob Wolfe
Rob Lachlan napisał(a): Thanks for the help. I had initially installed slime, clojure-mode and swank following the instructions at http://riddell.us/tutorial/slime_swank/slime_swank.html I tried simply installing swank-clojure, but that seemed to conflict with what I already had. So I

Recommended JVM flags for Clojure

2010-01-07 Thread Gabi
Hello fellow Clojurians, I got lots of java.lang.OutOfMemoryError: GC overhead limit exceeded exceptions ,and after a short investigation added the following flags (JVM 1.6.0_17): -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX: +CMSIncrementalPacing These flags seems to solve the problem,

Re: Understanding the continuation monad's bind operator

2010-01-07 Thread Konrad Hinsen
On 07.01.2010, at 01:56, Steven E. Harris wrote: I'm interested in what you mean by composite computation, because I think it's hinting at some concept for monads that I missed. If, as you say, executing the function immediately is not acceptable behavior, then I infer that the goal is to

Re: Understanding the continuation monad's bind operator

2010-01-07 Thread Konrad Hinsen
On 07.01.2010, at 02:23, Steven E. Harris wrote: That means that a monadic function has a signature like a - m b RIght. Say that we're looking to use some normal functions with this monad. Those functions may have signatures like a - b They clearly don't return the right kind of value.

Re: [ANN] clj-peg v0.6 released

2010-01-07 Thread Stefan Tilkov
On Jan 5, 2010, at 5:59 PM, Richard Lyman wrote: For now I'd rather be compensated if someone were planning on using clj-peg commercially. I'm not sure how much I'd charge for a commercial-friendly license, and I don't have an automated process for handling billing and production of a

Newbie question on XML processing

2010-01-07 Thread Tzach
Hello I have a simple task of reading an XML structure, manipulate part of it and writing it back to XML. For example, adding 1$ for each book with a year element after 2005 in the following example: ?xml version=1.0 encoding=UTF-8? bookstore book category=COOKING title lang=enEveryday

Re: Recommended JVM flags for Clojure

2010-01-07 Thread kyle smith
First, make sure you have -server. If you can spare more heap, use - Xmx1g . If you're on a 64bit jvm, -XX:+UseCompressedOops adds a significant boost. A flag that helps quite a bit is -XX: +DoEscapeAnalysis . Finally, if you want to play around with the JIT threshold, use -XX:CompileThreshold=n

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Phil Hagelberg
Rob Lachlan robertlach...@gmail.com writes: Thanks for the help. I had initially installed slime, clojure-mode and swank following the instructions at http://riddell.us/tutorial/slime_swank/slime_swank.html I tried simply installing swank-clojure, but that seemed to conflict with what I

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-07 Thread Phil Hagelberg
Steven E. Harris s...@panix.com writes: Here's the stack: o swank-clojure Git head. o SLIME Both CVS head and git://git.boinkor.net/slime.git head behave the same way, as the offending calls are in swank-clojure. Could you try installing SLIME via ELPA as recommended in the

Re: Recommended JVM flags for Clojure

2010-01-07 Thread Stuart Sierra
I use -XX:+UseConcMarkSweepGC. And don't forget -Xmx, just having a bigger heap can solve some problems. Some people have found it necessary to increase the PermGen size, but usually only for programs that generate a lot of functions dynamically. -SS On Jan 7, 4:20 am, Gabi

clojure-contrib 1.1.0 Release Candidate 2

2010-01-07 Thread Stuart Sierra
We have a second Release Candidate for clojure-contrib version 1.1. This avoids ticket #42, AOT compilation of clojure-contrib.jar pre-sets logging implementation, by not AOT-compiling logging.clj. -SS -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: ANN: 6pm Sat, Jan 9th: Wraith Scheme, Paralell Distributed Clojure at the Hacker Dojo

2010-01-07 Thread nallen05
Whoops, yes, I meant Jan 9, thanks On Jan 6, 8:02 pm, ajay gopalakrishnan ajgop...@gmail.com wrote: It's Jan 9 I guess On Wed, Jan 6, 2010 at 10:53 PM, nallen05 nalle...@gmail.com wrote: Two very cool presentations this Saturday at the Hacker Dojo in Mountain View: 1. An introduction

Re: Recommended JVM flags for Clojure

2010-01-07 Thread Gabi
Thanks I'll try those flags. I indeed use 64 bits On Jan 7, 6:47 pm, kyle smith the1physic...@gmail.com wrote: First, make sure you have -server. If you can spare more heap, use - Xmx1g . If you're on a 64bit jvm, -XX:+UseCompressedOops adds a significant boost. A flag that helps quite a bit

Re: Recommended JVM flags for Clojure

2010-01-07 Thread Albert Cardona
What I use: -Xincgc : enable incremental garbage collector. Works great when there's more than 1 CPU -Xms4000m -Xmx4000m : set both min and max heap size to the same amount (4 Gb in this case). Prevents dynamic heap resizing, which at high loads may result in unexpected out of memory errors and

ClojureCLR + Silverlight

2010-01-07 Thread Garth Sheldon-Coulson
Hi All, Does anyone know if ClojureCLR runs or could run on the Silverlight CLR? Can one use ClojureCLR to build Silverlight applications? I am as new as one can be to the .NET/CLR world, but the combination seems promising for an application I am planning to work on. Garth -- You received

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Rob Lachlan
Thanks Phil and Rob for your help. I got rid of everything in emacs.d, and tried reinstalling from the beginning. For some reason, elpa seems to get stuck halfway through with this message: trying to parse HTTP response code in odd buffer: *http tromey.com:80* But having installed

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-07 Thread Steven E. Harris
Phil Hagelberg p...@hagelb.org writes: Could you try installing SLIME via ELPA as recommended in the swank-clojure readme? That will be a project I'll have to defer until the weekend, as I've never used ELPA. I use the CVS SLIME almost daily for Common Lisp work, so I'm reluctant to give it

Re: Understanding the continuation monad's bind operator

2010-01-07 Thread Steven E. Harris
Thank you, Konrad. Your explanation was perfect. -- Steven E. Harris -- 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

Re: Understanding the continuation monad's bind operator

2010-01-07 Thread Steven E. Harris
Konrad Hinsen konrad.hin...@fastmail.net writes: When the monadic values are functions representing computations, monadic composition yields a new function but doesn't execute anything. When the monadic values represent results of computations, then monadic composition implies execution of

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-07 Thread Phil Hagelberg
Steven E. Harris s...@panix.com writes: Could you try installing SLIME via ELPA as recommended in the swank-clojure readme? That will be a project I'll have to defer until the weekend, as I've never used ELPA. I use the CVS SLIME almost daily for Common Lisp work, so I'm reluctant to give

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Phil Hagelberg
Rob Lachlan robertlach...@gmail.com writes: But having installed swank-clojure, I get an error: java.lang.ClassNotFoundException: swank.swank And I can't find swank-clojure.jar anywhere on my system. Should I have built that separately? Anyway, thanks very much for all your help. How did

Re: gui repl

2010-01-07 Thread Joseph Smith
This is very interesting, but I cannot seem to get Clojure code to execute in it. I have it installed and field thinks it is installed. Do I need to somehow switch modes? --- Joseph Smith j...@uwcreations.com On Jan 4, 2010, at 3:42 PM, Marc Downie wrote: Well, if people are in the

Re: Recommended JVM flags for Clojure

2010-01-07 Thread Seth
Hi Gabi, This may not be useful, but have you tried running the Clojure new branch? Rich implemented fine-grained locals clearing on the new branch, and it helps avoid holding onto unused data accidentally.

[ANN] CfP: IEEE Software Special Issue: Multiparadigm Programming

2010-01-07 Thread Dean Wampler
Apologies for repeat emails… Note the 1 Feb. deadline!CfP: IEEE Software Special Issue: Multiparadigm Programming *Final submissions due: 1 February 2010 Publication date: September/October 2010* For most of today’s applications, using one language and one paradigm—for instance, object-oriented

Re: Newbie question on XML processing

2010-01-07 Thread Sean Devlin
Tzach, I'd start will clojure.xml. At a very high level, my program would look like this 1. Load the xml file with clojure.xml/parse 2. Apply your filtering code with something like map-if (see below) (defn map-if [pred f coll] (map #(if (pred %) (f %) %) coll)) 3. Use

Re: Leiningen uberjar: excluding dev-dependencies; new minus-clojure task

2010-01-07 Thread Saul
On Jan 6, 6:07 pm, Perry Trolard trol...@gmail.com wrote: I suppose I could create a leiningen project for my clj script, specifying libraries I want as dependencies then just putting its uberjar on the classpath, but this requires that the libraries are available in maven repos. Have other

Re: Recommended JVM flags for Clojure

2010-01-07 Thread borgees
Have you tried running with escape analysis on? It might help take some of the burden off the garbage collector. -XX:+DoEscapeAnalysis On Jan 7, 4:20 am, Gabi bugspy...@gmail.com wrote: Hello fellow Clojurians, I got lots of java.lang.OutOfMemoryError: GC overhead limit exceeded exceptions

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-07 Thread Cyrus Harmon
I agree with Steven on this. As one who uses emacs and SLIME for both common lisp and clojure, I'd like to be able to use the current SLIME HEAD for clojure development work. I consider the fact that swank-clojure and the SLIME HEAD don't play nicely with each other to be a deficiency of

Re: [ANN] clj-peg v0.6 released

2010-01-07 Thread Michał Kwiatkowski
On Mon, Jan 4, 2010 at 11:27 PM, Richard Lyman richard.ly...@gmail.com wrote: This project adds support in Clojure for Parsing Expression Grammars. You'll be able to write pseudo-ebnfs directly in your Clojure code. Sounds nice, but where's the source code? Cheers, mk -- You received this

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Joel
Hello, I have an emacs setup on OSX using elpa with the latest clojure-mode, swank-clojure, slime, slime-repl all from ELPA. When I upgraded to the latest swank-clojure in ELPA (swank-clojure-1.1.0), I began to get this error as well: Searching for program: no such file or directory, lisp I

Interesting Clojure job in New York

2010-01-07 Thread Aaron Harnly
Hi folks, We're looking for someone savvy with Clojuresque ways of thinking, excited by phrases like Monte Carlo simulation, Bayesian inference, and combinatorial optimization, willing to travel to New York for intense, engaging work, and (we hope!) motivated by an interest in education,

Re: Probability Monad

2010-01-07 Thread joel r
Hi, I'm new to monads in clojure, and I'm loving them, they're really awesome! But right now I need some help. Either I'm using dist-m wrong, or it's a bug I've found. It can be reproduced with: clojure commit f4c58e3500b3668a0941ca21f9aa4f444de2c652 clojure-contrib commit

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-07 Thread Richard Newman
I don't want to have to use ELPA, or maven, or some other configuration management thing to get basic tools like an editing environment for the language up and running. Perhaps I should just bite the bullet and use the crazy configuration/package management things that the clojure