Bugfix for core.line-seq [patch]

2009-02-24 Thread Toralf Wittner
Dear list members, It seems that core.line-seq contains a small bug w.r.t. laziness. The side effect (. rdr (readLine)) occurs before lazy-seq, so the sequence created is not fully delayed. Fix attached. Cheers, Toralf --~--~-~--~~~---~--~~ You received this messa

Re: r994 UTF8 addition broke latin-1 characters (ISO-8859-1) - WAS: Re: Unicode, accented characters

2009-03-07 Thread Toralf Wittner
On Sat, 2009-03-07 at 05:43 -0800, max3000 wrote: > Ok, so I ended up doing this in my code: > > String resource = "/exmentis/rules_main.clj"; > InputStream is = getClass().getResourceAsStream(resource); > String script = ... read in is as a String (like slurp) ... > Strin

Reflection warning with source path [patch]

2009-04-05 Thread Toralf Wittner
Dear list members, When I recently turned on reflection warnings, I missed source path information (i.e. filenames) because warnings will include referenced modules. It would be nice to be able to differentiate from the output where each warning belongs to, e.g. instead of Reflection warning, lin

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, Jun 10, 2009 at 5:14 AM, Robert Lehr wrote: > Q - What stops Clojure's agent send-off function from becoming a DOS > ("denial of service") vulnerability in a server? As you noted, send-off uses a cached thread pool, so there is no protection from creating more threads than your system can

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, 2009-06-10 at 10:22 -0600, Daniel Lyons wrote: > > On Jun 10, 2009, at 4:22 AM, Toralf Wittner wrote: > > As written above the serial execution of an Agent's actions makes this > > thread-safe. > > > If the actions are executed serially, what is th

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, 2009-06-10 at 12:44 -0600, Daniel Lyons wrote: > However, I still feel like I am not understanding when agents should > be used or what an appropriate use of them would constitute, though. Well, since agents run independently and asynchronously I found them to be most useful when you ha

Re: agent questions - DOS - asynchrony - protection

2009-06-11 Thread Toralf Wittner
On Wed, 2009-06-10 at 22:23 -0700, Robert Lehr wrote: > Given that this will only occur w/ the send-off function, we can guess > that the tasks may on-average longer than functions that could be sent > via "send". that is b/c send-off is recommended for functions that > could block. That could b

Re: What are people using Clojure for?

2009-06-18 Thread Toralf Wittner
On Thu, 2009-06-18 at 09:39 -0700, Howard Lewis Ship wrote: > I've been doing a number of presentations on Clojure lately > (TheServerSide, Portland Code Camp, Open Source Bridge), and I'm > getting some interest in Clojure and functional programming. > > A question that keeps coming up is: where

Re: Clojure's first year

2008-10-17 Thread Toralf Wittner
Thank you Rich for all the work you have put into Clojure. I am using this language ever since I heard of it in December last year. And it really is a joy to use. I have no doubts that Clojure's second year will be as good as the first one if not better. Cheers, Toralf --~--~-~--~~--

UTF-16 bugfix [patch]

2008-11-09 Thread Toralf Wittner
Dear list members, There is a small problem with unicode escapes in Clojure strings. When StringReader encounters a unicode escape it checks Character.isDigit which is only true for decimal digits, but not hexadecimal. The other problem is that CharacterReader accepts a character constant denotin

Re: Agent errors reporting

2008-11-18 Thread Toralf Wittner
On Sun, 2008-11-16 at 01:35 +0100, [EMAIL PROTECTED] wrote: > Currently agent errors are only reported when the agent is derefenced > or further actions are dispatched to the agent. It would be great if > one can get immediate notification of agent errors maybe through a > callback. I also have a