00:46 (quit) dnolen: Quit: dnolen 02:38 (quit) Lajla: Quit: Phallic Illuminatus 03:16 (join) Lajla 03:22 (join) lucian 03:55 (join) _danb_ 04:07 (quit) jonrafkind: Ping timeout: 246 seconds 04:54 (quit) jao: Remote host closed the connection 05:20 (quit) lucian: Remote host closed the connection 05:56 (join) fjl 05:56 (join) orgs 06:19 (quit) evhan: Ping timeout: 276 seconds 06:29 (join) PLT_Notify 06:29 PLT_Notify: racket: master Robby Findler * 6fff26a (3 files in 3 dirs): 2htdp/image: relax the constraints on 'crop' so that you can crop outside the bounding box - http://bit.ly/f7enHA 06:29 (part) PLT_Notify 06:40 (join) jao 06:40 (quit) jao: Changing host 06:40 (join) jao 06:48 (join) mceier 07:05 (join) PLT_Notify 07:05 PLT_Notify: racket: master Eli Barzilay * 59be514 (2 files in 2 dirs): Use LGPL, after permission from Dorai and Jens - http://bit.ly/eWr0hS 07:05 (part) PLT_Notify 07:16 (quit) _danb_: Read error: Operation timed out 07:47 (join) PLT_Notify 07:47 PLT_Notify: racket: master Kathy Gray * 7758f50 (6 files in 3 dirs): Addition of define-wish to the teaching languages and corresponding addition of support for wishes in test reports and check-expects - http://bit.ly/eDF3dU 07:47 (part) PLT_Notify 07:59 (join) masm 09:28 (join) PLT_Notify 09:28 PLT_Notify: racket: master Kathy Gray * 4311f34 (1 files in 1 dirs): Documentation for how wishes are used within the Beginner language. - http://bit.ly/hEhVAs 09:28 (part) PLT_Notify 09:28 (join) Gertm 09:35 (join) mithos28 09:46 (join) Fare 09:49 (join) dnolen 09:51 (join) evhan 09:53 (join) MayDaniel 09:53 (quit) mithos28: Quit: mithos28 09:55 (quit) Lajla: Ping timeout: 240 seconds 10:14 (join) mithos28 10:46 (quit) dnolen: Quit: dnolen 10:49 (join) dnolen 10:51 (nick) samth_away -> samth 11:01 (nick) clklein_ -> clklein 11:03 (quit) shofetim: Ping timeout: 268 seconds 11:03 (quit) dnolen: Quit: dnolen 11:22 (quit) MayDaniel: 11:27 (join) anRch 11:41 (quit) jao: Ping timeout: 240 seconds 11:57 (quit) anRch: Quit: anRch 12:06 (join) anRch 12:09 (join) jonrafkind 12:30 (join) Agari 12:39 (quit) anRch: Quit: anRch 12:42 (join) lucian 12:42 (quit) mithos28: Quit: mithos28 12:44 (join) mithos28 12:45 (quit) mithos28: Read error: Connection reset by peer 12:46 (join) mithos28 12:47 (join) orgs` 12:48 (quit) orgs: Ping timeout: 260 seconds 12:53 (quit) fjl: Remote host closed the connection 12:56 (join) MayDaniel 13:07 (quit) orgs`: Remote host closed the connection 13:12 (join) MayDaniel_ 13:15 (quit) MayDaniel: Ping timeout: 246 seconds 13:22 (quit) MayDaniel_: Read error: Connection reset by peer 13:22 (join) MayDaniel_ 13:35 (join) jesusito 13:45 (part) Gertm: "C-x C-k" 14:03 (quit) MayDaniel_: 14:05 (join) anRch 14:45 (join) abbe_ 14:45 (quit) abbe: Disconnected by services 14:46 (quit) abbe_: Changing host 14:46 (join) abbe_ 14:46 (nick) abbe_ -> abbe 14:54 (join) Lajla 14:54 (quit) anRch: Quit: anRch 15:12 (quit) Agari: Ping timeout: 240 seconds 15:13 Demosthenes: so #lang racket vs #lang racket/load, i've split a large program into multiple files, but i'd rather "include" them than treat them as a module with new namespace... 15:14 Demosthenes: seems that the different between racket and racket/load... 15:14 (join) lucian_ 15:14 (quit) lucian: Ping timeout: 276 seconds 15:14 Demosthenes: but is it kosher to have #lang twice, once for real external modules, and then again w/ load to include my files? 15:15 samth: Demosthenes, racket/load is primarily for quick experimentation 15:15 samth: you should use `require' and multiple files written in #lang racket 15:15 Demosthenes: samth: yeah, i just had to split for clarity... 15:15 (nick) lucian_ -> lucian 15:16 Demosthenes: the issue i had there was suddenly i had to re-require database modules, and such.. 15:16 Demosthenes: or other portions of the program, internally started getting stacks of requirements because they were smaller portions 15:16 samth: i don't understand 15:16 Demosthenes: no one split is really a full module unto itself. 15:16 Demosthenes: i split for legibility 15:16 samth: what is a full module? 15:17 samth: anything can be a module, even just one definition 15:17 Demosthenes: i'm sorry, i still think in perl terms ;] 15:17 Demosthenes: i think of a module as having a definite namespace, providing (exporting) specific items and performing one encapsulated function or functions... 15:17 Demosthenes: like most of the planet libs 15:17 samth: that's what modules in racket do too 15:17 Demosthenes: ok... 15:18 Demosthenes: i split not to make modules, just to use multiple files for sanity 15:18 samth: so i'm still confused as to what your problem is 15:18 Demosthenes: i need #include, not modules. 15:18 samth: those should be modules 15:18 samth: no, you never need #include 15:18 Demosthenes: the dependency chains started becoming a mess when they are setup as modules... 15:18 (join) SinDoc 15:18 Demosthenes: suddenly, a split had to require everything the main prog required too... 15:18 Demosthenes: etc. 15:19 samth: why is that a problem? 15:19 Demosthenes: massive duplication 15:20 Demosthenes: thats why i'm trying to differentiate between the #include and module idea 15:20 samth: massive duplication of what? 15:20 samth: how many modules are we talking about? 15:21 Demosthenes: i've split one big file into about 20 smaller ones in 2 subdirs... 15:21 Demosthenes: its really a logical stub layout :P 15:21 samth: that sounds like a good refactoring 15:21 Demosthenes: because i see them as all part of one program, (not that i'm using bulk global variables or anything), i'd rather they just load into the main namespace after the root program requires all the libs 15:22 Demosthenes: atm, each module has to re-require every lib, and other modules. 15:22 Demosthenes: and yeah, i'm rapidly prototyping... i may later go back and make contracts and modularize things when i see the how the final design has grown... 15:23 (nick) abbe -> everyone 15:23 Demosthenes: so... can i mix racket and racket/load in the root file, racket for real modules, and racket/load to include my parts? 15:23 (nick) everyone -> abbe 15:23 samth: if you want to abstract over require, use a macro 15:24 samth: you should not use racket/load (or `include') to develop software 15:25 (join) MayDaniel 15:27 (quit) mceier: Quit: leaving 15:28 Demosthenes: that's like saying goto is evil. ;] 15:28 Demosthenes: *strike!* two sacred cows in one afternoon ;] 15:29 Demosthenes: looks like i can't mix, its not valid in the same file, but the behavior i wanted works with /load... for now. 15:29 (join) mceier 15:41 samth: Demosthenes, i'm still having a hard time believing that having to require a couple extra files is such a burden 15:46 (quit) SinDoc: Ping timeout: 276 seconds 15:53 (join) SinDoc 16:00 (join) PLT_Notify 16:00 PLT_Notify: racket: master Matthew Flatt * a01b743 (0 files in 0 dirs): remove file that was added accidentally 16:00 PLT_Notify: racket: master Matthew Flatt * 137d96c (21 files in 8 dirs): multi-column support in list-box% 16:00 PLT_Notify: racket: master commits 4311f34...137d96c - http://bit.ly/gyKTDG 16:00 (part) PLT_Notify 16:14 (part) jesusito: "ERC Version 5.3 (IRC client for Emacs)" 16:17 (quit) MayDaniel: Read error: Connection reset by peer 16:24 (join) Agari 16:50 samth: jeapostrophe, drdr saves the day :) 16:57 (join) bmaland 17:37 (join) jasond`` 17:37 (join) mwolfe 17:39 jasond``: does anyone know of a good "repeat" macro? 17:41 samth: (for ([_ (in-range times)]) body) 17:41 samth: or: 17:41 samth: (define-syntax-rule (repeat n body ...) (for ([x (in-range n)]) (let () body ...))) 17:42 (quit) lucian: Read error: Connection reset by peer 17:42 (join) lucian 17:44 jasond``: thanks. 17:58 (quit) mithos28: Quit: mithos28 18:03 (quit) SinDoc: Ping timeout: 240 seconds 18:03 (join) SinDoc 18:09 (quit) SinDoc: Ping timeout: 246 seconds 18:11 (quit) masm: Ping timeout: 272 seconds 18:15 (join) corruptmemory 18:28 (join) MayDaniel 18:42 (join) mithos28 19:01 (quit) mithos28: Quit: mithos28 19:14 (join) mithos28 19:22 (quit) lucian: Remote host closed the connection 19:33 (join) SinDoc 19:35 SinDoc: In (syntax-case stx () (pattern result-expr)), is there a way to construct a pattern programmatically? 19:35 (join) masm 19:35 samth: SinDoc, no 19:35 samth: but you could write a macro that expands into that 19:36 samth: or you could destructure the syntax object programmatically 19:37 SinDoc: samth: Thanks. I'm actually writing a macro that generates syntax-case but the patterns come from runtime; 19:38 Lajla: Macro expansions happen at compile time. 19:41 SinDoc: Sure 19:42 SinDoc: https://github.com/sindoc/objective-racket/blob/experiment-20110220/src/objective-racket/check.rkt 19:42 rudybot: http://tinyurl.com/4s5p6q6 19:43 (quit) Agari: Quit: Quit 19:43 SinDoc: In Line 57, I'm trying to fetch the pattern that's bound at runtime 19:45 Lajla: So, you're making a program that contructs a syntax-case form in S-expression form? 19:45 Lajla: You're basically automating macro writing? 19:46 SinDoc: True 19:48 (join) tauntaun 19:48 Lajla: SinDoc, and what you want is that the pattern it evaluates to is also considered as a macro for further expansion? 19:49 (quit) mceier: Quit: leaving 19:49 tauntaun: I am tauntaun. Feed me. 19:50 SinDoc: Lajla: the issue is that I cannot have anything that evaluates to a pattern at runtime 19:51 Lajla: SinDoc, you cannot. 19:51 Lajla: macro expansion happens at compile time. 19:51 Lajla: What happens with macro is that it re-writes the S-expressions basically before it compiles, and then compiles that. 19:51 Lajla: The S-expressions typically no longer exist at run-time. 19:52 SinDoc: Lajla: Thanks; Talking about it actually helped 19:53 Lajla: SinDoc, to be fair, your quaestion was kind of vague. =P 19:53 SinDoc: I'll try to generate a (define-for-syntax 'the-pattern) 19:55 SinDoc: Lajla: Sorry, I'll give more context in the future then 19:55 Lajla: It's okay. 19:55 Lajla: Because inside all that chaos 19:55 Lajla: I will find your mind. 19:55 Lajla: And learn a little bit more. 19:59 SinDoc: ;) 20:02 (quit) MayDaniel: Read error: Connection reset by peer 20:19 (quit) tauntaun: Quit: Ex-Chat 20:19 (join) tauntaun 20:27 (quit) mithos28: Quit: mithos28 20:29 (join) mithos28 20:34 (quit) SinDoc: Ping timeout: 250 seconds 20:46 (nick) samth -> samth_away 21:29 (join) SinDoc 21:40 (quit) mithos28: Quit: mithos28 21:41 SinDoc: Lajla: Earlier issue is resolved https://github.com/sindoc/objective-racket/blob/experiment-20110220/src/objective-racket/check.rkt 21:41 rudybot: http://tinyurl.com/4uotjsu 21:43 (quit) jonrafkind: Ping timeout: 246 seconds 21:46 SinDoc: I understand that in order have syntax-highlighting for Racket on GitHub, a certain FOSS project should provide support for it, right? 21:52 SinDoc: i.e. http://pygments.org/ 21:56 Lajla: SinDoc, then if you could resolve it, I am not sure I ever understood your issue correctly. 21:57 SinDoc: Lajla: No, you were right 21:57 Lajla: SinDoc, then how could you solve it. 21:57 Lajla: As far as I know, you cannot let macros depend on runtime info. 21:57 (join) mithos28 21:58 (quit) mithos28: Client Quit 21:58 SinDoc: Now, I manage a compile-time state, whereas before, I wanted to fetch the state at runtime 21:58 Lajla: SinDoc, ah 21:58 Lajla: yes, then it is possible. 22:01 (quit) corruptmemory: Ping timeout: 240 seconds 22:05 SinDoc: Had we been allowed to dynamically construct patterns, I would have been able to manage the state at runtime; 22:08 tauntaun , turning pedant for an intolerable moment, notes the split infinitive. 22:09 (quit) tauntaun: Quit: Ex-Chat 22:09 (join) PLT_Notify 22:09 PLT_Notify: racket: master Robby Findler * 2704b57 (2 files in 1 dirs): changed compiled/ to "compiled" in English, drop the / in French, and leave the rest to translators ... - http://bit.ly/fapUCw 22:09 (part) PLT_Notify 22:11 (join) mithos28 22:12 (quit) mithos28: Client Quit 22:15 (quit) mwolfe: Remote host closed the connection 22:45 (join) mithos28 22:49 (quit) askhader: Quit: Lost terminal 22:55 Lajla: SinDoc, well, how would that even work? 22:55 Lajla: Macros work by rewriting the source code before compilation 22:58 (quit) mithos28: Quit: mithos28 22:58 SinDoc: Lajla: By generating something that evaluates to a pattern consumed by syntax-case 22:59 Lajla: SinDoc, yes, but runtime information is only known after the source code rewriting is done. 22:59 Lajla: After all, it is only known at run time. 23:00 Lajla: So how could this in any way be used to influence how the source code transformation is done. 23:02 SinDoc: I'm not saying otherwise. Let's say I'd generate the following: (syntax-case form () (an-id-that-evals-to-pattern #'(foo))) 23:03 SinDoc: which is possible 23:03 Lajla: Technically it's not, but I guess what you mean 23:03 SinDoc: the problem, though is that we cannot bind anything at runtime that would evaluate to a pattern 23:03 Lajla: That is true. 23:04 SinDoc: That's why I dropped and fetched the pattern at compile-time 23:05 (join) mithos28 23:05 SinDoc: i.e. dropped the idea