00:10 (join) adadglgmut_ 00:13 (quit) adadglgmut: Ping timeout: 240 seconds 01:10 (join) vu3rdd 01:10 (quit) dnolen_: Quit: dnolen_ 01:12 (join) neilv 01:53 (join) writer 02:18 (join) Mehz 02:18 (part) Mehz: "Leaving" 03:17 (quit) adadglgmut_: Read error: Connection reset by peer 03:21 (join) MayDaniel 03:32 (quit) jonrafkind: Ping timeout: 265 seconds 03:34 (quit) MayDaniel: 03:45 (quit) neilv: Ping timeout: 240 seconds 04:06 (quit) Fare: *.net *.split 04:06 (quit) spacebat: *.net *.split 04:06 (quit) offby1: *.net *.split 04:06 (quit) rudybot: *.net *.split 04:06 (quit) Ogion: *.net *.split 04:06 (quit) _p4bl0: *.net *.split 04:06 (quit) PascalHunger: *.net *.split 04:06 (quit) bleakgadfly: *.net *.split 04:06 (quit) alexsuraci: *.net *.split 04:06 (quit) tewk: *.net *.split 04:07 (quit) tcoppi: *.net *.split 04:07 (quit) MarcWeber: *.net *.split 04:07 (quit) mattmight: *.net *.split 04:07 (quit) tonyg: *.net *.split 04:07 (quit) martinhex: *.net *.split 04:07 (quit) chandler: *.net *.split 04:07 (quit) rbarraud: *.net *.split 04:59 (join) spacebat 04:59 (join) mattmight 04:59 (join) tewk 04:59 (join) MarcWeber 04:59 (join) Ogion 04:59 (join) tcoppi 04:59 (join) alexsuraci 04:59 (join) chandler 04:59 (join) rudybot 04:59 (join) PascalHunger 04:59 (join) martinhex 04:59 (join) tonyg 04:59 (join) Fare 04:59 (join) rbarraud 04:59 (join) _p4bl0 04:59 (join) bleakgadfly 04:59 (join) offby1 05:41 (join) masm 08:17 (join) MayDaniel 08:19 Lajla: PascalHunger, solution to what? 08:25 (join) danbrown 08:35 (quit) MayDaniel: 08:39 (quit) danbrown: Quit: danbrown 08:57 (join) adadglgmut 09:12 (join) b-man_ 09:18 (join) jeapostrophe 09:25 (quit) vu3rdd: Remote host closed the connection 09:33 (join) mattmigh` 09:40 (quit) mattmight: Ping timeout: 276 seconds 09:44 (join) mceier 10:23 (join) MayDaniel 10:56 (join) danbrown 11:11 (join) anRch 11:15 (join) sstrickl 11:16 (quit) jeapostrophe: Quit: jeapostrophe 11:58 (join) hanDerPeder 12:00 (join) skrm|new 12:00 (quit) martinhex: Read error: Connection reset by peer 12:08 skrm|new: hello all together. i have a question regarding the Racket REPL. How can I use it within my own programs? I know that there is a command called (read-eval-print-loop), but everytime I use it I get an error ('unbound identifier'), even when I type something simple like '(+ 1 1)'. 12:10 (part) C-Keen 12:10 (quit) anRch: Quit: anRch 12:11 chandler: I don't seem to have that problem. 12:13 chandler: rudybot: eval (parameterize ((current-input-port (open-input-string "(+ 1 2)"))) (read-eval-print-loop)) 12:13 rudybot: chandler: ; stdout: "> 3\n> " 12:14 skrm|new: The Problem is that I want to have a REPL in my roco-built executable where I can execute statements that use my previous definitions. 12:14 Lajla: skrm|new, what do you mean, you mean you want to create a program which evaluate racket expressions and prints the result? 12:15 samth: skrm|new, which previous definitions 12:16 samth: I suspect you need to read about namespaces: http://docs.racket-lang.org/guide/mk-namespace.html 12:16 (join) anRch 12:17 skrm|new: OK, so the problem is that (read-eval-print-loop) gets not executed in the same namespace as my definitions? 12:19 Lajla: skrm|new, what are 'your definitions', the definitions you use in your executable to create it? 12:20 chandler: skrm|new: The namespace where your definitions are evaluated exists at compile time. At run time, the current value of the parameter `current-namespace' is used for the REPL. 12:21 skrm|new: And how can I set current-namespace to this 'namespace where my definitions are executed'? 12:21 chandler: When I asked rudybot to evaluate something using `read-eval-print-loop' above, `current-namespace' was bound to the namespace used by the rudybot REPL. But if you're running the program via "racket foo.ss" or creating an executable via "raco exe", that isn't the case. 12:21 lisppaste: chandler pasted "something like this" at http://paste.lisp.org/display/115539 12:21 (quit) danbrown: Quit: danbrown 12:23 skrm|new: OK, I understand, but how do I reference the namespace where I have done my definitions? 12:24 (join) MayDaniel_ 12:25 lisppaste: chandler annotated #115539 "using namespace anchors" at http://paste.lisp.org/display/115539#1 12:25 chandler: Try something like that. 12:26 (join) YamNad 12:26 (quit) YamNad: Read error: Connection reset by peer 12:26 skrm|new: OK thank you. Works perfectly. 12:28 (quit) MayDaniel: Ping timeout: 276 seconds 12:29 (quit) MayDaniel_: Ping timeout: 240 seconds 12:34 (quit) writer: Remote host closed the connection 12:34 (join) writer 12:36 (join) jonrafkind 12:37 (join) MayDaniel 12:40 _p4bl0: hi everyone, I have a coding style question. Do you think it's a good habit to use CamelCase to name struct? Or should one stick to the usual-scheme-naming? 12:46 (quit) anRch: Quit: anRch 12:48 Lajla: _p4bl0, why not? 12:48 Lajla: Depends on whom you want to read your stuff of course. 12:49 Lajla: But the reason why different languages have different styles, and some languages multiple just shows that none is superior and that it's basically a 'who got their first and managed to shove his praeferred style down to the mouth of those after him' situation. 12:51 _p4bl0: Lajla: it's a school project (we have to code a multiplayer tetris for the network programming course, each of us have to do it in another language we choose, and code a server and a client, and of course any client should be able to communicate with any server) 12:51 Lajla: _p4bl0, so no one has to read your code? 12:51 _p4bl0: Lajla: only the prof, so ya, no one 12:51 _p4bl0: Lajla: but I'd like to upload the project to the PLaneT when I finish it 12:52 Lajla: Then, by all means, screw any convention and go with what you like. If you don't have to read your own code, then use gotos aplenty. 12:52 Lajla: Ahh, ten people do have to read it. 12:52 _p4bl0: Lajla: I'll ahev to read my own code to maintain it 12:52 Lajla: I guess then it would raise some eyebrows if you don't use the conventional styles, luckily you can just make an algorithm that transforms between either. 12:53 _p4bl0: Lajla: as long as it's consistent in the whole project I'm okay with anything, so I'll goo with the-usual-convention 12:53 Lajla: _p4bl0, but this is all very subjective and really unrelated to one's ability to code. Some people need a convention to read code more than others. As a general rule, the younger you are, the more easily you will adapt to weirdly written coding styles. 12:53 _p4bl0: Lajla: thanks 12:55 Lajla: _p4bl0, I can tell you though, that to most people a lot of other things about conventions are going to be worth more than camelcaps vs dashes. 12:55 _p4bl0: Lajla: yup i guess so 12:55 Lajla: Such as when to use if, and when to use when. 12:57 _p4bl0: I usually use the one I think is the more semantically valid in the situation 12:57 _p4bl0: according to me... :-p 12:57 Lajla: I never use when, ahaha 12:57 Lajla: घI used and for one-armed ifs usually. 12:57 Lajla: Because the expression evaluates to #f if the arm is not taken, rather than # offby1 23:26 (quit) offby1: Changing host 23:26 (join) offby1