00:13 (join) jonrafkind 00:13 (quit) jonrafkind: Changing host 00:13 (join) jonrafkind 00:20 (quit) hash_table: Ping timeout: 252 seconds 00:20 (quit) getpwnam: Ping timeout: 252 seconds 00:20 (quit) pod: Ping timeout: 268 seconds 00:45 mithos28: are the racket bugs getting moved to github? I remember something like that in the works. 00:57 (join) jyc 00:57 jyc: is there a stable IRC client library for racket? 00:57 mithos28: jyc: I don't think so 00:58 jyc: mithos28: thanks 00:58 mithos28: You might want to look at rudybot though 00:58 mithos28: https://github.com/offby1/rudybot/ 00:58 mithos28: rudybot: say hello 00:58 rudybot: mithos28: hello, I am wondering if it is possible to edit with other-user privileges (sudo) on a *remote machine*. the local OS is windows. 00:59 jyc: mithos28: interesting, thanks again 00:59 mithos28: Its our resident bot, so it likely has all of what you need but not in a nice library 01:00 (quit) Remosi: Ping timeout: 245 seconds 01:01 (quit) jyc: Remote host closed the connection 01:12 (join) Remosi 01:20 (quit) yoklov: Quit: computer sleeping 01:20 DrDuck1: Why doesn't a procedure like this, from SICP, not work properly in Racket? https://gist.github.com/3329909 01:21 mithos28: What is the problem with it? 01:21 DrDuck1: The error is "reference to an identifier before its definition: A" 01:22 mithos28: What is your whole program? 01:22 (quit) em: Ping timeout: 265 seconds 01:22 mithos28: because that part is fine 01:23 DrDuck1: That is the whole program along with #lang planet neil/sicp at the top 01:24 mithos28: It works for me 01:24 mithos28: Are you sure that is your entire program 01:25 mithos28: Because you aren't calling A anywhere in it, and I assume you would want to do tha 01:25 mithos28: t 01:26 (quit) Kaylin: Read error: Connection reset by peer 01:27 DrDuck1: Yes, I'm sure. When I use plain old #lang racket, it works properly. This will do fine. Thanks for testing it out for me! :D 01:28 mithos28: no problem 01:30 offby1: "not in a nice library" is an understatement. 01:30 offby1: I've rewritten it from scratch twice and it's still a mess :-| 01:31 mithos28: Eh, its not all in one big file 01:31 offby1: it almost is. 01:31 offby1: irc-process-line or something if I recall correctly. 01:32 (quit) cdidd: Ping timeout: 245 seconds 01:35 (join) Kaylin 01:38 (join) em 01:58 (quit) em: Ping timeout: 245 seconds 02:00 (join) em 02:15 (quit) em: Ping timeout: 244 seconds 02:23 (join) em 02:26 (join) MayDaniel 02:29 (quit) Remosi: Ping timeout: 240 seconds 02:42 (join) Remosi 02:47 (quit) errstr: Quit: ZNC - http://znc.sourceforge.net 02:47 (join) errstr 02:52 (join) bjz 03:04 (quit) mithos28: Quit: mithos28 03:09 (quit) jeapostrophe: Ping timeout: 244 seconds 03:10 (quit) bjz: Quit: Leaving... 03:16 (quit) jhemann__: Read error: Connection reset by peer 03:20 (join) bjz 03:23 (quit) Kaylin: Read error: Connection reset by peer 03:24 (quit) jonrafkind: Ping timeout: 276 seconds 03:32 (join) mithos28 03:59 (quit) Remosi: Ping timeout: 240 seconds 04:02 (join) lusory 04:06 (quit) em: Ping timeout: 246 seconds 04:08 (join) em 04:12 (join) Remosi 04:13 (join) Aune 04:14 (quit) em: Ping timeout: 260 seconds 04:16 (join) em 04:19 (join) jesyspa 04:21 (quit) em: Ping timeout: 240 seconds 04:27 (quit) darkf: Quit: Leaving 04:42 (part) surrounder 04:49 (join) masm 04:51 (join) Shviller 04:58 (quit) MayDaniel: Read error: Connection reset by peer 05:30 (quit) Remosi: Ping timeout: 240 seconds 05:42 (join) antithesis 05:42 (join) Remosi 05:43 (quit) bjz: Quit: Leaving... 05:50 (quit) mithos28: Quit: mithos28 05:52 (join) em 05:54 (join) bjz 05:57 (join) MayDaniel 05:59 (quit) em: Ping timeout: 260 seconds 06:07 (join) em 06:15 (quit) bjz: Quit: Leaving... 06:15 (join) cdidd 06:16 (join) bjz 06:33 (quit) masm: Quit: Leaving. 06:33 (quit) antithesis: Quit: antithesis 06:36 (quit) Aune: Read error: Operation timed out 06:58 (quit) SeanTAllen: Read error: Connection reset by peer 07:00 (quit) Remosi: Ping timeout: 240 seconds 07:13 (join) Remosi 07:31 (join) jesyspa_ 07:34 (quit) jesyspa: Ping timeout: 240 seconds 07:37 (nick) jesyspa_ -> jesyspa 08:20 (quit) bjz: Quit: Leaving... 08:26 (join) ambrosebs 08:28 (join) SeanTAllen 08:29 (quit) Remosi: Ping timeout: 240 seconds 08:42 (join) Remosi 08:44 (join) getpwnam 08:44 (join) pod 08:45 (join) hash_table 09:46 (join) RacketCommitBot 09:46 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/x6xAhg 09:46 RacketCommitBot: [racket/master] Add the contents of the "blue boxes" in the docs to the upper-right - Robby Findler 09:46 (part) RacketCommitBot 09:51 Haffe: Ok. 09:51 Haffe: Hello people. 09:52 (join) anRch 09:59 (quit) Remosi: Ping timeout: 240 seconds 10:07 (join) jeapostrophe 10:13 (join) Remosi 10:15 (join) anRch_ 10:16 (quit) anRch: Read error: Connection reset by peer 10:16 (nick) anRch_ -> anRch 10:41 (join) yoklov 10:42 (quit) wtetzner: Ping timeout: 246 seconds 10:57 (join) wtetzner 11:00 (join) RacketCommitBot 11:00 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/ft3_5Q 11:00 RacketCommitBot: [racket/master] Histogram plots support lists as well as vectors of data. - Ray Racine 11:00 RacketCommitBot: [racket/master] Altered a couple of tests to test list-of-lists histogram arguments - Neil Toronto 11:00 (part) RacketCommitBot 11:05 (quit) MayDaniel: Read error: Connection reset by peer 11:23 (join) Kaylin 11:23 (join) jao 11:23 (quit) jao: Changing host 11:23 (join) jao 11:30 (quit) Remosi: Ping timeout: 240 seconds 11:34 (quit) jeapostrophe: Ping timeout: 244 seconds 11:42 (join) Remosi 11:47 (quit) DT``: Ping timeout: 276 seconds 11:55 (join) MayDaniel 12:13 (join) mithos28 12:17 (join) karswell__ 12:18 (quit) karswell_: Ping timeout: 245 seconds 12:25 (join) jeapostrophe 12:40 (quit) jeapostrophe: Ping timeout: 245 seconds 12:53 (join) jonrafkind 13:00 (quit) Remosi: Ping timeout: 240 seconds 13:05 (join) jackhammer2022 13:12 (join) dnolen 13:12 (join) Remosi 13:17 (quit) jackhammer2022: Read error: Connection reset by peer 13:24 (join) jackhammer2022 13:38 (quit) Znudzon: Ping timeout: 240 seconds 13:43 (join) Gertm_ 13:43 (quit) Gertm_: Client Quit 13:49 (join) untrusted 13:51 (join) Znudzon 13:55 (quit) ambrosebs: Ping timeout: 252 seconds 14:07 (join) bitonic 14:08 (quit) yoklov: Quit: computer sleeping 14:23 (quit) DrDuck1: Quit: Leaving. 14:29 (quit) untrusted: Remote host closed the connection 14:29 (quit) Remosi: Ping timeout: 240 seconds 14:40 (quit) Kaylin: Read error: Connection reset by peer 14:42 (join) Remosi 15:02 (join) _gcr 15:02 _gcr: hey, can I catch SIGTERM? 15:03 mithos28: Probably, is sigterm caused by ^C or ^\? 15:03 _gcr: Not sure. I know ^C sends SIGINT which racket interprets as a break 15:03 _gcr: SIGTERM is what you get when you say 'killall racket' 15:03 _gcr: and SIGKILL, which can't be caught, is 'killall -9 racket' 15:04 mithos28: So likely you can catch it by going down to the c level and installing a signal handler 15:04 _gcr: Hm. No way from racket? 15:04 _gcr: I'd just like to clean up some temporary files when emacs kills an inferior racket process 15:05 mithos28: It doesn't exist in Windows. 15:05 mithos28: ah look at custodians 15:05 mithos28: Those are for resource cleanup 15:06 mithos28: rudybot: doc custodian 15:06 rudybot: mithos28: your sandbox is ready 15:06 rudybot: mithos28: not found in any library's documentation: custodian 15:06 mithos28: rudybot: doc current-custodian 15:06 rudybot: mithos28: http://docs.racket-lang.org/reference/custodians.html#(def._((quote._~23~25kernel)._current-custodian)) 15:07 _gcr: oh yes, i remember some chatter about this on the mailing list recently. i'm not sure if there's a way to add a hook that gets executed when the current custodian dies 15:08 _gcr: ew. maybe i should just have emacs clean up the temp files then. 15:09 mithos28: You might also want to look at wills, those are for cleanup aswell 15:09 mithos28: specifically custom cleanup 15:10 _gcr: aha, this could be good. ok 15:11 mithos28: I don't know how forceful a sigterm is to racket though, I expect it tries to clean up as much as it can though 15:13 _gcr: yeah, i wouldn't be surprised if the will executor never has a chance to run 15:13 mithos28: Why are you creating temp files to begin with? 15:14 _gcr: I'm adding inline images to Geiser's REPL, the same way DrRacket does it for picts 15:14 _gcr: Racket passes the temporary image to geiser 15:14 _gcr: then one of them should be responsible for cleaning it up after emacs opens / displays it 15:15 mithos28: and you are passing a file path between the proccess? 15:15 _gcr: Right now, I am. I could also base64-encode the image or something which would be conceptually simpler albeit much less efficient 15:16 mithos28: I was thinking passing instead of passing a file descriptor 15:17 _gcr: you mean passing the base64 image or something like that? 15:20 mithos28: no instead of passing the string to the location of the file say '/tmp/EA345.tmp' 15:20 mithos28: you pass the file descriptor 15:20 mithos28: This would still likely require going down to C though 15:21 _gcr: Passing it across processes? That could be complicated, yeah 15:22 mithos28: Cleaning up tmpfiles is complicated as well (if you go outside the language, i.e. SIGTERM). 15:24 (join) Shvillr_ 15:24 (quit) Shviller: Disconnected by services 15:24 (nick) Shvillr_ -> Shviller 15:41 (quit) _gcr: Read error: Connection reset by peer 15:45 (join) Aune 15:46 (join) yoklov 15:50 (quit) yoklov: Max SendQ exceeded 15:52 (join) DT`` 15:53 (join) yoklov 15:54 (quit) bitonic: Ping timeout: 276 seconds 15:54 (quit) yoklov: Max SendQ exceeded 15:55 (join) yoklov 15:59 (quit) Remosi: Ping timeout: 240 seconds 16:00 (quit) yoklov: Quit: computer sleeping 16:02 (join) bitonic 16:12 (join) Remosi 16:23 (quit) jonrafkind: Ping timeout: 244 seconds 16:41 (quit) karswell__: Remote host closed the connection 16:41 (quit) wtetzner: Ping timeout: 260 seconds 16:46 (join) _gcr 16:47 (quit) mithos28: Quit: mithos28 16:51 (join) RacketCommitBot 16:51 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/kxKJEQ 16:51 RacketCommitBot: [racket/master] remove experimentation code (that I should have removed earlier) - Robby Findler 16:51 RacketCommitBot: [racket/master] fix annotations-mixin for new syncheck interface - Robby Findler 16:51 RacketCommitBot: [racket/master] add note to history - Robby Findler 16:51 (part) RacketCommitBot 16:51 (join) karswell__ 16:53 (join) mithos28 16:57 (join) wtetzner 17:05 (join) Kaylin 17:09 (join) masm 17:21 (join) RacketCommitBot 17:21 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/uu21pA 17:21 RacketCommitBot: [racket/master] enable online check syntax (change the default for - Robby Findler 17:21 (part) RacketCommitBot 17:22 (quit) Remosi: Quit: Leaving 17:26 (join) soegaard 17:27 Cryovat: Robby is on fire 17:28 (quit) MayDaniel: Read error: Connection reset by peer 17:28 mithos28: I'll have to try it out, I attempted to do this before but with embeding a webbrowser in racket and providing a view and mangling the css. 17:29 mithos28: It only sorta worked 17:50 (join) darkf 17:51 darkf: how do I determine if a string is numeric? 17:51 mithos28: rudybot: (string->number "45689") 17:51 rudybot: mithos28: ; Value: 45689 17:51 mithos28: rudybot: (string->number "ABC") 17:51 rudybot: mithos28: ; Value: #f 17:51 (join) DrDuck 17:51 mithos28: rudybot: (string->number "123ABC" 16) 17:51 rudybot: mithos28: ; Value: 1194684 17:52 mithos28: rudybot: doc string->number 17:52 rudybot: mithos28: http://docs.racket-lang.org/reference/generic-numbers.html#(def._((quote._~23~25kernel)._string-~3enumber)) 17:52 mithos28: darkf: is that what you needed? 17:52 darkf: mithos28: yep, I thought there was a better way than to check if it returns #f :) 17:53 mithos28: nope, thats why it returns #f instead of erroring 17:53 darkf: :) 17:53 darkf: alrighty thanks 17:58 soegaard: darkf: BTW. Evaluation order is specified to to be left-to-right in Racket. http://docs.racket-lang.org/guide/application.html?q=evaluation%20order#(part._.Evaluation_.Order_and_.Arity) and http://docs.racket-lang.org/reference/application.html?q=evaluation%20order 17:58 rudybot: http://tinyurl.com/9ud9olv 18:00 darkf: soegaard: awesome :-) 18:10 (quit) jackhammer2022: Read error: Connection reset by peer 18:13 (quit) _gcr: Remote host closed the connection 18:18 (join) bjz 18:26 darkf: I can't seem to use ((eval '+) 1 2) from within my .rkt file, but it works in the REPL... it gives me this error: compile: unbound identifier (and no #%top syntax transformer is bound) in: + 18:27 mithos28: eval is bad, especially the one argument version 18:27 darkf: :( I'm writing a calculator and need to get the procedure + from '+ :) 18:27 mithos28: eval is overkill 18:28 darkf: what would you suggest? 18:28 mithos28: rudybot: (define (sym->func sym) (case sym ((+) +) ((*) *))) 18:28 rudybot: mithos28: Done. 18:28 darkf: ha 18:28 mithos28: rudybot: (sym->func '+) 18:28 rudybot: mithos28: ; Value: # 18:29 mithos28: for your case with some limited number of operators, that is exactly what you want 18:29 darkf: that works, but it is a bit ugly :) 18:30 darkf: why does eval fail though? 18:30 mithos28: because of current-namespce 18:30 mithos28: current-namespace* 18:30 darkf: ah 18:34 (quit) soegaard: Quit: soegaard 18:34 (quit) Aune: Quit: L?mnar 18:35 (quit) bjz: Quit: Leaving... 18:42 (join) _gcr 18:43 mithos28: asumu: I can replicate in DrRacket, but since there is a difference between racket and drracket I think something is up beyond TR 18:44 (quit) bitonic: Ping timeout: 276 seconds 18:49 (join) bjz 19:04 mithos28: why are keyworded procedures so difficult? 19:32 (quit) Kaylin: Read error: Connection reset by peer 19:52 (quit) karswell__: Remote host closed the connection 20:02 (quit) bjz: Remote host closed the connection 20:02 (join) karswell__ 20:11 (join) bjz 20:20 (join) Kaylin 20:33 (join) jyc 20:34 jyc: is there a good guide to/example of idiomatic racket? looking at the racket guide, there are so many features (so much information on contracts) 20:34 mithos28: jyc: http://www.ccs.neu.edu/home/matthias/Style/style/index.html 20:38 (join) jonrafkind 20:38 (quit) jonrafkind: Changing host 20:38 (join) jonrafkind 20:38 jyc: mithos28: thanks again! also, would you say rudybot is a good example racket program? 20:39 mithos28: I haven't looked at the code, but offby1 said that it is in horrible shape 20:39 mithos28: and he is the owner of it 20:39 jyc: oh, heh 20:39 jyc: do you know of one, then? 20:40 mithos28: I would say to look around the core libraries 20:41 mithos28: I'm not sure what you want to see 20:42 jyc: alright, will do that. looking for something like a modular server, to see how one'd handle that in racket 20:42 wtetzner: did syntax parse change? 20:42 wtetzner: this example from the docs doesn't work in 5.3 20:43 wtetzner: http://pastebin.com/TumkGpHV 20:43 mithos28: wtetzner: try (require syntax/parse) first 20:44 wtetzner: ah 20:44 wtetzner: that works 20:44 wtetzner: thanks 20:54 (quit) karswell__: Remote host closed the connection 20:56 (quit) bjz: Quit: Leaving... 21:05 (join) karswell__ 21:17 (quit) DrDuck: Ping timeout: 268 seconds 21:29 (join) jeapostrophe 21:29 (quit) jeapostrophe: Changing host 21:29 (join) jeapostrophe 21:31 (join) DrDuck 22:14 (join) jackhammer2022 22:36 (join) RacketCommitBot 22:36 RacketCommitBot: [racket] plt pushed 7 new commits to master: http://git.io/-rXT8g 22:36 RacketCommitBot: [racket/master] doc fix - Matthew Flatt 22:36 RacketCommitBot: [racket/master] try to clarify gradient docs - Matthew Flatt 22:36 RacketCommitBot: [racket/master] add `ffi/unsafe/custodian' - Matthew Flatt 22:36 (part) RacketCommitBot 22:45 (quit) jackhammer2022: Quit: Textual IRC Client: http://www.textualapp.com/ 22:49 (quit) hash_table: Ping timeout: 248 seconds 22:49 (quit) getpwnam: Ping timeout: 248 seconds 22:49 (quit) pod: Ping timeout: 252 seconds 22:50 (quit) masm: Quit: Leaving. 22:54 (quit) cataska: Quit: leaving 22:57 (join) jeremyhe_ 22:58 (quit) jeremyhe_: Client Quit 23:00 (join) vu3rdd 23:00 (quit) vu3rdd: Changing host 23:00 (join) vu3rdd 23:07 (quit) karswell__: Remote host closed the connection 23:10 (join) cataska 23:18 (join) ambrosebs 23:22 (quit) jyc: Remote host closed the connection 23:43 (join) karswell