#clojure logs

2008-03-11

06:27hoeckhi, does anyone know what happened to `set' ?
06:27hoecki mean, (set ref val)?
06:29hoeckahh, found it, its called ref-set now
11:33rhickey_Lunchtime think-tank talk on sequences: http://blip.tv/file/734409
15:08Chouserrhickey_: any initial reaction to the talk about regex reader changes?
15:13rhickey_just reading right now - my inclination is just to disable treatment of \ as an escape in regex literals except for \"
15:19la_merrhickey: those blip shows are great, BTW
15:21rhickey_they're unscripted, from talks we do at lunch, but I'm glad they help
15:27Chousersounds like an interesting group
15:31rhickey_yeah, we take turns doing talks about interesting ideas/tools - I always talk about Clojure and/or the underlying concepts
15:31rhickey_Hope to get around to STM, agents etc
16:01Chouseris apply lazy?
16:01ChouserIt could only be for & args, right?
16:04rhickey_(apply (fn [a b & c] [a b (first c)]) (repeat 42))
16:04rhickey_[42 42 42]
16:04rhickey_I'm not sure calling it lazy is quite right though
16:05Chouservery cool. I had assumed it would consume all params before calling the fn, since it would have to for the named args.
16:05rhickey_it doesn't consume the arguments
16:05Chouser...until I saw in your latest video the implementation of mapcat
16:07rhickey_apply is very efficient in passing the rest around without repackaging or examining it any more than needed to match the positional params
16:15Chouservery cool
17:24albinoThe rest of the people don't sound like they've done much with lisp based on the questions
17:29rhickey_right - Java/C# crowd
19:39Chouserusing an unsupported escape char in the REPL seems to confuse it quite a bit
19:39rhickey_that's what started this disc
19:40rhickey_the recent discussion on regex
19:40Chouseroh! ok.
19:42Chousersorry, should have read the beginning of the thread instead of just the end.
21:23rhickey_user=> (cons 1 2 3)
21:23rhickey_java.lang.IllegalArgumentException: Wrong number of args passed to: cons
22:10Chouserwoohoo!!