On Mar 21, 2009, at 1:44 PM, Mark Triggs wrote:
>
> user=> (str (filter even? (range 1 10)))
> "clojure.lang.lazy...@f1005"
>
> Previously this would readably print the contents of the seq and some
> of my code was relying on this. Obviously it's not difficult to call
> `prn-str' myself, but
thanks, Rich!
=
ANGOL
=
-|-^...@^_^, =|+^_^X++~_~,@-
On Sat, Mar 21, 2009 at 2:26 AM, Rayne wrote:
>
> I Anthony Simpson, with the support of fellow Clojurists hereby
> declare March 20th, the first day of spring, Rich Hickey appreciation
> day!
>
> Rich Hickey has certainly
You may be able to achieve what you want by directly accessing
Clojure's reflector class instead of using the special form:
user=> (clojure.lang.Reflector/invokeInstanceMethod
"Hello" "substring" (to-array [1 2]))
"e"
There is also invokeStaticMethod (and others).
Regards,
Tim.
On Mar 22, 12
You absolutely deserve it.
On Mar 21, 8:02 pm, Rich Hickey wrote:
> Appreciation appreciated!
>
> Thanks all,
>
> Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send ema
Or rather I did not express that requirement clearly enough.
On Sat, Mar 21, 2009 at 9:21 PM, David Nolen wrote:
> On Sat, Mar 21, 2009 at 9:10 PM, Kevin Downey wrote:
>
>>
>> you want defmacro not definline. the result of a macro is a data
>> structure. that data structure is then evaluated in
On Sat, Mar 21, 2009 at 9:10 PM, Kevin Downey wrote:
>
> you want defmacro not definline. the result of a macro is a data
> structure. that data structure is then evaluated in place of the call
> to the macro. definline (I think?) behaves similar to a function, so
> if it returns a data structure
you want defmacro not definline. the result of a macro is a data
structure. that data structure is then evaluated in place of the call
to the macro. definline (I think?) behaves similar to a function, so
if it returns a data structure, you just get that data structure (the
data structure is not th
I'm wondering if it's possible to create a Clojure function that does what
the dot operator does. It seems like this would be possible with definline
but I'm unable to get this to work or figure it out. For example I want to
be able write something like the following:
(dot "Hello world" (list 'sub
Appreciation appreciated!
Thanks all,
Rich
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email t
On Sat, Mar 21, 2009 at 6:12 PM, Laurent PETIT wrote:
> Hello Mark,
>
> 2 questions / suggestions :
>
> * couldn't step 2) be computed outside function b, and then my-data be
> replaced by new-struct ? This way, if you have several flavors of function
> b, you will not have to repeat the code in
Hi all,
Moving my existing code across to the new lazy trunk, I noticed a very
small change:
user=> (str (filter even? (range 1 10)))
"clojure.lang.lazy...@f1005"
Previously this would readably print the contents of the seq and some
of my code was relying on this. Obviously it's not diffic
Thanks Rich!!!
mfh
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to
clojure+unsubscr...@goo
Hello Mark,
2 questions / suggestions :
* couldn't step 2) be computed outside function b, and then my-data be
replaced by new-struct ? This way, if you have several flavors of function
b, you will not have to repeat the code in steps 1) and 3) in each of those
flavors of b ? And then the proble
Hello there,
Iv been trying to implement a proxy on a class (
http://code.google.com/p/javaparser/source/browse/trunk/JavaParser/src/japa/parser/ast/visitor/VoidVisitorAdapter.java?spec=svn77&r=77)
that has multiple overloaded methods (same arity different types),
trying
(defn create-visitor []
I'd like to add my thanks to Rich Hickey for Clojure as well.
I started doing C/C++ multi-threaded programming back in '97 and have
done some Java, Ruby, and Perl as well. Some time ago my opinion of
Lisp(s) changed and I vowed to learn one someday but just didn't have
the time or drive. Just a
i have done some homework on this problem :)
(warning: not clojure specific)
my claim is that diffing two similar sets (or maps) *can* be made
efficient only *if* you can add arbitrary items to sets efficiently
(i.e. O(log(n)).
remember that immutable sets are usually laid out in a tree structu
I'm using an atom to hold a sorted-map whose keys are integer ids and
values are a particular kind of struct.
I have a function, call it "a", that adds an entry to this map.
It contains just this line:
(swap! my-atom b my-data)
"b" is a function that:
1) determines the next available id by getti
On Sat, Mar 21, 2009 at 1:34 AM, Dan Beauchesne wrote:
>
>
> I'm trying to install clojure on Debian 5.0 and having some troubles.
>
> Typing "ant" in the clojure directory gives me the error:
>
> compile-java:
> [javac] Compiling 119 source files to /home/dan/opt/clojure/classes
> [javac]
I've been doing intensive dev since 1998 and before that I was doing
both production
support and dev (in these old ages, in production support you had the
right to open
an application and fix it :))).
As others have said, Lisp is quite powerful but the real job
opportunities where
quasi inexistant
On Sat, Mar 21, 2009 at 1:38 PM, CuppoJava wrote:
> (mymethod (assoc object :tag :super-class))
> which is a little clumsy.
Not only is it clumsy, but if mymethod returns a fresh object that is
based off of this object in some way (e.g., a non-destructive
"setter"), the return value will have th
On Sat, Mar 21, 2009 at 12:23 PM, mikel wrote:
>
> I haven't looked at Clojure at all with this in mind, but I know I'm
> soon going to need to implement this updating mechanism. If you know
> how to efficiently obtain just the diffrences between two otherwise
> shared Maps, I'd be interested to
The code is available at this URL: http://code.google.com/p/bwhf/
(look at the hu.becliza.andras.bwhf.control.[BinRepParser,
BinReplayUnpacker] files)
It is definitely not as dynamic, which helps quite a lot, but I wanted
to have something high level and declarative.
Thank you for your help, I'l
Just a few months ago I had never heard of LISP, and already Clojure
is so simple and elegant that I'm more productive now than I ever was
in Java.
Rich is a shining example of keeping practicality, and community in
mind, when designing a new language.
Thanks a lot Rich
-Patrick
--~--~
Hi,
I'm making some heavy use of multi-methods and proxies in my code, and
I'm wondering if there's a convenient way of calling "superclass"
methods, both for multi-methods and for proxies.
For multi-methods, I'm currently doing:
(mymethod (assoc object :tag :super-class))
which is a little clum
Hear, Hear!
It was far more natural to learn than Lisp and Scheme.
The language has lots of brilliant features that make me think "I wish I had
thought of that."
And I like the way Rich has built the community.
Joshua
--~--~-~--~~~---~--~~
You received this messa
Clojure efficiently shares structure of composite objects. For
example, given a Map with 10,000 entries, you can inexpensively
created a new Map with one changed entry, because Clojure reuses the
other entries.
Is there a convenient and efficient API that can return just the
changed entry?
Hi,
I was never a professional programmer, only a hobbyist.
I started with Basic on a C64, went on with Pascal in
school, learned C. From then on it was exploration of
the World: Perl, Python, Scheme, Ruby, OCaml, a little
Haskell.
But I grew tired without a vision or a idea for a project.
And
On Fri, Mar 20, 2009 at 2:26 PM, Rayne wrote:
>
> I Anthony Simpson, with the support of fellow Clojurists hereby
> declare March 20th, the first day of spring, Rich Hickey appreciation
> day!
>
The first day of spring is very fitting for this occasion. Rich, the
pragmatism, objectivity, clarity
On Mar 20, 10:33 pm, Aaron Brooks wrote:
Here, here!
+1 +1 +1 ... !!
Dear God man! This is wrong!
(fact (fact (+ 1 1 1 ...)))
>
> On Fri, Mar 20, 2009 at 2:26 PM, Rayne wrote:
>
> > I Anthony Simpson, with the support of fellow Clojurists hereby
> > declare March 20th, the first day of spr
Christophe Grand a écrit :
> With these two changes, it's the dispatch fn that now dominates.
>
Correction: it's the dispatching, not the computation of the dispatch
value that dominates.
--
Professional: http://cgrand.net/ (fr)
On Clojure: http://clj-me.blogspot.com/ (en)
--~--~
Hello,
Is the java code online somewhere to compare? (Since your code is an
interpreter for byte-fields specs there's a lot of stuff going to read a
single byte, I wonder if the java code you're benchmarking against is
that dynamic)
Right now, null-string and read-field-aux are the most time
Fellow Clojurians,
I just started my journey on Clojure less than a week ago. I learned
LISP in 1997, never done enough real world work. I really like LISP
but never had an opportunity to apply this in my professional career.
I am working on CLISP for a couple of years ( only for my pleasure). I
a
Clojure: Yes we can ! :-)
Thank you Rich for showing the world there is still hope to get together the
most of several worlds !
Finally, an appealing wedding of Lisp and JVM !
The Lisp of the century is born, long live to Clojure !
--
Laurent
2009/3/21 Adrian Cuthbertson
>
> I wrote my firs
Hello,
2009/3/21 Victor Rodriguez
>
> Here is something I wrote as a Clojure learning exercise.
>
> I have a suspicion that a serious implementation of this may exist,
> please let me know if that is so!
In common lisp, there is cl-interpol (for String INTERPOLation) :
http://www.weitz.de/cl-
34 matches
Mail list logo