00:03 (join) zwak 00:12 (join) jonathansizz 00:12 (join) random_malice 00:13 (join) bro_grammer 00:14 (quit) hash_table: Ping timeout: 240 seconds 00:14 (quit) oip: Ping timeout: 240 seconds 00:15 (quit) getpwnam: Ping timeout: 240 seconds 00:15 (quit) jeapostrophe: Ping timeout: 245 seconds 00:15 (join) jeapostrophe 00:15 (quit) jeapostrophe: Changing host 00:15 (join) jeapostrophe 00:21 (join) gridaphobe 00:22 (quit) gridaphobe: Remote host closed the connection 00:30 (quit) jeapostrophe: Ping timeout: 268 seconds 00:40 (join) RacketCommitBot 00:40 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/AnL1qg 00:40 RacketCommitBot: [racket/master] Fix contracts on several I/O functions - Asumu Takikawa 00:40 RacketCommitBot: [racket/master] Fix docs for radio-box% - Asumu Takikawa 00:40 RacketCommitBot: [racket/master] Fix docs for reencode-input-port & reencode-output-port - Asumu Takikawa 00:40 (part) RacketCommitBot 00:48 (join) Gertm 01:13 zwak: what do you guys think about these criticisms of Racket? http://programmers.stackexchange.com/questions/41045/scheme-vs-common-lisp-which-characteristics-made-a-difference-in-your-project/80919#80919 01:13 rudybot: http://tinyurl.com/cm4ersu 01:15 (quit) jao: Ping timeout: 246 seconds 01:16 mithos28: He seems like he wants CL and Racket isn't CL so it doesn't do exactly everything the same and is thus bad 01:17 (quit) jonathansizz: Ping timeout: 245 seconds 01:17 (quit) bro_grammer: Ping timeout: 265 seconds 01:17 (quit) random_malice: Ping timeout: 265 seconds 01:18 mithos28: He complains that he had to reimplement unwind-protect, which already exists as dynamic-wind 01:19 mithos28: His complaint about restarts is valid in that racket doesn't have them natively. But doesn't explain why they are needed. 01:21 mithos28: I don't know about the complaint about HTMLPrag, because the first hit on google (for me at least) is a library by that name in racket. 01:22 scott_: mithos28: at that part he's saying CL lacks something like racket's HTMLPrag library 01:23 mithos28: ah, makes more sese 01:23 mithos28: sense* 01:23 scott_: btw, I'm brand new to Racket. looks like it's going to be fun 01:32 (join) noelw 01:36 (quit) yoklov: Quit: bye! 01:39 (quit) noelw: Quit: noelw 01:50 zwak: thanks .. I wasn't trying to troll; I'm just interested 01:57 (join) jeapostrophe 01:57 (quit) jeapostrophe: Changing host 01:57 (join) jeapostrophe 01:59 asumu: zwak: some of those points are just not knowing idiomatic Racket. Racket macros aren't really harder than defmacro if you know how to use it. 02:00 asumu: And AFAIK, unwind-protect is actually superceded by dynamic-wind. 02:01 asumu: But anyway, didn't take it as trolling. Welcome to the party. 02:02 asumu: (also, I'm curious why the author thinks the LOOP macro is better than the 'for' family) 02:04 asumu: (oh, I guess I duplicated some of what mithos28 has already said; IIUC, restarts should be pretty easy to implement in a library) 02:04 (quit) jeapostrophe: Ping timeout: 272 seconds 02:30 (quit) Kaylin: Quit: Leaving. 02:44 (join) vu3rdd 02:44 (quit) vu3rdd: Changing host 02:44 (join) vu3rdd 02:46 (join) noelw 02:51 (quit) noelw: Client Quit 03:03 (quit) close-paren: Ping timeout: 268 seconds 03:03 (join) close-paren 03:19 (quit) close-paren: Ping timeout: 240 seconds 03:20 (quit) vu3rdd: Read error: Connection reset by peer 03:25 (join) close-paren 03:28 scott_: I'm not sure I understand the distinctions between display, write, and print. When should I use each one? 03:28 mithos28: write is useful for serializing simple data 03:29 jonrafkind: http://docs.racket-lang.org/reference/printing.html?q=write&q=wrte did you read this already? 03:29 mithos28: if you 'write' something, you can 'read' it back in 03:29 scott_: jonrafkind: actually, I just found that 03:29 jonrafkind: heh 03:29 scott_: I was reading the docs for the individual functions 03:30 jonrafkind: mostly you should use print or printf 03:30 mithos28: I think the most important thing about print is that the environment can change how stuff prints to make it prettier 03:30 scott_: is that how DrRacket prints pictures for example? 03:31 mithos28: I believe so 03:31 scott_: it appears so 03:31 scott_: display and write both print "#" instead 03:33 scott_: what would be the idiomatic way to write some string followed by \r\n to some port? (for IRC) 03:34 mithos28: I would use (fprintf port "~a\r\n" str) 03:34 scott_: alright, thanks 03:35 mithos28: but I highly doubt you want to do that, unless you have already sanitized the string 03:35 mithos28: not from malicious users, but from users accidentily putting in newlines 03:37 (quit) jonrafkind: Ping timeout: 248 seconds 03:39 (join) jschaefer 03:50 (quit) jschaefer: Ping timeout: 244 seconds 03:53 (quit) mithos28: Remote host closed the connection 03:54 (join) mithos28 03:54 (join) noelw 03:55 (quit) noelw: Client Quit 04:11 (join) jesyspa 04:29 (quit) mithos28: Quit: mithos28 04:44 (join) soegaard 05:18 (join) MayDaniel 05:29 (join) Jeanne-Kamikaze 05:40 (join) aes 05:40 (join) masm 05:41 aes: Is there any obvious way to examine my environment? Like dir() in Python, or inspecting _G in Lua, ...? 05:54 soegaard: What do you mean by environment? 05:55 aes: Well, the tutorial starts with circle and rectangle, right? I'd like to ask what other symbols are defined 05:56 soegaard: Do you have a link to the tutorial? 05:56 aes: Uh, sure 05:57 aes: http://docs.racket-lang.org/quick/index.html 05:57 soegaard: Just click on circle. 05:57 soegaard: That brings you to the documentation on circle - and that lists all the other operations too. 05:58 aes: Ok, but there's no reflection or anything like that in the language itself? 05:58 soegaard: There is, but I find it much easier to use the documentation. 05:59 soegaard: You can use module->namespace to turn a module into a namespace. 05:59 soegaard: http://docs.racket-lang.org/reference/Namespaces.html?q=module%20names 06:00 soegaard: Or perhaps better, use (current-namespace) . 06:00 aes: Really? Because being able to see where you are is kind of important.. 06:00 soegaard: Then use namespace-mapped-symbols. 06:01 aes: Aha, there it is. 06:01 soegaard: Assumuing that you have just run the module you are writing, you will get the correct namespace. 06:02 soegaard: The list is of mapped names are most likely long? 06:03 aes: Yeah. I need to read a bit about how namespaces work.. 06:03 aes: yep. 06:03 aes: (long) That's fine, it just means there are a lot of toys 06:08 (join) bitonic 06:15 (join) mithos28 06:16 (quit) soegaard: Quit: soegaard 06:26 (join) jyc 06:29 (quit) mithos28: Quit: mithos28 06:41 (join) soegaard 07:04 (join) noelw 07:05 (quit) cdidd: Ping timeout: 252 seconds 07:09 (quit) noelw: Client Quit 07:16 (quit) jyc: Read error: Connection reset by peer 07:16 (quit) sstrickl: Quit: sstrickl 07:34 (quit) SeanTAllen: Remote host closed the connection 07:38 (quit) bitonic: Ping timeout: 240 seconds 07:41 (join) SeanTAllen 07:59 Haffe: Hmmmm. 07:59 Haffe: I have to get something to eat for lunch. 07:59 Haffe: What do you say to a frozen pizza? 08:05 soegaard: Sounds cold. 08:07 (join) Aune 08:35 (join) DT``` 08:35 (quit) DT``: Ping timeout: 246 seconds 08:35 (nick) DT``` -> DT`` 08:39 (join) vu3rdd 08:39 (quit) vu3rdd: Changing host 08:39 (join) vu3rdd 08:56 (join) Demosthenes 08:57 (quit) bjz: Quit: Bye! 09:02 (join) bjz 09:10 (join) random_malice 09:10 (join) jonathansizz 09:11 (join) hash_table 09:20 (quit) Jeanne-Kamikaze: Ping timeout: 246 seconds 09:31 (join) ambrosebs 09:33 (join) anRch 09:34 (join) Jeanne-Kamikaze 09:50 (join) getpwnam 09:52 (quit) random_malice: Ping timeout: 245 seconds 09:52 (join) bro_grammer 09:52 (quit) hash_table: Ping timeout: 246 seconds 09:52 (quit) jonathansizz: Ping timeout: 245 seconds 09:56 (quit) aes: Quit: Leaving 10:04 (join) RacketCommitBot 10:04 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/n_nctA 10:04 RacketCommitBot: [racket/master] add a note about how to build documentation to the planet documentation building step - Robby Findler 10:04 (part) RacketCommitBot 10:05 (quit) ambrosebs: Ping timeout: 240 seconds 10:14 (quit) bjz: Quit: Leaving... 10:29 (quit) Demosthenes: Ping timeout: 246 seconds 10:43 (quit) masm: Ping timeout: 252 seconds 10:48 (quit) anRch: Quit: anRch 10:56 (join) masm 11:02 (quit) close-paren: Ping timeout: 256 seconds 11:10 (join) close-paren 11:16 (join) Kaylin 11:40 (join) jeapostrophe 12:01 (join) untrusted 12:05 (quit) close-paren: Ping timeout: 272 seconds 12:14 (quit) Kaylin: Quit: Leaving. 12:15 (join) close-paren 12:19 (join) jonrafkind 12:39 (join) jackhammer2022 12:39 (quit) close-paren: Quit: Bye 12:41 (join) close-paren` 12:41 (quit) close-paren`: Client Quit 12:41 (join) close-paren` 12:56 (quit) MayDaniel: 13:04 (quit) untrusted: Remote host closed the connection 13:05 (join) mithos28 13:16 (join) MayDaniel 13:30 (quit) jeapostrophe: Ping timeout: 246 seconds 13:45 (quit) close-paren`: Ping timeout: 240 seconds 13:46 (quit) shadgregory: Ping timeout: 240 seconds 13:52 (join) mithos28_ 13:56 (quit) mithos28: Ping timeout: 268 seconds 13:56 (nick) mithos28_ -> mithos28 13:58 sizz: can someone please explain why numbered? works correctly, but numbered2? does not? http://paste.lisp.org/display/131098 13:59 mithos28: this is the error (eq? (cadr aexp) (or (quote +) (quote x) (quote ^)) 14:00 mithos28: the (or (quote +) (quote x) (quote ^)) part evaluates to '^ 14:00 mithos28: you probably want (member (cadr aexp) '(+ x ^)) 14:01 mithos28: Also you might want to look at match 14:02 sizz: okay, thanks. i'm just working through the Little Schemer. numbered? was their example, but I thought I could simplify it so I wrote numbered2? 14:05 (join) bitonic 14:13 (join) mithos28 14:14 (quit) soegaard: Quit: soegaard 14:24 (quit) jonrafkind: Ping timeout: 272 seconds 14:30 Haffe: I think I found another inconsistency in the GUI toolkit. 14:55 (join) soegaard 15:19 (join) Kaylin 15:21 (join) chimeracoder 15:21 chimeracoder: anybody here play around with spin at all (https://github.com/dmacdougall/spin) ? 15:22 (quit) mithos28: Quit: mithos28 15:24 (quit) Jeanne-Kamikaze: Quit: Did you hear that ? 15:30 (join) mithos28 15:31 (join) Shvillr_ 15:31 (nick) Shvillr_ -> Shviller 15:59 (quit) MayDaniel: Read error: Connection reset by peer 16:03 (join) mithos28_ 16:06 (quit) mithos28: Ping timeout: 244 seconds 16:06 (nick) mithos28_ -> mithos28 16:16 (part) chimeracoder 16:38 (join) untrusted 16:57 (join) cdidd 17:05 (join) close-paren 17:14 (join) jeapostrophe 17:14 (quit) jeapostrophe: Changing host 17:14 (join) jeapostrophe 17:17 (quit) Kaylin: Read error: Connection reset by peer 17:23 (quit) jeapostrophe: Ping timeout: 260 seconds 17:29 (quit) noam: Read error: Connection reset by peer 17:30 (join) noam 17:31 (join) MayDaniel 17:31 (quit) untrusted: Remote host closed the connection 17:39 (quit) close-paren: Ping timeout: 244 seconds 17:47 (join) Kaylin 17:48 (join) Jeanne-Kamikaze 17:51 (join) jeapostrophe 17:51 (quit) jeapostrophe: Changing host 17:51 (join) jeapostrophe 17:57 (join) close-paren 18:03 (quit) close-paren: Ping timeout: 244 seconds 18:08 (join) neilv 18:09 neilv: i don't recall seeing a number like 1.0f0 before 18:11 neilv: some library was forcing the ieee fp precision when converting from an external representation 18:17 (quit) jeapostrophe: Ping timeout: 244 seconds 18:18 (quit) soegaard: Quit: soegaard 18:19 (join) close-paren 18:35 neilv: rudybot: eval (equal? 1.0 1.0f0) 18:35 rudybot: neilv: ; Value: #f 18:41 (quit) BeLucid: Read error: Connection reset by peer 18:42 neilv: rudybot: eval (* 1.0f0 2.0) 18:42 rudybot: neilv: ; Value: 2.0 18:42 (join) BeLucid 18:44 scott_: why does racket have an algol 60 implementation? 18:45 neilv: rudybot: eval (define (number->single-precision x) (read (open-input-string (format "~Af0" x)))) 18:45 rudybot: neilv: Done. 18:45 neilv: is there a sane way to do that? 18:46 (quit) mceier: Quit: leaving 18:48 (quit) MayDaniel: Read error: Connection reset by peer 18:49 (join) mceier 18:51 (quit) eMBee: Ping timeout: 272 seconds 18:56 (join) eMBee 18:57 (quit) close-paren: Ping timeout: 245 seconds 19:02 (join) pqmodn 19:08 (join) dnolen 19:11 (quit) Jeanne-Kamikaze: Read error: Connection reset by peer 19:17 (join) jao 19:17 (quit) jao: Changing host 19:17 (join) jao 19:17 (join) jonrafkind 19:17 (quit) Kaylin: Quit: Leaving. 19:32 (part) neilv: "Leaving" 19:44 (quit) jesyspa: Quit: leaving 19:45 (join) bjz 19:46 (join) slack1256 19:55 (quit) Nisstyre: Read error: Connection reset by peer 19:58 (join) Nisstyre 20:20 (quit) masm: Quit: Leaving. 20:20 (part) slack1256: "Konversation terminated!" 20:22 (join) close-paren 20:32 (join) RylandAlmanza 20:35 RylandAlmanza: Hi, I'm trying to write a simple irc bot, and was having trouble. So, I wrote a simple client that sends a string, and a simple server that prints the string. It appears my problem is that the client isn't sending anything. 20:35 RylandAlmanza: Can someone tell me why this won't work: https://gist.github.com/3390565 20:46 (join) jeapostrophe 20:55 (quit) close-paren: Ping timeout: 276 seconds 21:04 (quit) jeapostrophe: Read error: Operation timed out 21:05 (quit) Aune: Quit: L?mnar 21:09 (join) close-paren 21:16 (quit) close-paren: Ping timeout: 268 seconds 21:28 (join) RacketCommitBot 21:28 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/wAcHTg 21:28 RacketCommitBot: [racket/master] remove 'planet' from plt/bin (raco planet does the same thing and - Robby Findler 21:28 (part) RacketCommitBot 21:28 (quit) juanfra: Quit: leaving 21:29 asumu: RylandAlmanza: my first instinct is that it has to do with buffering on I/O. Try (flush-output) 21:32 asumu: (that seemed to fix it when I tried your code) 21:32 asumu: You can set the port to not buffer if that's the behavior you want. 21:35 RylandAlmanza: asumu: Thanks for responding! Unfortunately, it didn't seem to work for me. Can you show me what you used for the server's code? 21:38 (join) close-paren 21:41 asumu: RylandAlmanza: I didn't set up a server. I just did 'netcat -l 9999' 21:41 asumu: Did you flush the right port? You want (flush-output out), I think. 21:42 asumu: BBL, going on a walk. 21:46 (join) RacketCommitBot 21:46 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Kl_pJg 21:46 RacketCommitBot: [racket/master] improve the distribution building portion of the docs to point - Robby Findler 21:46 (part) RacketCommitBot 21:57 sizz: Does anyone know if little schemer/seasoned schemer will get new editions? 21:58 offby1 stares blankly 22:01 (join) Kaylin 22:04 (quit) bitonic: Ping timeout: 240 seconds 22:12 (join) jyc 22:33 (join) mithos28 22:37 asumu: sizz: no idea, why? 22:37 sizz: The Little Racketeer would be cool. 22:41 scott_: what's the best way to split a string by only the first occurance of whitespace? (split "foo bar baz") => '("foo" "bar baz") 22:45 (quit) mithos28: Quit: mithos28 22:46 asumu: rudybot: (define (split-first str) (define split (string-split str)) (cons (car split) (apply string-append (cdr split)))) 22:46 rudybot: asumu: your sandbox is ready 22:46 rudybot: asumu: Done. 22:46 asumu: rudybot: (split-first "ab cd ef") 22:46 rudybot: asumu: error: reference to an identifier before its definition: string-split in module: 'program 22:46 (join) mithos28 22:46 asumu: rudybot: (version) 22:46 rudybot: asumu: ; Value: "5.2.900.1" 22:46 asumu: That works in 5.3... 22:54 (join) duckinator 23:02 asumu: (though a regex is probably a smarter way) 23:03 scott_: regex sounds good, I was just wondering if I was missing something in the string functions. in a couple scripting languages I've used there's something like "foo bar baz".split(2) that returns a 2-item list 23:14 (join) jeapostrophe 23:14 (quit) jeapostrophe: Changing host 23:14 (join) jeapostrophe 23:16 (join) ambrosebs 23:22 (quit) jeapostrophe: Read error: Connection reset by peer 23:24 (join) jeapostrophe 23:24 (quit) jeapostrophe: Changing host 23:24 (join) jeapostrophe 23:27 offby1: asumu: yeah, I've been lazy about updating 23:28 offby1: asumu: every time I update, the first time I restart the bot it spends about 30 minutes recompiling the scribble docs or something before it actually starts, so I always put it off 23:44 (quit) jhemann_: Ping timeout: 246 seconds 23:51 jyc: is it possible to execute lua code from within racket? 23:51 jyc: (like lua's C bindings) 23:51 jyc: I suppose I could use racket's FFI, but would like to know if anyone has already implemented it first 23:52 scott_: a quick google doesn't find anything, I guess you'd have to do it yourself 23:52 scott_: racket's FFI looks quite nice though 23:57 (quit) jeapostrophe: Ping timeout: 252 seconds