00:11 asumu: ozzloy: I was just going to suggest he ask on the mailing list. I'm sure someone would've wanted tests or bugfixes on something. 00:17 ozzloy: asumu, oic 00:34 (join) tyson1 00:35 (quit) tyson1: Client Quit 00:41 (quit) realitygrill: Quit: realitygrill 00:47 (quit) jrslepak: Quit: Leaving 00:53 (quit) grettke: 00:53 (quit) jao: Ping timeout: 240 seconds 01:05 jeapostrophe: I just made the most beautiful macro 01:05 ozzloy: pics or it didn't happen 01:06 jeapostrophe: It's a mix of scsh and eli-tester 01:06 jeapostrophe: You do (shelly-test e ...) 01:06 jeapostrophe: and e can be something like 01:06 jeapostrophe: $ "command" =exit> 1 01:06 jeapostrophe: or $ "command" =stdout> #rx"..." 01:08 ozzloy: i'm not familiar with scsh or eli-tester, but it looks like you made a shell that can have racket code mixed in 01:08 ozzloy: which sounds cool 01:09 jeapostrophe: it's for writing shell command test suites in racket 01:09 jonrafkind: whats the $ for 01:10 jeapostrophe: to indicate that you want to run a command 01:10 jeapostrophe: because expressions can be mixed in 01:10 jonrafkind: oh ok 01:10 jeapostrophe: so you can setup state or define functions, etc 01:10 ozzloy: it is late for me 01:10 ozzloy: so gnight 01:11 ozzloy: jeapostrophe, sounds neeto 01:11 jeapostrophe: (shelly-test $ "touch file" (printf "Yup\n") $ "rm file" $ "cat file" =exit> 1) 01:11 jeapostrophe: has 2 cmds that default to a =exit> 0 test 01:11 jeapostrophe: and a printf in between the 1st and 2nd 01:11 jeapostrophe: (obviously looks nicer with newlines) 01:12 jonrafkind: can you support | too? 01:13 jeapostrophe: i'll do that soon I think, but I don't need it yet 01:31 (quit) jeapostrophe: Ping timeout: 240 seconds 01:59 (quit) yoklov: Quit: computer sleeping 02:21 (quit) jonrafkind: Ping timeout: 240 seconds 03:20 (join) Blkt 03:39 (join) noelw 03:41 (quit) bfulgham: Ping timeout: 260 seconds 03:46 (join) Shvillr_ 03:47 (quit) Shviller: Disconnected by services 03:47 (nick) Shvillr_ -> Shviller 03:50 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/js-4KA 03:50 RacketCommitBot: [racket/master] New Racket version 5.2.1.3. - Eli Barzilay 04:15 (join) veer 04:21 aidy: What's the new racket/gui equivalent of http://docs.racket-lang.org/graphics/World_Operations.html#%28def._%28%28lib._graphics/graphics..rkt%29._set-on-tick-event%29%29 ? 04:21 rudybot: http://tinyurl.com/7zmk7wq 04:21 aidy: I need to start some kind of loop to update game state 04:22 (join) ahinki 04:22 noelw: Maybe a thread 04:22 noelw: oh, but you're using R5RS... 04:23 aidy: noelw: I'm redoing the module the TAs gave us 04:23 aidy: so I can use racket 04:24 noelw: Happy days. 04:28 (quit) ahinki: Read error: No route to host 04:53 (join) sindoc 05:06 (join) ahinki 05:35 (quit) karswell: Ping timeout: 240 seconds 05:42 (join) tim-brown 05:46 (join) gciolli 05:59 (quit) Shvillr: Read error: Connection reset by peer 06:03 (join) Shvillr 06:03 (quit) Blkt: Remote host closed the connection 06:08 (join) masm 06:10 (join) Blkt 06:25 (quit) ahinki: Read error: Connection reset by peer 06:25 (join) ahinki 06:37 (nick) chaozzbubi -> ChaozZBubi 06:46 (join) karswell 07:02 (quit) karswell: Ping timeout: 260 seconds 07:05 (join) karswell 07:31 (quit) karswell: Ping timeout: 248 seconds 07:42 (join) karswell 08:00 (join) jeapostrophe 08:01 (quit) karswell: Ping timeout: 260 seconds 08:14 (join) karswell 08:29 (join) yoklov 08:44 (join) dnolen 09:05 (quit) jeapostrophe: Ping timeout: 252 seconds 09:05 (quit) yoklov: Quit: computer sleeping 09:07 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/nErD9w 09:07 RacketCommitBot: [racket/master] skip `libtool --finish' if DESTDIR is set - Matthew Flatt 09:20 (join) yoklov 09:26 (join) mceier 09:36 (quit) yoklov: Quit: computer sleeping 09:59 (join) samth 10:04 (join) anRch 10:08 (quit) masm: Quit: Leaving. 10:19 (join) RackN00b 10:22 RackN00b: Hi there. Having some trouble defining mutable structs - can someone give me an example of the syntax involved? 10:23 samth: rudybot: (struct foo (x y z) #:mutable) 10:23 rudybot: samth: your sandbox is ready 10:23 rudybot: samth: Done. 10:23 samth: rudybot: set-foo-x! 10:23 rudybot: samth: eh? Try "rudybot: help". 10:23 samth: rudybot: eval set-foo-x! 10:23 rudybot: samth: ; Value: # 10:23 samth: RackN00b: that makes the whole struct mutable 10:23 samth: you can also do this: 10:24 samth: rudybot: (struct bar ([x #:mutable] y z)) 10:24 rudybot: samth: Done. 10:24 samth: rudybot: eval set-bar-x! 10:24 rudybot: samth: ; Value: # 10:24 samth: rudybot: eval set-bar-y! 10:24 rudybot: samth: error: reference to an identifier before its definition: set-bar-y! in module: 'program 10:24 RackN00b: Which sets only the value of x as mutable? 10:24 samth: that makes just x mutable 10:25 RackN00b: Cool. Any input on my approach: I'm writing a basic Simon game. I need to store the state of the system and individual games - would mutable struct be better/worse than other mutable variables? 10:25 samth: RackN00b: a mutable struct seems sensible 10:26 RackN00b: samth: Sweet. thanks. Man, these assignment we're getting as so vague in their descriptions! I have code that works perfectly under all test conditions I can think of but it still seems to fail the submission tests! Frustrating :P 10:29 (join) realitygrill 10:30 RackN00b: samth: I'm clearly doing something wrong here: 10:30 RackN00b: (struct state (state score) #:mutable) 10:30 RackN00b: (define global-state (state 'played 0)) 10:30 RackN00b: global-state gives me as value # 10:31 samth: that's right 10:31 RackN00b: what's # 10:31 samth: that's how opaque structures are printed 10:31 samth: that's the name of the structure 10:31 samth: if you want it to print the elements, try this: 10:31 RackN00b: So I'd have to set it to transparent if I wanted to see the values? 10:31 samth: (struct state (state score) #:mutable #:transparent) 10:32 RackN00b: Benefits/drawbacks of transparent vs opaque? It doesn't protect what's stored in the structure, does it? 10:37 (quit) realitygrill: Read error: Connection reset by peer 10:37 samth: it means that other clients can reflectively access your structure instances 10:37 (part) RackN00b 10:37 samth: but for small programs, it isn't important, probably 10:38 (join) realitygrill 10:42 (join) jeapostrophe 10:46 (quit) dnolen: Ping timeout: 276 seconds 10:51 (quit) ahinki: Quit: ChatZilla 0.9.88 [Firefox 10.0/20120104111456] 11:00 samth: mattmight: i think your sql article is missing `tee` 11:18 (quit) anRch: Quit: anRch 11:21 (nick) jschuster_away -> jschuster 11:23 (join) bfulgham 11:34 (part) sindoc 11:34 (join) sindoc 11:39 (quit) veer: Remote host closed the connection 11:39 (quit) tim-brown: Quit: Leaving 11:40 (join) etp 11:41 etp: who know mineweeshper or minefield codes in dr racket? 11:41 (join) dnolen 11:45 asumu: etp: are you the same as mmk1 from yesterday? 11:45 asumu: You should give up trying to get the code and just write it on your own. 11:48 etp: no asumu 11:49 asumu: etp: Either way, you should not rely on someone else's code for your HW. 11:52 (quit) etp: Ping timeout: 258 seconds 11:52 (quit) realitygrill: Quit: realitygrill 12:12 (quit) gciolli: Quit: Leaving. 12:21 (join) jonrafkind 12:26 (join) rsimoes 12:36 (quit) Blkt: Quit: ERC Version 5.3 (IRC client for Emacs) 12:55 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/p8_RuA 12:55 RacketCommitBot: [racket/master] MysterX repairs - Matthew Flatt 13:01 (join) yoklov 13:25 (quit) stchang: Read error: Operation timed out 13:25 (join) realitygrill 13:25 (quit) gabot: Ping timeout: 276 seconds 13:26 (topic) -: Racket -- http://racket-lang.org -- logs @ http://racket-lang.org/irc-logs 13:26 (names) -: gabot realitygrill yoklov rsimoes jonrafkind dnolen sindoc bfulgham jeapostrophe samth mceier karswell Shvillr Shviller noelw Oxryly jschuster sethalves freakazoid SeanTAllen Mathieu gf3 dsantiago kanak stamourv danking kmc ernst cataska AlbireoX kandinski mario-goulart aidy hyko ozzloy m4burns jrslepak_ shachaf Kartagisz dspt jamessan eli ChaozZBubi PfhatWork acarrico elliottcable zerokarmaleft shadgregory SHODAN bremner cipher abbe snorble tauntaun 13:26 (names) -: @ChanServ tonyg cky rudybot offby1_ petey asumu em eMBee _p4bl0 GeneralMaximus mattmight chandler rapacity offby1 13:31 (join) stchang 13:42 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/685fUw 13:42 RacketCommitBot: [racket/master] Added standing and running stickman icons - Neil Toronto 13:42 RacketCommitBot: [racket/master] Use running stickman in lower-right "run" indicator - Neil Toronto 13:42 RacketCommitBot: [racket/master] Text icon fix - works better when trimmed - Neil Toronto 13:52 (join) platinuum 14:00 (quit) noelw: Quit: noelw 14:01 (join) noelw 14:23 (join) carleastlund 14:26 stamourv: samth: ping 14:27 samth: stamourv: pong 14:27 (join) amk_ 14:27 amk_: hi everbody 14:27 samth: hi 14:27 stamourv: samth: Can you remind me of when do we get `tc-results' structs with more than one `tc-result'? 14:27 samth: stamourv: when multiple values are returned 14:27 amk_: hi samth can you7 help me ? 14:28 samth: amk_: sure, just ask your question 14:29 amk_: ı writting a minefield code but ı do not number 14:29 amk_: minefield game 14:29 stamourv: samth: Makes sense. 14:29 stamourv: Thanks. 14:30 samth: amk_: you'll have to explain more 14:30 jonrafkind: samth, ignore him 14:30 jonrafkind: hes asking people to do his homework 14:30 samth: jonrafkind: i assume it's the same person every time 14:30 samth: either that, or everyone from the same class is appearing here 14:30 amk_: ı send a file you say ı mıstake 14:31 samth: amk_: i do not understand 14:32 amk_: ıWill you look at my code send Haramain 14:32 jonrafkind: samth, your implementation of 'ignore' is different from mine 14:34 amk_: I have written code but in some places was not the minefield Would you look 14:37 samth: amk_: no one is going to do your homework for you 14:39 (quit) amk_: Ping timeout: 258 seconds 14:41 jonrafkind: add a permaban for his ip 14:42 stamourv: jonrafkind: That's freenode's web interface. 14:42 jonrafkind: he still has an ip 14:42 jonrafkind: you can ban freenode's web interface, ive done it 14:43 stamourv: Sure, but do we want to ban everyone from there? 14:43 jonrafkind: you can ban by *ip* 14:44 jonrafkind: oh you mean maybe multiple people use that ip? i dunno, who cares 14:44 stamourv: Oh, I thought you'd just see the web server's IP. 14:45 samth: jonrafkind: we got multiple people with different ips asking about that 14:57 (join) jao 15:02 (quit) noelw: Quit: noelw 15:03 (quit) jao: Remote host closed the connection 15:04 (join) RackN00b_ 15:08 RackN00b_: How would I go about writing a function that consumes an integer and produces a length of that integer with random numbers ? 15:09 RackN00b_: (build-list n (lambda (x) (random x)) ? 15:09 jonrafkind: (for/list ([i some-number]) (random)) 15:10 RackN00b_: Got it 15:11 (join) DanBurton 15:20 (join) masm 15:23 RackN00b_: http://pastebin.com/MqrkrfMB --> Something's not quite right... I'm setting the variable rnd to equal (random n) but that means its value is non-changing during the generation of the list, is it? 15:24 jonrafkind: rnd is a function 15:24 jonrafkind: i mean rdm 15:24 RackN00b_: Oh right... 15:24 RackN00b_: So how come my lists tend to be very heavy with 'green ? 15:25 jonrafkind: what is n 15:25 RackN00b_: n is an integer that determines the length of the list of random colors 15:25 jonrafkind: what is the value of n 15:25 RackN00b_: ARGH 15:25 RackN00b_: nevermind... I'm an idiot. 15:25 RackN00b_: Should be (random 4) not (random n) 15:26 RackN00b_: Wowza. Alrighty - thanks - gotta fly. 15:27 (part) RackN00b_ 15:29 (quit) DanBurton: Quit: Leaving 15:43 (quit) realitygrill: Quit: realitygrill 16:08 (join) gciolli 16:13 (join) MayDaniel 16:14 (join) realitygrill 16:19 (quit) MayDaniel: Read error: Connection reset by peer 16:20 (join) anRch 16:41 (part) sindoc 16:49 (join) DanBurton 16:57 eli: jeapostrophe: Did you see my linux installer tests? 16:58 eli: bremner: This is an issue that is particular to my directory setup -- I have hw/src/hw?? as a symlink to the actual directory, and hw/hw?? containing symlinks to files in hw/src/hw??. The bottom line is that it allows me to quickly switch between two alternative homeworks by flipping the symlink and still have everything work. 16:59 eli: bremner: Also, I saw the double #lang thing you mentioned, I hope to get back to it soon. 17:22 jeapostrophe: eli: i did not, where should I look? 17:26 (quit) gciolli: Quit: Leaving. 17:27 eli: jeapostrophe: ~plt/collects/meta/build/unix-installer/test-installer 17:27 eli: Uh, drop the "~plt" 17:27 eli: It "compiles" to an expect script, which means that it can deal with passwords, timeouts, C-c, etc. 17:32 jeapostrophe: that's awesome 17:33 jeapostrophe: go you 17:33 jeapostrophe: mine is more for running a bunch of different commands and checking their output/behavior than testing one 17:33 jeapostrophe: but that is aweeesome 17:37 eli: jeapostrophe: Yeah, things can get very tricky if you want to test stuff like aborting a process, or a process that expects input interactively rather than wait for complete lines, etc. 17:42 jeapostrophe: ya, i don't think this will need that, but you have given me a good idea of what to do 17:47 aidy: Are there any examples of simple games with a loop and event queue? 17:48 (quit) anRch: Quit: anRch 17:52 (quit) realitygrill: Quit: realitygrill 17:53 samth: aidy: what do you mean by an "event queue" 17:53 samth: do you just want event-driven games? 17:54 aidy: keyboard and mouse input really 17:54 samth: right 17:54 samth: but is it important that someone programs in a style that reifies the queue? 17:54 samth: or do you just want something that handles events 17:55 aidy: just need to pass on the events to the loop 17:56 samth: if so, check out the games here: http://world.cs.brown.edu/ 17:56 samth: and here: http://www.ccs.neu.edu/home/matthias/HtDP2e/htdp2e-part2.html 17:59 (quit) stchang: Read error: Operation timed out 18:00 aidy: samth: I know how to do it using the legacy gui library, but the new one doesn't have on-tick as far as I can tell 18:00 (quit) danking: Read error: Operation timed out 18:00 (join) danking 18:00 (join) stchang 18:00 (join) stamourv` 18:01 (quit) stamourv: Ping timeout: 244 seconds 18:07 (join) jao 18:11 (quit) dnolen: Quit: Page closed 18:14 (quit) karswell: Excess Flood 18:15 (join) karswell 18:19 samth: aidy: it still has on-tick 18:22 samth: aidy: https://gist.github.com/1603770 18:24 (quit) stchang: Read error: Operation timed out 18:24 (quit) danking: Read error: Operation timed out 18:24 (join) realitygrill 18:24 (quit) gabot: Ping timeout: 252 seconds 18:25 (topic) -: Racket -- http://racket-lang.org -- logs @ http://racket-lang.org/irc-logs 18:25 (names) -: gabot realitygrill karswell jao stamourv` DanBurton masm carleastlund platinuum yoklov rsimoes jonrafkind bfulgham jeapostrophe mceier Shvillr Shviller Oxryly jschuster sethalves freakazoid SeanTAllen Mathieu gf3 dsantiago kanak kmc ernst cataska AlbireoX kandinski mario-goulart aidy hyko ozzloy m4burns jrslepak_ shachaf Kartagisz dspt jamessan eli ChaozZBubi PfhatWork acarrico elliottcable zerokarmaleft shadgregory SHODAN bremner cipher offby1 rapacity 18:25 (names) -: chandler mattmight GeneralMaximus _p4bl0 eMBee em asumu petey offby1_ rudybot cky tonyg @ChanServ tauntaun snorble abbe 18:25 (join) samth 18:26 (join) danking 18:27 (join) stchang 18:27 (quit) karswell: Read error: Operation timed out 18:28 (join) karswell 18:29 bremner: eli: thanks for the update. 18:31 (nick) jschuster -> jschuster_away 18:34 (quit) jonrafkind: Quit: Ex-Chat 18:34 (join) jonrafkind 18:35 (join) jrslepak 18:40 RacketCommitBot: [racket] plt pushed 5 new commits to release: http://git.io/yxhEuA 18:40 RacketCommitBot: [racket/release] skip `libtool --finish' if DESTDIR is set - Matthew Flatt 18:40 RacketCommitBot: [racket/release] MysterX repairs - Matthew Flatt 18:40 RacketCommitBot: [racket/release] Added standing and running stickman icons - Neil Toronto 18:50 (join) Demosthenes 18:57 (join) gciolli 19:00 (join) dnolen 19:09 (quit) AlbireoX: Read error: Connection reset by peer 19:13 (quit) jeapostrophe: Ping timeout: 240 seconds 19:13 (quit) Demosthenes: Quit: leaving 19:15 (quit) DanBurton: Quit: Leaving 19:16 (quit) gciolli: Quit: Leaving. 19:30 (quit) dnolen: Ping timeout: 252 seconds 19:56 (join) chandler_ 19:57 (join) GnrlMxms 19:57 (join) PfhorSlayer 19:58 (join) rapacity_ 19:58 (join) Shozan 20:03 (quit) PfhatWork: *.net *.split 20:03 (quit) SHODAN: *.net *.split 20:03 (quit) GeneralMaximus: *.net *.split 20:03 (quit) rapacity: *.net *.split 20:03 (quit) chandler: *.net *.split 20:03 (nick) GnrlMxms -> GeneralMaximus 20:18 Oxryly: eli: the Racket FFI is awesome! 20:21 samth: Oxryly: indeed :) 20:21 (nick) samth -> samth_away 20:21 (quit) jonrafkind: Read error: Operation timed out 20:22 (quit) mceier: Quit: leaving 20:45 (join) sindoc 20:51 (join) Ryan__ 20:51 (quit) Ryan__: Client Quit 20:52 (join) String 20:52 String: Does anyone know how to play an audio file in racket? 21:00 m4burns: Oxryly: eli: I recently played around with the FFI. It is indeed awesome! Thanks :) 21:02 (join) AlbireoX 21:05 (quit) masm: Quit: Leaving. 21:08 (join) masm 21:08 (quit) String: Ping timeout: 258 seconds 21:20 eli: m4burns: BTW, re your drr complaint from a few days ago -- you should bring it to the list, or send a bug report. 21:24 m4burns: eli: will do 21:41 (join) jeapostrophe 21:48 (quit) karswell: Read error: Operation timed out 21:48 (join) RackN00b 21:49 (join) karswell 21:50 RackN00b: Any chance someone could tell me why this is producing a list, some members of which are # ? 21:50 RackN00b: http://pastebin.com/iHuf6HvG 21:52 RackN00b: (random 4) should only produce values of 0, 1, 2, or 3... right? 21:54 (part) RackN00b 22:32 Oxryly: dc- 22:32 (quit) masm: Quit: Leaving. 22:40 bremner: rudybot: init racket 22:40 rudybot: bremner: your sandbox is ready 22:40 bremner: rudybot: (random 4) 22:40 rudybot: bremner: ; Value: 0 22:40 bremner: rudybot: (random 4) 22:40 rudybot: bremner: ; Value: 0 22:40 bremner: rudybot: (random 4) 22:40 rudybot: bremner: ; Value: 2 22:40 bremner: rudybot: (random 4) 22:40 rudybot: bremner: ; Value: 0 22:40 bremner: rudybot: (random 4) 22:40 rudybot: bremner: ; Value: 0 22:40 bremner: seems to be mostly zero :( 22:41 Oxryly: is there a way to get a list of things provided by a module 22:41 Oxryly: ? 22:52 (quit) yoklov: Read error: Connection reset by peer 22:54 offby1: Oxryly: probably. I suspect you can find it by searching for the word "namespace" in the docs. 22:54 offby1: rudybot: (random 5) 22:54 rudybot: *offby1: your sandbox is ready 22:54 rudybot: *offby1: ; Value: 2 22:54 offby1: rudybot: (random45) 22:54 rudybot: *offby1: error: reference to an identifier before its definition: random45 in module: 'program 22:54 offby1: rudybot: (random 4) 22:54 rudybot: *offby1: ; Value: 2 22:55 rudybot: bremner: _you_ get zeroes. 23:25 (quit) sindoc: Quit: Leaving. 23:44 (quit) jeapostrophe: Ping timeout: 240 seconds 23:46 (quit) jao: Ping timeout: 240 seconds 23:47 (join) dnolen 23:54 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/iou--Q 23:54 RacketCommitBot: [racket/master] Removed accidental dependence of images/icons/stickman on racket/gui - Neil Toronto