Re: add-classpath replacement

2010-02-22 Thread Lukas Lehner
w to turn them into clojure :( I am using one JVM for more running projects and debugging and developing them as they run. Having more JVMs is just a waste of memory. L On 2/22/2010 6:11 PM, David Nolen wrote: On Mon, Feb 22, 2010 at 11:20 AM, Lukas Lehner <mailto:lehner.lu...@gmail.com

Re: add-classpath replacement

2010-02-22 Thread Lukas Lehner
/2010 9:02 PM, Meikel Brandmeyer wrote: Hi, On Mon, Feb 22, 2010 at 05:20:07PM +0100, Lukas Lehner wrote: add-classpath is marked as depreciated and does not work :( (add-classpath "file:///jars/icu4j-4_2_1.jar") Context classloader is not a DynamicClassLoader [Th

add-classpath replacement

2010-02-22 Thread Lukas Lehner
Hi all add-classpath is marked as depreciated and does not work :( (add-classpath "file:///jars/icu4j-4_2_1.jar") Context classloader is not a DynamicClassLoader [Thrown class java.lang.IllegalAccessError] I don't want to restart jvm anytime I need a new jar. Any workaround or replacement?

Re: Exception handling functional style

2010-01-30 Thread Lukas Lehner
This is second reply suggesting monads (the more the better). Do you have any sources or examples (smaller the better) of the same problem in a monadic and non-monadic way? Thanks Lukas On 1/30/2010 7:21 AM, Konrad Hinsen wrote: Lukas Lehner a écrit : Now, imagine the chain of calling

Re: Exception handling functional style

2010-01-29 Thread Lukas Lehner
e: On Fri, Jan 29, 2010 at 4:24 AM, Lukas Lehner wrote: The question is, wrapping all function in try - catch does not make is clearer (from a processing point of view). Returning nil from broken functions just adds a boilerplate code all the way up. I could not find any guidelines of systemati

Exception handling functional style

2010-01-29 Thread Lukas Lehner
Hi all I am trying to figure out some systematic and clear way how to handle exceptions in clojure and their bubbling up through the call chain. Let me illustrate it on some code examples (not executable, just to show the principle). (defn get-from-io [p] (access-external-source p)) (de

Re: Remote swank cannot recconnect

2010-01-27 Thread Lukas Lehner
Hi Kyle Making a new ssh tunnel is a sure thing. The bad part was that the swank server got "deaf". I could see agents still running (unix screen is cool) but I could not connect to is again. As of open ports, luckily there is a firewall on the machine so only selected ports are exposed. Any

Re: Remote swank cannot recconnect

2010-01-27 Thread Lukas Lehner
Hi Anders Thanks, that did it! Now just reconnect and I can continue from where I was cut off. L On 1/26/2010 4:43 PM, Anders Rune Jensen wrote: Hi You need :dont-close true in (start-server. On Tue, Jan 26, 2010 at 3:07 PM, Lukas Lehner wrote: Hi All I've setup slime to r

Remote swank cannot recconnect

2010-01-26 Thread Lukas Lehner
Hi All I've setup slime to remote repl according to http://asymmetrical-view.com/2009/08/20/emacs-slime-remote-repl.html So far so good (there are some issues, but that other time). There is a problem with reconnecting to the remote machine after the connection is broken (running on wifi). I

Re: clojure unicode on Windows

2010-01-20 Thread Lukas Lehner
unix) then in slime repl user> éő ; Evaluation aborted. user> (def éő 0) #'user/éő user> éő 0 user> looks ok Lukas On 1/15/2010 11:21 PM, Kevin Downey wrote: are you using the repl directly? or wrapped in jline or rlwrap? On Wed, Jan 13, 2010 at 3:02 PM, Lukas Lehner wrote:

Re: clojure unicode on Windows

2010-01-13 Thread Lukas Lehner
t; L On 1/13/2010 11:34 PM, Kevin Downey wrote: java uses local settings, on windows the default encoding is some godawful thing (same on Mac, still godawful, but different) set file.encoding to pick something sane On Wed, Jan 13, 2010 at 1:52 PM, Lukas Lehner wrote: Hi all The cloju

clojure unicode on Windows

2010-01-13 Thread Lukas Lehner
Hi all The clojure unicode reading, evaluating and printing was discussed already with various results. Let me add one more, and kindly ask for advice if anyone has. OS: Windows 7 clojure 1.1 C:\>java -version Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 java version "1.6.0_17" Java(TM)