Re: clojure-contrib migrations

2012-12-19 Thread Alasdair MacLeod
On Monday, 17 December 2012 23:44:12 UTC, Christopher Meiklejohn wrote: > > [...]I'd like to offer to step up and maintain clojure-contrib.graph, > mainly starting with converting the defstructs over to defrecords [...] > Out of interest - why use records rather than plain maps? -- You receive

Re: Parsing NMON data (CSV)

2012-02-28 Thread Alasdair MacLeod
On Feb 27, 7:16 pm, meteorfox wrote: > What I really meant is, what could be a good library for making graphs > based on sampled data?. you could try incanter if you want to stay in the clojure world. -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: ANN: Clojure 1.4.0-beta1

2012-02-03 Thread Alasdair MacLeod
> That's because Github kicks ass :-) It automatically renders markdown files > as html when you view them in the browser. I've downloaded the jar but don't see any changes.md file in there https://github.com/clojure/clojure/blob/master/changes.md lists 1.3 changes I don't see a 1.4 branch on GitH

Re: swank-clojure 1.3.4 released

2012-01-01 Thread Alasdair MacLeod
On Dec 28, 1:03 am, Phil Hagelberg wrote: > I just pushed out version 1.3.4 of Swank Clojure. > I see the fix for windows file name separators has gone in. clojure-jack-in now works on my windows laptop. Many thanks, Alasdair -- You received this message because you are subscribed to the Google

Tutorial/examples of pprint dispatch functions

2011-10-25 Thread Alasdair MacLeod
Hello, Are there any tutorials or examples of setting up pprint dispatch functions? I know the docs suggest looking at the source, but I find it a bit cryptic. In particular I would like to see if it's possible to dispatch on meta-data, record types or more arbitrary values in a map etc. thanks

Re: Bug in keyword handling?

2011-10-24 Thread Alasdair MacLeod
> this:  There may be situations, now or in the future, where it is desirable > to create Keywords containing non-`read`able characters. Therefore, don't > use Keywords for things that may contain non-`read`able characters if you > want to print and read them. > > -Stuart Sierra > clojure.com Stuar

Re: Nested identities in a value-based universe

2011-10-24 Thread Alasdair MacLeod
> I think that's the issue. Expecting your def-ed trantor to change once > the world state has been updated is what would be expected in a world > of pointers, OOP, etc. However, the new updated world (in my view) has > a new trantor which you need to extract with your (get-actor ...). > > This wou

Bug in keyword handling?

2011-10-23 Thread Alasdair MacLeod
Hello, I think I've found a bug in Clojure's keyword handling. The keyword function lets you create a keyword containing whitespace but, if printed, the space isn't quoted or escaped, so if you print and then read an error occurs. I would expect either the keyword creation to fail or, when print

Re: ANN: core.match 0.2.0-alpha1 released

2011-10-02 Thread Alasdair MacLeod
The link to Design-Wiki needs updating, it uses your personal GitHub account and 404s On Oct 2, 7:44 pm, David Nolen wrote: > The big picture is falling into place for core.match. The most significant > change is that we now have two compilation schemes based on the presence of > recur. If recur

Re: defrecord == premature optimization?

2011-09-07 Thread Alasdair MacLeod
> AFAIK there a lots of well designed things in Clojure which reflect deep > thinking and a strong reasoning.   I can imagine, that many people would > like to read those things in one place, probably rather close to the > Rationale for Clojure itself.  Something like Design Principles. > > But the

Re: defrecord == premature optimization?

2011-09-06 Thread Alasdair MacLeod
> The types created by defrecord implement the same interfaces as maps, > so they can be used as maps. I guess the only gotcha is if a function treats the record as a map and tries to access a field by putting the record in function position: user=> (defrecord Person [first last]) user.Person use