00:07 (join) jonrafkind 01:57 (quit) Gwyth: Ping timeout: 240 seconds 02:17 (quit) Eren: Read error: Operation timed out 02:18 Demosthenes: right, so i've been trying the log thing because i prefer not to have to add printf's and remove them.... 02:18 Demosthenes: eli: i tried using that snippet, something in the defcommand didn't take, it didn't like the embbedded define 02:21 jonrafkind: you can use a macro to add printf's that you dont want to exist at runtime 02:22 Demosthenes: *sigh* yeah, but i'm in the repl and trying to turn on and off debugging in real time 02:23 Demosthenes: and the default logger doesn't look like it can be modified, you have to start racket with special command line flags or environment vars 02:23 jonrafkind: so have some runtime switch to turn on your own loggers 02:23 jonrafkind: (if verbose? (printf ...) (void)) 02:23 Demosthenes: looks like logging uses async events, and really, i'm brand new to the language 02:24 Demosthenes: yeah, just trying to use what's there first. 02:24 Demosthenes: then i looked at log4scm, which appears to be offline (at least the docs) 02:24 Demosthenes: its the whole reinvent the wheel thing. i thought it was cool that the languge included a logging system... which i can't modify :P 02:25 eli: Demosthenes: Why did you use `defcommand'? The ,log command that I was talking about is part of the whole thing, which you can use as is. 02:26 Demosthenes: eli: i was just hoping the pull the minimum needed. 02:28 eli: Demosthenes: In that case you should look at the code inside that `defcommand' -- but `defcommand' in itself is the way my thing adds toplevel commands, so obviously it won't work by itself. 02:28 eli: But the whole thing is intended to be pretty light-weight in terms of using it. 02:28 Demosthenes: ah 02:28 Demosthenes: yeah, i read it, still greek to me :P 02:29 eli: (BTW, that log4scm thing is ancient, and the guy who wrote it didn't update things for ages.) 02:29 Demosthenes: *nod* 02:29 eli: In any case, if it's greek, then I think that it's better to just stick with the whole thing as is. 02:29 Demosthenes: i figured when it was rolled into base, it wasn't relevant anymore 02:29 eli: Otherwise you can just look at things that are used in there and slowly make your way through the documentation about the various bits. 02:32 Demosthenes: bleah, if there were a wayto just step through code in emacs , i'd likely not bother. 02:32 Demosthenes: i'll revert to print/display/similar for now, just a pita :P 02:34 eli: Stepping won't help much when threads are involved. 02:34 eli: Can you be more specific about what prevents you from using the whole thing as is? 02:35 Demosthenes: just thought the program ought to be self-contained. at the start, specify the log level in code, if it saw something odd, bump it up dynamically. leave all the log statements in and properly graded... 02:36 Demosthenes: i didn't think it an odd use case, coming across languages. yep, i get its an advanced topic... unfortunately i thought it'd be minor or pretty quick being a builtin instead of a bolt-on 02:36 Demosthenes: CL had no decent logging, log5 was kinda eh... and also a pita to setup 02:37 Demosthenes: lib dependencies, asdf, etc. :P 02:37 Demosthenes: just trying not to reinvent the wheel 02:37 eli: re "self-contained" -- you're still relying on a bunch of libraries, think about this as yet another one. 02:38 eli: re "if it saw something odd" -- are you saying that when something goes wrong then it starts spitting out log messages? That would be a pretty odd thing to do. 02:38 Demosthenes: say you're prompting text in a menu, it'd be easy to ask the user if they wanted to adjust the log level 02:38 Demosthenes: the goal was to do it on the fly, not restart 02:39 eli: "prompting text in a menu"? 02:39 Demosthenes: ie: console app? choice 1 does x, choice 2 does y, come back to main menu... 02:39 Demosthenes: i didn't think it was odd. 02:40 eli: Sorry, I'm still not following that... 02:40 (quit) Fare: Quit: Leaving 02:40 Demosthenes: heck, everyone seems to try and duplicate log4j, which allows crazy things like files in the user's home dir to adjust logging on the fly during execution 02:40 Demosthenes: thats ok, not worth the time 02:41 Demosthenes: i already wasted my evening chasing it down, trying to do it the "proper" way using what's in the lang without introducing a dependency..... i'll just make my own. 02:41 Demosthenes: otherwise geiser has been pretty neat, its been a great way to overcome the minor sytnax issues while converting mentally over from CL ;] 02:42 eli: I know little about log4j beyond "some java logging thing" (but wiring log output into files would be easy). 02:42 Demosthenes: you ought to read up on it sometime, log4j is just crazy what it can do 02:42 Demosthenes: and way overkill 02:42 Demosthenes: night ;] 02:42 eli: As for what you're trying to do, I still can't figure out if you want some user action (menu?) to start logging, or some code that starts to log itself when it detects that something is wrong. 02:43 eli: (I prefer smaller functionality that can be generalized easily for the crazy stuff instead of some huge over-engineered API.) 02:47 (quit) jonrafkind: Ping timeout: 272 seconds 04:10 (join) hanDerPeder 06:42 (join) lucian 06:54 (join) b-man_ 07:28 (quit) lucian: Remote host closed the connection 07:58 (join) lucian 07:59 (quit) lucian: Client Quit 08:17 (quit) cinch: Quit: ZNC - http://znc.sourceforge.net 08:19 (join) cinch 08:27 (join) masm 08:32 (quit) b-man_: Remote host closed the connection 08:39 (quit) em: Ping timeout: 250 seconds 08:49 (join) em 08:52 (quit) jao: Ping timeout: 245 seconds 08:53 Demosthenes: eli: i think an excellent example is simply raising the log level (say from errors to info) in one piece of code only ;] 09:01 (quit) em: Ping timeout: 265 seconds 09:22 (join) em 09:25 (join) b-man_ 09:29 (quit) xian: Remote host closed the connection 09:43 (nick) samth_away -> samth 10:04 (quit) em: Ping timeout: 260 seconds 10:19 (join) em 10:25 (join) MayDaniel 10:34 (quit) cinch: Quit: ZNC - http://znc.sourceforge.net 11:07 (quit) b-man_: Remote host closed the connection 11:10 (quit) asumu: Read error: No route to host 11:20 (join) anRch 11:33 (join) sstrickl 11:36 samth: jeapostrophe, something is wrong with the drdr machine 11:36 sstrickl: yeah 11:36 sstrickl: I was just about to send an email about that to him 11:37 samth: an email would be good too 11:37 sstrickl: well, sorry, am still sending an email to him about it :) 11:37 jeapostrophe: why do you say that? 11:37 samth: (gracket:19682): Gdk-WARNING **: shmget failed: error 28 (No space left on device) 11:38 jeapostrophe: why do you think that is a problem with the machine? 11:41 jeapostrophe: all my /proc/sys/kernel/shm* limits are very high 11:41 jeapostrophe: ulimit is not imposing anything on that either 11:43 sstrickl: Well, while it's possible that the conversion of struct/c from a flat (sometimes unsound) contract to a sometimes higher-order contract might have increased memory usage, I have not seen that locally in my own testing of that change and my usage of DrRacket afterwards, and so I'd be surprised if my commit caused that in itself. 11:44 jeapostrophe: i doubt your commit caused it but it seems like a latent problem in gr2 11:44 sstrickl: Right 11:45 sstrickl: That was the biggest thing I was concerned about, whether I'd caused it, but couldn't see how. 11:45 sstrickl: Hopefully Matthew checks it out then 11:52 (quit) clklein: Remote host closed the connection 11:57 (join) lucian 12:00 (join) jkjljkl 12:00 jkjljkl: Can racket be downloaded on ubuntu? 12:00 jkjljkl: It's not in apt-get 12:00 jkjljkl: It's not in aptitude 12:01 jeapostrophe: It can be downloaded everywhere: 12:01 jeapostrophe: http://www.racket-lang.org/download/ 12:01 jkjljkl: It only contains an old plt-scheme version. 12:01 Demosthenes: i compiled it, it was short and sweet. 12:07 (join) asumu 12:11 (quit) shofetim: Quit: ERC Version 5.3 (IRC client for Emacs) 12:11 (quit) MayDaniel: 12:20 (join) clklein 12:20 (quit) asumu: Ping timeout: 240 seconds 12:27 (quit) hanDerPeder: Quit: hanDerPeder 12:33 (quit) anRch: Quit: anRch 12:34 (quit) lucian: Remote host closed the connection 12:43 (join) jonrafkind 12:46 Demosthenes: hrm, it appears that scheme doesn't have any/every/some 12:47 jeapostrophe: maybe ormap/andmap is what you want 12:48 Demosthenes: ooo! 12:48 (quit) tv|z: Ping timeout: 265 seconds 12:48 Demosthenes: have i mentioned scheme folks are much more polite... #lisp is harsh. 12:50 (join) tv|z 12:51 clklein: We're so polite that we don't even point out that we're Racket folks. 12:51 clklein: oops :) 13:01 (join) mceier 13:04 (join) jao 13:07 (join) hanDerPeder 13:16 jkjljkl: Hmm, interesting that there appear to be subcultures on freenode. 13:29 (quit) sstrickl: Quit: sstrickl 13:29 (join) Sonicvan1Jr 13:29 (part) Sonicvan1Jr 13:40 (join) carleastlund 13:47 (join) asumu 13:51 (join) MayDaniel 14:42 (quit) MayDaniel: 14:51 (join) outworlder 14:51 (part) outworlder 14:52 (quit) asumu: Ping timeout: 240 seconds 15:09 (join) anRch 15:10 (join) traviscline 15:11 traviscline: why do I get both a DrScheme and a DrRacket with current racket? 15:12 jonrafkind: for backwards compatibility, they are the same, afaik 15:13 traviscline: thanks 15:13 (part) traviscline: "part" 15:15 (join) jsj 15:20 (quit) abbe: Quit: abbe 15:20 (quit) jkjljkl: Quit: Page closed 15:21 (join) abbe 15:21 (quit) abbe: Changing host 15:21 (join) abbe 15:53 (quit) jsj: Read error: Operation timed out 15:59 (join) jsj 16:04 (quit) mceier: Ping timeout: 240 seconds 16:04 (join) mceier 16:11 (join) sstrickl 16:17 (quit) anRch: Quit: anRch 16:41 (join) lucian 17:16 (join) mkscrg 17:17 (part) mkscrg: "Leaving..." 17:58 (quit) hanDerPeder: Quit: hanDerPeder 18:27 (quit) Demosthenes: Quit: leaving 19:13 (join) shofetim 19:31 (join) Demosthenes 19:32 (quit) masm: Ping timeout: 260 seconds 19:39 (join) masm 19:52 (join) jeapostrophe_ 19:52 (quit) jeapostrophe_: Client Quit 20:07 (quit) jsj: Read error: Connection reset by peer 20:10 (join) cinch- 20:25 (nick) samth -> samth_away 20:25 (quit) mceier: Quit: leaving 20:31 (nick) cinch- -> cinch 20:32 (quit) lucian: Remote host closed the connection 20:45 (quit) jonrafkind: Ping timeout: 245 seconds 20:49 (quit) lisppaste: Ping timeout: 240 seconds 21:12 (quit) Demosthenes: Ping timeout: 240 seconds 21:22 (join) Gwyth 21:27 (quit) carleastlund: Quit: carleastlund 21:42 (join) b-man_ 21:47 (quit) b-man_: Remote host closed the connection 22:32 (quit) sstrickl: Quit: sstrickl 22:34 (quit) masm: Quit: Leaving. 22:48 (part) shofetim: "ERC Version 5.3 (IRC client for Emacs)" 23:10 (quit) Gwyth: Ping timeout: 240 seconds