00:00:27 -!- Seus [~Seus@68.89.213.169] has quit [Ping timeout: 240 seconds] 00:14:32 pytho [814f26b9@gateway/web/freenode/ip.129.79.38.185] has joined #scheme 00:16:14 hi guys, i'm new to petite chez scheme and can't figure out how to do this problem.. i'm supposed to create a program that deletes the first letter of an entered word and then add's schm to the front of it. so for ex, if you input "fancy" you'll get "schmancy". can someone point me in the right direction? 00:19:26 What have you tried so far, pytho? 00:20:58 (define peel-first-character 00:21:12 (lambda (s) 00:21:23 (substring s 1 (string-length s)))) 00:21:58 that doesn't do what i want it to, but i know that peel-first has to be defined, and that i need to use lambda. 00:22:07 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #scheme 00:23:31 i also tried this: 00:23:37 (define add-schm 00:23:44 (lambda (schm) 00:24:16 i get lost after that. i'm new to programming. 00:26:42 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 00:29:48 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 272 seconds] 00:30:39 Well, what happen when you try to use PEEL-FIRST-CHARACTER? 00:30:43 Does it do what you want? 00:30:45 That is, does it do part of what you want? 00:33:37 dnolen [~davidnole@184.152.69.75] has joined #scheme 00:35:27 yes it does. 00:35:44 it peels the first character. 00:36:10 lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has joined #scheme 00:36:14 HG` [~HG@xdsl-92-252-118-246.dip.osnanet.de] has joined #scheme 00:36:41 Now you want to make a string starting with "schm", and ending with what you get from PEEL-FIRST-CHARACTER, right? 00:36:56 exactly. 00:37:18 oh can i use string-append? 00:37:28 probably :) 00:38:17 Yep. 00:38:58 -!- carleastlund [~cce@gotham.ccs.neu.edu] has quit [Quit: carleastlund] 00:40:53 i think i'm just not understanding how to use lambda 00:42:07 pytho: is your name about the python language? don't they have lambda? :D 00:42:31 :P i didn't get that far into python, lewis. 00:43:11 You've defined one procedure, PEEL-FIRST-CHARACTER, which calls two other procedures SUBSTRING and STRING-LENGTH. Now define another procedure, ADD-SCHM, that uses STRING-APPEND and PEEL-FIRST-CHARACTER; it should look fairly similar to the definition of PEEL-FIRST-CHARACTER. 00:43:30 blueadept [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has joined #scheme 00:43:36 -!- blueadept [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has quit [Changing host] 00:43:36 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 00:43:49 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #scheme 00:44:10 DrDuck [~duck@216.186.151.63] has joined #scheme 00:44:48 jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 00:45:15 -!- jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Client Quit] 00:48:13 http://roguebasin.roguelikedevelopment.org/index.php?title=Cellular_Automata_Method_for_Generating_Random_Cave-Like_Levels right, so I want to level up in functional programming by doing this in scheme. my plan; write a bunch of small, referentially transpearant functions, that map the cave from one state to the next, then chain them together. thoughts? :D 00:48:14 http://tinyurl.com/2rp9rj 00:53:23 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 00:58:09 i'm trying it. 01:03:25 -!- HG` [~HG@xdsl-92-252-118-246.dip.osnanet.de] has quit [Quit: Leaving.] 01:05:37 wow it loaded! 01:05:58 this is a really noob question, but how do i check if it works on a word? 01:11:42 pytho: if you post your code I can try and help :) 01:12:00 i appreciate it 01:12:22 (define peel-first-character 01:12:26 (lambda (s) 01:12:37 (substring s 1(string-length s)))) 01:12:41 (define add-schm 01:12:45 (lambda (s) 01:12:57 lewis1711: go for it 01:13:00 (peel-first-character (string-append)))) 01:13:21 pytho: http://paste.lisp.org/ ;-) 01:13:28 pytho: try pasting it on past.lisp.org 01:13:34 oops 01:14:01 that's much better, yes 01:15:05 http://paste.lisp.org/display/118893 01:15:11 ok. what scheme are you using again? 01:15:29 petite chez scheme 01:16:28 ok. tell me your thought process for add-schm 01:17:09 i'm trying to add-schm to the beginning of the word 01:17:12 right 01:17:45 now, adding schm to the BOW (beginning of word) is independent of peeling the first char of a word, right? 01:18:02 ahh yes it is 01:18:16 the peeling should be done before the schm is added 01:18:30 so we know peel-first-character has no business inside the definition of the add-schm function 01:18:42 yes, but they're independent functions, you see? 01:18:55 yes you're right 01:19:12 -!- valium97582 [~daniel@187.35.234.217] has quit [Ping timeout: 272 seconds] 01:19:30 ok, so try rewriting add-schm to only do what it says it does. and ask me if you have any questions on what to do next. 01:20:30 is the last line just (string-append))) ? 01:20:46 -!- Fare [~Fare@ita4fw1.itasoftware.com] has quit [Quit: Leaving] 01:21:18 you will need to tell string-append which strings you are combining 01:21:20 no, string-append is a function 01:21:41 so the "last line" will include that, but that function will be called with two arguments 01:22:38 pytho: how would you describe in a few english words what you want add-schm to do? that'll give you a clue on how to write the definition 01:23:11 add "schm" to the beginning of the entered word 01:23:23 yes, or: 01:23:41 (if we describe it by using the string-append "word" in our description): 01:24:05 add-schm: string-append "schm" with the word 01:24:28 there's no need to refer to beginning or end because, for instance: 01:24:45 rudybot: (string-append "word" "another word") 01:24:45 rien: your sandbox is ready 01:24:45 rien: ; Value: "wordanother word" 01:25:10 so the strings will be appended in the same order you pass them as arguments to string-append, see? 01:25:59 yes i see. 01:26:41 so (string-append ("schm")) should add schm to the entered word 01:26:52 almost! 01:27:10 see, when you enclose something in parentheses, that means "this is a function call" 01:27:48 just "schm" ? :D 01:27:58 so you only put parentheses around a function along with its arguments, but you do not enclose the arguments in parens unless the argument is a function call itself 01:28:01 yes :) 01:28:37 i do have a question for you 01:29:02 ok 01:29:08 what is the (s) for in (lambda (s) ? 01:29:20 I call it the parameter list. 01:29:28 There is probably a fancy-pants name that I don't remember. 01:30:00 well i literally just put it in there because i knew lambda had to be included 01:30:05 the s is a parameter 01:30:51 does it say anything about the program? 01:30:52 I think the fancy-pants name is just `a formal parameter'. :-P 01:31:08 fds: No, I mean the list itself. 01:31:13 when you do (define myfunction (lambda (myparameter...., what you're doing is you're saying "let me define "myfunction" to be this function (lambda) that I'll define here, and that takes a parameter called s 01:31:16 fds: i.e., (foo bar) in (lambda (foo bar) ...) 01:31:38 fds: In the CLHS, there is a fancy name for it. 01:31:53 cky: I thought it was just a `formal parameter list', but possibly the books I'm reading aren't fancy-pants enough. :-) 01:32:06 fds: Lemme find out what the CLHS calls it. :-) 01:32:26 pytho: as far as you and I are concerned, we'll just call that "parameter list" :) 01:32:35 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #scheme 01:32:37 and in your case "s" is the only parameter inthe parameter list 01:32:54 so i can name it anything? 01:33:07 yes 01:33:08 pytho: Yes, you can name your parameters anything you like. 01:33:20 okay :) 01:33:21 Though, shadowing system-provided functions (like "list") is not recommended. 01:33:36 In fact, I think it's important that the parameter names don't affect the defined procedure, isn't it? 01:33:47 fds: Well, no, if you don't call them within the function. 01:33:57 fds: However, for _human_ readers, it will make a difference. 01:34:09 Like, if you name a parameter "list", people reading it will raise an eyebrow. 01:34:35 pytho: yes, don't name your parameters something that is already defined elsewhere 01:34:42 pytho: If you name one of your parameters "list", it will prevent you from calling the "list" function. 01:34:55 I mean the equivalence of (define (square x) (* x x)) and (define (square y) (* y y)). I thought I'd seen people arguing about that in here before. 01:35:04 pytho: This is why naming your paramaters to avoid conflicting with system-defined functions is better. 01:35:19 fds: Yes, those two functions are equivalent. 01:35:25 fds: they're perfectly equivalent, in lambda calculus it's called eta-reduction or something 01:35:26 thank you guys for all the good information 01:36:24 can i test this by typing in (apple) ? 01:36:35 rudybot: (apple) 01:36:36 fds: your sandbox is ready 01:36:36 fds: error: reference to undefined identifier: apple 01:36:36 no, you gotta call your function 01:36:42 like you called string-append 01:37:58 CS is hard. :/ 01:38:08 It is? O_o 01:38:18 there is so much to remember 01:38:23 pytho: the general format for function calling is: (function argument-1 argument-2 ... argument-n) 01:38:24 It's easy with practice. 01:38:31 pytho: it'll be second nature in no time 01:38:35 What rien said. 01:38:41 i hope so! 01:39:13 ok i am getting kicked out of the library 01:39:17 thank you again for the help 01:39:21 :) 01:39:31 -!- pytho [814f26b9@gateway/web/freenode/ip.129.79.38.185] has quit [Quit: Page closed] 01:43:16 -!- haesbaert [~haesbaert@189.27.173.145.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 272 seconds] 01:56:45 imran_sr [~imran@75-18-254-4.lightspeed.uncyca.sbcglobal.net] has joined #scheme 02:02:44 MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has joined #scheme 02:08:41 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Ping timeout: 240 seconds] 02:14:00 -!- DrDuck [~duck@216.186.151.63] has quit [Ping timeout: 260 seconds] 02:15:27 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Ping timeout: 240 seconds] 02:16:10 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #scheme 02:19:53 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 02:29:19 barglfargl [~jeremy@75-131-194-186.dhcp.gwnt.ga.charter.com] has joined #scheme 02:29:29 hi 02:29:37 :-P 02:29:59 does anyone know of a good online introduction to untyped lambda calculus? 02:30:14 Wikipedia. :-P 02:30:32 specifically on how only being able to define closures and variables somehow makes for a turing complete language 02:30:39 hmm, really? 02:30:43 I could also suggest to you section 7.2 of R5RS, but it's not...introductory. :-P 02:31:27 I'll try reading it 02:31:39 :-) 02:32:20 The lambda calculus: assume all variable names are distinct (the alpha rule); then ((lambda (x) E) v) reduces to E, with v substituted for x (the beta rule). The proof that this induces a Turing-complete language, by expressing a Turing machine in the lambda calculus, is left as an exercise for the reader. Hint: 0 = (lambda (f) (lambda (x) x)), 1 = (lambda (f) (lambda (x) (f x))), &c.; true = (lambda (a) (lambda (b) a)), false = (lambda (a) (la 02:34:37 false = (lambda (a) (lambda (b) b)) 02:34:46 (Your message got cut off.) 02:34:47 Riastradh: thanks! 02:34:57 cky: . 02:35:04 :-) 02:37:25 funny, I was, in Minecraft earlier today, building simple logic gates (AND, OR, NOT) 02:37:38 this is similar in an abstract way 02:37:52 Right. Now implement a lambda calculus in Minecraft. 02:37:56 :-P 02:38:41 I'd rather tinker with writing one in python right now, haha 02:38:50 (The proof that a Turing machine is lambda-complete computation model, by expressing the lambda calculus reduction rules in a Turing machine, is also left as an exercise for the reader.) 02:39:09 interesting 02:39:59 (Neither exercise is much fun, to be honest, because Turing machines are such klunky, baroque kludges.) 02:40:07 barglfargl: you should've just built a NAND gate! ;) 02:40:55 rien: I'm new to circuitry in general, why is that? 02:41:31 the nand gate is all you need to have a computer, basically 02:41:45 my friend in electrical engineering said that in real life you use NAND gates and inverters to build the other gates 02:41:48 ah 02:41:50 with it you can make all other gates 02:41:54 yep 02:42:00 cool 02:42:39 heh, writing gates is one of the first things i did in scheme 02:43:14 all those weeks ago..;) 02:43:31 really? I probably wouldn't know how to begin writing them to be honest, they're such basic building blocks 02:43:32 Another exercise for the reader, this one much simpler: Express all sixteen binary binary functions (i.e., all two-input, one-output binary logic gates) using NAND, and both unary binary functions (one-input, one-output binary logic gate). Which other types of gate are universal in the same sense? 02:43:33 sounds fun, I'll try doing that 02:44:46 @lewis1711, not Riastradh, that sounds pretty tough 02:45:01 they never did much:D 02:45:11 also the heaviside step function, calculus styl 02:45:13 *style 02:45:20 Riastradh: are you quoting from SICP? 02:45:30 No. 02:45:42 then what? 02:46:04 I'm not quoting anything. My last exercise was a real one, not a joke, by the way -- try it! 02:46:22 oh, you just wrote these, cool 02:46:27 I've pasted them all in a text file 02:46:51 working on the first one right now 02:47:44 jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 02:47:45 republican_devil [~g@pool-74-111-197-135.lsanca.fios.verizon.net] has joined #scheme 02:48:08 http://wiki.call-cc.org/eggref/4/spiffy#description anyone know what this spiffy webserver tcp window setting is? 02:48:23 Network tweaks section 02:48:34 sjaman banned em from chicken :( 02:48:36 me 02:48:53 are you Galvino? 02:49:04 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 02:50:24 -!- zanes [~zane@wall.tripitinc.com] has quit [Quit: zanes] 02:50:34 haesbaert [~haesbaert@189.27.173.145.dynamic.adsl.gvt.net.br] has joined #scheme 02:51:17 barglfargl: nand or nor, usuall 02:51:18 y 02:51:28 Adamant: is see. 02:51:31 *i see 02:51:38 nand is more common 02:52:02 they've optimized it to death by now I'd guess 02:52:25 (in circuits) 02:52:57 rudybot: (define x 3) (define number x) 02:52:57 lewis1711: your sandbox is ready 02:52:57 lewis1711: Done. 02:52:59 whatever works better for their purposes 02:53:02 yes 02:53:07 does number contain a poiinter to 3, or is the value copied? 02:53:08 -!- republican_devil is now known as gavino_himself 02:53:22 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 02:53:46 lewis1711: That's implementation-dependent. 02:53:56 r5rs doesn't mandate one or the other? 02:54:01 cock 02:54:02 rien: No. 02:54:08 ooh, that's bad 02:54:08 perhaps I am better off doing this part in C 02:54:25 I'll ask in racket actually, since that's what I am using 02:54:34 rudybot: (define x 3) (define number x) (display number) (set! x 4) (display number) 02:54:34 rien: ; stdout: "33" 02:54:37 lewis1711: Racket should be representing the number directly. 02:54:41 -!- gavino_himself [~g@pool-74-111-197-135.lsanca.fios.verizon.net] has quit [Read error: Connection reset by peer] 02:54:44 there's your answer for racket 02:55:06 ugh 02:55:08 so it copies it 02:55:14 rien: What you put there will be true for every number, surely. 02:55:22 yeah I might do this bit in C 02:55:28 O_o 02:55:42 cky: what do you mean? 02:56:08 rien: The code you have there doesn't test what I think you're trying to test. 02:56:21 how so? 02:56:28 "x" and "number" will _always_ be independent. 02:56:35 I was trying to test if number copied from x or is a pointer to x 02:56:59 Even if, behind the scenes, it somehow points to a number (e.g., bignum), doing the code you have won't test that. 02:57:18 I really can't see why not :/ 02:57:29 talk to me like I'm a 4yo 02:58:16 the (define number x) line evals x before defining number (i think) 02:58:28 araujo [~araujo@190.38.51.34] has joined #scheme 02:58:32 after which, they part ways 02:58:35 -!- araujo [~araujo@190.38.51.34] has quit [Changing host] 02:58:35 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 02:59:00 if that's the case then my code still tests it, as it did now, it proved that that's what it does, no? 02:59:19 rien: Okay, first understand the fixnum/bignum distinction in Racket: 02:59:23 rudybot: (eq? 3 3) 02:59:24 cky: your racket sandbox is ready 02:59:24 cky: ; Value: #t 02:59:41 rudybot: (eq? 3000000000000 3000000000000) 02:59:41 cky: ; Value: #f 02:59:50 I don't understand why this has anything to do with numbers 02:59:56 rien: It doesn't. 03:00:11 hm... 03:00:28 rudybot: (define x 30000000000000) (define number x) (display number) (set! x 4000000000000000) (display number) 03:00:28 rien: ; stdout: "3000000000000030000000000000" 03:00:39 does that test it? 03:01:01 Well, see, even though it's a bignum (and thus represented "as pointer" behind the scenes), your code still doesn't do what you think it does. :-) 03:01:27 Even if you do something that's _definitely_ a pointer (say a cons cell): 03:01:50 rudybot: (define x '(foo . bar)) (define thing x) (display thing) (set! x '(baz . quux)) (display thing) 03:01:50 cky: ; stdout: "(foo . bar)(foo . bar)" 03:02:18 rien: If you can understand that, you'll be one step closer towards understanding Scheme's object model. :-) 03:02:30 my problem is working on a 2d tilebased game. I need to create some pretty big maps, but it's going to waste far too much memory if for, 1000*1000 tiles, each tile is a full independent copy 03:02:49 hence me thinking there's no nice way to do this in a higher level language like racket/scheme 03:02:55 lewis1711: You can use a vector. 03:03:05 You can use vector-set! to change elements in the vector. 03:03:16 rudybot: (define v (make-vector 10)) 03:03:16 cky: Done. 03:03:22 cky: that's really over my head, I'm failing to see the obvious here, I'm sure 03:03:25 I don't follow. this seems completely orthogonal to my problem 03:03:26 rudybot: (vector-set! v 5 "foo") 03:03:26 cky: Done. 03:03:31 rudybot: v 03:03:31 cky: ; Value: #(0 0 0 0 0 "foo" 0 0 0 0) 03:03:39 rudybot: (vector-set! v 6 "bar") 03:03:39 cky: Done. 03:03:41 rudybot: v 03:03:41 cky: ; Value: #(0 0 0 0 0 "foo" "bar" 0 0 0) 03:03:42 maybe I need those pointer-as-a-box-and-arrow diagrams 03:03:43 which is trying not to copy things unnessicarily 03:03:50 lewis1711: The vector isn't being copied here. 03:03:56 lewis1711: Values are just getting set. 03:04:40 orthogonal. what i need to be able to do is... in #(value value value) make sure value is all pointing to the same thing 03:04:52 lewis1711: functions ending in ! mean that it won't copy the parameter you gave it, and will change it instead 03:05:06 oh... 03:05:13 you gotta ask cky that :P 03:05:16 ha 03:05:26 rudybot: (vector-set! v 0 3000000000000000000) 03:05:26 cky: Done. 03:05:29 yeah it won't be that ugly to do in C anyway. 03:05:34 rudybot: (vector-set! v 1 (vector-ref v 0)) 03:05:35 cky: Done. 03:05:43 rudybot: (vector-set! v 2 (vector-ref v 1)) 03:05:43 cky: Done. 03:05:45 rudybot: v 03:05:45 cky: ; Value: #(3000000000000000000 3000000000000000000 3000000000000000000 0 0 "foo" "bar" 0 0 0) 03:05:55 rudybot: (eq? (vector-ref v 0) (vector-ref v 1)) 03:05:56 cky: ; Value: #t 03:05:58 cky: that actually looks harder to do in scheme 03:06:05 lewis1711: Beauty is skin deep. 03:06:08 but vector-ref is always a pointer? 03:06:16 or reference 03:06:21 makes sense, has ref in the name 03:06:22 lewis1711: In this case, the 3 bignums are pointing to the same value. 03:06:29 As you can see with my eq? test there. 03:06:38 cky: change one and let's see if they all change 03:06:39 though it would require making aload of singleton vectors 03:06:45 rien: They won't. 03:06:50 rien: That's not how Scheme works. 03:07:00 zevarito [~zevarito@r186-48-118-126.dialup.adsl.anteldata.net.uy] has joined #scheme 03:07:01 rien: The vector slots are not aliased. 03:07:08 lol I'm getting dumber everytime I say something :PP 03:07:18 rien: If numbers are mutable, then changing one number would affect all three. 03:07:25 rien: But numbers are not mutable in Scheme. 03:07:39 lewis1711: you're making a game in scheme? is there any code you're referencing? 03:07:45 I really was under the impression that everything in scheme was pointers 03:07:50 some of my old code:P 03:07:58 but apart from that, no not really 03:07:58 rien: They are, except for fixnums. 03:08:05 -!- zevarito [~zevarito@r186-48-118-126.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] 03:08:06 rien: (Behind the scenes. Nothing is specifically mandated.) 03:08:16 I've been wanting to for a while, but it's difficult to model a flow of data where you're not passing around copies of massive objects each frame 03:08:20 and some of it is in C, mainly stuff that deals with a C libraries for IO, pathfinding and all that 03:08:24 ah 03:08:28 rudybot: (define x "g") (define number x) (display number) (set! x "b") (display number) 03:08:28 rien: ; stdout: "gg" 03:08:32 ?? 03:09:42 lewis1711: so how are you handling object state without making too many copies of everything? 03:09:45 if that question makes sense 03:09:58 is your code open source? 03:10:00 I am not very far into it ata all 03:10:13 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 03:10:13 yeah sure, but it barely does anything, it's like 250 LOC 03:10:25 oh 03:10:28 rien: Lemme find a quieter venue to explain this. 03:10:34 sorry heh 03:10:39 so far it opens a screen, registers a few keyboard inputs etc. just laying down groundwork 03:10:47 rien: The behaviour is not surprising to any experience Schemer at all. 03:10:48 no worries, will upload it when it feels like a game:) 03:10:54 is it on github or anywhere? 03:10:55 haha okay 03:11:42 cky: ok 03:23:45 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 03:24:40 arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has joined #scheme 03:27:40 -!- jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Quit: jeapostrophe_] 03:29:40 jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 03:30:53 rudybot: (define v (make-vector 3)) 03:30:53 cky: Done. 03:31:07 rudybot: (vector-set! v 0 '(foo)) 03:31:07 cky: Done. 03:31:16 rudybot: (vector-set! v 0 (list 'foo)) 03:31:16 cky: Done. 03:31:26 rudybot: (vector-set! v 1 (vector-ref v 0)) 03:31:26 cky: Done. 03:31:28 rudybot: (vector-set! v 2 (vector-ref v 0)) 03:31:28 cky: Done. 03:31:30 rudybot: v 03:31:30 cky: ; Value: #((foo) (foo) (foo)) 03:31:46 rudybot: (set-car! (vector-ref v 0) 'bar) 03:31:46 cky: error: reference to an identifier before its definition: set-car! in module: 'program 03:31:54 Fine. 03:31:58 rudybot: init r5rs 03:31:58 cky: your r5rs sandbox is ready 03:32:02 rudybot: (define v (make-vector 3)) 03:32:03 cky: Done. 03:32:06 rudybot: (vector-set! v 0 (list 'foo)) 03:32:06 cky: Done. 03:32:09 rudybot: (vector-set! v 1 (vector-ref v 0)) 03:32:09 cky: Done. 03:32:12 rudybot: (vector-set! v 2 (vector-ref v 0)) 03:32:12 cky: Done. 03:32:16 rudybot: v 03:32:16 cky: ; Value: #({foo} {foo} {foo}) 03:32:21 rudybot: (set-car! (vector-ref v 0) 'bar) 03:32:21 cky: Done. 03:32:24 rudybot: v 03:32:24 cky: ; Value: #({bar} {bar} {bar}) 03:32:31 :) 03:32:39 rudybot: (display "hello world") 03:32:39 adu: your sandbox is ready 03:32:39 adu: ; stdout: "hello world" 03:32:57 rudybot: (write "hello world") 03:32:57 adu: ; stdout: "\"hello world\"" 03:33:24 rudybot: (call/cc eval) 03:33:24 adu: ; Value: # 03:36:22 adu: That's a very lenient eval. Some don't accept things like procedures in the form to eval. 03:36:25 For example: 03:36:31 incubot: (call/cc eval) 03:36:32 Error: illegal non-atomic object: # 03:37:00 pytho [959fd3f1@gateway/web/freenode/ip.149.159.211.241] has joined #scheme 03:37:04 adu: Chicken, in particular, is very specific about what you're allowed to eval. Things like bare procedures or vectors are not allowmed. 03:37:16 -!- MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has quit [Ping timeout: 272 seconds] 03:37:43 rudybot: (letrec (x x) (eval x)) 03:37:43 adu: error: eval:1:9: letrec: bad syntax (not an identifier and expression for a binding) at: x in: (letrec (x x) (eval x)) 03:38:04 adu: You're missing an extra set of brackets around the (x x). 03:38:08 do I suck at scheme or what 03:38:35 member:rudybot: (letrec ((x x)) (eval x)) 03:38:41 In any case, (lerec ((x x)) ...) is illegal in Scheme. 03:38:49 Some implementations will let you, but most don't. 03:38:53 rudybot: (letrec ((x x)) (eval x)) 03:38:53 adu: ; Value: # 03:39:04 yey 03:39:11 That's because Racket is kind to you. 03:39:25 Guile will not let you do (letrec ((x x)) ...). Nor should it. 03:39:42 just trying to be a hax0r 03:40:12 I've never really used scheme, I just think its a good idea 03:40:49 incubot: (letrec ((x x)) (eval x)) 03:40:50 Error: illegal non-atomic object: # 03:41:01 If you use a letrec, none of its variable bindings are allowed to be directly used inside the bindings. 03:41:35 Again, Racket gives you special grace by pre-defining the bindings to #. 03:41:49 If that were the case, cky, then (letrec ((x (lambda () x))) (x)) would not be kosher. 03:41:49 That doesn't make it okay in general. It's certainly not portable. 03:42:00 Riastradh: I did say "directly". 03:42:08 Inside a lambda was not what I meant by "directly". 03:42:59 How about: if you use (letrec ((x ...)) ...), you cannot evaluate x's value inside the first .... 03:43:17 That's a little clearer. 03:43:20 Excellent. 03:43:59 adu: Extending that, if you have (letrec ((x ...) (y ...)) ...), you cannot evaluate either x or y's value inside the first two ...s. 03:44:04 rudybot: (letrec ((x (cons 1 x))) (car x)) 03:44:04 adu: ; Value: 1 03:44:21 adu: Even that's not kosher. 03:44:45 i see 03:45:01 so basically i should listen to incubot 03:45:07 Well no. 03:45:12 incubot: (letrec ((x (cons 1 x))) (car x)) 03:45:12 1 03:45:14 Even Chicken is more lenient than, say, Guile in this regard. 03:45:28 If you run that in Guile, you get: Variable used before given a value: x 03:45:30 isn't guile missing macros? 03:45:34 No. 03:45:47 Just run (use-syntax (ice-9 syncase)) and you'll get hygienic macros. 03:45:54 oh 03:46:02 I never knew that 03:46:09 adu: That's in the manual. :-P 03:46:12 lol 03:47:49 bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has joined #scheme 03:48:01 cool! i get a (misc-error) instead of a (unbound-variable) 03:48:06 Heh. 03:48:12 thanks :) 03:48:20 :-P 03:50:12 cky: so what do you do? 03:50:23 I'm a programmer. :-P 03:50:29 That's my day job. 03:50:38 I also program for fun, on totally non-work-related things. 03:50:41 sweet, can I work for you? 03:50:56 Sure, do you code in Java or Ruby? Our company is probably still hiring. 03:51:06 Actually, swap Ruby and Java around. 03:51:22 Java yes, I just wrote my first rails app in Ruby yesterday, so still learning 03:51:42 Hahaha. Okay, are you kickass? 03:52:02 my resume in on my website: andrewrobbins.co.cc 03:52:30 here i am trying to program video games rather than get a job 03:52:34 timj_ [~timj@e176193172.adsl.alicedsl.de] has joined #scheme 03:52:34 I've also written 2 Android apps in Java 03:52:46 Okay, I'll check it out. :-) 03:53:01 lewis1711: Building your portfolio is a Good Thing. 03:53:12 cky: for my Android app website, see: http://drosoft.org/ 03:53:19 lewis1711: Modern software shops care very much about your portfolio. 03:53:25 true. but I would never want to work in game-dev 03:53:36 I'm actually surprised I don't yet have (a formal) one. 03:53:57 game dev is cool! 03:54:06 I guess my Stack Overflow profile can be my portfolio of sorts. :-P 03:54:10 I wrote a simple city in WebGL, just for fun 03:54:19 i should probably put that in my website too... 03:54:45 cky: what's a kickass? 03:55:03 o as in the adjective 03:55:08 adu: Yeah. 03:55:09 :/ 03:55:18 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 03:55:32 adu: Don't use WebGL; I have a friend, a security researcher, who says that WebGL exposes you to ring0 vulnerabilities. 03:55:51 -!- timj [~timj@e176194200.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 03:56:43 cky: that's only on Windows 03:57:27 Ah. 03:59:21 besides, your logic is flawed, if there is an exploit, then that means you shouldn't _run_ WebGL code, I can still write it :) 03:59:58 rien pasted "untitled" at http://paste.lisp.org/display/118895 04:00:13 cky: ^^^ 04:00:17 also, since that will probably be on Bugtraq before Firefox4 is released, I'm confident it would be dealt with in time 04:00:34 adu: :-P 04:00:36 cky: does that look right to you? I want my hash's keys to be strings and values to be lists 04:00:59 *checks* 04:00:59 cky: but line 3 doesn't look like 14 is in a list to me 04:01:11 I'd be more comfortable if I were seeing (14) 04:01:22 adu: Maybe it's just me, but your two years at Global IP sounded like you were mostly bumming around. 04:01:40 adu: (I'm just saying that that's how the blurb came across.) 04:01:49 really? 04:01:56 well I was going to school at the same time 04:02:18 so if by "bumming" you mean studying between contracts, yes 04:02:28 Not like that. 04:02:29 homie` [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 04:02:33 wbooze` [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 04:02:41 I'm talking about how you talked about learning about telecommuting and attention to detail. 04:02:51 These are not things one talks about learning about in a job. 04:03:06 oh 04:03:09 why? 04:03:27 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Ping timeout: 240 seconds] 04:03:51 -!- barglfargl [~jeremy@75-131-194-186.dhcp.gwnt.ga.charter.com] has quit [Ping timeout: 265 seconds] 04:03:52 Well, personally, I like knowing that someone has attention to detail, rather than having to learn it somewhere. If you know what I mean. 04:04:06 But perhaps that's just my personal hangup. 04:04:16 -!- pytho [959fd3f1@gateway/web/freenode/ip.149.159.211.241] has quit [Ping timeout: 265 seconds] 04:04:35 well, I was born with OpenGL knowledge, but I don't think people want to hear that on a resume 04:04:36 -!- wbooze [~levgue@xdsl-78-35-137-186.netcologne.de] has quit [Ping timeout: 246 seconds] 04:04:45 Ah. :-) 04:04:53 but anyways, point taken 04:04:54 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 04:04:55 Do you hang out at ##opengl? Do you know madsy? 04:05:03 yes, I've seen his nick 04:05:11 Nice. 04:05:44 -!- homie [~levgue@xdsl-78-35-137-186.netcologne.de] has quit [Ping timeout: 276 seconds] 04:05:46 He's one of "our" regulars. (By "we" I mean the channel I hang out on most of the time.) 04:06:19 cky: now do me! :P 04:06:34 I'm looking at your code now. Hah. 04:06:49 ok. so like I said, I'm aiming for string -> list 04:06:55 actually, uhm... 04:07:03 I have to have that be an array instead of a hash 04:07:11 *rien* rewrites some code 04:07:17 Uh, okay. 04:07:51 because I need to append in O(1) 04:08:00 so I should use vectors, then? 04:08:20 You can't append to vectors in O(1), unless your vector already has extra space. 04:08:44 Your best bet is to use cons cells, but prepend instead of append. 04:08:50 (You can reverse the list on display, or whatever.) 04:09:04 yeah I thought that too, but later on I'll still have to walk the list to print it all 04:09:12 well I guess it'd be the same with an array 04:09:13 Vectors are not resizeable, is what I'm trying to say. 04:09:19 oh 04:09:22 then I can't use them 04:09:32 ok, cons it is 04:09:35 Yeah. 04:11:04 yay it works fine now and I don't doubt that my values are lists any more :) 04:11:33 I love hash-table-ref/default 04:11:46 ruby thinks it's so smart with it's ||=, pff 04:12:19 Hehehehehehe. 04:18:45 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 04:32:33 -!- StephenFalken [email@2001:470:1f14:135b::2] has quit [Read error: Connection reset by peer] 04:32:33 -!- snappy [~naveen@unaffiliated/snappy] has quit [Read error: Connection reset by peer] 04:32:54 snappy [~naveen@armakuni.lastninja.net] has joined #scheme 04:34:57 -!- imran_sr [~imran@75-18-254-4.lightspeed.uncyca.sbcglobal.net] has quit [Quit: Leaving] 04:43:10 eut [~m@cpe-24-24-136-239.socal.res.rr.com] has joined #scheme 04:56:57 test 04:57:06 -!- minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has quit [Quit: WeeChat 0.2.6.3] 04:57:39 minsa [~minsa@c-24-5-121-157.hsd1.ca.comcast.net] has joined #scheme 05:02:45 nilg [~user@77.70.2.229] has joined #scheme 05:10:18 O_o 05:17:52 Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has joined #scheme 05:23:02 -!- Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has quit [Quit: Seus] 05:23:04 -!- tupi [~david@186.205.37.15] has quit [Quit: Leaving] 05:28:43 rudybot: (map number->list (list 1 2 3 4)) 05:28:43 rien: error: reference to undefined identifier: number->list 05:28:55 rudybot: (map number->string (list 1 2 3 4)) 05:28:55 rien: ; Value: ("1" "2" "3" "4") 05:29:09 rudybot: (apply string-append (map number->string (list 1 2 3 4))) 05:29:09 rien: ; Value: "1234" 05:30:20 rudybot: (apply string-append (map (compose number->string (lambda (c) string-append c " ")) (list 1 2 3 4))) 05:30:20 rien: error: number->string: expects argument of type ; given " " 05:30:45 rien: You're missing brackets around string-append c " ". 05:30:45 rudybot: init r5rs 05:30:45 rien: your r5rs sandbox is ready 05:30:47 rudybot: (apply string-append (map (compose number->string (lambda (c) string-append c " ")) (list 1 2 3 4))) 05:30:47 rien: error: reference to an identifier before its definition: compose in module: 'program 05:31:24 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 05:31:33 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 05:31:38 rudybot: (apply string-append (map (compose number->string (lambda (c) (string-append c " "))) (list 1 2 3 4))) 05:31:38 cky: error: reference to an identifier before its definition: compose in module: 'program 05:31:45 rudybot: init racket 05:31:45 cky: your racket sandbox is ready 05:31:47 rudybot: (apply string-append (map (compose number->string (lambda (c) (string-append c " "))) (list 1 2 3 4))) 05:31:47 cky: error: string-append: expects type as 1st argument, given: 1; other arguments were: " " 05:32:08 rudybot: (apply string-append (map (compose (lambda (c) (string-append c " ")) number->string) (list 1 2 3 4))) 05:32:09 cky: ; Value: "1 2 3 4 " 05:32:19 rudybot: (require srfi/26) 05:32:19 cky: Done. 05:32:32 rudybot: (apply string-append (map (compose (cut string-append <> " ") number->string) (list 1 2 3 4))) 05:32:32 cky: ; Value: "1 2 3 4 " 05:32:42 rien: ^^--- :-) 05:33:09 hmm, I don't know what cut is 05:33:16 rudybot: (concatenate (map (compose (cut string-append <> " ") number->string) '(1 2 3 4))) 05:33:16 cky: error: reference to an identifier before its definition: concatenate in module: 'program 05:33:22 rudybot: (string-concatenate (map (compose (cut string-append <> " ") number->string) '(1 2 3 4))) 05:33:22 cky: error: reference to an identifier before its definition: string-concatenate in module: 'program 05:33:32 rudybot: (require srfi/13) 05:33:32 cky: Done. 05:33:33 rudybot: (string-concatenate (map (compose (cut string-append <> " ") number->string) '(1 2 3 4))) 05:33:33 cky: ; Value: "1 2 3 4 " 05:33:55 rien: cut is used to do partial application. 05:34:06 oh, so that's where curry is hiding... 05:34:14 rien: (cut foo bar <>) == (lambda (x) (foo bar x)) 05:34:17 Yes. 05:36:32 vu3rdd [~vu3rdd@122.166.88.147] has joined #scheme 05:36:32 -!- vu3rdd [~vu3rdd@122.166.88.147] has quit [Changing host] 05:36:32 vu3rdd [~vu3rdd@fsf/member/vu3rdd] has joined #scheme 05:36:35 I want to write an extended version of "map" that allows multiple items to be put into the result list if the function returns multiple values. 05:36:57 ahh screw doing stuff in c. i am jsut going to do it in racket, and when I run out of all available memory then I'll think about C :P 05:37:08 lewis1711: Excellent idea. 05:37:13 hehe 05:37:51 cky: thx! 05:38:39 cky: that's a heresy purity-wise :P 05:38:45 you're changing the shape of the argument 05:40:12 :) 05:40:28 do people still write globals *like-so*? I haven't been doing it:/ 05:40:45 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 05:40:52 I do it but I'm a newbie so don't go by me 05:42:45 lewis1711: Yes, all globals should use stars on both sides. 05:42:58 well then 05:43:04 I've a fuckload of refactoring to do 05:43:47 As the style guide puts it, "Affix asterisks to the beginning and end of a globally mutable variable. This allows the reader of the program to recognize very easily that it is badly written!" 05:44:53 The convention has been there for donkeys' years; all the Common Lisp global variables are named that way, for example. 05:45:03 I think Emacs's ones are too. 05:45:12 (Do not quote me on the latter.) 05:45:28 :/ 05:45:49 you shouldn't be mutating variables that much anyway 05:46:01 so I don't buy the "globals are evil" thing for scheme 05:46:22 Well. Are your globals mutable? 05:46:29 If not, that clause doesn't apply. 05:46:33 aren't all scheme values mutable? 05:46:45 *cough cough* Do you use set! with your globals? 05:46:50 no 05:46:59 Well, then that clause doesn't apply. 05:47:02 that would be stupid:P 05:47:07 Hehehehehe. 05:47:10 Genieliu [~genie@59.78.62.120] has joined #scheme 05:47:29 I guess it would be nice to have a (define-constant ... ) that would disallow set 05:47:30 but meh 05:47:47 could probably macro it up but *laziness* 05:47:56 Hehehehehe. 05:50:11 I always went by the maxim that you shouldn't be using "set!" much anyway 05:50:45 Agree. 05:51:08 In which case, you are in no danger of advertising your program as "badly written". :-) 05:53:31 haha 05:53:32 excellent 05:53:47 :-) 05:57:47 well that saves on refactoring 05:58:15 except for one global, which I do mutate (but it can only be mutated once per program run, and it's a boolean, so I reckon that's ok:P) 06:02:39 :-P 06:04:55 Error: (open-output-file) cannot open file - Too many open files: "result.txt" 06:04:57 :( 06:06:07 -!- Genieliu [~genie@59.78.62.120] has quit [Quit: Lost terminal] 06:08:11 ...how many files have you got open? 06:09:15 how can I ask that question to csi ? 06:09:23 or how can I know that at all? 06:09:52 Show me some code. :-) 06:10:02 oh...... 06:10:07 I've done bad things 06:10:24 I have many many files open that I can't close anymore because it's too late 06:10:28 is there hope? 06:10:40 What do you mean by "it's too late"? 06:11:58 the code has run and it's done. I don't have the file handlers to know what to close 06:12:55 But, surely you use call-with-output-file, right, and not just a raw open-output-file? 06:13:02 nope 06:18:27 -!- Nisstyre is now known as umad980 06:18:46 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 06:18:58 -!- rien [~unkanon@dyn-160-39-34-114.dyn.columbia.edu] has quit [Quit: leaving] 06:21:36 -!- haesbaert [~haesbaert@189.27.173.145.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 265 seconds] 06:23:01 haesbaert [~haesbaert@189.27.173.145.dynamic.adsl.gvt.net.br] has joined #scheme 06:24:28 rien [~rien@dyn-160-39-34-114.dyn.columbia.edu] has joined #scheme 06:24:46 HG` [~HG@xdsl-92-252-118-246.dip.osnanet.de] has joined #scheme 06:29:10 -!- umad980 is now known as Nisstyre 06:29:40 pytho [959fd3f1@gateway/web/freenode/ip.149.159.211.241] has joined #scheme 06:34:06 -!- pytho [959fd3f1@gateway/web/freenode/ip.149.159.211.241] has quit [Ping timeout: 265 seconds] 06:39:27 -!- yx [debian-tor@gateway/tor-sasl/yx] has quit [Ping timeout: 240 seconds] 06:51:54 yx [debian-tor@gateway/tor-sasl/yx] has joined #scheme 06:52:52 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 06:54:28 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 07:00:16 mnemonicsloth [~user@cpe-071-076-250-251.triad.res.rr.com] has joined #scheme 07:01:36 DrDuck [~duck@216.186.151.63] has joined #scheme 07:03:40 -!- nilg [~user@77.70.2.229] has quit [Read error: Operation timed out] 07:04:18 nilg [~user@77.70.2.229] has joined #scheme 07:14:14 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 276 seconds] 07:14:22 Okay 07:14:30 It took 100 lines of code. 07:15:01 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Remote host closed the connection] 07:15:16 But I wrote a macro that takes any arbitrary length infix math expression and lispifies it, with full support for precedence and nested parenthesis. 07:15:49 Well, some of those 100 lines were comments 07:15:51 monoid_: nice:D 07:16:04 is it open source? :) 07:16:05 But I'd say about 70 LOC 07:16:23 lewis1711: I'm probably gonna release it once I fully check it for bugs. 07:16:32 so eventually :) 07:16:35 cool 07:16:55 It's better to release it and let others check for bugs :-P 07:17:04 speaking of me failing at prefix... 07:17:07 rudybot: (define (rand-float min_ max_) (* (random) (+ (- max_ min_) min_))) 07:17:07 lewis1711: your sandbox is ready 07:17:07 lewis1711: Done. 07:17:13 fds: I'm a stickler for quality :P 07:17:14 rudybot: (rand-float 0.4 0.5) 07:17:15 lewis1711: ; Value: 0.42012518769736384 07:17:23 (rand-float 0.4 0.5) 07:17:37 (I'm sure that didn't work before) 07:17:43 rudybot: (rand-float 0.4 0.5) 07:17:43 lewis1711: ; Value: 0.23007492543095365 07:17:48 yeah there we go:/ 07:18:20 ohh I am just adding max to it 07:20:40 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 07:21:22 amca [~amca@CPE-121-208-84-154.cqzr1.cha.bigpond.net.au] has joined #scheme 07:21:45 just incase anyone cared, the answer was .. (define (rand-float min_ max_) (+ (* (random) (- max_ min_)) min_) 07:21:47 :P 07:22:36 rudybot: (random 8) 07:22:36 rien: error: reference to an identifier before its definition: random in module: 'program 07:22:49 rudybot: (rand 8) 07:22:49 rien: error: reference to an identifier before its definition: rand in module: 'program 07:23:12 *shrugs* 07:24:30 nilg [~user@77.70.2.229] has joined #scheme 07:27:14 gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 07:28:48 -!- jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Quit: jeapostrophe_] 07:33:40 -!- monoid_ [~tmo@adsl-76-193-181-154.dsl.chcgil.sbcglobal.net] has quit [Quit: Ex-Chat] 07:35:45 -!- arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has left #scheme 07:40:05 -!- leppie [~lolcow@196-215-83-125.dynamic.isadsl.co.za] has quit [Ping timeout: 260 seconds] 07:42:27 josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has joined #scheme 07:42:32 -!- josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has quit [Client Quit] 07:43:02 josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has joined #scheme 07:44:11 jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has joined #scheme 07:45:31 leppie [~lolcow@196-215-83-125.dynamic.isadsl.co.za] has joined #scheme 07:55:20 right, I just wrote the murkiest and most convoluted scheme code ever. stay tuneed for a fun game where i clean it up, comment it, paste it, and see if anyone can figure out what I am doing :P 07:57:15 lol 07:57:43 3am here already. gotta sleep. good night! 08:01:44 nilg` [~user@77.70.2.229] has joined #scheme 08:02:32 -!- bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has quit [Remote host closed the connection] 08:02:40 http://paste.pocoo.org/show/324749/ right, props to anyone who can read this, bonus props if you have tips on making it less ugly :D 08:06:26 http://paste.pocoo.org/show/324752/ improved commenting! 08:07:34 dnolen [~davidnole@184.152.69.75] has joined #scheme 08:11:05 -!- HG` [~HG@xdsl-92-252-118-246.dip.osnanet.de] has quit [Ping timeout: 240 seconds] 08:16:28 HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has joined #scheme 08:18:52 -!- bremner [~bremner@yantan.tethera.net] has quit [Read error: Operation timed out] 08:19:48 gravicappa [~gravicapp@ppp85-140-67-125.pppoe.mtu-net.ru] has joined #scheme 08:21:21 lewis1711: that code is kind of irritating; i was expecting something convoluted and interesting. 08:21:51 i guess i got clowned by a hideously duplicitous sales-pitch. 08:21:54 it's not convluted? 08:22:01 lewis1711: in what sense? 08:22:05 any sense 08:22:09 I thought it was horrible 08:22:23 then again I have ony been scheming a few weeks, maybe that's why 08:23:32 lewis1711: oh, ok; that makes sense, then. no, it's relatively transparent; even if it doesn't do anything besides construct a derived class A' from another class A. 08:24:00 yes that's all it was meant to do 08:24:07 there's reasoning in the comments 08:24:15 the relationship between tile-common and tile is a little weird; why not do inheritance? 08:24:16 but it's good it's transpearent 08:24:20 *lewis1711* levels up in scheme 08:24:39 line 10 08:24:50 bremner [~bremner@yantan.tethera.net] has joined #scheme 08:25:27 you're constructing an ad-hoc type just to pass it as an argument? why not have the procedure take eight parameters? 08:26:05 er, line 12-14? because then I'd be allocating a lot of memory for tiles which are in large parts identical, no? 08:27:50 but you're just copying what appear to be a collection of chars, booleans, colors and floats. 08:28:08 i'm going to call premature optimization on this one; just write the code in the most straightforward way you can. 08:28:09 they're coping? 08:28:20 choas [~lars@p5792C2AC.dip.t-dialin.net] has joined #scheme 08:28:26 the whole purpose of making the two types was to avoid accessive copying 08:28:32 *excessive 08:28:44 I figured racket was smart enough to pass by value in this case 08:28:53 but I have no real way of testing. I was going to do it in C but.. 08:28:55 maybe you're going for a primitive kind of prototype OOP. 08:29:31 http://planet.racket-lang.org/package-source/neil/protobj.plt/1/0/doc.txt 08:29:32 no what I am trying to achieve has nothing to do with OOP 08:29:36 and more about saving memory 08:29:39 *all about 08:30:36 on the contrary, man; you're defining archetypes and instances. 08:31:02 so you're saying when I do 08:31:15 (make-tile large-oak-common) it's actually going to *copy* large-oak-common in? 08:31:21 because if so, yeah, I'll just make one struct 08:31:25 or do it in C 08:31:58 no; it's going to allocate new chars, bools, etc. and assign them accordingly. 08:32:29 shouldn't it just allocate references to it?:( 08:32:30 damn 08:32:32 why don't you concentrate on writing your game instead of these silly optimizations? 08:33:07 if you can achieve version 0.1 and it runs like shit, i'll help you optimize. 08:33:10 one irc punters silly optimiations are another irc punters "must do from the beginning or you will waste far too much memory" activities 08:33:13 lol 08:33:26 well it's done now and works 08:33:35 but yes, I'll leave it. done what I wanted to do 08:33:51 whether it's actually doing what i think it's doing is another thing 08:37:48 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 08:43:34 -!- josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has quit [Quit: josephholsten] 08:48:53 kuribas [~user@dD576B135.access.telenet.be] has joined #scheme 09:00:08 phao [~phao@189.107.132.48] has joined #scheme 09:23:09 -!- blueadept [~blueadept@unaffiliated/blueadept] has quit [Quit: Leaving] 09:36:24 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 09:51:53 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Remote host closed the connection] 09:57:29 preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 10:13:06 -!- choas [~lars@p5792C2AC.dip.t-dialin.net] has quit [Remote host closed the connection] 10:13:21 femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #scheme 10:13:27 choas [~lars@p5792C2AC.dip.t-dialin.net] has joined #scheme 10:26:33 pdponze [~pdponze@144.85.121.191] has joined #scheme 10:26:51 lewis1711: I suspect most programmers would place that into the category of micro-optimizations, which is kind of silly to do until you've done some profiling, especially in a language where you're not going to be impressing anyone with performance anyways. 10:28:02 people that code these kind of games impressed upon me that i need to knock this sort of stuff on the head quickly 10:28:37 -!- wbooze` [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:28:50 -!- homie` [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 10:33:39 It seems contrary to the spirit of scheme to worry about the efficiency of argument passing. 10:33:47 bokr [~eduska@109.110.36.115] has joined #scheme 10:34:05 my concern is not the *speed* of argument passing 10:34:08 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Quit: leaving] 10:34:17 let me make that clear. I am not at all concerned about speed 10:34:27 (considering this sort of code gets called once only) 10:36:25 *Obfuscate* shrugs. 10:36:41 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 10:37:48 homie [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 10:39:35 wbooze [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 10:42:25 -!- pdponze [~pdponze@144.85.121.191] has left #scheme 10:43:00 pdponze [~pdponze@144.85.121.191] has joined #scheme 10:44:05 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Remote host closed the connection] 10:44:35 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 10:50:39 -!- gravicappa [~gravicapp@ppp85-140-67-125.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 10:54:20 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 10:59:20 k04n [~k04n@cpe-76-175-192-194.socal.res.rr.com] has joined #scheme 11:01:56 -!- choas [~lars@p5792C2AC.dip.t-dialin.net] has quit [Ping timeout: 265 seconds] 11:02:30 choas [~lars@p5792C2AC.dip.t-dialin.net] has joined #scheme 11:10:43 valium97582 [~daniel@187.34.54.222] has joined #scheme 11:12:02 -!- choas [~lars@p5792C2AC.dip.t-dialin.net] has quit [Read error: Connection reset by peer] 11:15:03 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #scheme 11:18:35 Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #scheme 11:19:05 Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has joined #scheme 11:27:04 -!- pdponze [~pdponze@144.85.121.191] has quit [Ping timeout: 265 seconds] 11:34:40 -!- Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has quit [Quit: Seus] 11:36:07 gravicappa [~gravicapp@ppp85-140-67-125.pppoe.mtu-net.ru] has joined #scheme 11:46:51 Blkt [~user@net-93-151-231-62.cust.dsl.teletu.it] has joined #scheme 11:50:44 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 11:52:48 -!- amca [~amca@CPE-121-208-84-154.cqzr1.cha.bigpond.net.au] has quit [Quit: neit] 11:57:25 -!- k04n [~k04n@cpe-76-175-192-194.socal.res.rr.com] has quit [Remote host closed the connection] 11:58:34 good day everyone 12:12:19 hi 12:13:00 MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has joined #scheme 12:44:37 Seus [~Seus@99.114.191.45] has joined #scheme 12:45:04 -!- lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has left #scheme 12:49:00 -!- Seus [~Seus@99.114.191.45] has quit [Client Quit] 12:49:59 Hi. Can all the SRFI be implemented in scheme, as a module? 12:54:51 sfri authors need to provide a basic implementation of the proposal 13:00:14 in scheme? 13:00:33 yes, it is part of the srfi document 13:00:53 right... so even srfi 96 which, I'm almost sure, talks about syntax-case 13:00:59 phao: see also the process that explains how it should work http://srfi.schemers.org/srfi-process.html 13:00:59 provides an implementation suggestion? 13:01:40 phao: it does: http://srfi.schemers.org/srfi-96/srfi-96.html 13:01:46 for several schemes 13:03:44 phao: and here is the starting point for a new implementation http://cvs.savannah.gnu.org/viewvc/slib/slib/Template.scm?view=markup 13:04:29 and phao srfi-96 does not contain the string syntax-case 13:05:50 http://srfi.schemers.org/srfi-93/srfi-93.html 13:05:53 it's srfi 93 13:07:03 I am looking for a scheme compiler/interpreter for embedded devices. 13:07:13 kuribas, I've heard of some 13:07:27 I think you can find a list of implementations in schemers.org 13:07:31 Chicken scheme would be possible, but the runtime is 3MB. 13:07:38 phao: did you read the document? 13:07:57 C-Keen, actually no -- but I found the code for the implementation there 13:08:03 kuribas, http://www.schemers.org/ look for implementations 13:08:09 phao: and your point now is? 13:08:21 it has a section on implementations for that kind of thing -- almost sure 13:08:25 kuribas: I think Chibi would be a good choice 13:08:33 C-Keen, none anymore -- you already answered my question =D 13:08:39 ah fine :) 13:10:34 Chibi might be good. I think memory usage is more important than speed. 13:10:57 It will run on the zipit z2, with 32M ram, and a 350Mhz processor. 13:15:32 Yes, Chibi is probably better than Chicken for my purposes. 13:16:54 -!- HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has quit [Quit: Leaving.] 13:16:59 f8l [~f8l@77-255-12-39.adsl.inetia.pl] has joined #scheme 13:25:34 -!- bokr [~eduska@109.110.36.115] has quit [Quit: Leaving.] 13:36:44 -!- homie [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 13:36:52 -!- wbooze [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 13:45:24 -!- kuribas [~user@dD576B135.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 14:04:08 -!- f8l [~f8l@77-255-12-39.adsl.inetia.pl] has quit [Ping timeout: 246 seconds] 14:06:01 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 14:08:05 f8l [~f8l@81.219.162.22] has joined #scheme 14:08:49 jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 14:16:29 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Disconnected by services] 14:16:29 Nisstyre65 [~nisstyre@infocalypse-net.info] has joined #scheme 14:17:07 -!- Nisstyre65 is now known as Nisstyre 14:22:41 homie [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 14:22:47 wbooze [~levgue@xdsl-78-35-131-253.netcologne.de] has joined #scheme 14:24:43 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 15:01:25 -!- didi` [~user@unaffiliated/didi/x-1022147] has quit [Ping timeout: 255 seconds] 15:02:47 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 15:03:09 What a bummer! Schmidt resigns on April 4th -- he should've chosen three days prior. 15:04:07 what a fool 15:04:12 well not 15:07:14 tupi [~david@186.205.37.15] has joined #scheme 15:09:51 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Remote host closed the connection] 15:14:20 -!- jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Quit: jeapostrophe_] 15:14:43 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 15:15:36 vilsonvieira [~vilson@189.115.112.228.dynamic.adsl.gvt.net.br] has joined #scheme 15:29:48 -!- neilcj [~neilcj@c-174-49-216-137.hsd1.pa.comcast.net] has quit [Quit: Lost terminal] 15:30:39 neilcj [~neilcj@c-174-49-216-137.hsd1.pa.comcast.net] has joined #scheme 15:32:19 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Quit: leaving] 15:34:58 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 15:38:03 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 15:38:26 dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has joined #scheme 15:38:38 -!- Blkt [~user@net-93-151-231-62.cust.dsl.teletu.it] has quit [Ping timeout: 276 seconds] 15:43:00 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 15:45:24 choas [~lars@p5792CB57.dip.t-dialin.net] has joined #scheme 15:46:55 -!- arbscht [~arbscht@unaffiliated/arbscht] has quit [Remote host closed the connection] 15:50:44 arbscht [~arbscht@unaffiliated/arbscht] has joined #scheme 15:57:03 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has quit [Ping timeout: 240 seconds] 15:58:39 -!- vilsonvieira [~vilson@189.115.112.228.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 240 seconds] 16:04:52 rudybot: (print (string-append "blah" "\n" "blah")) 16:04:52 rien: error: reference to an identifier before its definition: print in module: 'program 16:05:11 rudybot: (display (string-append "blah" "\n" "blah")) 16:05:11 rien: ; stdout: "blah\nblah" 16:07:06 I'm building a string with string-append for later saving to a file. "\n" always appears literally in the file 16:07:16 do I need format? 16:08:12 rien: rudybot will convert output text into string representation 16:08:39 The \n is in there, but it doesn't show as a newline because rudybot won't literally print it like it would appear on the screen 16:08:42 rudybot: (newline) 16:08:42 sjamaan: your sandbox is ready 16:08:42 sjamaan: ; stdout: "\n" 16:08:43 I see. but still, I can't seem to write a newline to a file 16:08:44 See? 16:09:48 Do the two characters \ and n appear in the file, or does a literal newline appear in the file? 16:10:07 I see "\n" literally in the file, i.e. the char \ followed by n 16:10:19 And how _exactly_ do you write it out? 16:10:49 I use call-with-output-file, lambda (f), then I write that string to f with "write" 16:10:56 That's wrong 16:10:58 bitweiler [~bitweiler@99.40.239.167] has joined #scheme 16:11:07 write will write the S-expression representation of whatever object you are writing 16:11:22 oh that's write, it marshalls 16:11:23 It will also include the quotes, for example 16:11:52 until today 16:12:02 I thougth the bot was named ruBybot 16:12:03 so what's the function I'm looking for? 16:12:11 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Quit: leaving] 16:12:12 I just noticed that it's rudybot today 16:12:14 phao: LOL, I think that would be another chan then ;) 16:12:20 heheheh 16:12:21 (write #\newline) => #\linefeed ;; the words 16:12:30 rien: print, [f]printf, or just display and/or newline 16:12:31 -!- DrDuck [~duck@216.186.151.63] has quit [Ping timeout: 255 seconds] 16:12:54 Or format, but in Chicken that's an alias for fprintf AFAIK 16:13:04 -!- pjb [~t@81.202.16.46.dyn.user.ono.com] has quit [Ping timeout: 240 seconds] 16:13:49 ok let me try that 16:14:47 sjamaan: hmm but chickadee says print writes to current-output-port only 16:15:17 So use call-with-output-port or one of the other procedures 16:15:46 I'm using that already. so that changes the current-output-port? I didn't know. 16:17:14 eh sorry, with-output-to-port 16:17:18 I always mix those up 16:17:50 dnolen [~davidnole@184.152.69.75] has joined #scheme 16:18:42 ok, at least now I know that call-with-output-file + (display "string" filepointer) works fine :) 16:19:24 thanks, sjamaan 16:20:21 yw 16:20:30 BTW, we call those things "ports", not "filepointer" :) 16:20:42 right right :)) 16:24:29 HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has joined #scheme 16:29:00 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 16:35:52 -!- wbooze [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Read error: Operation timed out] 16:36:01 wbooze` [~levgue@xdsl-78-35-173-41.netcologne.de] has joined #scheme 16:36:34 homie` [~levgue@xdsl-78-35-173-41.netcologne.de] has joined #scheme 16:38:05 -!- homie [~levgue@xdsl-78-35-131-253.netcologne.de] has quit [Ping timeout: 240 seconds] 16:41:23 -!- wbooze` [~levgue@xdsl-78-35-173-41.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 16:41:27 -!- yx [debian-tor@gateway/tor-sasl/yx] has quit [Ping timeout: 240 seconds] 16:41:35 -!- homie` [~levgue@xdsl-78-35-173-41.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 16:41:46 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Remote host closed the connection] 16:44:11 -!- phao [~phao@189.107.132.48] has quit [Quit: Leaving] 16:45:22 homie [~levgue@xdsl-78-35-173-41.netcologne.de] has joined #scheme 16:46:20 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 16:46:29 wbooze [~levgue@xdsl-78-35-173-41.netcologne.de] has joined #scheme 16:54:01 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 16:57:51 -!- jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 17:09:40 -!- nilg` [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 17:10:27 mathk [~mathk@lns-bzn-55-82-255-191-126.adsl.proxad.net] has joined #scheme 17:10:29 -!- chandra_ [crito@cohomology.org] has quit [Quit: leaving] 17:15:04 phao [~phao@189.107.234.119] has joined #scheme 17:27:31 nilg [~user@77.70.2.229] has joined #scheme 17:33:16 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 17:33:46 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Read error: Connection reset by peer] 17:34:14 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 17:34:31 jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 17:35:52 pjb [~t@81.202.16.46.dyn.user.ono.com] has joined #scheme 17:37:14 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 17:37:52 yx [debian-tor@gateway/tor-sasl/yx] has joined #scheme 17:53:47 jensn_ [~ceres@c-83-233-145-103.cust.bredband2.com] has joined #scheme 17:54:01 qsun_ [~qsun@66.220.3.138] has joined #scheme 17:54:22 rrm3_ [~rrm3@rrm3.org] has joined #scheme 17:55:50 eno__ [~eno@adsl-70-137-134-172.dsl.snfc21.sbcglobal.net] has joined #scheme 17:56:12 acarrico1 [~acarrico@pppoe-68-142-62-150.gmavt.net] has joined #scheme 17:58:00 githogori_ [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:58:23 -!- jeapostrophe_ [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Ping timeout: 264 seconds] 17:58:24 -!- qsun [~qsun@66.220.3.138] has quit [Ping timeout: 264 seconds] 17:58:24 -!- jensn [~ceres@c-83-233-145-103.cust.bredband2.com] has quit [Ping timeout: 264 seconds] 17:58:24 -!- yosafbridge [~yosafbrid@li125-242.members.linode.com] has quit [Ping timeout: 264 seconds] 17:58:24 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 264 seconds] 17:58:24 -!- em [~em@unaffiliated/emma] has quit [Ping timeout: 264 seconds] 17:58:25 -!- rrm3 [~rrm3@rrm3.org] has quit [Ping timeout: 264 seconds] 17:58:25 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 264 seconds] 17:58:25 -!- acarrico [~acarrico@pppoe-68-142-62-150.gmavt.net] has quit [Ping timeout: 264 seconds] 17:58:25 -!- ski [~slj@c83-254-21-112.bredband.comhem.se] has quit [Ping timeout: 264 seconds] 17:58:25 ski [~slj@c83-254-21-112.bredband.comhem.se] has joined #scheme 17:59:01 em [~em@unaffiliated/emma] has joined #scheme 17:59:12 yosafbridge [~yosafbrid@li125-242.members.linode.com] has joined #scheme 18:04:19 masm [~masm@bl15-79-18.dsl.telepac.pt] has joined #scheme 18:04:53 rien pasted "untitled" at http://paste.lisp.org/display/118913 18:05:29 pytho [8cb69f67@gateway/web/freenode/ip.140.182.159.103] has joined #scheme 18:08:15 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 240 seconds] 18:15:39 nilg [~user@77.70.2.229] has joined #scheme 18:24:20 aklt [~aklt@77.75.167.158] has joined #scheme 18:29:58 FirewalkR [~firewalkr@a85-138-104-212.cpe.netcabo.pt] has joined #scheme 18:39:26 rien annotated #118913 "untitled" at http://paste.lisp.org/display/118913#1 18:56:46 rien annotated #118913 "untitled" at http://paste.lisp.org/display/118913#2 18:59:30 rien annotated #118913 "untitled" at http://paste.lisp.org/display/118913#3 19:09:14 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Ping timeout: 276 seconds] 19:10:57 wingo [~wingo@90.164.198.39] has joined #scheme 19:10:59 to 19:11:01 er, yo 19:11:43 -!- MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has quit [Ping timeout: 240 seconds] 19:18:01 -!- mathk [~mathk@lns-bzn-55-82-255-191-126.adsl.proxad.net] has quit [Ping timeout: 255 seconds] 19:18:14 hi wingo, what happened to wingolog.org? it gives a 500 with content-type httpd/unix-directory !? 19:18:33 good question! 19:19:12 my scheme web server seems to have some condition where it can start leaking file descriptors, then it falls over 19:19:26 makes it pretty embarrassing to write about web servers, when your web server dies :P 19:19:28 Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has joined #scheme 19:19:36 i kicked it and it should be working now 19:20:40 yup 19:20:43 -!- pjb [~t@81.202.16.46.dyn.user.ono.com] has quit [Remote host closed the connection] 19:21:03 teurastaja [~Samuel@modemcable198.178-131-66.mc.videotron.ca] has joined #scheme 19:21:20 pjb [~t@81.202.16.46.dyn.user.ono.com] has joined #scheme 19:23:17 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Read error: Connection reset by peer] 19:23:46 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 19:29:33 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 19:37:11 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 19:42:54 -!- bitweiler [~bitweiler@99.40.239.167] has quit [Ping timeout: 276 seconds] 19:43:38 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 19:45:23 -!- Caleb-- [thedude@bzq-79-182-207-181.red.bezeqint.net] has quit [Ping timeout: 265 seconds] 19:51:00 bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has joined #scheme 19:51:23 pdponze [~pdponze@144.85.121.191] has joined #scheme 20:01:14 seamus-android [~alistair@cpc1-brig7-0-0-cust565.3-3.cable.virginmedia.com] has joined #scheme 20:02:52 femtooo [~femto@95-89-198-16-dynip.superkabel.de] has joined #scheme 20:03:32 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 20:05:53 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Ping timeout: 240 seconds] 20:07:28 pothos_ [~pothos@111-240-164-32.dynamic.hinet.net] has joined #scheme 20:09:42 -!- pothos [~pothos@111-240-169-203.dynamic.hinet.net] has quit [Ping timeout: 272 seconds] 20:09:52 -!- pothos_ is now known as pothos 20:13:34 -!- wgd [~will@76-205-0-91.lightspeed.stlsmo.sbcglobal.net] has left #scheme 20:18:10 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 240 seconds] 20:24:53 -!- phao [~phao@189.107.234.119] has quit [Quit: Leaving] 20:25:28 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 20:28:12 adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined #scheme 20:28:17 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 20:29:50 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Client Quit] 20:31:35 ASau [~user@95-27-129-85.broadband.corbina.ru] has joined #scheme 20:38:30 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Ping timeout: 240 seconds] 20:39:12 -!- valium97582 [~daniel@187.34.54.222] has quit [Read error: Connection reset by peer] 20:39:36 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 20:43:29 -!- seamus-android [~alistair@cpc1-brig7-0-0-cust565.3-3.cable.virginmedia.com] has quit [Quit: Leaving] 20:43:59 mathk [~mathk@194.177.62.31] has joined #scheme 20:47:12 -!- offby1 is now known as crm114 20:47:39 -!- crm114 is now known as offby1 20:48:20 -!- bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has left #scheme 20:49:47 nasstop [~hobo@cpe-74-69-38-24.rochester.res.rr.com] has joined #scheme 20:50:01 -!- nasstop [~hobo@cpe-74-69-38-24.rochester.res.rr.com] has left #scheme 20:50:03 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 20:50:51 -!- pytho [8cb69f67@gateway/web/freenode/ip.140.182.159.103] has quit [Quit: Page closed] 20:52:23 annodomini [~lambda@wikipedia/lambda] has joined #scheme 20:54:12 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 21:02:50 femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #scheme 21:03:38 -!- FirewalkR [~firewalkr@a85-138-104-212.cpe.netcabo.pt] has quit [Ping timeout: 276 seconds] 21:04:15 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Quit: Leaving] 21:05:58 -!- femtooo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Ping timeout: 250 seconds] 21:06:08 valium97582 [~daniel@187.34.54.222] has joined #scheme 21:14:45 -!- Seus [~Seus@adsl-99-114-191-45.dsl.spfdmo.sbcglobal.net] has quit [Quit: Seus] 21:20:18 -!- pdponze [~pdponze@144.85.121.191] has left #scheme 21:20:29 Caleb-- [thedude@bzq-79-182-207-181.red.bezeqint.net] has joined #scheme 21:20:44 -!- HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has quit [Quit: Leaving.] 21:23:03 -!- aklt [~aklt@77.75.167.158] has quit [Quit: iggulum] 21:25:27 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 240 seconds] 21:28:16 gozoner [~ebg@64.134.236.242] has joined #scheme 21:32:56 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 21:36:09 bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has joined #scheme 21:44:05 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Quit: leaving] 21:44:54 schmir [~schmir@p54A91348.dip0.t-ipconnect.de] has joined #scheme 22:00:42 -!- gozoner [~ebg@64.134.236.242] has quit [Ping timeout: 276 seconds] 22:06:27 -!- schmir [~schmir@p54A91348.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 22:06:44 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 22:07:48 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 22:12:21 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 22:13:10 -!- choas [~lars@p5792CB57.dip.t-dialin.net] has quit [Quit: leaving] 22:24:47 -!- Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Quit: leaving] 22:25:37 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 22:28:12 kuribas [~user@94-226-138-23.access.telenet.be] has joined #scheme 22:30:56 -!- masm [~masm@bl15-79-18.dsl.telepac.pt] has quit [Ping timeout: 272 seconds] 22:31:25 blueadept2 [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has joined #scheme 22:35:56 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 276 seconds] 22:40:39 -!- yx [debian-tor@gateway/tor-sasl/yx] has quit [Ping timeout: 240 seconds] 22:45:21 rudybot: init scheme 22:45:21 wingo: your scheme sandbox is ready 22:45:31 rudybot: eval (even? +inf.0) 22:45:31 wingo: error: even?: expects argument of type ; given +inf.0 22:48:12 Seus [~Seus@99.114.191.45] has joined #scheme 22:54:03 lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has joined #scheme 22:57:03 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 23:06:05 -!- bitweiler [~bitweiler@adsl-99-40-239-167.dsl.stl2mo.sbcglobal.net] has quit [Remote host closed the connection] 23:09:46 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 23:10:48 -!- z0d [~z0d@unaffiliated/z0d] has quit [Ping timeout: 265 seconds] 23:12:18 yx [debian-tor@gateway/tor-sasl/yx] has joined #scheme 23:18:42 -!- wingo [~wingo@90.164.198.39] has quit [Ping timeout: 276 seconds] 23:19:29 z0d [~z0d@unaffiliated/z0d] has joined #scheme 23:21:01 rudybot: (not (even? 'a-mouse)) 23:21:02 *offby1: your scheme sandbox is ready 23:21:02 *offby1: error: even?: expects argument of type ; given a-mouse 23:21:21 rudybot: eek 23:21:22 *offby1: ; Value: a-mouse 23:24:58 (evenp 7) 23:25:13 rudybot: (evenp 7) 23:25:13 valium97582: your sandbox is ready 23:25:13 valium97582: error: reference to undefined identifier: evenp 23:25:19 hmm 23:25:23 oh, right 23:25:24 rudybot: (even? 7) 23:25:24 *offby1: ; Value: #f 23:27:50 -!- nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has quit [Quit: Lost terminal] 23:33:36 arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has joined #scheme 23:40:18 "count-this". "count-that". Won't somebody CHALLENGE me?! 23:40:56 rudybot: (exp 100) 23:40:57 valium97582: ; Value: 2.6881171418161614e+43 23:41:02 rudybot: (exp 1000) 23:41:02 valium97582: ; Value: +inf.0 23:41:13 rudybot: (exp 200) 23:41:13 valium97582: ; Value: 7.225973768125889e+86 23:45:30 -!- Seus [~Seus@99.114.191.45] has quit [Quit: Seus] 23:46:49 josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has joined #scheme 23:48:45 teach him to bisect and thereby find the logarithm of +inf.0 23:55:27 didi` [~user@unaffiliated/didi/x-1022147] has joined #scheme 23:55:52 -!- gravicappa [~gravicapp@ppp85-140-67-125.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 23:56:45 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Ping timeout: 240 seconds] 23:58:36 -!- josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has quit [Quit: josephholsten] 23:59:16 -!- kuribas [~user@94-226-138-23.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]