Re: Observations and questions regarding long-running, adaptable, transparent software

2008-09-17 Thread Rich Hickey
On Sep 16, 11:40 pm, falcon [EMAIL PROTECTED] wrote: I work on financial software--the kind that reads streaming data and static data from various sources, transforms these streams through various calculations and possibly decides to send out trades. ... Is there a good solution to the

Re: Improved compiler error messages, part 2

2008-09-17 Thread Rich Hickey
On Sep 17, 1:54 pm, Allen Rohner [EMAIL PROTECTED] wrote: After feedback on my previous compiler error message patch, I've started looking into the problem more. My goal is to have the file and line number printed on every user-visible stack trace. An example of my desired output is:

Re: 20080916 Release

2008-09-16 Thread Rich Hickey
On Sep 16, 10:15 am, Randall R Schulz [EMAIL PROTECTED] wrote: On Tuesday 16 September 2008 07:00, Rich Hickey wrote: http://sourceforge.net/project/showfiles.php?group_id=137961 Added: validators for vars/refs/agents, delay/force, isa-based multimethods and a la carte hierarchies

Re: Generate exposers for ancestral fields

2008-09-16 Thread Rich Hickey
On Sep 16, 11:12 am, Matt Revelle [EMAIL PROTECTED] wrote: Rich, Should I send in a CA and add ancestry verification and error handling or is this an unacceptable change? I'm amenable to the idea, but I haven't looked at the specifics, holding off on changes pre-release. Please do send in

Re: PermGen issue

2008-09-14 Thread Rich Hickey
On Sep 14, 6:26 am, MikeM [EMAIL PROTECTED] wrote: If you haven't already seen it, an interesting post from Charles Nutter on implementing dynamic languages on the JVM:http://blog.headius.com/2008/09/first-taste-of-invokedynamic.html Nutter mentions a possible OutOfMemory condition that

Re: PermGen issue

2008-09-14 Thread Rich Hickey
On Sep 14, 10:09 am, Randall R Schulz [EMAIL PROTECTED] wrote: On Sunday 14 September 2008 05:57, Rich Hickey wrote: On Sep 14, 6:26 am, MikeM [EMAIL PROTECTED] wrote: If you haven't already seen it, an interesting post from Charles Nutter on implementing dynamic languages

Re: AFn.throwArity() macro problem

2008-09-14 Thread Rich Hickey
On Sep 14, 1:48 pm, Josh Daghlian [EMAIL PROTECTED] wrote: So I'm trying to write a macro that will create a bunch of named (refs to) structs. What's baffling is that it actually works, in that it creates the named struct refs as I want, but _then_ throws AFn.throwArity(). I'm wracking my

Re: Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread Rich Hickey
On Sep 13, 7:44 am, meredydd [EMAIL PROTECTED] wrote: Hey all, The current version of the (with-connection) macro in clojure- contrib doesn't return the result of its body. (It just returns nil from the commit() call at the end of the transaction). I attach a patch to achieve this

Re: Method dispatch on class - ns-* functions accepting symbols

2008-09-12 Thread Rich Hickey
On Sep 11, 11:33 am, Stephen C. Gilardi [EMAIL PROTECTED] wrote: On Sep 11, 2008, at 8:12 AM, Rich Hickey wrote: Using the latest syntax is good, although the idiom for static calls is (Classname/method args). For instance: (clojure.lang.Namespace/find sym) instead of: (.find

Re: Clojure Poll 09/2008

2008-09-12 Thread Rich Hickey
On Sep 11, 4:29 pm, James Reeves [EMAIL PROTECTED] wrote: On Sep 10, 7:40 pm, Rich Hickey [EMAIL PROTECTED] wrote: What are you doing with Clojure? Working on Compojure, a library/framework for developing web applications. What 3 features would you most like to see added next? 1

Re: LazyCons NPE

2008-09-12 Thread Rich Hickey
On Sep 12, 12:21 pm, MikeM [EMAIL PROTECTED] wrote: Adding meta data to a lazy cons throws an NPE in line 44 of LazyCons.java: (let [lazycons (map identity (range 10))] (with-meta lazycons {:a 1})) It appears that when the LazyCons(IPersistentMap meta, Object first, ISeq rest)

Re: Method dispatch on class - ns-* functions accepting symbols

2008-09-11 Thread Rich Hickey
On Sep 10, 10:59 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote: On Sep 10, 2008, at 2:08 PM, Rich Hickey wrote: It would work, but it seems like overkill. In particular, there's no intention to extend it any further, and all symbol versions do the same thing, call find-ns and delegate

Re: Bug: self require - stack overflow

2008-09-10 Thread Rich Hickey
On Sep 10, 1:38 am, ntupel [EMAIL PROTECTED] wrote: On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote: On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 9, 11:26 am, Brett Morgan [EMAIL PROTECTED] wrote: For C, protection against circular

Re: Nested (defn)

2008-09-10 Thread Rich Hickey
On Sep 10, 11:33 am, Michael Reid [EMAIL PROTECTED] wrote: Hi folks, There was a thread a little while back (http://groups.google.com/group/clojure/browse_thread/thread/8c4bea212...) about implementing true data hiding by nesting defns under a let, e.g.: (let [hidden-ref (ref 10)]

Re: Method dispatch on class - ns-* functions accepting symbols

2008-09-10 Thread Rich Hickey
On Sep 9, 8:17 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote: Rich mentioned a desire for the ns-* functions to accept either a symbol or a namespace for arguments where they currently accept a namespace. Using a multimethod that dispatches on the class of that argument is one way to do

Google Code?

2008-08-30 Thread Rich Hickey
Google has recently opened up Google Code to hosting projects using the Eclipse Public License, the successor to the CPL used by Clojure. Right now I'm only using SF for SVN, as the web interface on SF for anything else is quite cumbersome. I could easily move to EPL for Clojure, making hosting

Re: genclass error message

2008-08-25 Thread Rich Hickey
On Aug 22, 6:24 pm, Chouser [EMAIL PROTECTED] wrote: It's pretty easy to get typo (or brain-o) in the package or method name when using genclass, especially since the correct naming recently changed. Currently you might see something like: user= (gen-and-load-class 'pkg.ClassName :methods

<    5   6   7   8   9   10