On Mon, Sep 7, 2009 at 5:37 AM, David Andrewsdammi...@gmail.com wrote:
triddell wrote:
This patch fixed the issue for me on the IBM JDK.
Sadly, not for me! (IBM 1.5.0) c/c/pprint/ColumnWriter still fails
with:
[java] java.lang.ClassFormatError: (clojure/contrib/pprint/
ColumnWriter)
Hi,
Ditto on the ordering example. Clojure can't infer which order your
code needs to run any more than it can figure out what your code is
supposed to do.
On the deadlock question, it is my understanding from a prior post by
Rich that Clojure's STM acquires locks in such a way that deadlocks
On Wed, Jun 24, 2009 at 11:41 AM, Nicolas Ourynicolas.o...@gmail.com wrote:
This is useful when you write a macro that generates a structure with a
known set of fields at macro-expansion time. But sometimes this
known set of fields will be empty.
( Imagine a macro allowing to shortly write
On Mon, Jun 15, 2009 at 9:13 AM, Parthparth.malwan...@gmail.com wrote:
On Jun 15, 7:08 am, James Koppel darmanith...@gmail.com wrote:
I am trying to write a function to simplify working with GridBagConstraints
-- that is, instead of writing
(let [c (GridBagConstraints.)]
(set!
On Tue, Jun 2, 2009 at 8:12 AM, Robert Campbell rrc...@gmail.com wrote:
I've been looking at using the clojure.set functions to create a
simple in-memory database cache. Basically when the app boost up, load
entire db into memory, work with it through the basic relational
algebra functions
On Fri, May 29, 2009 at 2:51 PM, Paul Stadig p...@stadig.name wrote:
You meant to type disclosure, but instead you typed disclojure.
Paul
How about when you try to write code in other languages, and
reflexively place parentheses before function/method names?
(len 'Foo') -- not valid Python.
On Wed, May 20, 2009 at 8:44 AM, pmf phil.fr...@gmx.de wrote:
On May 20, 4:47 am, Per nondual...@gmail.com wrote:
;; The macro
(defmacro def-fields [name tgs]
`(defstruct ~name ~@(map #(symbol (str : %)) tgs))
)
If you replace the call to 'symbol' with a call to 'keyword', it works
(I
On Mon, Feb 16, 2009 at 12:05 PM, Perry Trolard trol...@gmail.com wrote:
I agree with the majority of posters that the breaking changes in the
service of optimal names is the right way to go.
I found the explanation recipe for porting at clojure.org/lazier
clear easy to follow. I didn't
On Tue, Feb 10, 2009 at 5:02 PM, MattH mbhut...@gmail.com wrote:
The pipe macro is definitely not a new idea btw. It's taken from a
thread posted on another lisp group.
Someone posted a silly inflammatory attack on lisp, contrasting unix:
cat a b c | grep xyz | sort | uniq
to how they'd
On Tue, Jan 27, 2009 at 3:04 AM, Keith Bennett keithrbenn...@gmail.com wrote:
All -
I tried testing the code at http://clojure.org/Refs to see what the
benefit of multicore processing would be. To my surprise, the my-pmap
function took *more* time, not less, than the map function.
On Thu, Jan 22, 2009 at 4:43 PM, Peter Wolf opus...@gmail.com wrote:
This is a rejuvenation of the old calling Java from Clojure thread
I have been looking at the solutions from Mark
/
1) From a Java application, read a text file containing Clojure code
and invoke specific functions it
On Fri, Jan 16, 2009 at 9:57 PM, David Nolen dnolen.li...@gmail.com wrote:
Just made sense to me today as well.
#^Class
is short form for saying set the metadata for the symbol being defined (in
this case list) to the map {:tag Class}.
#^ is a reader macro for setting metadata for the
On Mon, Jan 19, 2009 at 11:59 AM, Chouser chou...@gmail.com wrote:
On Sat, Jan 17, 2009 at 8:03 PM, pc peng2che...@yahoo.com wrote:
This is very useful. For me it was useful to be able to limit the
output to lines that contained a few selected letters.
(show String pper)
=== public final
On Sat, Jan 17, 2009 at 8:25 PM, Dan Larkin d...@danlarkin.org wrote:
On Jan 17, 2009, at 6:29 PM, Stephen C. Gilardi wrote:
Hi Dan,
That's interesting. I've given it some thought and I've come to see
it as a version of resolve that tries harder than the default.
Here's an implementation
Is there anyway to write a macro/function that acts as a function when
necessary (so it can be passed as an argument), but expands into a
macro (for speed) when deemed possible?
I don't think this is possible without some sort of support for a
macro/function duality in core Clojure. In the
On Tue, Jan 13, 2009 at 12:39 PM, samppi rbysam...@gmail.com wrote:
Recently, I asked how to make a function evaluate its arguments lazily
(http://groups.google.com/group/clojure/browse_thread/thread/
cd01ef39c2b62530), and I was given a good solution: use Delay objects
(with the delay and
On Sun, Jan 11, 2009 at 9:12 PM, Mark Triggs mark.h.tri...@gmail.com wrote:
I've also found this useful for accessing members in nested maps. For
example:
(let [me {:person {:name {:first Mark
:last Triggs}
:email mark.h.tri...@gmail.com}}]
Hi,
I don't have Clojure in front of me right now to try this out, but
from the looks of the README let me be the first to give you an
emphatic *Thank you*.
This is looking rather useful. Nice work.
My one concern with this is how brittle is this with respect to
Clojure's development? Have you
Hi,
I'm not sure how to integrate this into the Tomcat JSP scenario, but I
think the issue is that *use-context-classloader* is not set to true
(it defaults to nil).
Again, I'm not positive how to get your JSP to do this, but an
untested stab at it would be just to wrap the call to
Doh!
I just read your discussion w/ Anton on his blog. Seems you've already
looked at the context classloader.
*shrug*. I'm stumped.
/mike.
On Mon, Dec 29, 2008 at 12:46 PM, Michael Reid kid.me...@gmail.com wrote:
Hi,
I'm not sure how to integrate this into the Tomcat JSP scenario, but I
For what its worth, I've had a similar setup working on Mac OS X 10.5:
Aquamacs
SLIME
jogl-1.1.1
I'm pretty sure I'm running Java 1.6 (can't check now). I had no
issues with hangs. Perhaps QT is the bad ingredient.
/mike.
On Thu, Dec 18, 2008 at 2:40 PM, chris cnuern...@gmail.com wrote:
I
On Wed, Dec 17, 2008 at 11:00 AM, Scott Jaderholm jaderh...@gmail.com wrote:
Thanks for the idea. Although those are definitely necessary steps,
unfortunately the problem still persists.
Can you get a similar Java program work correctly? i.e. we want to try
and separate if this is specific to
I've been toying with something similar. The approach I took was to
define multi-methods for the various operators:
(defmulti add class)
(defmulti sub class)
(defmulti mul class)
(defmulti div class)
...
Then I of course write the implementations for various different
types. Then, because the
with a delimited continuation, you're capturing it from the outside, so you
don't have that problem.
Yeah I'm pretty sure its possible. I've been intrigued by this
continuations based web programming trend as well. Early on when I
learned of Clojure I made a very poor attempt to port cl-cont
gen-class will always create a relationship between the stub class and
the load (__init) class, as well as the namespace in which the
implementations will be found, the naming conventions for matching
etc. It's a high-level feature with a lot of power, but by no means
represents a universal
Is there anyway to assert that code does have side effects should
never be called in a transaction?
(dosync
(assert (not (in-transaction - Assert: Can't call this code in
a transaction
That could be useful for debug builds of IO libraries.
I don't know that there's anything
Hi,
On Nov 7, 3:48 pm, Stuart Halloway [EMAIL PROTECTED] wrote:
The following macro in lancet defines an ant task.
(defmacro define-ant-task [task-name]
`(def ~(symbol task-name) (create-ant-task ~task-name)))
(At least) one of the following assumptions is wrong:
(1)
Hi,
I am getting the following error trying to extend java.lang.Exception
in the latest revision of Clojure:
user=(defmacro defexception [name]
`(try
(gen-and-load-class (quote ~name) :extends Exception)
(catch java.lang.LinkageError le#
(. le# (printStackTrace)
user=
28 matches
Mail list logo