00:12 offby1: hm 00:18 (join) mye_ 00:20 (nick) mye_ -> mye 00:23 (quit) jeapostrophe: Ping timeout: 240 seconds 00:24 (quit) dnolen: Ping timeout: 256 seconds 00:25 (join) raphie 00:26 raphie: hey, does anyone know how I can map over a list and make a new list containing two items for every list item? 00:27 raphie: for example, if I have (list 1 2 3) and my function should produce (+ x 2) and (+ x 3) for each list item, my result would be (list 3 4 4 5 5 6) 00:27 jonrafkind: (for/fold ([out '()]) ([item in]) (append out (list item item))) 00:27 neilv: is this a homework question? 00:27 jonrafkind: did you eat your broccoli? 00:28 raphie: neilv: nope, not hw 00:28 raphie: the goal is to produce a list of all possible bit combos to test some karnaugh maps I was playing with 00:28 raphie: as in, generating (list (list false false) (list false true) (list true false) (list true true)) 00:30 neilv: http://paste.org/54763 00:30 jonrafkind: cars and cons and cdrs ohmy! 00:31 jonrafkind: and throw in some recursion for extra goodness 00:31 raphie: I love me some higher order functions, thanks jonrafkind 00:31 raphie: but thank you two neilv 00:31 raphie: *too 00:32 jonrafkind: i was trying to think of how to do it with nested for/list things but its not so trivial 00:32 jonrafkind: you would still need an append somewhere in there 00:32 neilv: the for forms obfuscate efficient solutions for problems like this 00:33 neilv: that "append" messes up your linear algorithmic complexity for you 00:33 raphie: I guess in my view efficiency doesn't really matter unless it starts to matter, if you know what I mean 00:33 raphie: I go for simplicity and readability 00:33 jonrafkind: i concur with rapacity 00:33 jonrafkind: raphie, 00:34 (quit) tuor: Quit: tuor 00:39 offby1: is "Rackout" like "Peace Out"? 00:40 raphie: actually, once I implemented it, neilv's solution works pretty well: https://gist.github.com/cd1ee4cf95ef88556afc 00:56 (quit) getpwnam: Ping timeout: 245 seconds 00:56 (quit) hash_table: Ping timeout: 245 seconds 00:57 (quit) jonathansizz: Ping timeout: 256 seconds 01:05 neilv: like "rock out" 01:05 neilv: bbl 01:15 offby1: Freak Out!!! 01:15 offby1: We're Only In It For The Money 01:20 raphie: lovely quote from a friend: "Haskell's a total prude, but Racket will let you set-bang it once in a while if you're desperate." 01:21 (quit) jao: Ping timeout: 245 seconds 01:23 (quit) raphie: Remote host closed the connection 01:29 (join) mye_ 01:30 (nick) mye_ -> mye 01:34 (join) cdidd 01:34 (quit) ivan\: Quit: ERC Version 5.3 (IRC client for Emacs) 01:47 (quit) asumu: Ping timeout: 260 seconds 01:47 (join) asumu 01:48 (join) ivan\ 01:48 (quit) em: Ping timeout: 255 seconds 01:55 (quit) ivan\: Quit: ERC Version 5.3 (IRC client for Emacs) 02:05 (quit) acarrico: Ping timeout: 240 seconds 02:11 (join) acarrico 02:18 (quit) bjz: Quit: Leaving... 02:25 (join) pnpuff 02:33 (join) ivan\ 02:35 (quit) acarrico: Ping timeout: 255 seconds 02:42 (join) acarrico 03:03 (join) bjz 03:04 (quit) acarrico: Ping timeout: 256 seconds 03:16 (join) acarrico 03:18 (quit) noam_: Ping timeout: 255 seconds 03:20 (join) noam_ 03:22 (part) pnpuff: "'" 03:23 (join) ^pnpuff 03:28 (quit) jonrafkind: Ping timeout: 256 seconds 03:32 (quit) noam_: Ping timeout: 246 seconds 03:33 (join) noam_ 03:36 (quit) noam_: Read error: Connection reset by peer 03:36 (join) noam_ 03:43 (join) gciolli 03:44 (quit) acarrico: Ping timeout: 240 seconds 03:46 (quit) bjz: Quit: Leaving... 03:58 (join) acarrico 04:18 (quit) ioa: Quit: Leaving. 04:29 (join) bitonic 05:06 (quit) neilv: Quit: Leaving 05:15 (join) mceier 05:20 (join) vkz 05:53 (join) jasox 06:11 (join) MayDaniel 06:34 (join) bjz 07:32 (quit) gciolli: Quit: Leaving. 07:45 (join) masm 07:48 (quit) vkz: Ping timeout: 245 seconds 08:42 (join) djcoin 08:44 (join) jesyspa 08:47 (join) vkz 08:57 (quit) vkz: Quit: vkz 09:15 (join) jao 09:15 (quit) jao: Changing host 09:15 (join) jao 09:32 (join) jeapostrophe 09:32 (quit) jeapostrophe: Changing host 09:32 (join) jeapostrophe 09:44 (join) mye 09:46 (join) mye_ 09:48 (quit) mye: Ping timeout: 245 seconds 09:48 (nick) mye_ -> mye 09:53 (quit) cdidd: Quit: Leaving 09:56 (join) anRch 09:57 (join) vkz 09:58 (join) tuor 09:59 (join) jonathansizz 09:59 (join) getpwnam 09:59 (join) hash_table 10:03 (quit) vkz: Quit: vkz 10:15 (quit) jeapostrophe: Ping timeout: 245 seconds 10:19 (join) jonrafkind 10:44 (join) emma 10:46 (nick) emma -> em 10:46 (join) vkz 10:47 (quit) vkz: Client Quit 10:57 (quit) anRch: Quit: anRch 11:17 (join) vkz 11:37 (join) mithos28 11:53 (quit) eli: Ping timeout: 240 seconds 11:56 (quit) Nisstyre-laptop: Remote host closed the connection 11:59 (join) cdidd 12:08 (quit) tuor: Quit: tuor 12:25 (part) ^pnpuff: "'" 12:27 (join) pnpu1f 12:45 (quit) bitonic: Remote host closed the connection 12:50 (quit) skarpy: Ping timeout: 240 seconds 12:51 (quit) peeeep: Ping timeout: 240 seconds 12:51 (join) skarpy 12:51 (join) peeeep 12:55 (join) yoklov 13:00 (quit) mithos28: Quit: mithos28 13:03 (quit) vkz: Quit: vkz 13:04 (join) vkz 13:10 (quit) bjz: Quit: Leaving... 13:30 (join) klr 13:30 klr: Hi! 13:32 (join) tuor 13:38 (join) gciolli 13:39 (quit) sizz_: Quit: No Ping reply in 180 seconds. 13:39 (join) sizz 13:42 (part) klr 13:48 (quit) sizz: Read error: Connection timed out 13:48 (join) sizz 13:51 offby1: you again! 13:56 (join) mye 14:21 (join) eli 14:30 (quit) yoklov: Quit: computer sleeping 14:31 offby1: ``If your algebra teachers had known about the “arithmetic of images” that you saw in the preceding section, you could have produced movies in algebra instead of boring number sequences.'' -- That sounds a lot like Vi Hart (http://www.youtube.com/user/vihart) 14:42 (quit) Demosthenes: Ping timeout: 246 seconds 14:49 (join) Demosthenes 14:55 (quit) mye: Quit: mye 15:15 (join) Nisstyre 15:20 (join) pcavs 15:24 (join) yoklov 15:29 (quit) yoklov: Quit: computer sleeping 15:38 (join) yoklov 15:38 (quit) vkz: Quit: vkz 15:38 (join) Nisstyre-laptop 15:45 (quit) jesyspa: Quit: leaving 15:49 (join) mye 15:52 (quit) pnpu1f: Quit: Bye. 16:07 mye: I'm trying to understand this macro: http://paste.lisp.org/display/132225 16:08 mye: What I can't wrap my head around is when does the for/list within the with-syntax run? 16:09 mye: this is from http://docs.racket-lang.org/unstable/Automata__Compiling_State_Machines.html 16:09 rudybot: http://tinyurl.com/8lr5tjo 16:10 (quit) tuor: Read error: Connection reset by peer 16:10 (join) tuor_ 16:15 mye: kleene star confusion, I have it :-/ 16:17 (join) Fare 16:26 Fare: hi 16:27 (join) yoklov_ 16:27 Fare: Is there available source code of good/great presentations made with racket, to get inspiration from? 16:27 (quit) yoklov: Read error: Connection reset by peer 16:28 (join) neilv 16:29 (quit) tuor_: Quit: tuor_ 16:36 (quit) Demosthenes: Ping timeout: 260 seconds 16:37 (join) Demosthenes 16:38 (quit) pcavs: Quit: Leaving. 16:40 (join) pcavs 16:42 (quit) micaeked: Ping timeout: 246 seconds 16:43 asumu: Fare: Robby's "Run your Research" talk (there's a video online) is on PLaneT. 16:44 asumu: mye: it runs when the macro is expanded. 16:46 Fare: asumu: thanks! 16:47 Fare goes prepare his presentation at the Boston Lisp Meeting next Thursday... 17:07 (join) ioa 17:15 (join) mikko 17:20 (part) mikko 17:20 Fare: I'm unfamiliar with PLaneT. How do I download http://planet.racket-lang.org/display.ss?package=ryr-talk.plt&owner=robby ? 17:25 (quit) Shvillr: Ping timeout: 246 seconds 17:25 samth: you can use `raco planet fetch` 17:26 samth: or you can just use the `require` spec there 17:26 mye: then raco planet open, I learned this recently, this will give you a folder of your choice 17:28 mye: It would be cool if check syntax showed which … in a macro pattern corresponds to which … in the template 17:29 Fare: samth: replacing <> by main ? 17:30 samth: you can just leave off the file 17:30 samth: (require (planet robby/ryr-talk:1:2)) 17:30 Fare: also - running one's presentation is great -- but can racket open a pipe to a cl process to run my code? 17:30 samth: rudybot: doc pipe 17:30 rudybot: samth: your typed/racket sandbox is ready 17:30 rudybot: samth: not found in any library's documentation: pipe 17:30 samth: rudybot: doc make-pipe 17:30 rudybot: samth: http://docs.racket-lang.org/reference/pipeports.html#(def._((quote._~23~25kernel)._make-pipe)) 17:31 samth: rudybot: doc system 17:31 rudybot: samth: http://docs.racket-lang.org/reference/subprocess.html#(def._((lib._racket%2Fsystem..rkt)._system)) 17:31 samth: more likely to be what you want 17:31 Fare: I mean - a persistent session so I don't have to initialize a new cl at every form 17:31 samth: have a look at the docs for `system` 17:32 Fare: (is there an example for doing so -- even better, from a presentation?) 17:32 Fare: btw, thanks a lot! 17:32 samth: of running CL? 17:33 samth: you could look at the source of dracula 17:33 (join) Shviller 17:33 Fare: oh nice - raco planet fetch dracula ? 17:33 samth: yeah 17:34 samth: or https://github.com/carl-eastlund/dracula/tree/master/collects/dracula 17:35 Fare raco planet fetch cce dracula.plt 8 23 17:39 (join) jackhammer2022 17:44 gf3: My brain is failing me, what's the function to execute an arbitrary amount of expressions and only return the last one's value 17:44 gf3: (something x y z) ; z 17:44 bremner: begin ? 17:45 gf3: bremner: Yes, thank you! 17:45 Fare: begin is not a function, it's a special form. 17:45 gf3: Fare: Ahh, thank you 17:45 (join) anRch 17:59 (quit) mceier: Quit: leaving 17:59 (nick) jackhammer2022 -> GodAteMyHomework 18:09 (quit) djcoin: Quit: WeeChat 0.3.7 18:15 (quit) yoklov_: Quit: computer sleeping 18:18 (join) yoklov 18:34 (join) tuor 18:38 (quit) gciolli: Quit: Leaving. 18:44 (quit) anRch: Quit: anRch 19:00 (join) dnolen 19:00 (join) nilyaK 19:01 (join) pcavs1 19:01 (quit) pcavs: Read error: Connection reset by peer 19:05 (join) pcavs 19:05 (quit) pcavs1: Read error: Connection reset by peer 19:10 (join) pcavs1 19:10 (quit) pcavs: Read error: Connection reset by peer 19:10 (join) pcavs 19:10 (quit) pcavs1: Read error: Connection reset by peer 19:11 (join) pcavs1 19:11 (quit) pcavs: Read error: Connection reset by peer 19:15 (join) pcavs 19:15 (quit) pcavs1: Read error: Connection reset by peer 19:16 (join) pcavs1 19:16 (quit) pcavs: Read error: Connection reset by peer 19:17 (join) pcavs 19:17 (quit) pcavs1: Read error: Connection reset by peer 19:17 (join) pcavs1 19:17 (quit) pcavs: Read error: Connection reset by peer 19:18 (quit) nilyaK: Quit: Leaving. 19:22 (join) pcavs 19:22 (quit) pcavs1: Read error: Connection reset by peer 19:23 (join) pcavs1 19:23 (quit) pcavs: Read error: Connection reset by peer 19:24 (join) pcavs 19:24 (quit) pcavs1: Read error: Connection reset by peer 19:26 (join) pcavs1 19:26 (quit) pcavs: Read error: Connection reset by peer 19:33 (quit) masm: Quit: Leaving. 19:45 (join) micaeked 19:51 (quit) cdidd: Quit: Leaving 19:54 (quit) yoklov: Quit: computer sleeping 20:03 (quit) MayDaniel: Read error: Connection reset by peer 20:05 (join) bjz 20:05 (join) cdidd 20:16 (quit) pcavs1: Quit: Leaving. 20:18 (join) pcavs 20:32 (join) jesyspa 20:37 (quit) jonrafkind: Ping timeout: 260 seconds 20:46 (join) mithos28 20:52 (quit) mithos28: Quit: mithos28 20:55 (quit) lusory: Ping timeout: 246 seconds 20:57 (join) jonrafkind 20:58 (quit) mye: Quit: mye 21:26 Fare: Hum, how do I install fonts so that slideshow can see them? 21:38 offby1: no idea :-( 21:38 (join) jeapostrophe 21:38 (quit) jeapostrophe: Changing host 21:38 (join) jeapostrophe 21:39 offby1: Probably depends on your operating system 21:39 Fare: debian 21:39 neilv: i don't know why, but i thought i could put test code inside (module+ test CODE ...) and have it not execute when i press the Run button in drracket 21:43 neilv: Fare: if you put them in "~/.fonts/", does it find them then? 21:44 Fare: nope 21:44 Fare: but maybe it has to do with punctuation? Optima\-ExtraBlack vs Optima, ExtraBlack 21:44 Fare: meh 21:46 neilv: do the fonts show up in output of "fc-list" command? 21:46 (quit) jeapostrophe: Ping timeout: 256 seconds 21:46 neilv: http://wiki.debian.org/Fonts 21:52 (join) yoklov 22:02 (quit) tuor: Quit: tuor 22:10 Fare: it shows as Optima\-ExtraBlack:style=Extra Black 22:16 asumu: neilv: there's a preference that sets what submodules are run on "Run" 22:21 (join) tuor 22:22 Fare: do I need to restart X or something? 22:49 (quit) jao: Ping timeout: 245 seconds 22:56 (join) nilyaK 23:12 (quit) nilyaK: Read error: Connection reset by peer 23:14 (join) Shvillr 23:17 (quit) Shviller: Ping timeout: 246 seconds 23:44 (quit) hash_table: Ping timeout: 246 seconds 23:44 (quit) jonathansizz: Ping timeout: 246 seconds 23:44 (quit) getpwnam: Ping timeout: 246 seconds 23:48 neilv: when was json support added to core racket? 23:48 jonrafkind: thousands of years ago.. before man as we knew him 23:48 neilv: they used dherman's representation, which is problematic 23:49 jonrafkind: march 12th 2012 is when eli imported it 23:50 neilv: maybe it was discussed on the list and i didn't notice or i forgot 23:51 jonrafkind: i dont see anything about it being included into the core on the list (users and dev) 23:51 neilv: one of the reasons i'm doing this racket home theatre thing is as an exercise and demonstration of doing mobile web apps with racket 23:51 jonrafkind: but it shouldnt matter right, you can just use your own json library 23:52 neilv: i'm going to have to make a neil/json-writing planet package someday. not today 23:58 (quit) yoklov: Quit: computer sleeping