00:13 (quit) dnolen: Quit: dnolen 00:27 (join) jonrafkind 00:32 (join) jeapostrophe 00:42 (quit) jeapostrophe: Quit: jeapostrophe 01:10 (join) bfulgham_ 01:12 (quit) bfulgham: *.net *.split 01:12 (nick) bfulgham_ -> bfulgham 01:34 (quit) neilv: Quit: Leaving 01:49 (join) MaXim_ 01:50 MaXim_: hi all, quick question 01:50 mithos28: MaXim: ask away 01:51 MaXim_: i've got two lists, '(1 2 3 4) and '(4 5 6 7) 01:51 MaXim_: i would like to replace the contents of the first lists with the 2nd 01:51 MaXim_: so i wrote something like this 01:52 MaXim_: (map (lambda (x) (list-ref (list 1 2 3 4) (x))) (list 4 5 6 7)) 01:52 MaXim_: doesnt seem to work :( 01:52 mithos28: what should the output be? 01:52 MaXim_: (4 5 6 7) 01:52 MaXim_: but i just get some error 01:53 MaXim_: procedure application: expected procedure, given: 1 (no arguments) 01:53 mithos28: That is because you have (x). 01:54 MaXim_: what should it be 01:54 mithos28: Which means apply the value x to zero arguments. 01:54 MaXim_: ah right 01:54 MaXim_: i was using just x before 01:54 MaXim_: but that wasnt working either 01:54 MaXim_: mcar: expects argument of type ; given () 01:54 mithos28: In racket you cannot have extraneous parentheses as in other languages 01:55 MaXim_: yea im new to this 01:55 mithos28: What language are you working in? #lang ????. I ask because I see the mcar. 01:55 MaXim_: ah right, sorry 01:56 MaXim_: R5RS 01:56 MaXim_: (map (lambda (x) (list-ref (list 1 2 3 4) x)) (list 4 5 6 7)) gives the mcar error 01:56 MaXim_: mcar is equivalent to map in r5rs? 01:57 mithos28: no. 01:57 MaXim_: gotcha 01:58 mithos28: Going back to the drawing board, why do you want to replace the first list with the values of the second list instead of using the second list? 01:59 MaXim_: it's part of something bigger 01:59 MaXim_: where both of those lists will be some argument 02:00 mithos28: and why cannot you use the second list twice? 02:00 MaXim_: the original point is for me to divide a list that represents a square array 02:00 MaXim_: into its rows 02:01 MaXim_: so for example, (1 2 3 4 5 6 7 8 9) -> ((1 2 3) (4 5 6) (7 8 9)) 02:01 MaXim_: so what i first did was generate a list of indices, ((0 1 2) (3 4 5) (6 7 8)) 02:02 MaXim_: then i intended to map the original list to it 02:02 mithos28: ah ok now I see 02:02 MaXim_: yeh 02:02 MaXim_: im not even sure if that's the right way about it 02:03 MaXim_: but i think it makes enough sense as a plan 02:03 mithos28: So if instead your inputs were (list 2 3 1 4) and (list 4 5 6 7) what would the output be? 02:04 MaXim_: i don't think that would work 02:04 MaXim_: er wait nvm 02:04 MaXim_: yea it wouldnt 02:04 MaXim_: the 1st list would need to contain only 0-3 since the 2nd list is only 4 long 02:05 mithos28: ok say the first list was (list 1 2 0 3) 02:05 MaXim_: yea 02:05 MaXim_: so then the result would be (5 6 4 7) 02:05 mithos28: ok. Good I think I know what the function you are trying to write is. 02:06 MaXim_: was i on the right track? 02:06 mithos28: so you are close with: (map (lambda (x) (list-ref (list 1 2 3 4) x)) (list 4 5 6 7)) 02:06 MaXim_: cool 02:06 MaXim_: but what is a mutable pair :P 02:07 ohwow: a mutable pair is (cons a b) when you can modify a and b using set-car! and set-cdr! 02:07 MaXim_: ah 02:07 mithos28: unless you have a good reason to use r5rs, I would use #lang racket. And if you are just learning racket #lang htdp/isl might work aswell 02:07 ohwow: rudybot: eval (define x (cons 1 2)) 02:07 rudybot: ohwow: your sandbox is ready 02:07 rudybot: ohwow: Done. 02:07 MaXim_: nah i have to use r5rs 02:07 MaXim_: this is homework :P 02:08 ohwow: rudybot: eval (define x (mcons 1 2)) 02:08 rudybot: ohwow: Done. 02:08 ohwow: rudybot: eval x 02:08 MaXim_: hmm 02:08 rudybot: ohwow: ; Value: {1 . 2} 02:08 MaXim_: i think i know what that means then 02:08 MaXim_: list-ref only returns one value 02:08 ohwow: rudybot: eval (set-cdr! x x) 02:08 rudybot: ohwow: error: reference to an identifier before its definition: set-cdr! in module: 'program 02:08 MaXim_: but map wants a cons? 02:08 ohwow: mm 02:08 mithos28: no it should work with mcons. 02:08 MaXim_: ok 02:10 mithos28: In your example which list is the indices that you want to extract and what list are you trying to extract from 02:17 (join) hkBst 02:22 (quit) realitygrill: Ping timeout: 245 seconds 02:25 (quit) cb`: Ping timeout: 252 seconds 02:28 MaXim_: woops, dropped off the network without realising 02:28 MaXim_: turns out the code i wrote was correct, but i was using the wrong indices 02:29 MaXim_: so it was giving me the mcons error lol 02:29 MaXim_: > (map (lambda (x) (list-ref (list 4 3 2 1) x)) (list 0 1 2 3)) 02:30 MaXim_: (4 3 2 1) 02:30 MaXim_: thanks for the help guys 02:58 (quit) darkf: Quit: Leaving 03:05 (join) bluezenix 03:21 (quit) jonrafkind: Read error: Operation timed out 03:33 MaXim_: is there some form of assertion i can use in R5RS? 04:05 (join) noelw 04:05 (nick) noelw -> noelw_away 04:05 (nick) noelw_away -> noel_w 04:22 (join) mceier 04:46 (join) siege 04:47 (quit) siege: Client Quit 04:49 (quit) serban: Ping timeout: 264 seconds 05:08 (quit) noel_w: Quit: noel_w 05:13 (join) tfb 05:19 (quit) tfb: Quit: gone 05:19 (join) tfb 05:49 (join) noel_w 06:17 (quit) bluezenix: Quit: Leaving. 07:20 (join) jeapostrophe 07:27 noel_w: It's been too long since I wrote some Racket code 07:27 noel_w: I really should organise and release my numeric code 07:30 noel_w: The vector library is odd, in that it works with values and not indices 07:30 noel_w: This is contrary, I postulate, to how most people use vectors 07:31 noel_w: (Don't worry. This comment isn't supposed to be comprehensible.) 07:40 MaXim_: hopefully trivial question here 07:41 MaXim_: how would i go about adding up the contents of each sublist like so: '((1 2 3) (4 5 6) (7 8 9)) 07:41 MaXim_: but the number of sublists is arbitary 07:41 MaXim_: so i wouldn't know how many foldrs i need 07:44 (join) espadrine 07:49 (join) RacketCommitBot 07:49 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Yd5UJA 07:49 RacketCommitBot: [racket/master] fix non-places build - Matthew Flatt 07:49 (part) RacketCommitBot 07:49 noel_w: MaXim_ (lambda (lst) (apply + lst)) will sum a list 07:49 noel_w: Just use that recursively to sum up whatever you need 07:50 noel_w: map or fold as necessary 07:50 MaXim_: hm ok thanks, i'll try that 07:51 (join) haruki_zaemon 07:51 haruki_zaemon: Howdy 07:52 MaXim_: hello 07:52 haruki_zaemon: I'm looking for a scheme to put into production 07:52 haruki_zaemon: I started looking into JVM based but they all seem less than ideal 07:52 noel_w: Hi. 07:52 noel_w: We use Racket in production 07:52 haruki_zaemon: now I'm looking into racket, chicken… right 07:53 haruki_zaemon: that's what I was hoping to hear 07:53 haruki_zaemon: fantastic 07:53 noel_w: (For the JVM I'd use a language designed for it -- Clojure or Scala are my favs) 07:53 haruki_zaemon: noel_w yeah I've done a bit of Clojure but TBH I'm not a huge fan 07:54 haruki_zaemon: I've used and loved Scheme for longer than I'd care to remember 07:54 haruki_zaemon: but looking to put something actually into production for the first time 07:55 dsp_: what sort of software? 07:57 haruki_zaemon: dsp_ purely server-side stuff for mobile clients 08:02 haruki_zaemon: dsp_ Was that too vague? 08:02 dsp_: nah, sorry, was getting a cup of tea :p 08:02 dsp_: that's precisely what i'm using racket for, too 08:02 haruki_zaemon: hehe ok 08:02 haruki_zaemon: ahh cool! 08:02 haruki_zaemon: Where/how are you hosting it? 08:04 dsp_: AWS, for now. limited field trial 08:05 haruki_zaemon: ok… I saw someone get Haskell (my other favourite) up and running on Heroku which I thought was interesting 08:13 (join) cb` 08:21 (quit) cb`: Ping timeout: 268 seconds 08:25 (join) cb` 08:30 (join) RacketCommitBot 08:30 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/blR75g 08:30 RacketCommitBot: [racket/master] correcting an offset error: if the string str is exactly n characters long, the use of string-ref in the last case will die. - Danny Yoo 08:30 (part) RacketCommitBot 08:45 (join) Burlingk 08:49 (quit) jeapostrophe: Quit: jeapostrophe 09:03 (join) dnolen 09:06 (quit) wtetzner: Quit: Leaving 09:12 dnolen: if I want to use Racket for some r6rs hacking, how can I require SRFIs ? 09:14 noel_w: does the standard r6rs library import work (i've never used r6rs, but racket supports it) 09:16 dnolen: but how to import an srfi? 09:18 dnolen: ok (import … (srfi :n)) seems to work 09:30 MaXim_: how would i go about determining if all the elements inside a list are identical? 09:30 MaXim_: ive got a foreach and inside that a lambda that has an equal? test 09:31 MaXim_: but not too sure how to return a #t or #f to the outside 09:34 noel_w: andmap 09:38 (join) samth 09:42 MaXim_: hmm 09:42 MaXim_: what is the difference between andmap and map? 09:42 MaXim_: for my purposes that is 09:43 noel_w: and map is true if the predicate applies to every element of the list 09:43 noel_w: take the first member of the list 09:43 MaXim_: ahh 09:43 MaXim_: cheers bro 09:43 noel_w: np 09:43 MaXim_: phew 09:44 MaXim_: hopefully i can get the hang of this 09:44 MaXim_: never really concerned my self with functional programming before 09:45 noel_w: It certainly takes a while to get to grips with 09:45 noel_w: Like everyone, once you understand it, it seems easy 09:45 noel_w: s/everyone/everything 09:49 (join) jeapostrophe 09:49 MaXim_: yea 09:49 (quit) samth: Ping timeout: 245 seconds 09:49 (quit) jeapostrophe: Client Quit 09:50 MaXim_: I had absolutely no idea what i was doing 24 hours ago :P 09:50 MaXim_: now I'm only a tad handicapped 09:51 noel_w: You're doing well then! 10:06 haruki_zaemon: When I run racket against any of my code I get: "#lang not enabled in the current context" 10:06 haruki_zaemon: any clues? 10:07 ohwow: do you just type "#lang something" in the REPL? 10:08 noel_w: How are you running your code? 10:08 noel_w: What does the code contain? 10:08 noel_w: In particular, does the file start with #lang racket/base or equivalent? 10:10 haruki_zaemon: AHH it seems if I use racket -f … it works. Simply piping from STDIN operates as if in REPL mode 10:11 haruki_zaemon: sorry for the newbie questions.. just started with Racket today 10:11 haruki_zaemon: have used MIT Scheme for years for algorithmic stuff but actually want to put something into the real world now 10:15 ohwow: Yeah #lang racket basically expands to (module racket ...) 10:15 (nick) samth_away -> samth 10:15 MaXim_: like #lang racket/typed ? 10:16 MaXim_: oh 10:16 MaXim_: typed/racket 10:16 noel_w: Yeah. #lang blah is the preferred form 10:16 noel_w: (module name blah …) is legacy 10:16 noel_w: (Kinda.) 10:17 noel_w: module has a few uses if you're expanding code 10:17 haruki_zaemon: right so the module form works in the REPL 10:17 haruki_zaemon: but #lang doesn't 10:17 noel_w: Yeah… but you don't want to develop that way 10:17 noel_w: You can enter a module 10:17 (join) realitygrill 10:17 noel_w: (enter! "my-file.rkt") 10:17 noel_w: Then all of the modules' bindings will be visible to you 10:18 haruki_zaemon: really all I was trying to do was define a module :) 10:18 MaXim_: lol 10:18 haruki_zaemon: I guess I don't understand it 10:18 MaXim_: ah 10:18 haruki_zaemon: heh 10:18 samth: haruki_zaemon: #lang "works" at the repl, but it waits until it reaches EOF to end the module 10:18 samth: so Ctrl-D will end the module 10:18 haruki_zaemon: but I'm reading the doc so I'll get it soon enough 10:18 haruki_zaemon: samth right 10:18 noel_w: Ok. My workflow is this: 10:19 noel_w: write code in files 10:19 noel_w: files start with #lang whatever 10:19 haruki_zaemon: is there a way to enable readline support in the REPL? 10:19 noel_w: Yeah. 10:19 samth: haruki_zaemon: (require readline) 10:19 haruki_zaemon: ahh LOL 10:19 samth: put that in your ~/.racketrc 10:19 haruki_zaemon: sweet! 10:19 haruki_zaemon: done! 10:19 noel_w: To mess around with modules, load the repl (i.e. run racket) 10:19 noel_w: (enter! "filename.rkt") to mess around w/ module 10:19 (quit) dnolen: Quit: dnolen 10:20 noel_w: Preferably just write tests. 10:20 noel_w: Tests are permanent 10:20 MaXim_: was trying to install MIT scheme from ports 10:20 samth: (oh, and listen to noel_w -- he's a veteran Racket hacker) 10:20 MaXim_: but it complains about being i386 only 10:20 haruki_zaemon: hehe 10:20 haruki_zaemon: MaXim_ ports on what OS? 10:20 MaXim_: FreeBSD 10:20 haruki_zaemon: Ahh 10:20 haruki_zaemon: I haven't run a linux distro in anger for years now 10:21 (quit) samth: Quit: Ex-Chat 10:21 MaXim_: debian is the only one I use regularly 10:21 haruki_zaemon: noel_w so files define modules? 10:21 haruki_zaemon: anyway I'll keep reading 10:21 noel_w: If a file begins with #lang it defines a module with the name of the file 10:22 noel_w: So one module per module 10:22 noel_w: If you want to break this rule you can use (module ...) 10:22 noel_w: Some perverse people feel the need to do this 10:22 haruki_zaemon: right, I'm happy to stick with convention 10:23 haruki_zaemon: I presume everyone just uses emacs? ;-) 10:23 dsp_: i use vim, but have recently discovered SLIME 10:23 noel_w: Emacs or DrRacket, I think 10:23 dsp_: which seems quite useful 10:24 MaXim_: slime yea that's a good one 10:24 MaXim_: vim has the unfortunate effect of making you type vi commands where inappropriate 10:31 haruki_zaemon: ok so now I'm thoroughly confused. Why do I need to specify #lang? 10:31 haruki_zaemon: what happens if I don't? 10:32 noel_w: haruki, do you use git 10:32 noel_w: ? 10:33 haruki_zaemon: sure do 10:33 noel_w: Try git clone git@github.com:noelwelsh/making-a-racket.git 10:33 noel_w: and then build the docs… (hang on while I get the command) 10:33 haruki_zaemon clones and builds ... 10:34 noel_w: just do scribble making-a-racket.scrbl 10:34 noel_w: It's very incomplete 10:34 haruki_zaemon: ahh just found the place in the doc that says "shorthand does not work well in a REPL, in part because it must be terminated by an end-of-file" 10:34 noel_w: but I think it might help you 10:34 haruki_zaemon: noel_w thanks 10:35 haruki_zaemon: ahh nice, thanks! 10:39 (quit) realitygrill: Quit: realitygrill 10:39 (quit) hkBst: Remote host closed the connection 10:42 haruki_zaemon: ok so I now understand #lang 10:42 haruki_zaemon: so racket vs racket/base? 10:46 (join) jeapostrophe 10:46 haruki_zaemon: ahh ok… I now understand, I think 10:46 haruki_zaemon: racket includes the whole kit and kaboodle 10:47 haruki_zaemon: racket/base just the bare minimum 10:47 haruki_zaemon: you'd then need to manually require eg racket/file 10:48 haruki_zaemon: ok time for zzzzz it's 00:48 here 10:48 haruki_zaemon: thanks for your help 10:52 MaXim_: 00:48 eh 10:52 MaXim_: you must be in the eastern states 10:52 MaXim_: nn 10:58 (join) samth 11:01 (join) samth_ 11:02 (join) sstrickl 11:02 (quit) samth: Disconnected by services 11:02 (nick) samth_ -> samth 11:06 (quit) sstrickl: Client Quit 11:10 (quit) Burlingk: Quit: Leaving 11:12 (join) masm 11:19 samth: jeapostrophe: ping 11:19 jeapostrophe: pong 11:19 samth: did you get a chance to look at the charting thing i sent you? 11:20 jeapostrophe: I haven't read my email closely since friday, but I glanced at it and thought it was cool 11:20 jeapostrophe: What do I need to do to switch to using it? 11:20 samth: ok 11:20 samth: you need to make the timing data available as JSON 11:20 samth: preferably all as one array 11:21 jeapostrophe: And then just include some JS? 11:21 samth: yeah, do that, and then i'll write a patch for the drdr source 11:22 jeapostrophe: JSON at a url? 11:22 samth: yeah, probably foo_bar.timing.json would be great 11:22 jeapostrophe: And it doesn't matter what the type for the JSON is? 11:23 samth: also, if you enable cross-origin xmlhttprequest to drdr.racket-lang.org, that would make testing easier 11:23 jeapostrophe: I don't know what that means 11:23 samth: i'll see what you'd have to do 11:23 samth: text/plain is fine for the type 11:24 jeapostrophe: I mean the type of the JSON object 11:24 jeapostrophe: Clearly a single string would be silly 11:24 samth: just arrays where you have lists now 11:24 (join) dnolen 11:24 jeapostrophe: And thats' it 11:24 jeapostrophe: okay 11:24 samth: so really just [] instead of () 11:25 samth: and one pair of [] around the whole thing 11:28 samth: jeapostrophe: to enable cross-site XHR, just add the header 'Access-Control-Allow-Origin: *' to the responses for the relevant pages 11:30 (join) RacketCommitBot 11:30 RacketCommitBot: [racket] plt pushed 5 new commits to master: http://git.io/Glq1Fg 11:30 RacketCommitBot: [racket/master] Micro-optimization. - Sam Tobin-Hochstadt 11:30 RacketCommitBot: [racket/master] Add logging to typechecker main loop. - Sam Tobin-Hochstadt 11:30 RacketCommitBot: [racket/master] Switch to id-table, Rackety. - Sam Tobin-Hochstadt 11:30 (part) RacketCommitBot 11:41 (join) anRch 11:45 (join) jonrafkind 11:56 noel_w: ntoronto's plot package is nice 12:04 noel_w: for/vector: doesn't take a #:length argument? 12:04 noel_w: That's a bit annoying 12:06 noel_w: TR error messages are much improved, however 12:06 (join) RacketCommitBot 12:06 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/2XbTIA 12:06 RacketCommitBot: [racket/master] Removing garbled text - Jay McCarthy 12:06 RacketCommitBot: [racket/master] Fixing allowance of multiple headers - Jay McCarthy 12:06 (part) RacketCommitBot 12:09 samth: noel_w: good to hear 12:10 samth: stamourv: `for/vector:' needs a length argument 12:12 (join) RacketCommitBot 12:12 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Y7gNCA 12:12 RacketCommitBot: [racket/master] catch up on the release notes - Robby Findler 12:12 (part) RacketCommitBot 12:12 (join) blake_johnson 12:15 (join) anRch_ 12:17 (quit) anRch: Ping timeout: 252 seconds 12:17 (nick) anRch_ -> anRch 12:18 (join) MayDaniel 12:20 (nick) noel_w -> noel-up-up-and-a 12:21 (nick) noel-up-up-and-a -> noel-up-up-n-awa 12:21 (nick) noel-up-up-n-awa -> noelup-up-n-away 12:22 jonrafkind: eli, are you going to IFL? 12:22 jeapostrophe: samth: http://drdr.racket-lang.org/json/timing/collects/tests/net/main.rkt 12:22 (quit) noelup-up-n-away: Quit: noelup-up-n-away 12:24 (quit) anRch: Quit: anRch 12:28 (quit) tfb: Quit: sleeping 12:29 (join) noelup-up-n-away 12:29 samth: jeapostrophe: did you enable cross-site xhr? 12:30 samth: jeapostrophe: i see that you did, thanks! 12:30 (quit) MayDaniel: Read error: Connection reset by peer 12:30 samth: firefox web console FTW! 12:31 (join) bluezenix 12:33 (quit) noelup-up-n-away: Ping timeout: 260 seconds 12:44 samth: tewk: ping 12:44 (join) anRch 12:50 tewk: samth: pong 12:51 samth: tewk: are the prints to stderr in this file http://drdr.racket-lang.org/23465/collects/tests/racket/place-channel-fd2.rkt errors? 12:51 rudybot: http://tinyurl.com/3gsnqh2 12:52 tewk: samth: no, its just information, however I think stdout is begin used in the test. 12:52 tewk: hmm 12:53 samth: you're calling (fprintf (current-error-port) ...) 12:53 samth: strangely, you use eprintf for the errors 12:53 samth: at least, that was my interpretation of the source 12:54 (quit) bohanlon_: Quit: leaving 12:57 tewk: samth: The stderr is helpful (because stdout is captured), but I'll comment it out so drdr doesn't complain. 12:58 tewk: I'll also clean up the fprintf stuff, eprintf should be used instead. 12:58 samth: tewk: i recommend using logging for that, then 12:58 samth: then run it with 'racket -W debug' 12:59 tewk: thats a good idea. 13:00 (join) mceier_ 13:00 (quit) mceier: Disconnected by services 13:00 (nick) mceier_ -> mceier 13:00 stamourv: samth: I was not aware that for/vector: even worked. 13:01 stamourv: I remember trying to make it work, and failing. 13:01 samth: i think inference has improved some in the interim 13:02 stamourv: We improved inference? 13:02 samth: i believe so 13:02 stamourv: I remember us weakening it in weird corner cases, making it faster in the process. 13:02 samth: i think some things have improved since you last tried for/vector: 13:04 stamourv: Ok, so does it work? 13:06 (join) RacketCommitBot 13:06 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/Wv7nNA 13:06 RacketCommitBot: [racket/master] eliminate quasiquote-the-cons-application tag - John Clements 13:06 RacketCommitBot: [racket/master] added entry for cstruct->list converter - John Clements 13:06 (part) RacketCommitBot 13:16 (quit) anRch: Ping timeout: 245 seconds 13:21 (join) MayDaniel 13:23 (join) RacketCommitBot 13:23 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/ZSGtGw 13:23 RacketCommitBot: [racket/master] Change stderr output to logging, to please drdr - Kevin Tew 13:23 (part) RacketCommitBot 13:30 (quit) MayDaniel: Read error: Connection reset by peer 13:39 (quit) bluezenix: Quit: Leaving. 13:39 (quit) blake_johnson: Quit: blake_johnson 13:42 (join) blake_johnson 14:01 (join) anRch 14:12 jonrafkind: I have module a: (provide (all-from-out racket/base)), module b uses a as its #lang but then b can't do (prefix-in), what am I missing from module a? 14:14 samth: jonrafkind: um, `(require racket/base)'? 14:15 jonrafkind: i had that otherwise a would fail to provide 14:16 samth: then you aren't missing anything 14:17 samth: probably something else is going wrong 14:17 jonrafkind: hm.. like what 14:17 samth: i don't know 14:17 samth: look at the macro stepper 14:25 jonrafkind: oh the issue is im using the wrong reader 14:47 (join) jao 14:56 (quit) dsp_: Read error: Operation timed out 14:57 (join) dsp_ 15:08 (join) RacketCommitBot 15:08 RacketCommitBot: [racket] plt pushed 8 new commits to master: http://git.io/lfZaeA 15:08 RacketCommitBot: [racket/master] db: clean up test suite, (test conditional) => (conditional test), timing - Ryan Culpepper 15:08 RacketCommitBot: [racket/master] db: made sql data serializable - Ryan Culpepper 15:08 RacketCommitBot: [racket/master] db: add support for odbc on macosx (needs testing) - Ryan Culpepper 15:08 (part) RacketCommitBot 15:12 (join) RacketCommitBot 15:12 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/h5HG4A 15:12 RacketCommitBot: [racket/master] fixed docs for check-member-of and check-range - Matthias Felleisen 15:12 (part) RacketCommitBot 15:15 jonrafkind: is there a syntactic form that expands to nothing? I feel like I've done this before.. basically I want (my-form) to expand to nothing, #'() is the empty application 15:19 rapacity: I usually use #,@ for that stuff 15:20 jonrafkind: ok i just avoided the issue for now by detecting the empty syntaxes in the other cases of the case statement 15:29 samth: jonrafkind: i do the same as rapacity 15:30 jonrafkind: can you give an example of how you use #,@ 15:33 samth: #`(cond [(foo? x) thing1] #,@(if condition #'([(bar? x) thing2] #'()) [else thing3]) 15:34 samth: sorry, misparenthisized: #`(cond [(foo? x) thing1] #,@(if (even? (random 2)) #'([(bar? x) thing2]) #'()) [else thing3]) 15:38 (quit) anRch: Quit: anRch 15:41 (join) RacketCommitBot 15:41 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/69BqoA 15:41 RacketCommitBot: [racket/master] fix up the teachpack code to be friendly to the drracket test suites - Robby Findler 15:41 (part) RacketCommitBot 16:16 (join) bluezenix 16:32 (join) RacketCommitBot 16:32 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/dZ7OFg 16:32 RacketCommitBot: [racket/master] `scheme' -> `racket'. - Eli Barzilay 16:32 RacketCommitBot: [racket/master] Reprovide the structs from "analyzer.rkt". - Eli Barzilay 16:32 RacketCommitBot: [racket/master] Switch to `make-'-less constructors. - Eli Barzilay 16:32 (part) RacketCommitBot 16:35 (join) RacketCommitBot 16:35 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/YCRMAA 16:35 RacketCommitBot: [racket/master] Forge identifiers instead of dumpster-diving. - Vincent St-Amour 16:35 RacketCommitBot: [racket/master] here-figures shouldn't be on a page of their own. - Vincent St-Amour 16:35 (part) RacketCommitBot 16:38 samth: stamourv: so, you just pushed only the make-identifier work, not the pre-expansion work? 16:38 stamourv: Correct. 16:39 stamourv: I haven't gotten that to work yet. 16:39 stamourv: But I wanted to get that out. 16:39 samth: great 16:39 stamourv: In part so you could look at it, and hep me figure it out ;). 16:39 stamourv: s/hep/help/ 16:46 samth: first i have to finish w/ some javascript hacking 16:46 samth: http://punge.ccs.neu.edu/~samth/basic.html 16:46 stamourv: No problem. I'm still working on it anyway. 16:47 stamourv: I see a rectangle, and buttons. 16:47 stamourv: Should I see more than that? 16:49 (quit) bluezenix: Read error: Connection reset by peer 16:49 (join) bluezenix 16:51 samth: try clicking the buttons 16:52 samth: wait, currently borked 16:52 (join) bluezenix1 16:54 (quit) bluezenix: Ping timeout: 260 seconds 16:54 stamourv: Could also be my browser. 16:54 stamourv: I'm using an Iceweasel from the Louis XIV era. 16:55 stamourv: Debian Stable :D 16:56 samth: now it should work 16:56 stamourv: Now I don't see the rectangle anymore. 16:57 stamourv: And the buttons don't do anything. 16:59 stamourv: What is it supposed to be anyway? 17:01 samth: stamourv: try now 17:01 stamourv: Ooh. 17:01 stamourv: Pretty charts. 17:03 (join) realitygrill 17:03 (part) espadrine 17:18 samth: jeapostrophe: where's the static html for drdr pages? 17:18 samth: or where is it generated? 17:18 jeapostrophe: render.rkt 17:19 samth: thx 17:21 (quit) dnolen: Quit: Page closed 17:35 samth: jeapostrophe: patch sent 17:37 jeapostrophe: thx 17:42 (join) RacketCommitBot 17:42 RacketCommitBot: [racket] plt pushed 3 new commits to master: http://git.io/Q-afxg 17:42 RacketCommitBot: [racket/master] JSON timing data - Jay McCarthy 17:42 RacketCommitBot: [racket/master] Better solution to pr12145 - Jay McCarthy 17:42 RacketCommitBot: [racket/master] Getting ready for new graphs - Jay McCarthy 17:42 (part) RacketCommitBot 17:43 (join) realitygrill_ 17:45 (quit) realitygrill: Ping timeout: 245 seconds 17:45 (nick) realitygrill_ -> realitygrill 17:46 samth: eli: the open pull req for match is merged 17:50 jeapostrophe: samth: totally busted 17:50 jeapostrophe: http://drdr.racket-lang.org/23468/collects/tests/planet/run-all.rkt 17:51 samth: jeapostrophe: there's a paren-problem 17:52 samth: after the jquery script src, there's not enough ) 17:52 samth: extra right paren before the "reset" button 17:53 jeapostrophe: sorry i don't see it 17:53 samth: jeapostrophe: i don't see it in the racket source 17:53 samth: but it's in the output html 17:53 samth: look at the source to that file 17:54 jeapostrophe: to chart.js? 17:55 samth: no, the source of http://drdr.racket-lang.org/23468/collects/tests/planet/run-all.rkt 17:55 jeapostrophe: Ya I don't see a broken parent 17:56 samth: firefox is highlighting the source as if the 17:56 samth: which is exactly how it's rendering 17:56 jeapostrophe: No, the script is a /> tag 17:57 samth: i see that 17:57 samth: all i'm saying is that it's rendering and syntx highlighting as if that doesn't work 17:57 samth: try putting " " as the body of the script tags 17:58 jeapostrophe: so i fixed that 17:58 jeapostrophe: but it isn't working for me 17:59 samth: also not working for me 18:00 samth: jeapostrophe: it's looking for the JS files in the wrong place 18:00 samth: i think 18:00 jeapostrophe: yes 18:01 samth: yeah, they need a / in front 18:01 jeapostrophe: alright 18:01 jeapostrophe: done 18:01 samth: working for me 18:01 samth: i think it needs some whitespace on the top of the chart 18:02 jeapostrophe: hows that 18:02 samth: for me, the top number on the chart on that page is almost overlapping with the output display 18:03 jeapostrophe: After my update? 18:03 samth: much better 18:03 jeapostrophe: rad 18:03 jeapostrophe: can you write new help text on the graphs? 18:03 samth: also, i'd take out the moving average -- i've decided i don't like it 18:03 samth: and yes 18:04 samth: you should just be able to comment out the two lines that use the 'overall_avg' variable 18:05 jeapostrophe: in what file? 18:05 samth: chart.js 18:06 jeapostrophe: k 18:06 jeapostrophe: i did that 18:06 samth: cool 18:07 samth: i'll write some help text, and push it later today 18:07 jeapostrophe: rad 18:07 samth: and i'll announce to the list 18:07 samth: thanks for your help 18:07 jeapostrophe: word thank you 18:07 jeapostrophe: this will make it go faster 18:07 jeapostrophe: it spends about 10 minutes on graphs 18:07 samth: wow 18:07 (join) RacketCommitBot 18:07 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/z6HcKQ 18:07 RacketCommitBot: [racket/master] Fancy Flot-based JS charting for DrDr timing. - Sam Tobin-Hochstadt 18:07 RacketCommitBot: [racket/master] removing old graphing system - Jay McCarthy 18:07 (part) RacketCommitBot 18:08 samth: i love faster 18:08 samth: also, you should give some different options to /bin/tar to remove the stderr warning 18:08 jeapostrophe: which ones? 18:09 samth: this isn't so good : http://drdr.racket-lang.org/23468/collects/tests/racket/benchmarks/mz/parsing.rktl 18:09 rudybot: http://tinyurl.com/3vftwsy 18:09 samth: :) 18:09 jeapostrophe: woaaaaaah 18:09 samth: i'm not sure what the right thing to do there is 18:10 samth: i'll try to come up with a solution, though 18:10 samth: but not immediately 18:10 samth: if you hide the legend, it gets better 18:10 jeapostrophe: k 18:10 jeapostrophe: i gtg, thanks for this 18:11 samth: np 18:12 samth: fun to hack some js occasionally 18:12 jeapostrophe: lolz 18:12 jeapostrophe: oh, not a joke? 18:12 jeapostrophe: :P 18:13 jeapostrophe: js makes me hate the web now 18:14 jeapostrophe: (from a programming side, that is) 18:14 (quit) jeapostrophe: Quit: jeapostrophe 18:19 (quit) blake_johnson: Quit: blake_johnson 18:36 jonrafkind: samth, i dont fully understand the circles, what are they for? 18:42 (part) haruki_zaemon: "Laterz" 18:51 samth: jonrafkind: if you have a use of `time' in your program, it spits out timing data every run 18:51 samth: the circles plot that 18:51 jonrafkind: why is that useful? 18:51 samth: why is which useful? 18:51 jonrafkind: i mean seems sort of strange to me.. 18:51 jonrafkind: showing (time) as circles 18:52 samth: would you rather have it as a line? 18:52 jonrafkind: seems like just hte yellow line is good enough 18:52 samth: but if you time multiple things in your file, then the yellow line doesn't have all the information 18:52 jonrafkind: how can you correlate multiple time's with multiple circle's? 18:53 samth: they appear in order in the file 18:53 samth: in the output, that is 18:53 jonrafkind: oh ok 18:53 jonrafkind: you mean the order they are executed in? 18:54 jonrafkind: or the order they physically appear 18:54 samth: the order they appear in the output 18:56 (nick) samth -> samth_away 19:10 (join) jeapostrophe 19:16 (quit) jeapostrophe: Quit: jeapostrophe 19:18 (quit) jao: Ping timeout: 245 seconds 19:34 (join) jao 19:34 (join) RacketCommitBot 19:34 RacketCommitBot: [racket] plt pushed 4 new commits to master: http://git.io/SKvcVw 19:34 RacketCommitBot: [racket/master] [honu] configure honu runtime to use the honu syntax reader. this allows honu to be used at the repl - Jon Rafkind 19:34 RacketCommitBot: [racket/master] [honu] remove debugging output - Jon Rafkind 19:34 RacketCommitBot: [racket/master] [honu] expand honu's #%top-interaction to racket's #%top-interaction - Jon Rafkind 19:34 (part) RacketCommitBot 19:41 (join) wtetzner 19:49 (quit) mceier: Quit: leaving 19:53 (quit) masm: Quit: Leaving. 19:55 (join) dnolen 20:04 (quit) em: Ping timeout: 252 seconds 20:06 (join) em 20:33 (quit) jonrafkind: Ping timeout: 258 seconds 20:42 (quit) Lajla: Quit: Phallic Illuminatus 20:46 (quit) cb`: Ping timeout: 240 seconds 20:46 (join) jeapostrophe 20:50 (join) cb` 20:53 (join) RacketCommitBot 20:53 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/8jEPiA 20:53 RacketCommitBot: [racket/master] fixing scribble docs for check-* - Matthias Felleisen 20:53 RacketCommitBot: [racket/master] fixing scribble docs for check-*, step 2 - Matthias Felleisen 20:53 (part) RacketCommitBot 20:56 (quit) bluezenix1: Quit: Leaving. 21:01 (join) rgrinberg 21:02 (quit) wtetzner: Remote host closed the connection 21:09 (join) wtetzner 21:15 (quit) Utkarsh: Read error: Connection reset by peer 21:15 (join) Utkarsh 21:24 (quit) rgrinberg: Remote host closed the connection 21:26 (quit) jao: Ping timeout: 245 seconds 21:42 (quit) wtetzner: Read error: Connection reset by peer 21:43 (join) wtetzner 21:56 (quit) dnolen: *.net *.split 21:56 (quit) bfulgham: *.net *.split 21:56 (join) dnolen 21:58 (join) bfulgham 22:00 dnolen: hmm when using Racket r6rs why does (cons 1 '()) print as (mcons 1 '()) ? 22:03 (quit) wtetzner: Read error: Connection reset by peer 22:03 dnolen: actually it only seems to do this at the Geisder REPL 22:04 (join) wtetzner 22:06 (quit) wtetzner: Client Quit 22:06 (join) wtetzner 22:07 (join) Lajla 22:17 (quit) wtetzner: Remote host closed the connection 22:43 (quit) dsp_: Ping timeout: 258 seconds 22:48 (join) flaggy 22:53 (join) dsp_ 22:54 mithos28: dnolen: because the cons in r6rs corresponds to mcons from the racket language 23:38 dnolen: related question, how can I use a racket definition (time) from r6rs ? 23:39 MaXim_: hmm, whats a good way to determine how much memory im using? 23:41 (join) jonrafkind 23:43 (quit) flaggy: Ping timeout: 264 seconds 23:45 MaXim_: and what does "enable tests" do? 23:45 MaXim_: i assume its to enable test macros in the definitions, but i dont know how to write tests 23:46 mithos28: dnolen: you should be able to do an import (only-in racket time). My memory of r6rs imports is a bit hazy though 23:46 mithos28: MaXim_: where is this 'enable tests'? 23:47 dnolen: mithos28: yeah that doesn't seem to work. 23:47 MaXim_: under the racket menu 23:48 mithos28: dnolen: what happens? 23:48 dnolen: mithos28: error about the syntax 23:49 dnolen: import: cannot find suitable library installed, and the paths it's looking at 23:50 mithos28: MaXim_: I'm not sure 23:51 MaXim_: hm ok 23:51 MaXim_: lol 23:51 MaXim_: i was hoping i could write some neat test cases that could be turned off with one switch 23:52 mithos28: dnolen: its (only (racket) time) 23:53 dnolen: mithos28: thx! 23:54 mithos28: MaXim_: It might be for the test cases with the htdp languages 23:55 (quit) jeapostrophe: Quit: jeapostrophe 23:55 MaXim_: ah ok 23:55 MaXim_: :( 23:55 (join) jeapostrophe 23:56 mithos28: you can comment your test cases, using #; to comment out a whole sexp