00:00 asasdasd: they say Racket.exe -f is bad... 00:01 asumu: So you should be able to (require ...) the module from the REPL 00:01 asumu: And then call main 00:02 asasdasd: cool 00:02 asasdasd: nooooo, then i'm still in the repl 00:02 asasdasd: and i can't enter text to standard in 00:02 asumu: It seems to work for me. Entering text, that is. 00:03 asasdasd: you don't get the > rompt? 00:03 asumu: Oh huh, didn't work this time. 00:03 asumu: Anyway, you can also run it with racket -tm your-file.rkt 00:04 asasdasd: tm? 00:04 asumu: -t requires the file, and -m will run the `main` function. 00:04 asasdasd: that exits almost immediately 00:05 asasdasd: eww i have to call main 00:05 asasdasd: yeah still exits 00:05 asumu: Or do a thread-wait or something. 00:05 asasdasd: like the threads don't keep it running.... 00:06 asumu: Yeah, the main thread will exit unless you wait on the sub-threads. 00:07 asasdasd: ok.. 00:07 asasdasd: I thnk it's working 00:07 asasdasd: nice! thanks man 00:07 asasdasd: there's no easier way? 00:10 asumu: I think that's the easiest way, but I could be wrong. 00:10 asasdasd: heh ok thanks for the help 00:11 asumu: asasdasd: also, if you don't want to define a main function, you can use a main "submodule" instead: http://docs.racket-lang.org/guide/Module_Syntax.html#(part._submodules) 00:11 asasdasd: that sounds like witchcraft... 00:12 asumu: It's actually not too complicated. The contents of the main submodule are run automatically with the racket executable. 00:13 (join) spiderweb 00:16 asasdasd: asumu: do you mean: (module main racket ... ) 00:16 asasdasd: and what does "racket:" mean in that position? 00:20 asumu: asasdasd: that's the language that module is written in. It's like the #lang at the top of a normal module. 00:20 asumu: The easiest way to declare a main submodule is (module+ main ... some stuff here ...) 00:21 asasdasd: modukle+? 00:21 asasdasd: im reading 00:21 asasdasd: about it 00:21 asumu: It lets you define a submodule that inherits the definitions you have in the outer module. 00:21 asumu: So you can write some functions in your module normally, then use them inside of a (module+ main ...) 00:22 asasdasd: oh 00:24 asasdasd: I'll just define a main 00:27 ozzloy: asasdasd, submodules are actually the bomb 00:27 asasdasd: why? 00:27 ozzloy: asasdasd, you know how in python or ruby you have to do something like if __FILE__ == __MAIN__ then MAINSTUFF 00:27 asasdasd: yeah 00:28 ozzloy: and you know how when you write unit tests, you want them to run only during development? 00:28 asasdasd: well, you dont have to 00:28 asasdasd: ok 00:28 ozzloy: and not slow down execution during production runs? 00:28 asasdasd: ok 00:28 ozzloy: turns out those can be seen as the same problem 00:28 ozzloy: code that you want to run sometimes 00:28 asasdasd: ok 00:28 ozzloy: submodules solves that problem in a well defined way 00:30 ozzloy: another example is documentation 00:30 asasdasd: you need a command line argument to run the test submodule? 00:30 ozzloy: yes 00:30 ozzloy: raco test file.rkt 00:31 ozzloy: and it's less hacky than checking if the file that was run is the file that the code is currently executing 00:31 ozzloy: anyways, bbiaf 00:31 asasdasd: so raco test inports or uses the test submodule? 00:31 asasdasd: ok thanks 00:31 ozzloy: correct 00:53 (quit) jeapostrophe: Ping timeout: 260 seconds 01:01 (join) mithos28 01:11 (quit) dnolen: Ping timeout: 245 seconds 01:21 (quit) spiderweb: Quit: leaving 01:22 (quit) sirdancealot: Ping timeout: 246 seconds 01:22 (join) spiderweb 01:23 (part) asasdasd 01:23 (join) sirdancealot 01:28 (join) mizu_no_oto 01:28 (join) sw2wolf 01:47 (join) Nisstyre-laptop 02:00 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 02:12 (quit) francisl: Ping timeout: 265 seconds 02:33 (join) samrat 02:36 (join) samrat` 02:38 (quit) samrat: Ping timeout: 255 seconds 02:42 (quit) samrat`: Remote host closed the connection 03:00 (quit) jonrafkind: Ping timeout: 252 seconds 03:05 (quit) spiderweb: Quit: λ 03:10 (join) spiderweb 03:34 (join) ThePawnBreak 03:42 (join) dch_ 03:43 (nick) dch_ -> dch 03:49 (quit) spiderweb: Remote host closed the connection 03:51 (quit) mithos28: Quit: mithos28 03:51 (join) spiderweb 04:08 (quit) sw2wolf: Quit: ERC Version 5.3 (IRC client for Emacs) 04:29 (join) myx 04:45 (join) bitonic 04:51 (join) dch 05:22 (join) mye 05:30 (quit) dch: Ping timeout: 265 seconds 05:39 (join) dch 05:39 (quit) dch: Excess Flood 05:41 (join) dch 05:41 (quit) Nisstyre-laptop: Ping timeout: 264 seconds 05:41 (join) add^_ 06:08 (nick) dch -> dch|away 06:33 (join) soegaard 06:34 (quit) cdidd: Ping timeout: 252 seconds 06:44 (join) MayDaniel 07:09 (join) dch 07:11 (quit) dch: Excess Flood 07:12 (join) dch 07:28 (quit) spiderweb: Ping timeout: 265 seconds 07:32 (quit) bitonic: Read error: Connection reset by peer 07:33 (join) bitonic 07:37 (quit) dch: Quit: how now brown cow? 07:55 (quit) soegaard: Quit: soegaard 08:07 (join) jeapostrophe 08:07 (quit) jeapostrophe: Changing host 08:07 (join) jeapostrophe 08:11 (join) masm 08:18 (quit) bitonic: Remote host closed the connection 08:27 (join) bitonic 08:42 (join) soegaard 08:46 (join) dch 09:03 (quit) bitonic: Remote host closed the connection 09:04 (join) bitonic 09:11 (quit) masm: Ping timeout: 248 seconds 09:17 (join) RacketCommitBot 09:17 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/MEPalg 09:17 RacketCommitBot: racket/master 99301c1 Mike Sperber: Synch German string constants with latest. 09:17 (part) RacketCommitBot 09:27 (join) asdasdasd 09:28 asdasdasd: Why does this (cadr '("hello", "there")) eval to ',"there" ? 09:28 asdasdasd: and not to just "there" ? 09:29 asdasdasd: and why does using quasiquote make it eval to "there" ? 09:30 (join) masm 09:30 asdasdasd: oh heh 09:31 bremner: I guess you figured out you don't want commas in racket lists? 09:31 asdasdasd: yeah 09:31 asdasdasd: the comma is an unquote? 09:32 asdasdasd: but it's part of "there" since the whole thing is just regular quoted? 09:38 (join) spiderweb 09:46 (join) anRch 09:48 bremner: right 09:48 bremner: although I'm a bit surprised it's not part of "here" 09:58 (quit) soegaard: Quit: soegaard 10:22 (join) bitonic` 10:24 (quit) bitonic: Ping timeout: 248 seconds 10:51 (join) mithos28 10:58 (quit) asdasdasd: 11:08 (join) hash_table 11:11 (nick) dch -> dch|away 11:14 (quit) anRch: Quit: anRch 11:20 (join) dch 11:24 (join) soegaard 11:25 (quit) mithos28: Quit: mithos28 11:32 (quit) dch: Ping timeout: 244 seconds 11:37 (join) mithos28 11:37 (join) francisl 11:42 (join) cdidd 11:52 (quit) jeapostrophe: Ping timeout: 264 seconds 12:11 (join) dch 12:13 (quit) hash_table: Ping timeout: 255 seconds 12:27 (quit) dch: Quit: dch is taking a nap... 12:31 (join) RacketCommitBot 12:31 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/akSf1Q 12:31 RacketCommitBot: racket/master 022e252 Robby Findler: add support for ╔ ═ ╗ ║ ╚ and ╝ to the latex renderer... 12:31 (part) RacketCommitBot 12:34 (join) Dan_ 12:35 Dan_: Hello, I downloaded Debian 64bit 5.3.1 - Where do I find the "Add Teachpack" function? 12:35 (quit) francisl: Quit: francisl 12:36 mithos28: In the language menu in drracket 12:36 (join) bitonic`` 12:36 Dan_: Choose Language -> Beginning Student show "teach packs <>" 12:36 Dan_: but I do not see an add teach pack button 12:36 (quit) bitonic`: Ping timeout: 252 seconds 12:37 mithos28: Is there not an add teachback button below choose language? 12:37 Dan_: No 12:37 mithos28: Interesting. That is where it is for me 12:38 Dan_: What version are you running? 12:38 mithos28: can you try switching to intermediate student 12:38 (join) jonrafkind 12:38 mithos28: 5.3.1 (2f4c6774) 12:38 mithos28: on os x 12:38 Dan_: Still not there 12:39 Dan_: I am running Ubuntu 12.04 12:41 mithos28: http://imgur.com/N6EBk 12:41 mithos28: that is my ui 12:43 Dan_: Looks like the ubuntu version is broken 12:43 Dan_: I have a windows machine I can try 12:43 Dan_: -- anybody else here use drracket on Ubuntu 12.04 with teach packs? 12:51 (quit) soegaard: Quit: soegaard 12:59 (join) soegaard 13:00 vyz: I use drracket on 12.10 13:06 Dan_: vyz do you see an option to add a teach pack? 13:10 (nick) bitonic`` -> bitonic 13:11 Dan_: OK I fired it up on Windows. I see a line of menu items along the top of the application window - none of these are displayed in my ubuntu version 13:11 Dan_: one of them Language->Add Teachpacks is what I need under ubuntu 13:11 Dan_: ... I wonder if it is a GUI/Deskop issue 13:12 bremner: maybe, I'm just installing 5.3.1 on this debian machine... 13:15 Dan_: vyz, bremmer - please let me know if you find a an Add Teach Pack option (and where you find it) 13:15 Dan_: thanks! 13:15 bremner: Dan_: I see Language -> add teach pack 13:15 Dan_: Is it along the top? 13:15 bremner: under the language menu 13:15 Dan_: (top menu item?) 13:16 bremner: yes 13:17 Dan_: OK, so my ubuntu 12.04 doesn't have that menu item displayed along the top 13:17 bremner: are you running unity? 13:17 Dan_: if that is the default, yes 13:18 Dan_: are you? 13:18 bremner: I'm running debian. And I'm running the official debian package for 5.3.1 13:19 Dan_: I think I will uninstall and reinstall 13:20 vyz: ok, when I go into languages, I see choose language 13:20 vyz: that gives me a choice from experimental langs, legacy languages, and 2 teaching languages 13:20 vyz: idk if thats what you're looking for 13:20 vyz: i don't see anything about anything "teachpack" 13:21 vyz: im running 5.2.1, gonna update 13:21 Dan_: I think it is a ubuntu / unity issue 13:22 vyz: maybe 13:22 Dan_: vyz are you doing an apt-get install 13:22 Dan_: or downloading from racket.org? 13:22 vyz: apt-get upgrade 13:23 Dan_: $ drracket Gdk: IA__gdk_window_thaw_updates: assertion `impl_window->update_freeze_count > 0' failed Gdk: IA__gdk_window_thaw_updates: assertion `impl_window->update_freeze_count > 0' failed 13:23 Dan_: Some error message come up when I launch it 13:23 vyz: if it got fixed in 5 3 1, there's probably something on the changelog, i just dont know where that is 13:26 Dan_: Looks like people have had a similar problem before: 13:26 (join) Kaylin 13:26 Dan_: IRC 20111018.txt: 13:26 Dan_: 14:50 toastbrot: hey guys. im new to this. i installed drracket a couple hours ago. im runnin ubuntu 11.10 with gnome 3. if i start ddracket im gettin a wrong GUI in drracket. the console says "Gdk: IA__gdk_window_thaw_updates: assertion `impl_window->update_freeze_count > 0' failed 14:50 toastbrot: ". i made a screenshot, so you can see what i mean. http://img843.imageshack.us/img843/7963/bildschirmfotoam2011101c.png any ideas? 14:52 t 13:30 (join) dnolen 13:35 (quit) Kaylin: Quit: Leaving. 13:40 (quit) Dan_: Quit: Page closed 13:43 (join) Kaylin 13:45 (join) Dan_ 13:48 (join) bitonic` 13:57 (join) dch_ 13:57 (quit) soegaard: Quit: soegaard 14:01 (nick) dch_ -> dch 14:09 (join) bitonic`` 14:10 (quit) bitonic`: Ping timeout: 264 seconds 14:15 (join) soegaard 14:29 (join) Fare 14:40 (quit) Kaylin: Quit: Leaving. 14:48 (join) mizu_no_oto 14:48 (quit) bitonic``: Ping timeout: 255 seconds 14:51 vyz: if they made a movie of my life, it would be called Please Wait: The Musical: The Movie 14:57 (join) jeapostrophe 14:57 (quit) jeapostrophe: Changing host 14:57 (join) jeapostrophe 14:58 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 15:02 (join) mizu_no_oto 15:03 (join) bitonic 15:33 (quit) jeapostrophe: Ping timeout: 265 seconds 15:35 (quit) Fare: Ping timeout: 250 seconds 15:36 (join) Nisstyre-laptop 15:39 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 15:44 (join) nejucomo 15:51 (quit) soegaard: Quit: soegaard 15:55 (quit) nejucomo: Remote host closed the connection 15:58 (join) gridaphobe 16:05 (quit) Shvillr: Read error: Connection reset by peer 16:11 (join) Shvillr 16:11 (join) mizu_no_oto 16:17 (join) soegaard 16:17 (quit) jonrafkind: Ping timeout: 250 seconds 16:29 (quit) cdidd: Remote host closed the connection 16:35 (quit) dca: Ping timeout: 245 seconds 16:41 (quit) mithos28: Quit: mithos28 16:44 (quit) Dan_: Quit: Page closed 16:51 (join) dca 16:56 (join) jeapostrophe 16:56 (quit) jeapostrophe: Changing host 16:56 (join) jeapostrophe 17:01 (quit) jeapostrophe: Ping timeout: 245 seconds 17:18 dented42: I'm playing with scribbles literate programming module, why can I not typeset my literate document directly with scribble, why do I need to use the (lp-include …) form into a different document and typeset that? 17:19 (join) mithos28 17:22 (quit) soegaard: Quit: soegaard 17:26 (join) soegaard 17:49 (quit) mithos28: Quit: mithos28 18:00 dented42: and why do 'chunks' in the literate programming language use brackets instead of braces? they are harder to type in DrRacket due to the overloading of the bracket keys, as well as seeming to be quite inconsistant. I'm curious as to what the reasoning behind this decision is. 18:05 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 18:08 (join) mizu_no_oto 18:19 (join) netrino 18:21 (join) acarrico 18:25 (quit) masm: Quit: Leaving. 18:28 (quit) soegaard: Quit: soegaard 18:35 (quit) Nisstyre-laptop: Quit: Leaving 18:39 dented42: oh, right. that's the syntax for at-expressions 18:39 dented42 is a silly 18:40 (quit) add^_: Quit: The Garbage Collector got me... 18:45 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 19:13 (join) jeapostrophe 19:13 (quit) jeapostrophe: Changing host 19:13 (join) jeapostrophe 19:15 (quit) MayDaniel: Read error: Connection reset by peer 19:23 (join) jonrafkind 19:33 (quit) jeapostrophe: Ping timeout: 255 seconds 19:37 (join) mizu_no_oto 19:42 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 19:46 (join) tilde` 19:55 (join) mizu_no_oto 19:56 (join) bitonic` 19:56 vyz: this sounds dumb, but is there any way to have a repl in a terminal, outside of drracket? is there some flag I can pass when executing a .rkt to let me interact with it? 19:56 (quit) bitonic`: Remote host closed the connection 19:58 (quit) bitonic: Ping timeout: 264 seconds 20:01 bremner: vyz: http://docs.racket-lang.org/xrepl/index.html?q=xrepl 20:03 vyz: ok awesome 20:04 vyz: thanks bremner 20:04 vyz: i realized that par matching and a repl was all I really wanted 20:04 vyz: and dr's ram habits have been irking me for quite some time 20:05 (join) sw2wolf 20:07 (join) dyoo 20:08 (join) mye_ 20:10 (quit) mye: Ping timeout: 248 seconds 20:10 (nick) mye_ -> mye 20:12 (join) Kaylin 20:19 (quit) karswell: Ping timeout: 252 seconds 20:30 (quit) Kaylin: Quit: Leaving. 20:33 (join) karswell 20:33 (join) bitonic 20:35 (join) kofno 20:38 (quit) mizu_no_oto: Quit: Computer has gone to sleep. 20:40 (quit) ThePawnBreak: Ping timeout: 248 seconds 20:50 (quit) tilde`: Quit: kthxbai 20:56 (join) mizu_no_oto 20:59 (quit) bitonic: Ping timeout: 265 seconds 21:04 (join) ThePawnBreak 21:04 (join) netrino_ 21:04 (quit) netrino_: Client Quit 21:18 (quit) sw2wolf: Remote host closed the connection 21:36 (quit) dnolen: Quit: ERC Version 5.3 (IRC client for Emacs) 21:38 (quit) myx: Quit: ушёл 21:45 (quit) gridaphobe: Read error: Connection reset by peer 22:09 (join) Sgeo 22:09 Sgeo: Ok, I think custodians are pretty cool 22:09 Sgeo: (Reading through the Systems Programming thing) 22:10 Sgeo: "If the current custodian is shut down before a procedure is called to create a managed resource (e.g., open-input-port, thread), the exn:fail:contract exception is raised." 22:10 Sgeo: That makes no sense 22:10 Sgeo: What's wrong with closing an empty custodian? 22:11 Sgeo: Suppose I open a custodian to manage 0 or more resources? 22:11 Sgeo: Depending on runtime stuff? 22:12 Sgeo: Also, can I hook my own sort of values into custodians 22:12 Sgeo: ? 22:15 (quit) ThePawnBreak: Ping timeout: 250 seconds 22:22 (join) francisl 22:38 (join) mithos28 22:40 (quit) kofno: Remote host closed the connection 22:40 (join) ynniv 22:41 (join) Kaylin 22:52 (join) cdidd 22:55 (quit) mizu_no_oto: Quit: ["Textual IRC Client: www.textualapp.com"] 23:01 (quit) netrino: Remote host closed the connection 23:17 (quit) Kaylin: Quit: Leaving. 23:19 (quit) Shvillr: Ping timeout: 265 seconds 23:19 (join) Shvillr 23:27 (quit) ynniv: Quit: ynniv 23:28 (join) ynniv 23:32 (join) firefux 23:42 (join) jeapostrophe 23:42 (quit) jeapostrophe: Changing host 23:42 (join) jeapostrophe 23:42 (quit) cipher: Ping timeout: 252 seconds 23:44 (join) kofno