00:00 (join) realitygrill_ 00:01 (quit) realitygrill: Ping timeout: 248 seconds 00:01 (nick) realitygrill_ -> realitygrill 00:28 (join) Lajla 00:30 (join) jeapostrophe 00:38 (quit) jeapostrophe: Quit: jeapostrophe 01:15 (quit) srolls: Remote host closed the connection 01:23 (join) yin 01:41 (join) jao 01:46 (quit) yin: Quit: Leaving 01:50 (part) a3nm 01:55 (quit) realitygrill: Quit: realitygrill 02:21 (join) dnolen 02:26 (quit) dnolen: Quit: dnolen 02:46 (join) zx80 03:24 (join) oiiii 03:25 (join) Blkt 03:30 (quit) jonrafkind: Ping timeout: 258 seconds 03:33 (join) ahinki 03:35 (join) hkBst 03:38 (join) masm 03:42 (quit) mithos28: Quit: mithos28 03:52 (join) mithos28 03:55 Blkt: good morning everyone 04:01 (quit) ahinki: Quit: ChatZilla 0.9.87 [Firefox 8.0/20110928060149] 04:05 (quit) jao: Ping timeout: 245 seconds 04:15 (join) ahinki 04:17 (quit) mithos28: Quit: mithos28 04:48 (join) tim-brown 05:41 (quit) zx80: Quit: Leaving 05:57 (quit) Lajla: Ping timeout: 255 seconds 06:34 (quit) dmac1: Ping timeout: 248 seconds 07:18 (join) Lajla 07:23 (join) jeapostrophe 08:33 (join) anRch 08:35 (join) dzhus 08:44 (quit) anRch: Ping timeout: 260 seconds 08:45 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/QKy7Mw 08:45 RacketCommitBot: [racket/master] Fixing PR 12271 - Jay McCarthy 08:48 (join) anRch 09:12 (quit) anRch: Read error: Connection timed out 09:12 (join) anRch 09:29 (quit) anRch: Read error: Connection timed out 09:30 (join) anRch 09:34 (quit) jeapostrophe: Quit: jeapostrophe 09:37 (quit) anRch: Quit: anRch 09:48 (join) xharkonnen 10:03 (join) jeapostrophe 10:15 (part) tim-brown: "Leaving" 10:27 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/WtEdGg 10:27 RacketCommitBot: [racket/master] Fixing breakage from push 23693 - Jay McCarthy 10:30 (join) realitygrill 10:40 (quit) hkBst: Read error: Connection reset by peer 10:46 (quit) jeapostrophe: Quit: jeapostrophe 11:05 (quit) ahinki: Quit: ChatZilla 0.9.87 [Firefox 8.0/20110928060149] 11:37 (quit) realitygrill: Quit: realitygrill 11:43 (join) tim-brown 11:44 (join) anRch 11:45 (join) Emry 11:48 (quit) Burlingk: Ping timeout: 252 seconds 11:49 _p4bl0: the racket .sh installer is really a pita. Each time I have to restart the install from scratch because I put a trailing / in the install target dir, then because I just hit enter at "ok to run racket-uninstall?", then because I enter "ok" instead of "yes" as an anwser to the same question... :-/ 11:49 _p4bl0: Anyone knows where is the code that generates this script? Maybe I can improve those little things and submit a patch 11:51 samth: _p4bl0: i don't think it's in the public plt tree 11:51 samth: eli: ping 11:51 samth: eli: see above 11:52 (quit) Emry: Quit: Leaving 11:53 (quit) tim-brown: Quit: Leaving 11:54 noelw: Patching the installer would be great 11:54 noelw: but if you're reinstalling many times perhaps you just want to grab the source and build it in-place 11:54 noelw: It's just the usual configure / make thing 11:56 (join) realitygrill 11:57 (join) shofetim 11:57 _p4bl0: samth: that's why I ask, I didn't find it in the source tree 11:58 samth: _p4bl0: there'a another, non-public tree, which mostly consists of a bunch of other crap, but probably has that as well 11:58 samth: that's why i asked eli -- he's the keeper of the build scripts 11:59 _p4bl0: noelw: it's on my Eee, which is kinda slow so I try to avoid compiling big stuff, but I don't have enough space on / to install the debian package, so I update from time to time (I just did a 5.0.2 -> 5.1.3 update). 11:59 _p4bl0: samth: okay, thanks :-) 11:59 noelw: Fair enough 11:59 (join) jeapostrophe 11:59 eli: samth: It's in the tree, http://git.racket-lang.org/plt/tree/HEAD:/collects/meta/build/unix-installer 11:59 rudybot: http://tinyurl.com/3ldsxh5 12:00 eli: noelw: It's still faster to run the installer. 12:00 samth: eli: oh, great 12:00 samth: _p4bl0: see the link eli gave 12:00 eli: _p4bl0: I see three complaints: 12:01 eli: (1) something about a trailing "/" being problematic -- can you please email me how you get it exactly? 12:01 eli: (2) something about "ok to run racket-uninstall" -- how is this a problem of the installer? 12:02 eli: (3) "ok" instead of "yes" -- if there's an issue I possibly can clarify the yes/no question, but adding synonyms to "yes" doesn't sound like a good idea. 12:02 _p4bl0: eli: for (2), the installer ask if it's okay to run the uninstaller if there's an already existing install. And the user have to guess that he should enter "yes" at this point (which is not obvious to me, but maybe I'm the only one) 12:03 _p4bl0: eli: yea that was my idea, to add " [yes/no]" at the end of the question 12:04 (join) wishbone4 12:05 eli: There are a whole bunch of yes/no questions. 12:05 _p4bl0: for (1), it's when the installer asks for the installation path, if it ends with a slash, it says "Error: internal error ($where ends in a slash)". Just adding a line with where="${where%/}" would solve this problem 12:07 _p4bl0: eli: the first one (about the unixness of the install) is clear about what I should enter, the second one feels like if I just hit the enter key it will continue the install because the default is "ok" as in the question, but it actually aborts 12:07 (quit) oiiii: Remote host closed the connection 12:07 (quit) realitygrill: Quit: realitygrill 12:08 eli: _p4bl0: Oh, so the ">>ok<< to run it?" is confusing. 12:08 eli: How about "should I run it? (default: no) " ? 12:09 _p4bl0: eli: muuuuuuuch better! 12:19 _p4bl0: eli: so you do the modifications directly? Or should I still send you a little patch? 12:22 (quit) Blkt: Quit: going home 12:23 eli: _p4bl0: I'll commit it later. 12:24 eli: I also wanted to make it accept $VARs, which can lead to confusing errors if you use "$HOME" literally. 12:25 (join) dnolen 12:26 _p4bl0: eli: okay, thanks :-) 12:35 (join) bluezenix 12:35 (join) dmac1 12:36 eli: _p4bl0: Actually, instead of blindly stripping a "/" suffix and substituting "$VAR"s, I'll make it ask for confirmation if after doing so the resulting path is different. 12:36 eli: Just in case someone *wanted* a "$" in their path. 12:37 _p4bl0: do you really want this kind of users? :-p 12:37 eli: I don't think that it's a useful in itself, 12:38 eli: but it's better to show people that the installation will go in "//blah" so they'll see that they had a typo and entered "$HOOME/blah" by mistake. 12:38 _p4bl0: ah right 12:39 _p4bl0: I have to go, the first session of our student logic working group is about to start (yay!) 12:39 _p4bl0: bye 12:39 Demosthenes: i think i've asked before, but is there a working ncurses binding somewhere 12:40 (quit) bluezenix: Quit: Leaving. 12:40 Demosthenes: i need to write a basic data entry form, and i'd rather do it in racket. not sure about the gui interface, but curses would be fine. 12:40 (quit) anRch: Quit: anRch 12:43 eli: Demosthenes: Using the gui would be easier. 12:46 (join) realitygrill 12:48 Demosthenes: anyone really done anything forms there? 12:49 (quit) dmac1: Ping timeout: 244 seconds 12:49 Demosthenes: and then i have to worry about windowing systems ;] 12:53 Demosthenes: i read on the ML some people make FFIs to ncurses "for a good time"? 12:54 Demosthenes: rather counterintuitive to me 12:54 (join) anRch 12:55 (join) jonrafkind 12:58 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/cGTK8g 12:58 RacketCommitBot: [racket/master] Typoes. - Vincent St-Amour 12:58 RacketCommitBot: [racket/master] Fix typo in Slideshow documentation - Rodolfo Carvalho 13:10 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/oCI3RA 13:10 RacketCommitBot: [racket/master] pr 12268 fix merge to 5.2 - Kevin Tew 13:10 RacketCommitBot: [racket/master] Slideshow --half-screen - Kevin Tew 13:10 RacketCommitBot: [racket/master] Fix QNX merge to 5.2 - Kevin Tew 13:11 (join) dmac1 13:13 (join) cipher 13:14 stamourv: tewk_: I'm curious, why a QNX port? 13:21 (quit) anRch: Quit: anRch 13:24 (join) blake_johnson 13:35 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/8uyqUg 13:35 RacketCommitBot: [racket/master] Rename "$WHERE1" -> "$BASE". - Eli Barzilay 13:35 RacketCommitBot: [racket/master] Clearer question about running an existing uninstaller. - Eli Barzilay 13:35 RacketCommitBot: [racket/master] "half-screen" -> "right-half-screen". - Eli Barzilay 13:46 eli: Demosthenes: the racket gui is portable, you don't need to worry about windowing systems. 13:53 (quit) realitygrill: Quit: realitygrill 13:58 (join) realitygrill 14:00 (quit) blake_johnson: Quit: blake_johnson 14:05 (quit) snorble: Read error: Connection reset by peer 14:13 (join) bluezenix 14:14 (join) blake_johnson 14:40 (quit) realitygrill: Quit: realitygrill 14:43 (quit) bluezenix: Quit: Leaving. 14:44 (join) realitygrill 14:50 (quit) jonrafkind: Ping timeout: 255 seconds 15:02 (join) snorble 15:11 Gertm: Is there an idiomatic Racket way to do tcp client connections? I've whipped something up but it makes my CPU go to 100%, so I'm probably doing something wrong. 15:14 (join) jonrafkind 15:16 (quit) realitygrill: Quit: realitygrill 15:20 (join) realitygrill 15:21 samth: Gertm: i assume you're using the `racket/tcp' module? 15:22 samth: i would say that `tcp-connect' is the idiomatic way to do it 15:29 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Iqv-Fg 15:29 RacketCommitBot: [racket/master] Fixed error: attempt to divide by (void) when axis bounds' length is a multiple of 1000 - Neil Toronto 15:33 RacketCommitBot: [racket] plt pushed 27 new commits to release: http://git.io/mSsERw 15:33 RacketCommitBot: [racket/release] another attempt to fix the 64-bit Lion hidden-window problem - Matthew Flatt 15:33 RacketCommitBot: [racket/release] windows: add sqlite3.dll - Matthew Flatt 15:33 RacketCommitBot: [racket/release] adjust the way languages are chosen when opening a file. - Robby Findler 15:34 Gertm: samth: Yes, tcp-connect is what I did. I guess my question should have been: how can I read from the inputport without maxing out my cpu? I'm using (for ([line (in-bytes-lines in)]).. now, which doesn't seem to be the right way. 15:35 samth: Gertm: that will continue to read from the port until it is closed 15:35 jonrafkind: wheres stevie? 15:35 Gertm: samth: that's what I want actually 15:35 jonrafkind: is there a struct/contract analogue to define-struct/contract? 15:35 samth: jonrafkind: i don't think he's in today 15:35 samth: jonrafkind: no, i don't think so 15:35 jonrafkind: but it should probably exist right 15:36 samth: jonrafkind: no, i don't think it makes sense 15:36 jonrafkind: why not 15:36 samth: who is agreeing to the contract? 15:36 jonrafkind: uhh are you saying define-struct/contract should not exist? 15:37 samth: i'm not sure it makes sense, but if it exists, there should be a struct/contract version 15:37 samth: Gertm: `in-bytes-lines' reads until EOF 15:37 jonrafkind: well yea i mean define-struct/contract has existed for a while 15:38 Gertm: samth: It should just constantly read until the connection gets severed, so that's good. But there's not always something available to read. (I'm trying to write an IRC bot) 15:38 (join) anRch 15:38 Gertm: So basicly it does what I want, but the CPU goes to 100, and I'm not sure how to solve that. 15:39 samth: Gertm: it's just sitting in a loop, polling the tcp port 15:39 Gertm: Hmm strange. So that won't be the thing causing the high load/ 15:39 Gertm: ? 15:40 samth: you probably need to use sync 15:40 samth: no, being in a tight loop is probably causing the load 15:40 samth: Gertm: i would take a look at the implementation of rudybot 15:40 Gertm: What do you mean by sync? 15:40 samth: rudybot: source 15:40 rudybot: samth: git clone git://github.com/offby1/rudybot.git 15:40 samth: rudybot: url 15:40 rudybot: samth: error: reference to an identifier before its definition: url in module: 'program 15:40 Gertm: ah cool! thanks 15:40 samth: rudybot: doc sync 15:40 rudybot: samth: http://docs.racket-lang.org/reference/sync.html#(def._((quote._~23~25kernel)._sync)) 15:40 samth: Gertm: that sync 15:40 rapacity: rudybot: (require racket/place) 15:41 Gertm: I'll just clone the repo 15:41 rudybot: rapacity: your sandbox is ready 15:41 rudybot: rapacity: Done. 15:41 rapacity: rudybot: (define-values (a b) (place-channel)) 15:41 rudybot: rapacity: Done. 15:41 rapacity: rudybot: (place-channel-put b (list 1 2 3 4)) 15:41 rudybot: rapacity: Done. 15:43 rapacity: I want to try something but I'm afraid I might crash rudybot if there's a bug :p 15:43 samth: rapacity: rudybot is pretty well protected 15:44 rapacity: rudybot: (for ([i (in-range 999999999)]) (place-channel-put b (list 1 2 3 4))) 15:44 (quit) rudybot: Remote host closed the connection 15:44 rapacity: sorry! 15:44 samth: whoops 15:44 samth: offby1: ping 15:45 (quit) jeapostrophe: Quit: jeapostrophe 15:55 (quit) anRch: Read error: Connection timed out 15:56 (join) anRch 16:01 (quit) dnolen: Ping timeout: 252 seconds 16:08 (quit) realitygrill: Quit: realitygrill 16:13 (join) bluezenix 16:15 (quit) anRch: Read error: Connection timed out 16:16 (join) anRch 16:21 (quit) dzhus: Remote host closed the connection 16:37 (quit) anRch: Quit: anRch 16:40 (quit) blake_johnson: Quit: blake_johnson 17:03 (join) blake_johnson 17:07 (join) rgrinberg 17:13 (join) tfb_ 17:13 (nick) tfb_ -> tfb 17:23 offby1: samth: pong, but I'm at work 17:24 (join) mithos28 17:28 (quit) blake_johnson: Quit: blake_johnson 17:28 samth: offby1: rudybot is down 17:31 (quit) bluezenix: Quit: Leaving. 17:46 offby1: ugh 17:47 offby1: samth: tx. I hope Mr/Ms rapacity is truly sorry for their sin 17:48 (join) rudybot 17:48 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/lAvi6Q 17:48 RacketCommitBot: [racket/master] fix argument-error report - Matthew Flatt 17:48 RacketCommitBot: [racket/master] doc clarifications - Matthew Flatt 17:48 RacketCommitBot: [racket/master] Revert "another attempt to fix the 64-bit Lion hidden-window problem" - Matthew Flatt 17:59 (quit) rudybot: Ping timeout: 252 seconds 18:02 (quit) tfb: Quit: sleeping 18:03 (join) jeapostrophe 18:04 (quit) tomku: Ping timeout: 245 seconds 18:31 (quit) jeapostrophe: Quit: jeapostrophe 18:58 (join) jeapostrophe 18:59 (quit) jeapostrophe: Client Quit 19:28 (quit) mithos28: Quit: mithos28 19:31 (join) mithos28 19:33 (quit) mithos28: Read error: Connection reset by peer 19:33 (join) mithos28_ 19:58 (join) jrslepak_ 20:01 (nick) samth -> samth_away 20:02 (quit) dmac1: Ping timeout: 248 seconds 20:02 (join) dmac1 20:03 (join) tomku 20:04 (quit) wishbone4: Remote host closed the connection 20:15 (join) acarrico 20:15 (quit) masm: Quit: Leaving. 20:26 (quit) mithos28_: Quit: mithos28_ 20:27 (join) jeapostrophe 20:37 (join) mithos28 20:45 (quit) jeapostrophe: Quit: jeapostrophe 20:47 eli: _p4bl0: Actually, I think that it makes sense for the default answer to that question to be "yes", which makes it similar to the behavior of the windows installer under similar conditions. 20:57 (join) bmp 21:02 (join) dnolen 21:03 (join) pricos 21:03 pricos: hey all 21:04 pricos: are there any so-called real world applications with a GUI written in racket? 21:05 jonrafkind: well drracket.. but maybe thats not real world enough 21:05 pricos: well.. appart from that 21:05 pricos: I'm more curious about what people is doing with it than what it can do 21:11 (join) jeapostrophe 21:13 (quit) jeapostrophe: Client Quit 21:15 (join) srolls 21:19 (join) rudybot 21:23 (quit) jonrafkind: Ping timeout: 240 seconds 21:26 (quit) mithos28: Quit: mithos28 21:35 (quit) bmp: Quit: Bye! 21:45 (quit) pricos: Ping timeout: 252 seconds 22:09 (join) francisl 22:14 francisl: Hi, I have beginner question 22:14 francisl: how do I loop in a file for each line? 22:14 francisl: (with-open-file (stream "~/expenses.sexp") 22:14 francisl: (loop for line = (read stream nil) 22:14 francisl: while line do ... ) 22:14 offby1: I don't think racket has a "loop" macro 22:15 francisl: here is what I want to do in lisp 22:15 francisl: I tried with call-with-input-file, but it seems that I have to know the size of the file 22:15 francisl: but does it have something similar? 22:15 francisl: at least for files 22:16 offby1: (for/and ([line (in-lines ip)]) (do-something-with line)) 22:16 offby1: hold on, I can make that a little more complete 22:16 offby1: (call-with-input-file "whatever.txt" (lambda (ip) (for/and ([line (in-lines ip)]) (do-something-with line)))) 22:16 offby1: that should do it 22:17 offby1: hmm, replace for/and with just plain "for". 22:17 offby1: There are a million variants of "for"; read up to see which is best 22:17 offby1: rudybot: doc for 22:17 rudybot: offby1: your sandbox is ready 22:17 rudybot: offby1: http://docs.racket-lang.org/reference/for.html#(form._((lib._racket%2Fprivate%2Fbase..rkt)._for)) 22:17 francisl: ok, thanks, ill try it right away 22:17 offby1 plays in his sandbox 22:17 offby1: eww, a cat's been here 22:23 francisl: offby1: thanks, it was exactly what I was looking for 22:24 (quit) dmac1: Ping timeout: 258 seconds 22:29 (join) jeapostrophe 22:31 (quit) jeapostrophe: Client Quit 22:44 (join) jeapostrophe 22:46 (quit) jeapostrophe: Client Quit 22:50 francisl: Im trying to make my app to read sexp from a file, the loop return a string for each list; "(keyone 234 keytwo)" 22:50 francisl: how do I convert that back to : '(keyone 234 keytwo) 22:50 francisl: ? 22:51 francisl: in sbcl with-open-file does that without problem 23:14 (join) jeapostrophe 23:27 eli: francisl: replace (in-lines inp) with (in-producer read eof inp) 23:28 (join) mithos28 23:32 (join) realitygrill 23:32 (quit) realitygrill: Client Quit 23:37 (join) jonrafkind 23:53 francisl: eli: thank you, it does exactly what I wanted 23:55 (join) tewk 23:55 (quit) tewk_: Read error: Connection reset by peer 23:55 (quit) petey: Read error: Connection reset by peer 23:55 (join) petey 23:55 francisl: If I understand correctly, does it means that open port works as sequence? 23:58 (join) petey` 23:58 (quit) petey: Read error: Connection reset by peer 23:58 (quit) tewk: Read error: Connection reset by peer