01:19 (join) Sgeo 01:21 Sgeo: I'm learning Common Lisp, but have looked at Racket before. I think I like Common Lisp's system for keyword arguments, but: Is the whole thing with combining &optional and &key in CL (optional and keyword arguments) a motivation for Racket's keyword system being the way it is, to make it unambiguous when a Racket function has both optional and keyword arguments? 01:31 offby1: probably gotta ask the developers that 01:49 (quit) yoklov: Quit: computer sleeping 03:00 (join) EmmanuelOga 03:14 (join) realitygrill 03:24 (join) lewis1711 03:29 lewis1711: does the argument for "syntax-id-rules" have to be a procedure? 03:30 (quit) jonrafkind: Read error: Operation timed out 03:31 (quit) lewis1711: Read error: Connection reset by peer 03:31 (quit) EmmanuelOga: Ping timeout: 244 seconds 03:32 (join) lewis1711 03:34 (join) Skola 03:34 (quit) lewis1711: Read error: Connection reset by peer 03:40 (quit) jeapostrophe: Ping timeout: 244 seconds 03:42 (join) jonrafkind 03:50 (quit) jonrafkind: Ping timeout: 260 seconds 03:55 (join) vkz 04:39 (quit) realitygrill: Quit: realitygrill 04:52 (quit) cafesofie: Ping timeout: 244 seconds 05:28 (quit) Shvillr: Quit: bye 05:28 (join) Shvillr 06:22 (join) vperic 06:37 (quit) vperic: Ping timeout: 265 seconds 06:39 (quit) nilyaK: Quit: Leaving. 06:47 (quit) vkz: Ping timeout: 246 seconds 06:49 (nick) LeNsTR|off -> LeNsTR 07:41 (join) gciolli 07:43 (join) bluezenix 07:52 (nick) LeNsTR -> LeNsTR|off 07:52 (nick) LeNsTR|off -> LeNsTR 07:59 (quit) bluezenix: Quit: Leaving. 08:09 (quit) gciolli: Ping timeout: 264 seconds 08:12 (join) malkomalko 08:18 (join) Asphodelia 08:26 (join) masm 08:30 (join) itasyno 08:32 itasyno: I have written a function that conditionally include elements into a fold, my code is here: http://codepad.org/hs24EAZr. The part I am not comfortable with is the conditionally using either APPEND of CONS depending on the type of Y. Is there a better way to do this? 08:33 itasyno: (i realise FILTER would probably be better here, I am just playing) 08:33 (nick) LeNsTR -> LeNsTR|off 09:06 (join) cdidd 09:23 (quit) malkomalko: Remote host closed the connection 09:38 sid0: hm, is there a way to make a parameter that holds a mutable cell/box? 09:39 sid0: i.e. get (set! (param) 42) to work 09:40 sid0: or something similar 09:42 sid0: hm, I guess I can store a mutable struct, but that's a hack :/ 09:42 (quit) dsp_: Ping timeout: 260 seconds 09:42 bremner: did you try (set-box! (param) 42) ? 09:43 sid0: aha, somehow googling for racket box didn't bring that up 09:43 sid0: bremner: that looks perfect 09:43 sid0: thanks 09:43 (join) dsp_ 09:43 bremner: sure, I didn't test it... 09:43 sid0: well yeah, I was looking for a first-class box really 09:44 sid0: after google failed, I assumed set! was the only way to get them 09:51 (join) malkomalko 09:57 (join) jeapostrophe 09:58 (join) MayDaniel 10:03 (nick) LeNsTR|off -> LeNsTR 10:06 (join) mceier 10:13 (quit) malkomalko: Remote host closed the connection 10:16 (join) fftb 10:17 (join) dzhus 10:23 (quit) MayDaniel: Read error: Connection reset by peer 10:45 (quit) Skola: Quit: Lost terminal 10:45 (join) dous_ 10:47 (quit) dous: Ping timeout: 276 seconds 10:58 (join) vkz 11:09 (quit) vkz: Quit: vkz 11:21 (quit) itasyno: Ping timeout: 246 seconds 11:29 (quit) Asphodelia: Ping timeout: 260 seconds 11:31 (join) yoklov 11:36 (join) itasyno 11:45 (join) GeneralMaximus 12:09 (join) vkz 12:09 (quit) jeapostrophe: Ping timeout: 248 seconds 12:14 (quit) Shviller: Ping timeout: 246 seconds 12:15 offby1: itasyno: seems reasonable 12:15 (join) Shviller 12:19 (quit) yoklov: Quit: computer sleeping 12:19 (join) bmp 12:24 itasyno: offby1, cheers. It just felt a bit kludgey whilst I was writing it 12:25 (join) Skola 12:31 (quit) karswell: Remote host closed the connection 12:33 (join) jonrafkind 12:33 (quit) lirfs: Quit: WeeChat 0.3.6 12:41 (join) karswell 12:50 (quit) djcb: Read error: Connection reset by peer 12:51 (quit) karswell: Write error: Connection reset by peer 12:54 offby1: folds often do 12:57 (join) alexshendi 13:06 (join) karswell 13:08 (quit) vkz: Quit: vkz 13:17 (quit) karswell: 13:18 (join) yoklov 13:24 (quit) yoklov: Quit: computer sleeping 13:29 (join) realitygrill 13:43 (join) karswell 13:59 (quit) _AlbireoX: Read error: Connection reset by peer 14:10 (quit) bmp: Remote host closed the connection 14:10 (join) bmp 14:13 (join) EmmanuelOga 14:25 (join) vkz 14:26 (quit) dmj111: Ping timeout: 246 seconds 14:33 (part) alexshendi: "#racket" 14:42 Diarmid: Does anyone have any idea what topics Realm of Racket will cover? 14:49 (join) asurai 14:54 (quit) bmp: Ping timeout: 272 seconds 14:57 (join) rostayob 15:04 (join) cafesofie 15:13 offby1: sounds like a game 15:21 bremner: Racketman, a new file from Stephen Spielberg 15:23 (join) zussitarze 15:42 (quit) zussitarze: Ping timeout: 245 seconds 15:45 (join) MayDaniel 15:47 (quit) vkz: Quit: vkz 15:53 (join) vkz 16:00 (quit) GeneralMaximus: Quit: Leaving 16:00 (join) haffe 16:06 (quit) vkz: Quit: vkz 16:14 (join) vkz 16:17 (join) jeapostrophe 16:32 (quit) jonrafkind: Ping timeout: 260 seconds 16:34 (quit) vkz: Quit: vkz 16:37 (quit) rostayob: Quit: WeeChat 0.3.5 16:38 itasyno: how to I play the Racket games? My local documentation says to plt-games on UNIX, but that command does not exist. 16:39 itasyno: version 5.2 [3m] 16:39 itasyno: *to run 16:39 (join) asdfhjkl 16:47 itasyno: What's an efficient way to use a 2d array in Racket? I am making a tic-tac-toe game, but I think nested lists would be both cumbersome and slow. Maybe a vector? What's a idiomatic representation for a grid like this? 16:48 offby1: actually three lists of length 3 would be plenty fast. 16:48 offby1: cumbersome, though, maybe. 16:48 offby1: there's probably some PLaneT package for multi-dimensional arrays. There might even be a SRFI. 16:49 (quit) masm: Quit: Leaving. 16:49 (join) jonrafkind 16:53 (join) bluezenix 16:59 (join) masm 17:16 (join) yoklov 17:17 chandler: itasyno: The typical thing is to use a vector. 17:21 itasyno: offby1, yeah, for small instances it would be ok, but I want to generalise my TTT game, so the instances may get enormous. 17:21 itasyno: i found the common lisp array feature, which seemed quite nice. is there something like this for Racket? 17:22 offby1: like I said -- check the SRFIs and PLaneT 17:22 offby1: in that order 17:23 (quit) fftb: Remote host closed the connection 17:23 itasyno: Aha, SRFI 25 looks promising. Thanks offby1 17:24 (quit) jonrafkind: Ping timeout: 244 seconds 17:25 (quit) jrslepak: Ping timeout: 244 seconds 17:26 (join) jrslepak 17:27 haffe: How does garbage collection in racket work? ref count? I have a queue implemented as single linked list. Now I wonder if I have to set the cdr of the deleted element to null when I do a delete. 17:39 offby1: I doubt it's ref-counting. 17:39 offby1: I wouldn't bother setting the thing to nil 17:40 offby1: if an object isn't reachable, it'll get destroyed eventually. 17:40 (quit) Skola: Quit: Lost terminal 17:40 offby1: and if you remove an item from the queue, presumably it becomes unreachable 17:41 offby1: the only things I can think of offhand that don't get gc'd (or, don't get gc'd _fast enough_) are file handles; and with those, you avoid leakage by using the "call-with*" functions. 17:43 (join) rostayob 17:43 haffe: Ok. 17:44 haffe: That clarifies. 17:45 (quit) yoklov: Quit: computer sleeping 17:46 offby1: \o/ 17:47 (join) vkz 17:58 (quit) MayDaniel: Read error: Connection reset by peer 18:09 (join) bmp 18:10 (quit) bluezenix: Quit: Leaving. 18:12 (quit) asurai: Ping timeout: 246 seconds 18:16 (quit) bmp: Quit: Leaving... 18:22 (quit) EmmanuelOga: Quit: WeeChat 0.3.7-dev 18:23 (quit) cafesofie: Ping timeout: 244 seconds 18:36 (part) LeNsTR: "Leaving" 18:36 (quit) jeapostrophe: Read error: Operation timed out 18:38 (quit) crdueck: Quit: Changing server 19:08 (join) Fare 19:21 (quit) vkz: Quit: vkz 19:22 (quit) dzhus: Remote host closed the connection 19:32 (quit) asdfhjkl: Ping timeout: 260 seconds 19:37 (join) cafesofie 19:45 (join) bluezenix 19:48 (quit) Shviller: Ping timeout: 246 seconds 19:51 (quit) masm: Quit: Leaving. 20:06 (join) Kaylin 20:07 (join) jeapostrophe 20:12 itasyno: So, I've been having a lot of fun with srfi25, I'm struggling to find more information about this "kind of array" on the Internet though. Is there a name for it? It certainly seems like a wonderfully different departure from arrays in, say, C. The closest I've come is something called Dope Vectors, but I'm not sure whether they're exactly the same thing. 20:13 (quit) gf3: Excess Flood 20:15 (join) gf3 20:22 (quit) jeapostrophe: Ping timeout: 255 seconds 20:23 (quit) realitygrill: Ping timeout: 246 seconds 20:23 (join) realitygrill 20:25 (quit) mceier: Quit: leaving 20:40 (quit) realitygrill: Read error: Connection reset by peer 20:44 (join) realitygrill 20:57 (quit) bluezenix: Ping timeout: 244 seconds 20:59 (join) bluezenix 21:03 (quit) itasyno: Ping timeout: 264 seconds 21:11 offby1: no idea. 21:25 (quit) bluezenix: Quit: Leaving. 21:26 (join) yoklov 21:28 (join) jeapostrophe 21:46 (quit) rostayob: Quit: WeeChat 0.3.5 21:49 (quit) jeapostrophe: Ping timeout: 265 seconds 21:57 (quit) dspt: Ping timeout: 244 seconds 21:57 (join) dspt 22:15 (join) jonrafkind 22:54 (join) crdueck 23:08 (nick) Sgeo -> Sgeabomination 23:14 (nick) Sgeabomination -> Sgeo 23:59 (quit) Kaylin: Quit: Leaving.