00:00 greghendershott: I really appreciate your help. Even though I can't use the pattern way of doing append* in this case, that was great to learn. Thanks again. 00:01 (join) asvil 00:11 (quit) mithos28: Quit: mithos28 00:11 (join) mithos28 00:12 asumu: I wonder if this is a bug. 00:12 asumu: It actually is related to a bug report from a few days back, I think. 00:13 asumu: http://bugs.racket-lang.org/query/?cmd=view&pr=13246 00:13 asumu: That one in particular. 00:14 asumu: greghendershott: also, you can distill this even further by replacing syntax-parse with syntax-case. And in your define-lam macro, it still errors if you just expand to #'(lam ...) without the define. 00:17 greghendershott: Yes good point; I'd verified same thing with syntax-case. (I left it syntax-parse because I'd made a typo in previous distillation, so left it alone.) 00:18 greghendershott: and I hadn't thought to boil down define-lam like that; good idea 00:20 asumu: greghendershott: I tried to simplify it some more: https://gist.github.com/4123230 00:20 asumu: This shows that syntax->datum, datum->syntax with the same syntax object as context does not seem to "cancel out" so to speak 00:21 greghendershott: asumu: Ah, thanks! 00:22 (quit) bjz: Quit: Leaving... 00:25 greghendershott: asumu: What do you think, is this now _so_ simple that I should just PR it? Or still post to the list first? 00:27 ewemoa: hurray: https://github.com/plt/racket/commit/ec05ecf55853f8b2023718199ec528b7f47e3ab5 00:27 rudybot: http://tinyurl.com/b7ptlhv 00:33 asumu: greghendershott: I think I would post it to the list, partly to generate better discussion. Also partly because I can't confidently say it's a bug. :p 00:34 greghendershott: asumu: OK. :) I've been drafting it. Will hit send in a moment. Thanks again! 00:37 (join) dnolen 00:40 (quit) shriphani_: Quit: shriphani_ 00:54 (quit) Kaylin1: Quit: Leaving. 01:08 (quit) greghendershott: Quit: Leaving. 01:19 (quit) cky: Ping timeout: 245 seconds 01:19 Shambles_: Am I correct in thinking there's no such data structure when I want something with fast lookup like a hash table, but behaves as a FIFO queue (ejecting the 'oldest' item)? I don't think hashing itself would work since the values at indexes in the queue would change. 01:24 (quit) mithos28: Quit: mithos28 01:26 (join) cky 01:27 asumu: Shambles_: finger trees maybe? 01:29 Shambles_: asumu: I was thinking about how a processor's instruction cache needs to work. It needs to discard things that haven't been used recently, so a FIFO seems like a natural fit. But something wanting to decode a instruction from a address needs to look up things in the cache quickly. 01:30 (join) mithos28 01:30 (join) niels1 01:30 jrslepak: I would not normally expect an L1 cache to be highly associative 01:30 Shambles_: asumu: The language I'd be implementing this in doesn't have pointers/references, but it does have (non-nestable) arrays/lists. 01:35 (join) lewis1711 01:39 (quit) Tro__: Ping timeout: 264 seconds 01:39 (quit) PseudoMander: Ping timeout: 256 seconds 01:39 (quit) soegaard: Quit: soegaard 01:40 (join) PseudoMander 01:40 (join) Tro__ 01:47 (quit) jeapostrophe: Ping timeout: 240 seconds 02:04 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 02:12 (join) sw2wolf 02:12 (quit) jackhammer2022: Quit: Textual IRC Client: http://www.textualapp.com/ 02:14 (join) ambrosebs 02:15 (quit) dnolen: Ping timeout: 245 seconds 02:21 (join) mceier 02:43 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 02:44 (join) bjz 02:59 (quit) Demosthenex: Ping timeout: 248 seconds 03:00 (quit) mithos28: Quit: mithos28 03:01 (join) hkBst 03:01 (quit) hkBst: Changing host 03:01 (join) hkBst 03:01 (join) Demosthenex 03:19 (join) noelw_ 03:20 (nick) noelw_ -> noelw 03:23 (join) tfb 03:32 (join) sw2wolf 03:33 (quit) niels1: Remote host closed the connection 03:34 (part) sw2wolf: "ERC Version 5.3 (IRC client for Emacs)" 03:35 (join) Shvillr 03:38 (quit) bjz: Quit: Leaving... 03:42 (join) niels1 03:48 (quit) Tro__: Ping timeout: 252 seconds 03:48 (quit) PseudoMander: Ping timeout: 252 seconds 04:00 (quit) jonrafkind: Ping timeout: 260 seconds 04:06 (quit) walter|r: Read error: Connection reset by peer 04:06 (join) walter 04:17 (join) bitonic 04:31 (quit) lewis1711: Quit: Leaving. 04:40 (join) bitonic` 04:42 (quit) bitonic: Ping timeout: 252 seconds 04:43 (quit) jao: Ping timeout: 245 seconds 04:44 (join) mmajchrzak_ 04:46 (quit) ambrosebs: Ping timeout: 256 seconds 04:46 (join) ambrosebs 04:47 (nick) bitonic` -> bitonic 04:51 (join) PseudoMander 04:51 (join) Tro__ 04:55 (quit) tfb: Quit: sleeping 05:29 (quit) niels1: Quit: WeeChat 0.3.8 05:29 (part) systemovich 05:30 (join) bitonic 05:31 (join) masm 05:31 (join) niels1 05:34 (join) MightyFoo 05:35 (nick) MightyFoo -> tim-brown 05:37 tim-brown: I'm really getting frustrated at DrRacket on Windows 7... occasionally racket gets busy (doing the hard work I demand of it most of the time)... and Windows gives me "DrRacket Has Stopped Working", and the choice of clicking a button to close the program down, or staring at the message until I click the button to close it down 05:38 tim-brown: this seems to be an impatience of Windows --- is there any way to shut the bleeding thing up? 06:02 (quit) bitonic: Remote host closed the connection 06:02 (join) bitonic 06:23 (join) bjz 06:23 (quit) bjz: Client Quit 06:23 (join) bjz 06:23 (join) Shviller 06:29 (join) mye 06:38 (part) ewemoa 06:59 (quit) bitonic: Read error: Connection reset by peer 07:00 (join) bitonic 07:05 (join) mizu_no_oto 07:18 (quit) SamB: Ping timeout: 246 seconds 07:19 (join) SamB 07:44 (quit) mmajchrzak_: Ping timeout: 240 seconds 07:44 Shambles_: tim-brown: Google seems to indicate this is what Vista and later use as the more user friendly (and thus vague and confusing to the computer literate) way of saying " crashed". Maybe your DrRacket is running out of memory, or you've encountered some sort of bug. 07:44 (quit) masm: Ping timeout: 240 seconds 07:47 (join) masm 07:47 Shambles_: tim-brown: Basically DrRacket is running out of some resource like memory or file handles, or it's managed to read/write memory outside of its address range. 07:56 (quit) PseudoMander: Ping timeout: 245 seconds 07:57 (quit) Tro__: Ping timeout: 245 seconds 08:04 (join) nathanpc 08:07 (quit) bitonic: Ping timeout: 255 seconds 08:09 (quit) ambrosebs: Ping timeout: 265 seconds 08:10 (join) soegaard 08:22 tim-brown: Shambles_: I can't help but think that it's a timing thing. I get a report of "Stopped Working", not "crashed"... which has a slightly different semantic. 08:23 (quit) mceier: Ping timeout: 260 seconds 08:24 (join) mceier 08:32 (quit) hkBst: Read error: Connection reset by peer 08:32 (join) hkBst_ 08:32 (quit) hkBst_: Changing host 08:32 (join) hkBst_ 08:32 (join) eMBee_ 08:33 (join) ivan`_ 08:34 (quit) masm: *.net *.split 08:34 (quit) eMBee: *.net *.split 08:34 (quit) ivan`: *.net *.split 08:35 (quit) ivan`_: Excess Flood 08:35 (join) mye_ 08:35 (join) ivan` 08:37 (quit) mye: Ping timeout: 240 seconds 08:37 (nick) mye_ -> mye 08:38 (join) Aune 08:39 (join) greghendershott 08:40 (join) tim-brown 08:43 niels1: tim-brown, but "stopped working" is vista/7 lingo for "crashed". here, the CAD/CAM programs "stop working" occasionally, which is they crash. whereas usually when they make their very timeconsuming number crunching they don't "stop working" 08:43 (join) masm 08:48 (join) myx 09:05 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 09:06 (join) bitonic 09:08 (join) jeapostrophe 09:08 (quit) jeapostrophe: Changing host 09:08 (join) jeapostrophe 09:10 (quit) SamB: Ping timeout: 260 seconds 09:21 (join) mizu_no_oto 09:21 tim-brown: niels1: in case it is real crashing (memory etc) i'd assume *more* people reporting the same problem 09:22 (quit) bitonic: Ping timeout: 255 seconds 09:24 niels1: tim-brown, well, i'm not good in such kind of reasoning. could some file in your racket installation be faulty, too? 09:24 (join) bitonic 09:30 tim-brown: almost guaranteed... upgrading *never* removes all of the previous version. maybe it's time for some housekeeping! 09:32 (quit) soegaard: Ping timeout: 240 seconds 09:46 (quit) ivan`: Ping timeout: 240 seconds 09:46 (join) ivan` 09:49 (join) jao 09:49 (quit) jao: Changing host 09:49 (join) jao 09:50 (join) dnolen 09:55 (quit) Shviller: Read error: Connection reset by peer 10:02 (join) Shviller 10:05 (join) soegaard 10:11 (quit) niels1: Quit: WeeChat 0.3.8 10:14 (quit) bitonic: Ping timeout: 246 seconds 10:14 (quit) SHODAN: Ping timeout: 240 seconds 10:15 (join) Shozan 10:16 (join) bitonic 10:16 asumu: greghendershott: BTW, I just remembered that one way to solve your append* issue is to use ryanc's template library: https://gist.github.com/4123230 10:16 asumu: (it's an experimental feature though) 10:21 (quit) dnolen: Ping timeout: 252 seconds 10:28 greghendershott: asumu: Thanks for the lead. I think I have to learn it the hard/painful way, in order to appreciate what such a lib would do for me, and how. But thanks for the tip, I'll look at that. 10:29 greghendershott: I don't mean this in a negative way, but lately I'm wondering about this concept that "you can write Racket macros using Racket, not some special DSL". Does that really pan out? 10:30 greghendershott: It seems like the pattern and template model is a kind of DSL, and the moment you step outside that things can get back, quickly. Or maybe I'm exaggerating. 10:30 greghendershott: back -> bad 10:31 greghendershott: Seems like lexical context is the sticky point. 10:32 greghendershott: OTOH maybe 98% of useful macros can be written in the pattern/template DSL, so it's not so big an issue. Maybe it's acceptable for the 2% to be reserved for a chosen few who know how to supplicate the lexical context gods. 10:40 (quit) hkBst_: Quit: Konversation terminated! 10:47 (quit) mceier: Quit: leaving 10:47 (join) ambrosebs 10:54 (join) anRch 11:05 (join) p4bl0 11:05 (quit) p4bl0: Remote host closed the connection 11:12 (quit) ambrosebs: Ping timeout: 248 seconds 11:13 (quit) bjz: Quit: Bye! 11:15 Aune: Im using racket/gui and I want to display a multi line string (contains '~n'), but (send dc draw-text ...) does not respect the line breaks. Is there a function that does or do I have to split on ~n and iterate over positions myself? 11:17 (join) bjz 11:19 (quit) masm: Ping timeout: 240 seconds 11:21 (join) masm 11:21 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 11:22 greghendershott: asumu: jonrafkind: I got it working using combo of the pattern to avoid append* you showed me last night, plus example from Tobias Hammer on the mail list. https://gist.github.com/4122971 11:23 greghendershott: I just wish it could use more ellipses :p 11:24 (join) bitonic` 11:25 (quit) soegaard: Quit: soegaard 11:25 asvil: does anybody use run-automated-tests.rkt? 11:26 (quit) bitonic: Ping timeout: 260 seconds 11:29 (join) mizu_no_oto 11:43 (quit) jrslepak: Quit: What happened to Systems A through E? 11:46 (join) muraiki2 11:47 Aune: Is there a way to get the name of a function? As in (define (get-name x) ...) : (get-name +) -> "+" 11:48 asvil: Aune, probably (symbol->string '+) 11:49 muraiki2: I'm having a bit of trouble with text/font in the 2htdp/image library... I am able to render some fonts without a problem, but there's a symbol font that I want to use that only renders the roman equivalent. 11:50 muraiki2: The font is for byzantine chant notation. Pressing 0 should give a certain musical symbol, but I only get a number 0. Is this a problem with the font itself? It has some special characters that, when typed, modify the character before the cursor (such as adding note duration) and I wonder if Racket gets confused by that. 11:50 muraiki2: Sorry, I'm new to Racket and also to programming, so I don't know if I am explaining this very well... I'd appreciate any help that anyone can offer 11:50 (quit) tim-brown: Quit: night night 11:54 (join) mithos28 11:54 muraiki2: You can see an example of the font in this PDF, if that would help: http://www.stanthonysmonastery.org/music/ItIsTrulyRight.pdf 11:55 Aune: asvil, yes, but is there a runtime 'quote'-function. This does not work: (define (proc->string x) (symbol->string (quote x))) 11:55 Aune: asvil, so I still need a way to transform a function to a name 11:55 Aune: * or symbol 11:59 asvil: Aune: object-name? 12:00 (quit) anRch: Quit: anRch 12:00 Aune: asvil, Thank you, that was exactly what I was looking for! 12:06 (join) mceier 12:10 (join) RacketCommitBot 12:10 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/XoUntg 12:10 RacketCommitBot: racket/master ac7c378 Robby Findler: fix dequeue! to actually not hold onto queue elements... 12:10 RacketCommitBot: racket/master 9863366 Robby Findler: extend data/queue library... 12:10 (part) RacketCommitBot 12:12 (join) MayDaniel 12:13 stamourv: asvil: Re run-automated-tests.rkt: IIRC that's what the nightly build's tests are using. Why? 12:14 stamourv: muraiki2: Have you tried using `racket/draw' directly, or something like `slideshow/pict'? 12:15 (quit) Demosthenex: Ping timeout: 260 seconds 12:15 stamourv: Maybe `2htdp/image' does something special with fonts. 12:16 muraiki2: Hrm, I'll try that, thanks! 12:16 stamourv: muraiki2: Also, can you put your code on a paste site? I can have a look at it. 12:17 (join) walter|r 12:17 (join) Demosthenex 12:18 muraiki2: stamourv: Sure, although all I have is a definition that I then tried evaluating in the bottom part of DrRacket: http://pastebin.com/UHnatF3a 12:18 (join) jrslepak 12:19 asvil: stamourv: yes, nightly build's tests. I modified racket, and found that I touched build-in functions in inconsistent with these tests way 12:19 stamourv: muraiki2: Have you tried using 'default instead of 'symbol? 12:19 muraiki2: stamourv: I just tried that, but it still gives me 0 12:20 stamourv: asvil: I see. If you're changing built-ins, it's usually faster to just run tests/racket/quiet.rktl, and only run the full test suite at the end. 12:20 (quit) walter: Ping timeout: 260 seconds 12:20 stamourv: muraiki2: Where did you install the font? And which OS? 12:21 muraiki2: I'm on Windows XP, and I used it's built in method for installing fonts. The font does show up in other text editors and I'm able to use it in them, so I guess that it is installed correctly. 12:21 stamourv: Let me try it on my machine. I'm on linux, though, so it may be different. 12:22 muraiki2: stamourv: I have an Ubuntu VM, but Racket didn't render properly under Unity when I tried it a few days ago. I saw that a bug was submitted in the Ubuntu bug tracker, so I'll try it again someday. :) 12:23 asvil: stamourv: it seems, that *.rktl files is not "standalone" 12:23 asvil: s/is/are 12:24 stamourv: muraiki2: Ok, I got it to work, so it's probably not an issue with `2htdp/image'. 12:24 asvil: I mean collects/tests/racket/* 12:24 stamourv: Do other fonts work for you? 12:24 muraiki2: stamourv: Hrm, something with Windows XP then? I was able to use another font without a problem, although it's not a symbol font. 12:24 stamourv: asvil: Right, these are files you need to `load'. There's a command line flag for that, lemme look it up. 12:25 stamourv: asvil: "racket -f quiet.rktl" 12:25 (quit) Demosthenex: Read error: Operation timed out 12:25 stamourv: muraiki2: Maybe. Can you try other symbol font? 12:26 asvil: stamourv: thanks a lot 12:26 muraiki2: stamourv: Oh, interesting, I tried using the built in "Symbol" font with Windows and that didn't work either! 12:27 stamourv: muraiki2: Interesting. 12:27 muraiki2: stamourv: I tried another built-in symbol font, "wingdings," and that also didn't work... 12:27 stamourv: I'm reading the docs, to see if there's anything relevant. 12:27 muraiki2: stamourv: Thank you so much for your help! 12:28 (quit) walter|r: Quit: This computer has gone to sleep 12:28 (join) Demosthenex 12:29 stamourv: muraiki2: I don't see anything in the docs. 12:30 stamourv: At this point, asking on the Racket mailing list is probably the best thing to do. 12:30 muraiki2: stamourv: Thanks for your help. I was able to get it working in Ubuntu, despite the GUI not rendering properly, hehe 12:30 stamourv: The authors of the Racket GUI libraries read it. 12:31 stamourv: What was the issue with the GUI? 12:31 stamourv: And how did you install Racket? IIRC, there are multiple ways to do it on Ubuntu. 12:31 (join) soegaard 12:31 muraiki2: stamourv: The tab interface, the check syntax/step/run/stop buttons, and the language selection dialog at the bottom are all missing. It's just a blank bar. 12:31 muraiki2: stamourv: I installed it using apt-get 12:31 stamourv: That's odd. 12:31 muraiki2: stamourv: Maybe I should compile it instead 12:32 stamourv: That's what I do, but there are easier ways, too. 12:32 stamourv: jonrafkind has a PPA for ubuntu, and there are binary packages available on the Racket website. 12:33 (quit) bitonic`: Read error: Connection reset by peer 12:33 (join) dzhus 12:34 bremner: muraiki2: please file ubuntu bugs if the ubuntu packages don't work. 12:35 (join) bitonic` 12:35 stamourv: bremner: IIRC, he said that a bug had already been filed. 12:36 bremner: oh, ok. 12:36 muraiki2: stamourv: I installed the binary from the Racket site, and it works fine 12:36 muraiki2: Yeah, I saw a bug already in Ubuntu 12:36 stamourv: Great! 12:36 muraiki2: Thanks! 12:39 bremner: I don't see any relevant bugs in Debian; I guess nobody is triaging the ubuntu bugs. Or it really is Ubuntu (Unity?) specific. 12:40 (quit) myx: Read error: Connection reset by peer 12:40 muraiki2: bremner: IIRC it was Ubuntu specific 12:40 (join) myx 12:40 muraiki2: bremner: https://bugs.launchpad.net/ubuntu/+source/racket/+bug/1065997 12:41 bremner: thanks 12:42 bremner: hmm. strange. They don't mention unity, but rather xfce. 12:45 muraiki2: Oh, I didn't notice that! 12:51 (quit) Nisstyre: Remote host closed the connection 12:55 asumu: Aune: re: racket/gui, if you want to display multi-line strings you probably want to use a text% widget. 12:55 asumu: If you're drawing at a lower level than that, you'll probably need to do formatting manually. 12:56 (join) muraiki 12:57 (quit) muraiki2: Quit: Page closed 12:59 (quit) muraiki: Remote host closed the connection 13:01 (join) Nisstyre 13:01 Aune: asumu, thanks 13:01 (join) RacketCommitBot 13:01 RacketCommitBot: [racket] plt pushed 11 new commits to master: http://git.io/C_BDFA 13:01 RacketCommitBot: racket/master c632a84 Ryan Culpepper: add ssl-seal-context!... 13:01 RacketCommitBot: racket/master 4b4113d Ryan Culpepper: get default CA cert locations (when available)... 13:01 RacketCommitBot: racket/master f446ada Ryan Culpepper: added ssl-set-ciphers! 13:01 (part) RacketCommitBot 13:03 (quit) soegaard: Quit: soegaard 13:06 (quit) acarrico: Ping timeout: 260 seconds 13:14 (quit) mithos28: Quit: mithos28 13:15 (join) jonrafkind 13:18 (quit) asvil: Ping timeout: 260 seconds 13:20 (join) muraiki 13:21 (nick) bitonic` -> bitonic 13:22 (join) acarrico 13:28 shriphani: hi. I am using #lang r5rs and amb doesn't seem to be available. What is the deal with that ? 13:29 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 13:30 (join) soegaard 13:35 (join) untrusted 13:43 stamourv: shriphani: `amb' is not part of R5RS. 13:43 stamourv: #lang r5rs follows the standard very strictly. 13:43 stamourv: So there's really not much in there. 13:44 stamourv: I recommend #lang racket, it has a lot of useful things. 13:53 (quit) jeapostrophe: Ping timeout: 276 seconds 13:57 asumu: Though actually I don't think #lang racket has `amb`, but there are two planet packages that provide it. 14:00 shriphani: asumu, I found a racket package (amb.plt) but there's some weirdness in there. (amb 1 2) causes it to fail with http://pastebin.ca/2253811 . What am I doing wrong ? 14:04 (quit) untrusted: Remote host closed the connection 14:06 (part) bbloom: "["Textual IRC Client: www.textualapp.com"]" 14:06 asumu: shriphani: try wrapping it in an amb-collect. 14:07 asumu: (see the package docs for an example) 14:14 (part) Aune: "Leaving" 14:14 (join) bitonic 14:15 (join) mye 14:17 (quit) soegaard: Quit: soegaard 14:21 (join) bitonic` 14:21 (quit) bitonic: Read error: Connection reset by peer 14:23 (join) walter|r 14:24 (quit) bitonic`: Remote host closed the connection 14:24 (join) bitonic` 14:32 (quit) bitonic`: Ping timeout: 240 seconds 15:02 (join) bitonic` 15:08 (join) SamB 15:09 (quit) jonrafkind: Read error: Operation timed out 15:09 (join) anRch 15:16 (join) tfb 15:21 (quit) muraiki: Quit: Leaving 15:22 (quit) bitonic`: Ping timeout: 240 seconds 15:28 (quit) mye: Quit: mye 15:29 (join) jonrafkind 15:38 (join) didi 15:47 (join) bitonic` 16:01 (quit) cdidd: Remote host closed the connection 16:06 jonrafkind: thats funny greghendershott 16:09 (join) Blkt 16:09 greghendershott: jonrafkind: ((thanks …) for-your-help …) (sincerely … …) 16:09 jonrafkind: I can see why you would expect such behavior (about shadowing) but its sort of clear why it doesn't work 16:10 jonrafkind: since attributes are just plain pattern variables 16:10 greghendershott: wait what? the PR I just submitted? 16:10 jonrafkind: ya 16:11 greghendershott: Yeah as I said in the PR it's an expectation thing. Maybe it's more of a doc or tutorial issue. 16:12 (quit) anRch: Quit: anRch 16:12 greghendershott: For a beginner `with-syntax' can be tricky since it almost does "too good a job" of mimicking a `let'. 16:13 (join) mye 16:13 greghendershott: I actually made myself do nested syntax-parses for awhile, to help make it sink in. 16:13 jonrafkind: I mean it is like let. its like if you did (struct foo (x)) (let ([foo 2]) foo-x) ;; expect an error 16:14 (join) torog 16:14 jonrafkind: so really you are expecting the identifier to be looked up by first looking up the thing before the `.' then the attribute after 16:14 jonrafkind: as opposed to considering the entire shadow-me.y identifier a single binding by itself 16:15 greghendershott: Right but my PR is that you don't get an error message. Instead you get the thing that you supposedly shadowed. In that way it's not like a let. 16:15 greghendershott: Right, it's a single thing in itself. 16:15 jonrafkind: what about my struct example above 16:15 jonrafkind: isnt it the same as what you claim but using a let? 16:16 greghendershott: I think the dot notation helped set the wrong expectation for me, is all. 16:16 jonrafkind: ya 16:21 (nick) bitonic` -> bitonic 16:31 torog: hey, i'd like to extend the racket syntax for a very simple backus naur form. ( ::= a a) should be converted into (define *rules* '( S . ("a" "T" "a" ))) --> can anybody here explain me how to do that? 16:32 torog: i'm a racket newbie (: 16:33 torog: shoud have been ( S . ("a" T "a" ) --> S as a symbol 16:33 torog: *T as a symbol, i mean :P 16:34 stamourv: torog: Are you familiar with macros? 16:36 stamourv: Macros are probably what you want here. 16:36 stamourv: Let me find you links to some tutorials. 16:36 torog: yeah, sounds good 16:36 (quit) greghendershott: Quit: Leaving. 16:37 stamourv: 2-hour tutorial by Matthew Flatt at the last Racketcon: http://www.youtube.com/watch?v=y1rOWZkALto 16:38 stamourv: A brainf*ck implementation: http://blog.hashcollision.org/?p=114 16:38 stamourv: A text adventure game: http://queue.acm.org/detail.cfm?id=2068896 16:38 stamourv: A recent addition, which I haven't read yet, but have heard good things about: http://www.greghendershott.com/fear-of-macros/ 16:38 stamourv: And that's all I can think of off the top of my head. 16:42 mye: torog: see you next year then :-) 16:44 mye: well, ok, not everyone is as slow as I am 16:46 torog: stamourv: nice, thanks 16:48 stamourv: No problem! 16:48 stamourv: If you have any questions, feel free to ask! :) 16:48 torog: uhh, the youtube tutorial looks really nice but ... 16:48 torog: the quality ... :P 16:49 stamourv: I remember there being 2 versions. I don't know if that link was the best one. Lemme check. 16:49 torog: i can't make a single line of code out :/ 16:49 stamourv: The code is available online. 16:49 stamourv: http://www.cs.utah.edu/plt/scratchy/ 16:49 stamourv: More links at: http://con.racket-lang.org/ 16:50 stamourv: Yeah, sadly, I think that was the good link. 16:50 stamourv: The videos got better as the day went on, but since that was the first talk. 16:51 (join) mizu_no_oto 16:52 (join) PseudoMander 16:52 (join) Tro__ 16:56 (quit) didi: Ping timeout: 252 seconds 16:57 (join) soegaard 17:00 (quit) myx: Ping timeout: 260 seconds 17:00 asumu: The tutorial was similar to the ACM queue article, so take a look at that. 17:10 (join) Kaylin 17:11 (join) masm1 17:13 (quit) masm: Ping timeout: 260 seconds 17:13 (quit) sethalves: Read error: Connection reset by peer 17:13 (join) myx 17:13 (join) sethalves 17:15 (quit) torog: Ping timeout: 244 seconds 17:15 (quit) Kaylin: Read error: Connection reset by peer 17:16 (quit) jrslepak: Quit: What happened to Systems A through E? 17:20 (quit) Tro__: Ping timeout: 245 seconds 17:21 (quit) PseudoMander: Ping timeout: 260 seconds 17:24 (quit) masm1: Ping timeout: 244 seconds 17:26 (join) masm 17:39 (join) masm1 17:41 (quit) masm: Ping timeout: 244 seconds 17:46 mye: isn't torog's macro impossible to write without hooking into #%app like in https://github.com/dyoo/infix-syntax-example ? 17:46 mye: ::= would have know context, which an identifier macro doesn't see. right? 17:48 (quit) masm1: Ping timeout: 244 seconds 17:50 (join) masm 18:05 (join) torog 18:05 (quit) tfb: Quit: gone 18:08 (join) dedis2 18:10 (quit) torog: Client Quit 18:10 (quit) bjz: Quit: Leaving... 18:17 asumu: Could write a macro around it (bnf (... ::= ...) ...) or use Racket's infix notation (a . ::= . b) 18:23 (join) lewis1711 18:23 (quit) Demosthenex: Read error: Operation timed out 18:25 (join) Demosthenex 18:32 (quit) dzhus: Remote host closed the connection 18:38 (quit) Demosthenex: Ping timeout: 246 seconds 18:40 (join) Demosthenex 18:40 (quit) acarrico: Ping timeout: 256 seconds 18:41 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:41 (quit) masm: Ping timeout: 264 seconds 18:42 (join) masm 18:42 (quit) MayDaniel: Read error: Connection reset by peer 18:44 (join) PseudoMander 18:52 (quit) mceier: Quit: leaving 18:54 (quit) Demosthenex: Ping timeout: 260 seconds 18:56 (join) Demosthenex 18:57 (join) acarrico 18:58 (join) bjz 19:01 (quit) dedis2: K-Lined 19:04 (join) mceier 19:04 (join) mizu_no_oto 19:05 (quit) PseudoMander: Ping timeout: 265 seconds 19:17 (join) greghendershott 19:25 (join) jeapostrophe 19:25 (quit) soegaard: Quit: soegaard 19:36 (quit) myx: Ping timeout: 252 seconds 19:38 (quit) jeapostrophe: Read error: Operation timed out 19:41 (join) PseudoMander 19:47 (quit) jonrafkind: Ping timeout: 246 seconds 20:01 (join) zerowaitstate 20:02 (part) zerowaitstate: "Leaving" 20:20 (join) jrslepak 20:26 (join) sw2wolf 20:34 (quit) mye: Quit: mye 20:42 (quit) Blkt: Read error: Connection reset by peer 20:42 (quit) PseudoMander: Ping timeout: 276 seconds 20:42 (join) nilyaK 20:46 (quit) masm: Ping timeout: 260 seconds 20:52 lewis1711: I wish there was a version of the racket guide for slow people 20:56 (join) jeapostrophe 20:56 (quit) jeapostrophe: Changing host 20:56 (join) jeapostrophe 21:04 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 21:16 (quit) Demosthenex: Read error: Operation timed out 21:19 (join) Demosthenex 21:26 (join) PseudoMander 21:29 (join) neilv 21:29 (quit) neilv: Changing host 21:29 (join) neilv 21:31 neilv: so... two's-complement little-endian... 21:31 neilv: i can just reorder the little-endian bytes to big-endian and do the two's-complement interpretation there, right? 21:32 (quit) PseudoMander: Ping timeout: 252 seconds 21:32 neilv: i just forgot a byte has 8 bits, so i can't trust anything 21:33 neilv: er, like whether i am on the correct channel 21:35 (join) mithos28 21:38 (quit) nathanpc: Quit: Computer has gone to sleep. 21:59 (join) ewemoa 22:00 (join) muraiki 22:04 muraiki: Hi all! Would somebody be able to help me with a syntax rule? I know that I'm doing something stupid, but sleepiness is preventing me from seeing it... I pasted it at http://pastebin.com/Y0xFCVmQ 22:07 mithos28: I think you have the second dots in the wrong place 22:07 mithos28: you want multiple [word (notes …)] 22:08 mithos28: not multiple (notes …) 22:08 mithos28: if your example is correct 22:12 muraiki: hrm 22:14 muraiki: I have a list of items that also contains a list within them, which is why I used ... twice 22:15 mithos28: I think you want (chant [word (notes ...)] ...) not (chant [word (notes …) …]) 22:15 mithos28: note … and ] are swapped 22:15 muraiki: oh, I see now! 22:16 muraiki: That did it! Thanks so much! 22:16 mithos28: no problem 22:17 muraiki: This channel is so helpful... I'm not just a beginner to Racket but a beginner to programming, and I've gotten a lot of help today. I'm really pleased with Racket. :) 22:18 (join) dnolen 22:19 (quit) mithos28: Quit: mithos28 22:20 (quit) sethalves: Read error: Connection reset by peer 22:26 (join) digitalcold 22:27 digitalcold: Hello. I've been searching online for a function to execute linux commands from within racket 22:27 digitalcold: No luck so far 22:27 ozzloy: the racket videos are neat 22:27 ozzloy: are there slides and/or code for them anywhere? 22:28 ozzloy: the video is not clear enough for me to follow along 22:29 (quit) greghendershott: Quit: Leaving. 22:31 ozzloy: muraiki, hey! welcome to programming! 22:32 (join) mithos28 22:33 muraiki: thanks ozzloy :D I know a bit of python from some udacity courses that I've taken, but I started on HTDP earlier this year... I'm just now coming back to it 22:33 ozzloy: neat 22:33 ozzloy: udacity! i took the ai class 22:34 muraiki: I did the web programming one; haven't tried ai yet 22:34 ozzloy: trying to build a robot that drives itself around my house and delivers mtn dew 22:34 muraiki: haha, awesome 22:36 ozzloy: muraiki, super awesome 22:37 ozzloy: how cool is it that the head of the team that won the x-prize taught me and many others how to do something similar? 22:37 ozzloy: SO COOL 22:40 (quit) nilyaK: Quit: Leaving. 22:42 (join) joekarma 22:42 muraiki: yeah, the teachers are really good. I like the format there better than what I"ve found on Coursera 22:44 (join) RacketCommitBot 22:44 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/2jCVwg 22:44 RacketCommitBot: racket/master c359e37 Robby Findler: add a toolbar option for being on the top,... 22:44 (part) RacketCommitBot 22:51 (quit) Nisstyre: Ping timeout: 240 seconds 22:51 lewis1711: I don't get prefab structs. what are they for? 22:51 (part) joekarma 22:52 (join) Nisstyre 22:55 (join) mizu_no_oto 23:19 (join) RacketCommitBot 23:19 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/6IhciQ 23:19 RacketCommitBot: racket/master 0936d8c Neil Toronto: Reworked distribution API, finally happy with it (as happy as I can be without being able to partially instantiate polymorphic parent struct types)... 23:19 (part) RacketCommitBot 23:20 tewk: /window 2 23:20 mithos28: tewk: window 2 operational 23:20 (part) digitalcold 23:40 (join) jonrafkind 23:46 (nick) eMBee_ -> eMBee 23:47 lewis1711: if I have some... uh... label. like say the procedure string-append. is there anyway to get "string-append" from that? some magical macro way 23:48 mithos28: maybe, can you put your wanted program somewher? 23:48 mithos28: rudybot: racket-init 23:48 rudybot: mithos28: (require racket/init) 23:49 mithos28: rudybot: ((lambda (f) (object 23:49 rudybot: mithos28: morphir, a list is a Scheme object. QUOTE is a symbol naming a special operator in the usual environment; the rule to evaluate a list whose external representation is (QUOTE ) is simply to yield the object . 23:49 mithos28: rudybot: ((lambda (f) (object-name f)) string-append) 23:49 rudybot: mithos28: your typed/racket sandbox is ready 23:49 rudybot: mithos28: ; Value: string-append 23:49 rudybot: mithos28: ; stdout: "- : Any\n" 23:49 lewis1711: object-name. that'll do :D 23:50 lewis1711: thanks 23:57 asumu: ozzloy: you mean the Racketcon talks? The slides should all be up at con.racket-lang.org 23:58 asumu: muraiki: BTW there's a coursera course using HtDP that's starting next semester, since you seem to be into that kind of thing.