00:12 (quit) veer: Quit: Leaving 00:13 (nick) LeNsTR|off -> LeNsTR 00:17 (nick) dous_ -> dous 00:17 (quit) dous: Changing host 00:17 (join) dous 00:26 (join) jeapostrophe 00:28 (join) mithos28 00:34 (quit) vkz: Quit: vkz 00:42 (quit) realitygrill: Ping timeout: 252 seconds 00:42 (join) realitygrill 01:11 (quit) EmmanuelOga: Ping timeout: 244 seconds 01:16 (nick) LeNsTR -> LeNsTR|off 01:17 (quit) jrslepak: Quit: Leaving 01:19 (quit) jao: Ping timeout: 276 seconds 01:40 (quit) mithos28: Quit: mithos28 02:00 (quit) realitygrill: Quit: realitygrill 02:13 (quit) Frozenlo`: Ping timeout: 240 seconds 02:17 (join) kudkudyak 02:22 (quit) jeapostrophe: Ping timeout: 245 seconds 02:28 (quit) yoklov: Quit: computer sleeping 02:36 (quit) jonrafkind: Ping timeout: 276 seconds 02:37 (quit) kudkudyak: Read error: Connection reset by peer 02:39 (join) kudkudyak 02:41 (quit) dnolen: Remote host closed the connection 02:46 (join) cdidd 03:12 (join) dzhus 03:50 (join) Shvillr_ 03:50 (quit) Shviller: Disconnected by services 03:50 (nick) Shvillr_ -> Shviller 05:03 (join) SHODAN 05:46 (join) masm 05:52 (part) Schokoholic 06:11 aidy: Is it OK to use hash tables for 'objects' in Racket, as you would in Clojure, or would that be very slow? Using structs with their type-specific lookup is a rather annoying... 06:13 (quit) ASau`: Read error: Connection reset by peer 06:40 (join) masm1 06:41 (quit) masm: Ping timeout: 276 seconds 07:49 (join) mceier 08:51 (quit) kudkudyak: Quit: Leaving. 08:51 RacketCommitBot: [racket] plt pushed 2 new commits to master: http://git.io/jhaW-g 08:51 RacketCommitBot: [racket/master] added docs for a&d args of slideshow's dc procedure - Matthew Flatt 08:51 RacketCommitBot: [racket/master] fix docs for `syntax-id-rules' - Matthew Flatt 08:51 bremner: hmm. not an original thought, but the new plot framework is pretty slick 09:15 (quit) dous: Remote host closed the connection 09:17 (join) Blkt 09:36 (quit) Fulax: Ping timeout: 245 seconds 09:50 (join) yoklov 09:55 (join) veer 09:57 (join) jeapostrophe 10:03 (nick) chaozzbubi -> ChaozZBubi 10:06 (join) dous 10:09 asumu: aidy: Probably slower than structs, yeah. You could also use objects. 10:09 asumu: (from racket/class) 10:09 (join) realitygrill 10:09 asumu: bremner: Yeah, it's great. Go Neil Toronto. 10:11 veer: asumu: are you working on generics ? 10:18 asumu: veer: Just playing around, but yes. It'd be nice to have some form of it in Racket. 10:20 veer: you may also want to check my attempt here https://github.com/veer-public/Predicate-Dispatch 10:20 asumu: veer: Great, I will! 10:23 (join) dnolen 10:47 (quit) veer: Remote host closed the connection 10:58 (join) jrslepak 12:01 (quit) tautologico: Quit: tautologico 12:04 (quit) realitygrill: Read error: Connection reset by peer 12:04 (join) realitygrill 12:13 (join) anRch 12:41 (quit) jeapostrophe: Ping timeout: 244 seconds 12:45 (quit) jrslepak: Ping timeout: 248 seconds 12:45 (quit) dnolen: Ping timeout: 248 seconds 12:50 (join) jrslepak 13:07 (quit) anRch: Quit: anRch 13:35 (join) ASau 13:36 (join) dnolen 13:38 (join) vkz 13:59 (join) EmmanuelOga 14:38 (join) jonrafkind 14:49 (quit) cdidd: Remote host closed the connection 14:54 (join) Fulax 14:55 offby1: perl6 apparently has what they call "macros" and "quasi-quoting" ... 14:55 gf3 switches to Perl6 14:55 offby1: https://gist.github.com/1548053 for the curious 15:16 (nick) LeNsTR|off -> LeNsTR 15:16 (quit) dnolen: Remote host closed the connection 15:17 (quit) vkz: Quit: vkz 15:52 (join) stis 16:04 (join) sindoc 16:28 (join) groovy2shoes 16:36 (join) Girffe 16:51 (join) Frozenlock 16:55 (nick) LeNsTR -> LeNsTR|off 16:56 (join) jeapostrophe 17:22 (part) sindoc 17:27 (join) hogehoge 17:29 (part) stis 17:38 (join) dnolen 17:49 (quit) EmmanuelOga: Ping timeout: 244 seconds 17:49 (quit) Girffe: Ping timeout: 245 seconds 17:59 bremner: eli: are optional arguments disabled in pl on purpose? I don't know much about them, but a student had a cute idea of using them for accumulators. 18:03 bremner: I mean, I don't know if there are good reasons not to have them, or just an extra distraction, or what. 18:05 (quit) groovy2shoes: Read error: Connection reset by peer 18:19 (join) groovy2shoes 18:21 (quit) groovy2shoes: Read error: Connection reset by peer 18:25 (quit) mceier: Quit: leaving 18:26 (quit) dnolen: Quit: yes 18:27 (join) groovy2shoes 18:33 (quit) cky: Quit: BRB 18:34 (join) cky 18:49 (join) carleastlund 18:53 (quit) jrslepak: Ping timeout: 276 seconds 19:06 (join) vkz 19:15 (quit) jeapostrophe: Ping timeout: 252 seconds 19:16 (join) kvda 19:18 (quit) Blkt: Remote host closed the connection 19:23 (quit) groovy2shoes: Read error: Connection reset by peer 19:30 (quit) dzhus: Remote host closed the connection 19:34 eli: bremner: Yeah, I intentionally don't include that feature. It will complicate things unnecessarily. 19:35 eli: (My guess about the trick that your student came up with is to have something like (define (foo [accumulator 0]) ...), which I think is common in python.) 19:35 bremner: eli: right. It's not that big a deal, I was just curious. 19:36 bremner: although I'm skeptical people care about tail recursion in python ;) 19:36 eli: I don't remember the context, but I thought that I saw that in some python context... 19:45 (join) jrslepak 20:05 (join) groovy2shoes 20:08 (quit) vkz: Quit: vkz 20:16 em: Please remind me, how do you do less than or equal in racket? 20:16 em: can you just put <= as the operator? 20:18 eli: rudybot: (<= 1 2) 20:18 rudybot: eli: your sandbox is ready 20:18 rudybot: eli: ; Value: #t 20:18 eli: em: ↑ 20:19 (join) vkz 20:23 (quit) groovy2shoes: Quit: It is now safe to turn off your groovebot. 20:27 em: Yep that works thanks. 20:28 (nick) ChaozZBubi -> chaozzbubi 20:33 (join) Girffe 20:34 Girffe: Hey, I just started using Ubuntu for CS, and I installed DrRacket, but I need to be able to run racket files from the terminal 20:34 Girffe: how can I install racket so that it works from the terminal? 20:34 bremner: Girffe: isn't the command "racket" included? 20:35 Girffe: it says, "racket: command not found" when I try to run something from the terminal 20:35 Girffe: I'm using Ubuntu 10.04 and I installed the Debian lenny version, was that the wrong version? 20:36 bremner: probably. 20:36 bremner: where did you get it? 20:37 Girffe: I got the installer from racket-lang.org 20:37 bremner: there is a PPA for ubuntu, I'm not sure if it supports 10.04 20:37 jonrafkind: Girffe, you probably have to run from where oyu installed it 20:37 jonrafkind: did it unpack to a local directory, like racket/ ? 20:38 Girffe: yeah, usr/racket 20:38 jonrafkind: oh you did a unix mode installation 20:38 jonrafkind: were you aware of how you instaled racket? 20:38 jonrafkind: i mean it gives you some choices 20:38 Girffe: I thought I said no to that initial option 20:38 jonrafkind: you should choose a 'normal style' installation 20:38 jonrafkind: as opposed to unix style 20:39 Girffe: I'll try reinstalling, pretty sure I chose the non-unix style though 20:39 jonrafkind: anyway the ppa supports 10.04 20:39 jonrafkind: Girffe, do you have administrator rights (sudo) ? 20:39 Girffe: yeah 20:39 jonrafkind: do you know how to install a ppa 20:39 Girffe: no 20:40 jonrafkind: https://launchpad.net/~plt/+archive/racket/+packages 20:40 Girffe: when I go to install, and I say no to unix style 20:40 jonrafkind: actually use this page https://launchpad.net/~plt/+archive/racket 20:40 Girffe: it asks for a directory 20:40 Girffe: and says /usr/racket is the default 20:40 jonrafkind: click 'read about installing' 20:45 Girffe: So I went through the instructions in read about installing 20:45 Girffe: and it worked, but racket still isn't accepted 20:45 Girffe: the tutorial says you're now ready to start installing things through the ppa, is there another step to actually install racket? 20:46 jonrafkind: sudo apt-get update 20:46 jonrafkind: sudo apt-get install racket 20:48 Girffe: ah, thanks 20:48 Girffe: so now that I did those initial steps, can I install any command just by typing sudo apt-get install command-name? 20:49 jonrafkind: well there has to be a package for it, but usually the package name is the same as the command name 20:50 jonrafkind: the 'racket' command comes from the 'racket' package. you now also have drracket 20:50 jonrafkind: but there is no drracket package 20:50 Girffe: where do you find drracket if you installed it this way? 20:50 jonrafkind: its installed in the same place as racket, in /usr/bin. just type drracket 20:50 jonrafkind: /usr/bin is already in your PATH so your system will find it 20:51 Girffe: ok, thanks for the help! 21:05 (quit) realitygrill: Ping timeout: 252 seconds 21:05 (join) realitygrill_ 21:10 eli: Girffe: With the sh installer, it would have created links in the right places at the end (after asking you). 21:10 eli: jonrafkind: Please don't recommend the unix-style installation blindly, there's a good reason it's not the default. 21:14 (join) SeanTAllen 21:17 (quit) Girffe: Quit: Page closed 21:21 jonrafkind: eli, at what point did I recommend the unix installer? 21:22 (quit) masm1: Quit: Leaving. 21:22 eli: jonrafkind: Sorry, misread. 21:22 eli: (I thought that he did a normal install and you recommended the unix thing.) 21:41 (join) jeapostrophe 21:54 (quit) jeapostrophe: Ping timeout: 252 seconds 22:04 (quit) kvda: Quit: -___- 22:07 (quit) vkz: Quit: vkz 22:08 (join) karswell__ 22:10 (quit) karswell_: Ping timeout: 252 seconds 22:15 em: Could anyone describe how do you start a racket program from the command line in such a way that it takes some arguments ? Like, if you wanted to do: :~$racketapp -arg1 -arg2 -arg3 22:15 em: how would that work so that the args get sent into the program? 22:16 jonrafkind: you can parse (current-command-line-arguments) 22:17 jonrafkind: or there is some macro that helps with that stuff 22:17 em: oh (current-command-line-arguments) sounds very promising. 22:18 jonrafkind: http://docs.racket-lang.org/reference/Command-Line_Parsing.html?q=command-line#(form._((lib._racket/cmdline..rkt)._command-line)) 22:18 rudybot: http://tinyurl.com/6u6d6gv 22:18 em: would you always start a racket application like: racket racketapp 22:19 em: or would you ever be able to just have a standalone racketapp that can be called from the command line? 22:19 (join) cataska 22:19 jonrafkind: you can put #!/usr/bin/racket in your program 22:19 jonrafkind: or make it into an executable with 'raco exe foobar.rkt' 22:22 (join) that 22:22 em: oh well that's great 22:40 (quit) that: Quit: Page closed 22:49 (join) Girffe 22:52 (quit) tauntaun: Remote host closed the connection 22:55 (quit) yoklov: Quit: computer sleeping 23:07 offby1: note that #!/usr/bin/racket isn't nearly enough 23:07 offby1: at least I use a rather long multi-line boilerplate thing that I'm not certain I could entirely explain 23:10 (join) vkz 23:11 (quit) vkz: Client Quit 23:11 (join) yoklov 23:11 jonrafkind: not enough for what 23:22 (join) cdidd 23:33 offby1: I think if you just put #!/usr/bin/racket at the top of your script, it won't work 23:34 offby1: at least, I assume there's a good reason why I'm putting all the boilerplate in _my_ scripts :-| 23:34 (join) EmmanuelOga 23:40 jonrafkind: cat x.rkt 23:40 jonrafkind: #!/usr/bin/env racket 23:40 jonrafkind: #lang racket 23:40 jonrafkind: "hello" 23:40 jonrafkind: ./x.rkt 23:40 jonrafkind: hello 23:40 (join) vkz 23:44 offby1 rubs chin 23:44 offby1: perhaps I'm doing what I'm doing because it _used_ to be necessary 23:48 jonrafkind shoots a rocket launcher at a nearby bridge 23:53 (join) jeapostrophe 23:56 (join) Demosthenes