On Jan 14, 8:47 am, Christian Vest Hansen karmazi...@gmail.com
wrote:
On Wed, Jan 14, 2009 at 1:59 PM, Rich Hickey richhic...@gmail.com wrote:
I am interested insymbolswith arbitrary names,
Why is this interesting?
It supports working with names from some arbitrary external namespace
On Jan 14, 10:53 am, Robert Pfeiffer pfeiffer.rob...@googlemail.com
wrote:
On 14 Jan., 13:59, Rich Hickey richhic...@gmail.com wrote:
[...] the toString in the patch is quite
inefficient.
Becausesymbolsare immutable, they could cache the printable
representation in an extra field
On Jan 19, 1:59 pm, John D. Hume duelin.mark...@gmail.com wrote:
With the latest from svn, I'm seeing the following weird behavior.
(def r (ref :old))
(let [old-value @r]
(try
(dosync (ref-set r :new))
(finally
(dosync (ref-set r old-value))
)))
(println @r is
On Jan 20, 4:21 pm, Mark H. mark.hoem...@gmail.com wrote:
On Jan 20, 9:31 am, Jon Harrop j...@ffconsultancy.com wrote:
On Tuesday 20 January 2009 08:01:19 ivant wrote:
IIRC, the only major complain Rich has about JVM is the lack
of tail-call optimization.
That's a pretty major
On Jan 20, 1:38 pm, Perry Trolard trol...@gmail.com wrote:
Doesn't pmap have to construct the whole sequence explicitly in order
to map its execution across more than one processor? or does it take
in a lazy fashion?
Semi-lazy, according to the doc:
Like map, except f is applied in
On Jan 20, 4:15 pm, Chouser chou...@gmail.com wrote:
On Tue, Jan 20, 2009 at 3:55 PM, Stephen C. Gilardi squee...@mac.com wrote:
I recommend that proposed changes for clojure-contrib be tracked as
clojure-contrib issues.
I agree.
My understanding of the issue policy for Clojure is
On Jan 20, 6:48 pm, David Nolen dnolen.li...@gmail.com wrote:
Looking at the multimethod implementation (MultiFn.java) I noticed that
multimethod keeps an internal persistent map of dispatch values in a field
call methodTable. It seems to me it would pretty simple to expose this
field (or
On Jan 20, 2009, at 7:16 PM, Jason Wolfe wrote:
On Jan 20, 4:15 pm, Chouser chou...@gmail.com wrote:
On Tue, Jan 20, 2009 at 3:55 PM, Stephen C. Gilardi
squee...@mac.com wrote:
I recommend that proposed changes for clojure-contrib be tracked as
clojure-contrib issues.
I agree.
My
On Jan 19, 9:55 am, Stephen C. Gilardi squee...@mac.com wrote:
On Jan 19, 2009, at 9:38 AM, Craig McDaniel wrote:
In case this is of use to anybody else, I thought I'd share my version
of a socket REPL:http://clojure.googlegroups.com/web/socket-repl.clj
Unlike the socket repl on the
On Jan 19, 2009, at 10:59 AM, Stephen C. Gilardi wrote:
On Jan 19, 2009, at 10:45 AM, Rich Hickey wrote:
It's very important to follow the protocol that patches only come
from
registered contributors and are posted *by them* as patches through
the issue system. Only in that way
On Jan 17, 5:02 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi Jason,
Am 16.01.2009 um 00:36 schrieb Jason Wolfe:
I like this a lot. Any chance of getting the same treatment for
unquote-splicing?
user '~x
(clojure.core/unquote x)
user '~...@x
; Exception: can't embed object in
On Jan 16, 5:15 am, Christian Vest Hansen karmazi...@gmail.com
wrote:
Here's my theory.
In your when example, when is a macro that is expanded to an if
special form. Your other examples, however, wrap your code in a
function call.
Now, functions in Clojure can't really take primitive
On Jan 13, 4:56 pm, Robert Pfeiffer pfeiffer.rob...@googlemail.com
wrote:
Hello everybody,
this patch implements a pipe-delimited syntax for symbols. The Reader
parses |this symbol| and one symbol. Symbols containing clojure syntax
are printed in this form, so they can be printed and read
On Jan 14, 8:44 am, Mark Feeney mark.fee...@gmail.com wrote:
I was just referring to the svn command you posted in your original
message:
svn checkouthttp://clojure-contrib.googlecode.com/svn/trunk/clojure-contrib
What it should be is:
svn
For those interested in numeric performance, Clojure lets you use
arrays of primitives, has primitive math support, primitive local
support, and has higher-level macros for dealing with them (amap,
areduce) which can also serve as models for your own. You can also
use :inline to wrap arithmetic
On Jan 13, 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 force
On Jan 14, 11:27 am, Asbjørn Bjørnstad asbj...@gmail.com wrote:
On Jan 14, 12:20 pm, Mark H. mark.hoem...@gmail.com wrote:
I humbly propose that folks shouldn't complain about Clojure being
slow for their apps until they have at least one of the following:
1. A targeted benchmark
On Jan 14, 2:57 pm, Rich Hickey richhic...@gmail.com wrote:
On Jan 13, 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
On Jan 14, 5:02 pm, Chouser chou...@gmail.com wrote:
On Wed, Jan 14, 2009 at 4:26 PM, Jason Wolfe jawo...@berkeley.edu wrote:
user (contains? (ancestors (class [1 2 3])) clojure.lang.ISeq)
false
Also there's 'isa?':
user= (isa? (class [1 2 3]) clojure.lang.ISeq)
false
user= (isa?
On Jan 12, 10:31 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
On Jan 12, 12:11 am, Mark Fredrickson mark.m.fredrick...@gmail.com
wrote:
I can't imagine this idea will be met warmly, but I have a suggestion.
It requires ending maps and vectors as functions of keys. Instead,
make
On Jan 12, 6:49 pm, Rock rocco.ro...@gmail.com wrote:
After a fair amount of macro writing in CL, I think I got the
backquote expansion mechanism pretty much nailed down (after all, it
is quite clear in the HyperSpec). Now, I thought I understood the
Clojure algorithm just as well. It
On Jan 8, 11:22 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
On Thu, Jan 8, 2009 at 5:55 AM, Rich Hickey richhic...@gmail.com wrote:
When you
ask for the nth element/rest, you get the identical item every time.
I know this is nitpicking, but if this is really the promise
On Jan 9, 12:50 am, Mark Engelberg mark.engelb...@gmail.com wrote:
Oh, I mentioned this in my blog post, but perhaps it bears repating.
If cycle, repeat, and replicate were implemented behind-the-scenes
with LazySeq as opposed to LazyCons, they would still implement the
promise of identical
On Jan 9, 6:05 am, Timothy Pratley timothyprat...@gmail.com wrote:
Rich: You make the distinction that streams are not non-caching seqs.
I read this as meaning that they wont implement ISeq, they will
implement IStream, but conceptually they would be a non-caching
sequence (in the English
On Jan 8, 7:26 am, Konrad Hinsen konrad.hin...@laposte.net wrote:
On 08.01.2009, at 11:22, Mark Engelberg wrote:
So my blog post has a dual purpose. First, I explain the gotcha
that Stuart and I discussed. Second, I report back to the community
about the actual experience I had in the
On Jan 8, 2009, at 1:06 PM, Mark Engelberg wrote:
On Thu, Jan 8, 2009 at 5:55 AM, Rich Hickey richhic...@gmail.com
wrote:
The
promise of the abstraction is not merely that the nth item/rest will
be equal - it is that it will be identical. I.e. a seq is persistent
and immutable.
I get
On Jan 5, 4:56 pm, Meikel Brandmeyer m...@kotka.de wrote:
Dear Clojurians,
This patch allows multimethods to use different hierarchies, than
the global hierarchy for use with isa?. Currently only the global
hierarchy is possible.
The patch extends the MultiFn class to accept also a Var
On Jan 7, 12:07 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote:
Are there any particular issues with using nested transactions ...
dosync inside a dosync ... in Clojure?
Nope. Just note that nested transactions 'join' the enclosing
transaction - they commit with it. Essentially there is
On Jan 7, 12:11 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote:
What is it that triggers the function passed to swap! to be retried?
Is it that some other thread has modified the atom since swap! was
invoked, but before the function passed to swap! returns?
--
I think that's described
On Jan 6, 11:54 am, Stuart Halloway stuart.hallo...@gmail.com wrote:
Code like @*foo* is not something I've seen in any code Rich has
written, so I think Stuart is right in considering removing the
asterisks on *apple* and *snake*
I plan to remove them. What I still wrestle with is
Hello all,
I've been reading the list in chunks during the holidays, often
without enough time to do triage. Given the volume, it's important
that all patches be submitted (by registered contributors only) as
attachments to issues in the issues system:
On Mon, Jan 5, 2009 at 5:04 PM, Paul Barry pauljbar...@gmail.com wrote:
I thought that first place I heard it was Rich mentioning it in one of the
videos on http://clojure.blip.tv, but I can't find it.
That certainly didn't originate with me. Probably from the Haskell folks.
Rich
On Mon,
On Jan 4, 6:27 pm, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 04.01.2009 um 22:01 schrieb Mark McGranaghan:
(ns clojure.zip
(:refer-clojure :exclude (replace remove))
(:doc Functional hierarchical zipper, with navigation, editing and
enumeration. See Huet.))
Is anyone
On Jan 1, 2009, at 5:45 AM, synphonix wrote:
Hello and happy new year,
I've started this year with playing around with clojure macros and
wrote a macro that
behaves in a way I don't understand:
(defmacro foo
([x] `(list ~x ~x))
([x n] (if (= n 0)
`(foo ~x)
On Dec 31, 2008, at 12:30 AM, Mark Engelberg wrote:
On Tue, Dec 30, 2008 at 8:38 PM, Rich Hickey richhic...@gmail.com
wrote:
There's simply no value for Clojure to add to a simple mutable box.
Clojure does provide the tools for low-level mutation - access to
Java. You can wrap
On Dec 31, 9:42 am, Simon Brooke still...@googlemail.com wrote:
On Dec 29, 3:15 am, Rich Hickey richhic...@gmail.com wrote:
On Dec 28, 8:13 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote:
I'll not argue for making code harder to read, but I have to object to
most of your example
On Dec 31, 11:49 am, Konrad Hinsen konrad.hin...@laposte.net wrote:
Suppose I write
(defn foo [x]
(let [f (. Math log 0.5)]
(* f x)))
Does the Clojure compiler calculate the constant expression (. Math
log 0.5) once, or at every function call?
Every call. Clojure does not know
On Dec 31, 1:20 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
On Wed, Dec 31, 2008 at 6:27 AM, Rich Hickey richhic...@gmail.com wrote:
I also think that your use cases for atoms for local mutation are a
mismatch. atoms are about sharing. You really want something else for
private
On Dec 29, 8:08 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
On Mon, Dec 29, 2008 at 12:40 PM, Rich Hickey richhic...@gmail.com wrote:
People who know what they are doing can do these things right now with
Clojure's array support. There really isn't any more value for Clojure
On Dec 30, 2008, at 1:27 PM, CuppoJava wrote:
Hi,
Is there anyway to access a static protected field from within
Clojure?
I've tried using :exposes in gen-class, however that gives me the
following error:
java.lang.IncompatibleClassChangeError: Expected non-static field
On Dec 30, 2008, at 6:29 PM, Mark Engelberg wrote:
On Tue, Dec 30, 2008 at 5:53 AM, Rich Hickey richhic...@gmail.com
wrote:
Could you provide an example of when you would need/use that?
Sure.
Use Case #1: Implementing classic imperative algorithms
Consider the binary gcd algorithm
On Sat, Dec 27, 2008 at 12:03 AM, Mark Engelberg
mark.engelb...@gmail.com wrote:
On Fri, Dec 26, 2008 at 8:35 PM, Adrian Cuthbertson
adrian.cuthbert...@gmail.com wrote:
It's important to distinguish between updating atoms within
transactions and outside transactions. In the former case, one
!
Thanks! Could you (and everyone) please submit patches as attachments
on the relevant issue?
I want to get away from patches in messages and in the files section.
Thanks,
Rich
On 29 Dez., 07:01, Rich Hickey richhic...@gmail.com wrote:
On Dec 29, 12:44 am, Mark Engelberg mark.engelb
On Dec 21, 5:53 pm, Stephen C. Gilardi squee...@mac.com wrote:
On Dec 21, 2008, at 4:43 PM, Stephen C. Gilardi wrote:
On Dec 21, 2008, at 4:40 PM, Rich Hickey wrote:
If main doesn't match the behavior of Repl and Script in this area
when run in repl or script modes respectively
On Sun, Dec 28, 2008 at 6:05 PM, Randall R Schulz rsch...@sonic.net wrote:
Howdy, Folks,
The gauntlet has been thrown down:
I've made changes in svn 1186 and 1188 that should help facilitate
targeting Android/Dalvik. clojure.jar now translates with dx --dex,
but that is all I've had time to
On Dec 29, 2:29 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
On Mon, Dec 29, 2008 at 8:05 AM, Rich Hickey richhic...@gmail.com wrote:
It is certainly not the whole point of Clojure to make as much code as
possible safe for its software transactional memory. Clojure is a set
On Dec 28, 2008, at 5:27 AM, Christophe Grand wrote:
Mark Engelberg a écrit :
So one thing I don't get is why would tristan's pow code sometimes
generate a BigInteger, and sometimes a Long for the same resulting
number?
Good question.
(pow 2 32); returns 4294967296 (BigInteger)
(pow 4
On Dec 28, 8:13 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote:
This is related to the thread titled Proxying in Clojure. I've spent
a lot of time studying the code in this snake example and have some
observations I'd like to share.
First off, obviously I care about the future of
On Dec 28, 10:49 pm, Peter Collingbourne pe...@pcc.me.uk wrote:
On Thu, Jul 31, 2008 at 02:01:08PM -0700, Rich Hickey wrote:
On Jul 31, 11:43 am, Stefan Ring stefan...@gmail.com wrote:
Thanks a lot. Your change makes the CACAO verifier happy but I think
you should revert
On Dec 29, 12:44 am, Mark Engelberg mark.engelb...@gmail.com
wrote:
So I understand that we're supposed to discuss ideas here to try to
gain mindshare which is why last week I brought up the issue with
Clojure missing mod (which works differently from rem on negative
numbers). So really,
2008/12/23 Johan Berntsson johan.may...@gmail.com:
Or simply quote the list
user= (doseq [word '(one two three)] (println word))
On Dec 22, 8:34 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
On Dec 22, 11:10 am, Piotr 'Qertoip' Włodarek qert..@gmail.com
wrote:
user= (doseq
On Wed, Dec 17, 2008 at 2:53 PM, Rich Hickey richhic...@gmail.com wrote:
On Dec 17, 4:30 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
I'd like to propose/put up for discussion a change to the unquote
handling.
I basically ran into the following problem:
I'd like to embed a DSL
On Tue, Dec 23, 2008 at 10:15 AM, Adam Harrison (Clojure)
adam-cloj...@antispin.org wrote:
Hi folks,
I have been trying to work out how best to validate the structure of
arguments passed into macros. It would appear that there are several
ways of tackling this and I was wondering which is
On Dec 15, 7:29 pm, Rich Hickey richhic...@gmail.com wrote:
On Dec 15, 5:57 pm, Bradbev brad.beveri...@gmail.com wrote:
I have the following scenario:
- a server that is listening on a socket for incoming connections.
- when the server accepts a connection it uses send-off to run
On Dec 22, 7:41 am, bOR_ boris.sch...@gmail.com wrote:
Hi all,
Long post, but it boils down that I'm running into a transaction
failed after retry limit after running my simulation for a couple of
hours. I chatted briefly with fyuryu in #clojure, and am now pasting
some of the hopefully
On Dec 22, 8:55 am, Mark Volkmann r.mark.volkm...@gmail.com wrote:
On Sun, Dec 21, 2008 at 3:44 PM, Stephen C. Gilardi squee...@mac.com wrote:
On Dec 21, 2008, at 4:35 PM, Mark Volkmann wrote:
Why do I get an IncompatibleClassChangeError below? I'm using revision
1180.
(def
On Dec 22, 10:43 am, Randall R Schulz rsch...@sonic.net wrote:
On Monday 22 December 2008 07:23, Rich Hickey wrote:
...
This conversation is way off track.
Symbols and keywords are not 'in' namespaces, they are not interned
in namespaces, there are not lists of, e.g. keywords
On Dec 22, 11:57 am, Chouser chou...@gmail.com wrote:
On Mon, Dec 22, 2008 at 11:31 AM, Stuart Sierra
the.stuart.sie...@gmail.com wrote:
On Dec 22, 11:05 am, Rich Hickey richhic...@gmail.com wrote:
But I think there is a tendency to bring presumptions from CL's
symbols/packages
On Dec 19, 3:45 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote:
Hi Rich all,
While compiling Clojure, It seems that *compile-path* is being set to
the absolute path to classes within the Clojure source
distribution. That is:
unzip clojure_20081217.zip
cd clojure
java -jar
On Dec 19, 2:05 pm, Stuart Halloway stuart.hallo...@gmail.com wrote:
According to Paul Graham's On Lisp, macroexpanders should be purely
functional, and you should not count on how often a macro gets
expanded. This seems like a reasonable restriction for Clojure too.
However, Chouser posted
If main doesn't match the behavior of Repl and Script in this area
when run in repl or script modes respectively, it needs to. Repl
calls exit, Script does not.
Rich
On Dec 21, 2008, at 4:30 PM, Stephen C. Gilardi wrote:
Based on the bottom of the ruby code example on this page:
On Dec 19, 8:59 am, Michael Wood esiot...@gmail.com wrote:
On Fri, Dec 19, 2008 at 1:02 PM, hosia...@gmail.com hosia...@gmail.com
wrote:
I'm learning Clojure by trying to implement some functions from Ruby
core/stdlib/ActiveSupport's core_ext.
The first one I wrote is groups-of
On Dec 18, 7:51 am, Craig Andera craig.and...@gmail.com wrote:
Does it makes sense to subscribe this group to those? I.e. to have
commit messages appear here. I've done it both ways on my own
projects, and I'm of split mind about it.
It's a distinct list in order to give people choice and
I've cut a new release, 20081217, which is available from Google Code:
http://clojure.googlecode.com/files/clojure_20081217.zip
It reflects the many enhancements made since the last release:
AOT Compilation
gen-class
gen-interface
clojure.main
proxy performance tweaks
move to EPL
io! blocks
On Dec 18, 10:42 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
On Dec 17, 6:28 pm, kkw kevin.k@gmail.com wrote:
What's the recommended way of getting Clojure up and running?
- Download the latest snapshot with SVN
- Create the Clojure.jar file with Ant
- Test by starting up
On Dec 18, 2:30 pm, Chris Kent cjk...@gmail.com wrote:
Hi
I've been playing around using symbols with metadata as struct map
keys after reading this
message:http://groups.google.com/group/clojure/msg/68e7036dbd8ded29
It all works OK except when you use find to extract an entry. find
On Dec 17, 12:43 am, Kevin Martin martink...@gmail.com wrote:
I unfortunately ran into circular requires today. In previous
versions of Clojure a circular require was answered with an
exception. The text of this was something along the lines of Cannot
load 'a' because already loading 'a'.
On Dec 17, 11:34 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
On Dec 17, 10:32 am, Rich Hickey richhic...@gmail.com wrote:
The Clojure FAQ will be here:
http://code.google.com/p/clojure/wiki/FAQ
Suggestions for entries welcome here.
Suggestions, based on common questions
On Dec 17, 11:50 am, J. McConnell jdo...@gmail.com wrote:
On Wed, Dec 17, 2008 at 10:32 AM, Rich Hickey richhic...@gmail.com wrote:
The Clojure FAQ will be here:
http://code.google.com/p/clojure/wiki/FAQ
Suggestions for entries welcome here.
I recently found out about Google
As a benefit of moving to Google Code, Clojure has also acquired an
issue tracker:
http://code.google.com/p/clojure/issues/list
Please note the following very carefully:
This is not an invitation to have (now thousands) of people give me a
todo list! Nor is it a collective wishlist.
I would
On Dec 16, 5:13 pm, Stephen C. Gilardi squee...@mac.com wrote:
The enclosed patch updates clojure.main to fix a bug and implement
changes discussed here recently. Details below. Feedback welcome.
--Steve
[1] clojure.main no longer calls gen-class. Instead there is now a
stub clojure.main
On Dec 17, 2008, at 4:16 AM, Rowdy Rednose wrote:
If Rich adds watchers for refs, would watchers be notified inside the
transaction?
No, only on commit.
Rich
I'm actually trying to get a notification after a transaction
successfully finished. Although there might be use cases for
I've moved Clojure's source repo to Google Code:
http://code.google.com/p/clojure/
as well as Clojure contrib:
http://code.google.com/p/clojure-contrib/
All new checkins will occur there.
Rich
--~--~-~--~~~---~--~~
You received this message because you are
On Dec 17, 4:30 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
I'd like to propose/put up for discussion a change to the unquote
handling.
I basically ran into the following problem:
I'd like to embed a DSL into my system. Using macros it should be
possible
to define a language, which
The Clojure FAQ will be here:
http://code.google.com/p/clojure/wiki/FAQ
Suggestions for entries welcome here.
Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Clojure group.
To post to this group, send email
On Dec 17, 9:26 am, Mark Volkmann r.mark.volkm...@gmail.com wrote:
On Wed, Dec 17, 2008 at 8:14 AM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On 17 Dez., 14:55, MikeM michael.messini...@invista.com wrote:
((sorted-map 'a 1 'b 2) a) = ClassCastException
I would think that
On Dec 17, 8:22 am, Rich Hickey richhic...@gmail.com wrote:
I've moved Clojure's source repo to Google Code:
http://code.google.com/p/clojure/
as well as Clojure contrib:
http://code.google.com/p/clojure-contrib/
All new checkins will occur there.
There's also a read-only list/feed
On Dec 17, 9:38 am, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On 17 Dez., 15:27, Randall R Schulz rsch...@sonic.net wrote:
user= (macroexpand '(dcmfail))
(new BufferedWriter (FileWriter. stand-back))
I'm guessing it works for you 'cause in the macro expansion context you
have an
On Dec 16, 3:52 pm, Randall R Schulz rsch...@sonic.net wrote:
On Tuesday 16 December 2008 12:37, Rich Hickey wrote:
On Dec 16, 2:32 pm, Stuart Halloway stuart.hallo...@gmail.com wrote:
Hi Randall,
The syntactic sugar forms are reader behavior, and occur too soon:
at read time
On Dec 17, 9:31 am, Randall R Schulz rsch...@sonic.net wrote:
On Wednesday 17 December 2008 06:21, Meikel Brandmeyer wrote:
Hi Randall,
...
http://clojure-log.n01se.net/macro.html
That's a long way to go get a macro expansion!
The point of that page is that it is extremely
On Dec 17, 3:43 am, Remco van 't Veer rwvtv...@gmail.com wrote:
Hi all,
First off, thanks for clojure! I've been playing with it for a couple
days now and love it!
Doing ruby in my day job, I've found some quirks I don't really
understand. Most of them are obviously me being new to
On Tue, Dec 16, 2008 at 12:11 AM, Feng hou...@gmail.com wrote:
Hi,
Because clojure set, vector and map all implements
java.util.Comparator (indirectly via AFn), they interact with
java.util.TreeSet/TreeMap in surprising way due to overloaded ctor
(java.util.Comparator).
user= (def s
On Dec 16, 2:32 pm, Stuart Halloway stuart.hallo...@gmail.com wrote:
Hi Randall,
The syntactic sugar forms are reader behavior, and occur too soon: at
read time, not macro expansion time.
Actually, the dot sugar is not reader magic, but macroexpansion, as
documented here:
On Dec 12, 3:35 pm, Christophe Grand christo...@cgrand.net wrote:
I was sure it was a job for iterate:
(defn reductions
Returns a lazy seq of the intermediate values of the reduction (as
per reduce) of coll by f, starting with init.
([f coll]
(if (seq coll)
(for [s
On Mon, Dec 15, 2008 at 10:40 AM, Randall R Schulz rsch...@sonic.net wrote:
On Friday 05 December 2008 15:36, Randall R Schulz wrote:
I make pretty extensive use of nested classes
(most significantly Enum types).
I was wondering if it might be a good idea to
allow dot resolution to find
On Dec 15, 10:27 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
Cool, thanks!
-S
On Dec 14, 4:47 pm, Chouser chou...@gmail.com wrote:
I've updated the Clojure classes graph (thanks for the push, R.
Schulz!) The new version includes the newest classes as well as Java
interfaces
On Dec 15, 2008, at 1:49 PM, Joost wrote:
Rich Hickey schreef:
Dot is too overloaded in Java, and overloaded enough in Clojure. This
one doesn't seem too important to me.
I ran into this issue yesterday. Or more precisely: I couldn't find
any way to refer to inner classes in the docs
On Dec 15, 6:01 pm, Brian Doyle brianpdo...@gmail.com wrote:
According to the docs the seq function should be able to take an
enumeration,
but here is what I see:
user= (seq (.elements (doto (java.util.Vector.) (.add hello) (.add
world
java.lang.IllegalArgumentException: Don't know
On Dec 15, 5:57 pm, Bradbev brad.beveri...@gmail.com wrote:
I have the following scenario:
- a server that is listening on a socket for incoming connections.
- when the server accepts a connection it uses send-off to run a
handler function to handle the connection
- the handler
On Dec 15, 5:35 pm, CuppoJava patrickli_2...@hotmail.com wrote:
Hi,
I just ran into a need for using gen-class, and need some help getting
started.
I upgraded to the latest Clojure version using
svn cohttps://clojure.svn.sourceforge.net/svnroot/clojureclojure
and I run the REPL using
On Dec 14, 2:26 pm, David dsieg...@yahoo.com wrote:
work (.getName (.getClass 0))
java.lang.Integer
work (.getName java.lang.Integer)
; Evaluation aborted.
Why does the second expression fail?
There used to be a long answer as to why:
I've moved the codebase to the Eclipse Public License as of SVN 1160:
http://opensource.org/licenses/eclipse-1.0.php
EPL is the successor to CPL, and acceptable to Google Code and others.
It allows all the same usages as did CPL, is commercial friendly etc.
Contrib should move over ASAP.
On Dec 13, 2008, at 2:18 AM, Mark Engelberg wrote:
On Fri, Dec 12, 2008 at 9:28 PM, Rich Hickey richhic...@gmail.com
wrote:
I think it's very important not to conflate different notions of
sequences. Clojure's model a very specific abstraction, the Lisp
list,
originally implemented
On Dec 12, 9:51 pm, levand luke.vanderh...@gmail.com wrote:
So, I'm trying to understand functional programming, particularly as
it relates to the seq abstraction, and I'm hitting a slight difficulty
as I'm playing around - something that seems as if it ought to be
simple, is not.
I'm
On Dec 12, 1:35 am, Mon Key s...@derbycityprints.com wrote:
Clojure does not allow for programmer-defined
reader macros (unlike other lisps).
I know this has been touched upon last Spring - and Stu Halloway refs
at least one discussion of this in his book.
From a practical standpoint I
On Fri, Dec 12, 2008 at 7:10 AM, Mark Engelberg
mark.engelb...@gmail.com wrote:
Sometimes you use mutable state inside of a function to do some local
temporary computation, and this state will never be visible outside of
the function. So externally speaking, the function is still a pure
On Dec 12, 2:15 am, Mark Engelberg mark.engelb...@gmail.com wrote:
If you wanted to extend deref to new types, is there any way to do
that? For example, deref of a delay could be equivalent to a force.
Or deref of a Future could invoke the Future's get method. This would
give you the
On Thu, Dec 11, 2008 at 8:28 PM, Stephen C. Gilardi squee...@mac.com wrote:
On Dec 11, 2008, at 7:24 PM, Rich Hickey wrote:
I am interested in the issues you are trying to address, and thanks
for volunteering!
Excellent. You're welcome.
I'd like to try to focus our efforts on release 1.0
On Dec 12, 4:13 pm, Joost jo...@zeekat.nl wrote:
Paul Barry schreef:
Ok, so it's fair to say the Clojure Reader has syntax. I don't see
how this is fundamentally different than how Ruby works, for example:
http://www.igvita.com/2008/12/11/ruby-ast-for-fun-and-profit/
The
On Dec 12, 4:01 pm, mayes mmull...@mullinsenterprises.ca wrote:
First, thanks for the great work with Clojure.
Second, I found some code I was working on didn't work with
rev.1054. Paring things down I got the following which
reproduces the behaviour:
(defstruct A :a)
(defn t []
601 - 700 of 917 matches
Mail list logo