00:06 (join) momo-reina 00:08 offby1: Zzz 00:09 (join) RacketCommitBot 00:09 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/NF1HrA 00:09 RacketCommitBot: [racket/master] make a bunch of unmutated private fields bound to procedures into private methods - Robby Findler 00:09 RacketCommitBot: [racket/master] make tooltips go away if the drracket window isn't - Robby Findler 00:09 (part) RacketCommitBot 00:10 offby1: [racket/master] make Robby go away if the code isn't ready 00:14 (part) momo-reina: "ERC Version 5.3 (IRC client for Emacs)" 00:17 (join) jrslepak 00:17 (join) bjz 00:23 (join) micaeked 00:27 micaeked: hello. i just read "http://blog.racket-lang.org/2012/09/i-write-funny-lookin-racket-code.html" and i really like the idea. anyone have this working on vim? or some pointers on how to get started? ps, i really don't like having to add to "set lispwords+=" so often 00:30 (join) cdidd 00:31 offby1: micaeked: I'm not sure the problem exists in vim. 00:32 micaeked: offby1: you have to special-case many forms using "set lispwords+=" 00:32 micaeked: offby1: for example: set lispwords+=local,with-handlers,with-output-to-file,query-exec,for/list,let/cc 00:32 offby1: hm, that does sound like the same problem Carl solved :) 00:46 (quit) em: Ping timeout: 244 seconds 00:48 friscosam: there is a good racket vim stuff on github 00:48 (join) em 00:48 friscosam: lemme find the link 00:49 friscosam: https://github.com/wlangstroth/vim-racket 00:49 friscosam: that at least gets some of the indent and coloring set up 00:50 friscosam: for all the special syntax and standard functions 00:52 micaeked: friscosam: yes, that does help. especially with syntax highlighting. the indent file seems a bit bare though: https://github.com/wlangstroth/vim-racket/blob/master/indent/racket.vim 00:59 micaeked: managed to locate /usr/share/vim/vim73/indent/ ... i'll try to get it working from the examples there 01:00 friscosam: yeah I think I hacked a vim code once and wanted to kill myself 01:06 (quit) sizz: Remote host closed the connection 01:06 (join) sizz 01:13 offby1 imagines line noise 01:14 friscosam: yes regular expressions are involved 01:14 (quit) masm: Quit: Leaving. 01:17 micaeked: aaaaand igiveup 01:19 (quit) jackhammer2022: Quit: Textual IRC Client: http://www.textualapp.com/ 01:20 friscosam: in ye olde days I remember an indent script written in plt scheme that you could run over your code to reindent it, but it was a real pain to use 01:21 friscosam: it was for like plt scheme 3xx 01:22 offby1 just uses a hammer and an old pair of pliers 01:30 (quit) hash_table: Ping timeout: 244 seconds 01:30 (quit) getpwnam: Ping timeout: 244 seconds 02:00 (join) jonrafkind 02:49 (quit) yoklov: Quit: computer sleeping 03:16 (quit) bjz: Quit: Leaving... 03:20 (join) Shviller 03:23 (quit) Shvillr: Ping timeout: 246 seconds 03:26 (join) vkz 04:06 (join) bjz 04:07 (join) bitonic 04:08 (quit) vkz: Quit: vkz 04:14 (quit) jonrafkind: Ping timeout: 244 seconds 04:14 (join) djcoin 04:17 (join) mithos28 04:26 (join) jeapostrophe 04:26 (quit) jeapostrophe: Changing host 04:26 (join) jeapostrophe 04:31 (join) mceier 04:35 (join) masm 04:56 (quit) mithos28: Quit: mithos28 05:25 (quit) jeapostrophe: Ping timeout: 246 seconds 05:41 (join) vkz 05:42 (quit) bjz: Quit: Leaving... 05:45 (join) MayDaniel 06:05 (join) bjz 06:18 (quit) vkz: Quit: vkz 06:57 (join) vkz 08:10 (quit) vkz: Quit: vkz 08:56 (join) bremner 08:56 (quit) bremner: Changing host 08:56 (join) bremner 08:59 (join) jao 08:59 (quit) jao: Changing host 08:59 (join) jao 09:19 (quit) bitonic: Remote host closed the connection 09:20 (join) vkz 09:29 (join) bitonic 09:34 (quit) bjz: Quit: Bye! 09:49 (join) mye 09:49 (quit) mye: Remote host closed the connection 09:50 (join) mye 10:06 (quit) cdidd: Read error: Connection reset by peer 10:12 (join) anRch 10:15 (join) mye_ 10:15 (quit) mye_: Remote host closed the connection 10:16 (join) mye_ 10:17 (join) mye__ 10:18 (quit) mye: Ping timeout: 256 seconds 10:18 (nick) mye__ -> mye 10:20 (quit) vkz: Quit: vkz 10:20 (quit) mye_: Read error: Operation timed out 10:27 (join) atsidi 10:32 (join) getpwnam 10:33 (join) hash_table 10:43 (join) jeapostrophe 10:43 (quit) jeapostrophe: Changing host 10:43 (join) jeapostrophe 10:46 (join) mye 11:07 (quit) atsidi: Quit: Leaving on a jet plane... 11:16 (join) gciolli 11:21 (join) mye_ 11:21 (quit) jeapostrophe: Ping timeout: 245 seconds 11:22 (quit) mye: Ping timeout: 256 seconds 11:22 (nick) mye_ -> mye 11:27 (quit) anRch: Quit: anRch 11:39 (join) vkz 11:56 (join) bjz 11:58 (join) bro_grammer 11:58 (join) random_malice 12:00 (quit) gciolli: Quit: Leaving. 12:01 (join) sizz_ 12:01 (quit) hash_table: Ping timeout: 244 seconds 12:01 (quit) getpwnam: Ping timeout: 244 seconds 12:01 (quit) sizz: Ping timeout: 260 seconds 12:01 (join) skarpy 12:01 (join) romtank 12:01 (join) sybex 12:01 (quit) triffidd: Ping timeout: 265 seconds 12:01 (quit) zurtik: Ping timeout: 265 seconds 12:01 (quit) popaya: Ping timeout: 265 seconds 12:01 (quit) form3: Ping timeout: 265 seconds 12:01 (quit) zwak: Ping timeout: 265 seconds 12:01 (quit) sklentikle: Ping timeout: 265 seconds 12:01 (join) lentikkle 12:02 (join) peeeep 12:02 (join) triffidd 12:34 (join) tuor 12:52 (join) mithos28 12:59 (join) mye 13:04 (quit) Nisstyre-laptop: Quit: Leaving 13:17 (join) gciolli 13:23 (join) dnolen 13:39 (quit) mithos28: Quit: mithos28 13:41 (join) vkz_ 13:43 (quit) vkz: Ping timeout: 248 seconds 13:43 (nick) vkz_ -> vkz 13:45 (quit) mye: Quit: mye 13:47 (quit) gciolli: Ping timeout: 245 seconds 13:48 (quit) dnolen: Remote host closed the connection 13:57 (quit) bro_grammer: Ping timeout: 256 seconds 13:57 (quit) random_malice: Ping timeout: 256 seconds 14:01 (join) mithos28 14:01 (join) hash_table 14:04 (join) jonathansizz 14:04 (join) getpwnam 14:24 (quit) jonathansizz: Quit: bye 14:24 (quit) hash_table: Read error: Connection reset by peer 14:24 (quit) getpwnam: Read error: Connection reset by peer 14:29 (join) hash_table 14:30 (join) getpwnam 14:31 (join) jonathansizz 14:40 mrcarrot: Is there any good irc bot written with racket? Something similar to lambdabot for haskell? 14:43 (join) uselpa 14:43 bremner: rudybot: source 14:43 rudybot: bremner: git clone git://github.com/offby1/rudybot.git 14:43 bremner: mrcarrot: depends on your definition of good ^ 14:43 mrcarrot: Thanks! Will check it out. 14:44 (quit) tuor: Quit: tuor 14:46 mrcarrot: bremner: Do you happen to know directly how it will handle time outs? I am on an unstable connection and the bot will at some point get disconnected. Is it able to connect again automatically? 14:47 bremner: mrcarrot: sorry, no idea. Maybe offby1 can help. 14:53 (join) untrusted 15:01 (join) pnpuff 15:04 (quit) uselpa: Remote host closed the connection 15:05 offby1: mrcarrot: yeah, it reconnects. 15:05 offby1: rudybot: uptime 15:05 rudybot: *offby1: I've been up for three weeks; this tcp/ip connection has been up for two weeks 15:05 offby1: that means that it reconnected two weeks ago 15:07 mrcarrot: offby1: I am still compiling racket, so I have not yet tested the bot. How do you configure it? will it ask for username etc once you run it, or do you edit any file? 15:12 (quit) mithos28: Quit: mithos28 15:20 offby1: lemme think 15:21 offby1: I think it looks for the password on the command line 15:21 offby1: username it gets out of the racket "preferences" file 15:21 offby1: and both can come from the environment too, but I never use that feature 15:28 (join) vkz 15:33 (quit) vkz: Client Quit 15:36 (quit) untrusted: Remote host closed the connection 15:38 (quit) bjz: Quit: Leaving... 15:42 (join) vkz 15:46 (quit) djcoin: Quit: WeeChat 0.3.7 15:55 mrcarrot: Ok, thanks! 15:56 (quit) mrcarrot: Remote host closed the connection 15:58 offby1: index it copies from old Vladivostok telephone directory 16:07 (quit) pnpuff: Quit: #lisp,#clnoobs,#lispcafe,#lisp-lab Bye 16:22 (quit) vkz: Read error: Connection timed out 16:24 (join) vkz 16:31 (join) uselpa 16:44 (join) nilyaK 16:53 (join) dnolen 16:54 (quit) vkz: Quit: vkz 16:57 (quit) uselpa: Remote host closed the connection 17:02 (quit) masm: Ping timeout: 252 seconds 17:07 (join) jonrafkind 17:15 (join) mceier_ 17:15 (quit) mceier: Disconnected by services 17:15 (nick) mceier_ -> mceier 17:20 (join) fbanados 17:31 (quit) dnolen: Remote host closed the connection 17:34 (quit) fbanados: Quit: Page closed 17:34 (join) dnolen 17:51 (quit) nilyaK: Quit: Leaving. 18:06 (join) dyoo 18:06 (join) nilyaK 18:30 (join) anRch 18:49 (join) ioa 18:53 (quit) nilyaK: Quit: Leaving. 18:59 (join) bjz 19:02 (join) mye 19:05 (quit) mye: Remote host closed the connection 19:05 (join) mye 19:06 (join) mye_ 19:09 (quit) mye: Read error: Operation timed out 19:09 (nick) mye_ -> mye 19:42 (quit) bitonic: Remote host closed the connection 19:45 (quit) RebelBunny: Quit: Leaving. 19:51 (quit) anRch: Quit: anRch 19:56 (quit) dyoo: Quit: dyoo 20:03 (quit) MayDaniel: 20:16 (quit) jonrafkind: Ping timeout: 260 seconds 20:53 (join) jeapostrophe 20:53 (quit) jeapostrophe: Changing host 20:53 (join) jeapostrophe 21:08 (quit) jeapostrophe: Ping timeout: 260 seconds 21:17 (quit) dnolen: Remote host closed the connection 21:24 (join) neilv 21:28 mye: if check-equal? tests two values in unit test, how to I test a function that returns multiple values? 21:28 mye: (check-equal? (foo) (values 1 2)) 21:28 mye: *confused* 21:32 (join) tuor 21:33 mye: actually, just testing against '(1 2) works, but I don't really get why. 21:34 mye: so a function that returns a list is equal to a function that return (values) with just as many list elemns 21:34 mye: this doesn't make sense 21:37 (quit) em: *.net *.split 21:37 (quit) jrslepak: *.net *.split 21:37 (quit) noam_: *.net *.split 21:38 (join) noam_ 21:38 mye: ok, forget the last point doesn't actually work :/ 21:38 (join) em 21:42 (join) jrslepak 21:44 asumu: mye: (let-values ([(x1 y1) (foo)] [(x2 y2) (foo2)] (check-equal? x1 y1) (check-equal? x2 y2)) 21:44 asumu: though maybe there is a more convenient built-in thing. 21:46 neilv: in overeasy, it's: (test (foo) (values 42 69)) 21:47 mye: asumu: thanks, I found something similar on http://stackoverflow.com/questions/3748311/plt-racket-test-cases-for-multiple-values 21:47 rudybot: http://tinyurl.com/92sg78v 21:47 mye: eli says rack unit might be better but I can't find it in the docs 21:47 neilv: http://www.neilvandyke.org/overeasy/ 21:49 mye: neilv: I had a look at it a couple months ago, seems like a good opportunity to switch :-) 21:51 mye: is it bad that I now import three unit test engines in the test submodule :-D 21:52 neilv: isn't there already something like "system*/string" or "system*/bytes" in core racket? 21:52 (quit) jrslepak: *.net *.split 21:53 neilv: oh, i guess "system*" is close enough 21:54 (join) jonrafkind 21:58 (join) jrslepak 22:04 (join) dnolen 22:05 eli: mye: ? 22:05 eli: I'm not "affiliated" with rackunit. 22:06 eli: My test thing is in a different place, and it's much closer to neilv's thing (though with some substantial not-yet-pushed flexibilities that make it do much more) 22:11 mye: eli: can you give me a link? I like more testing facilities. 22:11 eli: mye: It's in the full source tree, at collects/tests/eli-tester.rkt 22:11 eli: But it's not distributed, since I didn't get to make it more publish-able. 22:12 eli: And those extensions that I talked about are lying in a branch in my work tree... 22:12 eli: The basic idea looks like neilv's thing -- a small+minimal utility, (test expr => result) 22:17 neilv: i wouldn't call my thing small 22:17 neilv: wait. misunderstood 22:19 eli: neilv: I don't know how big the source is -- I'm talking about the small interface of just a minimal `test' form and leaving the rest for plain code. 22:20 eli: (Eg, avoiding some concept of a "test suite" and instead letting people write functions, which IIRC you were talking about too.) 22:20 neilv: yes 22:21 neilv: i am also trying to put in a little more syntactic sugar than you, iirc 22:23 (quit) bjz: Quit: Leaving... 22:25 eli: neilv: In my extension, you can extend it via new arrows. 22:26 eli: For example, there will be different arrows that will have different power in what they check. 22:26 eli: This came up since I did too much cuteness similar to (test (foo) => (values 1 2)) 22:27 eli: Specifically, I did (test (foo) => (error "bar")) as something that matches all errors with "bar" in them, and I also catch syntax error. 22:27 eli: This means that you can get confusing situations when you do (test (foo) => (+ x 1)) and `x' is unbound. 22:30 neilv: in overeasy, you can do: #:exn #rx"bar" 22:31 neilv: i found myself doing #:exn #rx"^foo: no bar in the baz" to match the start of the exn message, and ignoring the rest of the exn message 22:31 neilv: you can also do #:exn exn:fail:filesystem? to use predicates 22:31 neilv: or have a string arg, for an exact match of the exn-message 22:32 neilv: if you want to specify an exn predicate *and* and the exn message, there is no shortcut for that, yet 22:40 (quit) acarrico: Ping timeout: 244 seconds 22:42 neilv: anyone with mac os x system know whether there is a "/bin/hostname" standard? 22:43 jamessan: you mean whether such a binary exists? 22:43 neilv: yes 22:44 mye: neilv: it exitst on 10.8.2 here 22:45 neilv: does "/bin/hostname -f" give the full hostname including domain name? 22:45 jamessan: and on 10.6.8 22:46 jamessan: foo.local 22:46 mye: me too with and without -f 22:47 neilv: thanks 22:55 (join) acarrico 23:01 (join) jeapostrophe 23:01 (quit) jeapostrophe: Changing host 23:01 (join) jeapostrophe 23:10 (join) RacketCommitBot 23:10 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/HZurkg 23:10 RacketCommitBot: [racket/master] fix the way check syntax traverses #%require expressions that it sees - Robby Findler 23:10 (part) RacketCommitBot 23:13 (join) Shvillr 23:13 (join) Nisstyre-laptop 23:14 (quit) Shviller: Ping timeout: 245 seconds 23:18 neilv: (require (planet neil/hostname:1:0)) (get-full-hostname) (get-short-hostname) 23:18 neilv: supposedly that will work on most unix-y systems 23:20 neilv: crap 23:23 (join) bjz 23:25 (join) jyc_ 23:25 neilv: (require (planet neil/hostname:1:1)) (get-full-hostname) (get-short-hostname) 23:33 tuor: neilv: I just tried it on my Mac OS 10.8.2 and it worked great. It was also my first time to try (require (planet ... Very cool! 23:33 neilv: planet requires are cool. the only bummer is the documentation formatting time 23:37 neilv: incredibly boring screenshot of racket-based web app interface. http://i.imgur.com/EaVWr.jpg 23:37 (quit) jyc_: Read error: Connection reset by peer 23:39 neilv: so you will use your mobile phone, tablet, or laptop to control this little racket-based home theatre thing