00:06 (quit) tauntaun: Quit: Ex-Chat 00:14 (join) realitygrill_ 00:16 (quit) realitygrill: Ping timeout: 255 seconds 00:16 (nick) realitygrill_ -> realitygrill 00:39 (join) kenjin2201 00:41 (quit) realitygrill: Quit: realitygrill 01:21 (join) wwwd 01:21 (quit) jeapostrophe: Quit: jeapostrophe 01:27 (join) jeapostrophe 01:37 (quit) Quetzalcoatl_: Quit: Leaving 01:40 (quit) ryandanas_: Quit: ryandanas_ 01:41 (join) ryandanas_ 01:58 (quit) jeapostrophe: Quit: jeapostrophe 02:44 ohwow: Is there a generic ->string function? 02:45 ohwow: Which can convert almost anything to string? 02:48 jonrafkind: (format "~a\n" anything) 02:49 (join) masm 02:49 ohwow: i see, thanks 02:50 jonrafkind: oh dont need the \n, just a habit 02:52 (quit) aalix: Quit: Computer has gone to sleep. 02:53 (quit) jonrafkind: Read error: Operation timed out 02:54 ohwow: rudybot: eval (with-output-to-string (lambda()(format "~a" 'hello))) 02:54 rudybot: ohwow: your sandbox is ready 02:54 rudybot: ohwow: ; Value: "" 02:54 ohwow: rudybot: eval (with-output-to-string (lambda () (format "~a" 42))) 02:54 rudybot: ohwow: ; Value: "" 02:55 ohwow: oh wait 02:55 ohwow: it's format 02:55 ohwow: for some reason i thought it's printf :( 02:55 ohwow: damn i should get my coffee 02:58 (quit) dherman: Quit: dherman 03:09 (quit) dnolen: Quit: dnolen 03:15 (join) aalix 03:31 (quit) aalix: Quit: Textual IRC Client: http://www.textualapp.com/ 03:46 (join) dherman 03:56 (quit) dherman: Quit: dherman 04:33 (quit) DT``: Read error: Connection reset by peer 04:49 (quit) kenjin2201: Ping timeout: 252 seconds 04:49 (join) DT`` 05:36 (join) MayDaniel 05:40 (quit) MayDaniel: Read error: Connection reset by peer 05:50 (join) gienah 05:57 (join) Dre 06:39 (join) lucian 07:05 (quit) lucian: Remote host closed the connection 07:13 (join) kenjin2201 07:34 (join) realitygrill 07:39 (join) lucian 09:02 (join) jeapostrophe 09:04 (quit) jeapostrophe: Client Quit 09:20 (join) anRch 09:25 (join) jeapostrophe 09:25 (part) ryandanas_ 09:56 (quit) lucian: Quit: Ex-Chat 09:58 (join) tauntaun 10:00 (quit) jeapostrophe: Quit: jeapostrophe 10:00 (join) lucian 10:21 (quit) anRch: Quit: anRch 10:35 (join) lucian_ 10:35 (quit) gienah: Quit: leaving 10:36 (quit) lucian: Disconnected by services 10:37 (nick) lucian_ -> lucian 10:39 (join) ryandanas_ 10:40 (quit) realitygrill: Quit: realitygrill 10:42 (join) jeapostrophe 10:47 (quit) jeapostrophe: Quit: jeapostrophe 11:43 (join) jonrafkind 11:47 (join) dnolen 11:49 (join) realitygrill 12:53 (join) carleastlund 13:28 (quit) ckrailo: Quit: Computer has gone to sleep. 13:33 (join) MayDaniel 13:35 ohwow: so, mcons is the only way to get mutable list in racket? 13:35 jonrafkind: yea 13:40 bremner_: or #lang r5rs, which amounts to the same thing 13:43 offby1: rudybot: (object->string 1234) 13:43 rudybot: offby1: your sandbox is ready 13:43 rudybot: offby1: error: reference to an identifier before its definition: object->string in module: 'program 13:43 offby1: hmm 13:45 offby1: rudybot: (with-output-to-string (lambda () (display 123))) 13:45 rudybot: offby1: ; Value: "123" 13:45 offby1: rudybot: (with-output-to-string (lambda () (display "123"))) 13:45 rudybot: offby1: ; Value: "123" 13:45 offby1: rudybot: (with-output-to-string (lambda () (display 'frotz))) 13:45 rudybot: offby1: ; Value: "frotz" 13:45 offby1: rudybot: (with-output-to-string (lambda () (display #"oh, wow"))) 13:45 rudybot: offby1: with-output-to-string 13:45 offby1: rudybot: eval (with-output-to-string (lambda () (display #"oh, wow"))) 13:45 rudybot: offby1: ; Value: "oh, wow" 13:46 offby1: rudybot: eval (define (object->string o) (with-output-to-string (lambda () (display o)))) 13:46 rudybot: offby1: Done. 13:46 offby1: rudybot: eval (object->string (current-output-port)) 13:46 rudybot: offby1: ; Value: "#" 13:46 offby1: rudybot: eval (object->string eof) 13:46 rudybot: offby1: ; Value: "#" 13:52 (join) dherman 13:53 (quit) dherman: Client Quit 13:54 ohwow: offby1: 13:54 ohwow: [08:43] < ohwow> Is there a generic ->string function? 13:54 ohwow: [08:44] < ohwow> Which can convert almost anything to string? 13:54 ohwow: [08:47] < jonrafkind> (format "~a\n" anything) 13:55 ohwow: :) 13:56 (quit) MayDaniel: Read error: Connection reset by peer 13:59 ohwow: What if I do (set! lst (cons 'a lst)) ? 14:01 bremner_: you get a very long list... 14:01 bremner_: iirc. 14:03 ohwow: well i get what i need: a list with 'a consed on it 14:03 ohwow: but 14:03 ohwow: idk 14:03 ohwow: I am writing a networking app and I need to store a list of peers, so I figured that a list datastructure would be nice for it 14:07 bremner_: oh, right, it depends on evaluation order, which I got wrong. 14:12 (join) dherman 14:19 (join) jeapostrophe 14:19 offby1: How does one turn a number into a string, with some leading zeroes? (mystery 12 3) => "012" 14:19 offby1: There used to be a PLaneT package that did all kinds of slick formatting like this, but I've forgotten its name 14:19 offby1: doesn't seem to be any way to do it with built-in racket stuff 14:19 offby1: fmt.plt 14:20 offby1: rudybot: seen foof 14:20 rudybot: offby1: foof was seen in/on #scheme sixteen hours ago, saying "Is that expensive?", and then foof was seen in/on #scheme six hours ago, saying "rotty: fmt patch applied (belatedly)" 14:23 DT``: offby1, SRFI-48's format has that. 14:23 DT``: (format "~3F" 12) 14:23 DT``: it's padded with spaces, though. 14:36 (quit) lucian: Remote host closed the connection 14:39 (join) lucian 14:44 offby1: hmph 14:44 offby1: easier to roll my own, alas 14:45 offby1: it seems as if the "mzscheme" language, in PLT scheme 4, had a function called call-with-output-string, but that the current version of that language lacks it. Is this true? If so, shouldn't it be added back? (planet ashinn/fmt:1:1/fmt) breaks because of its absence. 14:50 cipher: anyone notice that #lang lazy's version of take is (take ) whereas #lang racket is (take ) 14:51 jonrafkind: probably to make lazy more like haskell 14:52 bremner_: the point in haskell is partial application. Not sure that is relevant here. 14:53 bremner_: well, I guess even the haskell order is pretty subjective 14:57 (quit) dherman: Quit: dherman 15:36 (join) MayDaniel 15:41 (quit) MayDaniel: Client Quit 16:10 (quit) jeapostrophe: Quit: jeapostrophe 16:20 (quit) lucian: Read error: Connection reset by peer 16:21 (join) Lajla 16:22 (join) lucian 16:26 (join) jeapostrophe 16:26 (quit) jeapostrophe: Client Quit 16:27 (join) lisppaste 16:44 (quit) kenjin2201: Read error: Connection reset by peer 17:00 (join) dherman 17:15 (quit) masm: Quit: Leaving. 17:33 (quit) dnolen: Quit: dnolen 17:38 offby1: OK folks, I just wrote a function that takes a channel, and returns a sequence; the sequence contains those items that are gotten from the channel. It's a simple function. But I'm wondering if I even needed to write it ... I'd have expected something like this to be built-in. Is there any such thing? 17:39 offby1: http://ix.io/1IY if you wanna peek 17:39 offby1: (yes, I realize that I'm hard-coding the sentinel value, and should really make it an argument) 17:42 (quit) ryandanas_: Quit: ryandanas_ 17:42 (join) acts_as_david 17:47 (quit) acts_as_david: Remote host closed the connection 18:11 (quit) jonrafkind: Ping timeout: 240 seconds 18:26 Lajla: What iz vhith zhisch client 18:26 Lajla: I cannot remove this channel from my autojoin list 18:26 Lajla: it just comes back every time 18:26 Lajla: offby1, you 18:26 Lajla: provide me with zhe answers that I seek 18:27 Lajla: to finally part my ways with that which does not respect my right to completely random nicknames for no adequately justified reason 18:33 (quit) dherman: Quit: dherman 18:48 (join) jeapostrophe 18:53 (join) dherman 18:56 (quit) jeapostrophe: Quit: jeapostrophe 19:01 (nick) bremner_ -> bremner 19:10 (join) aoh_ 19:10 (quit) aoh: Read error: Connection reset by peer 19:21 (join) jeapostrophe 19:23 (quit) jeapostrophe: Client Quit 19:24 (join) realitygrill_ 19:25 (quit) realitygrill: Ping timeout: 240 seconds 19:25 (nick) realitygrill_ -> realitygrill 19:40 (quit) em: Ping timeout: 244 seconds 19:47 (quit) dherman: Quit: dherman 19:52 (join) em 20:09 (join) ckrailo 20:26 (quit) Dre: Quit: Leaving 20:28 (quit) DT``: Ping timeout: 255 seconds 20:30 (join) gienah 20:32 (join) DT`` 20:34 offby1: OK, so how do I fix "compile: access from an uncertified context to unexported variable"? 20:34 offby1: Google sends me to discussions which I don't understand :-| 20:37 (quit) DT``: Ping timeout: 255 seconds 20:41 carleastlund: offby1, often the easiest way is to export the variable. That is, if the reference is to "foo", then add "(provide foo)". 20:41 offby1: I'm not sure what the variable in question is ... the obvious one _is_ being exported :-( 20:41 carleastlund: Oh, it doesn't say which? Hmm. 20:42 offby1: no, it doesn't :-| 20:42 (join) dherman 20:42 offby1: doesn't mention any of my modules, either 20:42 carleastlund: Is that the entirety of the output you get? 20:42 offby1: no, hold on 20:42 offby1: http://ix.io/1IZ 20:43 carleastlund: It does tell you the variable in question, it/s or/c/proc. 20:43 offby1: well ... uh ... 20:43 offby1: that string doesn't appear anywhere in my source, as far as I know. 20:43 offby1: It's true, I am using "or/c" 20:43 carleastlund: That's from the contract system. 20:43 offby1: but that's built-in. 20:44 offby1: I don't even know what it would mean to export that. 20:44 carleastlund: Errors like this occur when macros try to take apart subexpressions they shouldn't. Are you playing any crazy macro games? If you are, that's probably your problem. If you aren't, this is probably someone else's bug. 20:44 offby1: no macros at all in my code 20:44 offby1: A fair amount of "unquote", however 20:44 offby1: (and when I _do_ write macros, they're dead simple, as in define-syntax-rule) 20:45 carleastlund: Yeah, I think you've uncovered a bug, but your code is not the cause. 20:45 offby1: it started happening as soon as I took one definition -- (define stringy? (or/c string? bytes?)) -- and moved it from the module that used it, into a separate, otherwise empty module (and then provided it) 20:45 offby1: I suppose I could move it back 20:45 carleastlund: Still, if you could boil your code down to something short, reproducible, and that you can share, it'd be great if you could report that bug. 20:45 offby1: yep 20:47 offby1: nuts 20:48 carleastlund: What version are you using? Something recent from the repo, or a release? 20:49 (join) DT`` 20:49 carleastlund: never mind, the possibly-relevant code I'm looking at isn't recent 20:51 offby1: 5.1.1 anyway 20:51 offby1: I worked around it by moving the definition of that contract back where it was :-( 20:51 offby1: couldn't repro it simply 20:52 carleastlund: Most bugs can be reduced fairly quickly by a sort of binary search -- cut things out of your program; if the bug stays, leave them out. Continue until minimal. 20:52 carleastlund: Alternately, if it's code you don't mind sharing, let me have a crack at it. This doesn't seem like a bug we should let slide. 20:54 carleastlund: You had just the one definition in that module with or/c? Can you show me just that module, offby1? 20:56 (quit) lucian: Quit: Ex-Chat 21:02 (join) jonrafkind 21:18 offby1: I'm happy to share the code, but it's a giant mess; I suspect it'd take a fair amount of effort to repro. 21:18 offby1: I can easily show you the module; hold on 21:19 offby1: http://ix.io/1J0 21:19 offby1: not much to it :) 21:21 offby1: carleastlund: OK, you really up for this? It'll involve cloning two (reasonably small) git repositories, and probably a bit more setup 21:23 carleastlund: offby1, I'll start in a bit by putting that through the macro stepper and seeing what I can see. 21:23 offby1: I didn't understand that -- did you want the URLs to the git repositories? 21:23 offby1: or are you just going to chew on the tiny file? 21:25 carleastlund: offby1, just the tiny one. Not worth going for the whole thing if I can make headway with just that :) 21:25 offby1: sho nuff 21:25 offby1: holler if you want more pain 21:27 (join) mithos28 21:34 (quit) dherman: Quit: dherman 22:00 (join) jeapostrophe 22:14 (quit) tauntaun: Quit: Ex-Chat 22:25 (quit) mithos28: Quit: mithos28 22:37 (quit) wwwd: Ping timeout: 252 seconds 22:42 (quit) em: Ping timeout: 250 seconds 22:47 (join) Sentreen 22:48 Sentreen: Hello peeps, got a small question to ask, does anybody else get a crash when they use a gauge% with vertical as style tag? 22:50 Sentreen: (using OSX btw) 22:55 offby1 stares blankly 22:56 offby1: paste something tiny that repros the problem, I'll try it 22:56 offby1: ... assuming it's not difficult. 22:56 offby1: I use Linux by the way. 22:56 offby1: actually it doesn't even matter if it repros for me or not -- crash == bug. 22:56 offby1: end of story 22:58 Sentreen: yeah indeed, just wanted to see if it might have been a known issue :) 23:04 (join) dnolen 23:04 (join) em 23:13 (quit) jeapostrophe: Quit: jeapostrophe 23:17 (quit) Sentreen: Quit: Page closed 23:54 (quit) dnolen: Quit: dnolen 23:55 (join) vu3rdd 23:55 (quit) vu3rdd: Changing host 23:55 (join) vu3rdd