00:00:01 ooh lol :D clever, see i'm a scheme novice 00:13:10 tauntaun [~Antoninus@64.134.71.91] has joined #scheme 00:14:55 -!- pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has quit [Quit: Leaving.] 00:15:16 -!- pdlogan [~patrick@75-164-189-139.ptld.qwest.net] has left #scheme 00:18:23 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 250 seconds] 00:20:48 -!- eno [~eno@nslu2-linux/eno] has quit [Read error: Connection reset by peer] 00:25:36 eno [~eno@nslu2-linux/eno] has joined #scheme 00:29:26 I just meant `evaluates to'; I'm not sure if there's a more standard way to write that, but I think now 00:29:31 s/now/not/ 00:33:38 -!- tauntaun [~Antoninus@64.134.71.91] has quit [Quit: Ex-Chat] 00:35:16 -!- homie [~levgue@xdsl-84-44-152-144.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 00:35:21 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Leaving...] 00:36:14 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 00:36:21 yeah that does seem standard :) 00:36:35 -!- pygospa [~pygospa@kiel-4d066a2f.pool.mediaWays.net] has quit [Ping timeout: 250 seconds] 00:37:30 NNshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has joined #scheme 00:38:16 zbigniew_ [~zb@3e8.org] has joined #scheme 00:38:31 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 00:38:44 pygospa [~pygospa@kiel-5f77bc48.pool.mediaWays.net] has joined #scheme 00:39:52 -!- zbigniew [~zb@3e8.org] has quit [Ping timeout: 240 seconds] 00:39:52 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 00:40:03 fds: i prefer when examples use "; =>" ... allows for copying and pasting :) 00:40:35 -!- masm [~masm@2.80.129.75] has quit [Ping timeout: 242 seconds] 00:40:46 evhan: True, I do actually use that in my code. :-) 00:43:40 jao [~user@168.Red-79-159-136.staticIP.rima-tde.net] has joined #scheme 00:43:47 -!- jao [~user@168.Red-79-159-136.staticIP.rima-tde.net] has quit [Changing host] 00:43:47 jao [~user@pdpc/supporter/professional/jao] has joined #scheme 00:45:49 -!- carleastlund [~cce@gotham.ccs.neu.edu] has quit [Quit: carleastlund] 00:46:12 -!- wbooze [~levgue@xdsl-84-44-152-144.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 00:48:28 masm [~masm@bl19-129-75.dsl.telepac.pt] has joined #scheme 00:50:23 homie [~levgue@xdsl-84-44-152-144.netcologne.de] has joined #scheme 01:02:58 lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has joined #scheme 01:12:36 wbooze [~levgue@xdsl-84-44-152-144.netcologne.de] has joined #scheme 01:14:48 -!- Pepe_ [~ppjet@bouah.net] has quit [Ping timeout: 260 seconds] 01:15:16 Pepe_ [~ppjet@bouah.net] has joined #scheme 01:26:36 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 01:29:05 drdo [~user@91.205.108.93.rev.vodafone.pt] has joined #scheme 01:29:17 pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has joined #scheme 01:34:55 -!- peterhil` [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Ping timeout: 240 seconds] 01:44:14 -!- augiedoggie [~cpr@unaffiliated/cpr420] has quit [Quit: Bye] 01:47:14 augiedoggie [~cpr@unaffiliated/cpr420] has joined #scheme 01:47:39 wav1 [~Adium@173-139-126-74.pools.spcsdns.net] has joined #scheme 01:50:41 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 240 seconds] 01:54:45 -!- augiedoggie [~cpr@unaffiliated/cpr420] has quit [Quit: Bye] 01:55:14 augiedoggie [~cpr@unaffiliated/cpr420] has joined #scheme 01:59:26 -!- drdo [~user@91.205.108.93.rev.vodafone.pt] has quit [Remote host closed the connection] 02:06:08 -!- wav1 [~Adium@173-139-126-74.pools.spcsdns.net] has quit [Quit: Leaving.] 02:07:18 -!- Agari [~Agari@4.Red-95-121-141.dynamicIP.rima-tde.net] has quit [Quit: Leaving] 02:07:29 -!- masm [~masm@bl19-129-75.dsl.telepac.pt] has quit [Ping timeout: 240 seconds] 02:11:45 -!- augiedoggie [~cpr@unaffiliated/cpr420] has quit [Quit: Bye] 02:12:44 augiedoggie [~cpr@unaffiliated/cpr420] has joined #scheme 02:14:23 -!- zmv [~daniel@c934a93a.virtua.com.br] has quit [Ping timeout: 240 seconds] 02:14:25 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 02:14:40 dnolen [~davidnole@184.152.69.75] has joined #scheme 02:17:29 -!- new2net [~N2N@unaffiliated/new2net] has quit [Read error: Connection reset by peer] 02:18:21 new2net [~N2N@unaffiliated/new2net] has joined #scheme 02:22:57 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Remote host closed the connection] 02:23:45 -!- augiedoggie [~cpr@unaffiliated/cpr420] has quit [Quit: Bye] 02:24:14 augiedoggie [~cpr@unaffiliated/cpr420] has joined #scheme 02:36:32 arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has joined #scheme 02:36:50 -!- pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has quit [Quit: Leaving.] 02:40:33 -!- rrm3 [~rrm3@rrm3.org] has quit [Ping timeout: 260 seconds] 02:41:25 rrm3 [~rrm3@rrm3.org] has joined #scheme 02:42:03 -!- arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has left #scheme 02:42:13 arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has joined #scheme 02:42:27 How is everyone today? 02:43:44 wbooze` [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 02:43:47 homie` [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 02:46:39 -!- homie [~levgue@xdsl-84-44-152-144.netcologne.de] has quit [Ping timeout: 276 seconds] 02:46:47 -!- wbooze [~levgue@xdsl-84-44-152-144.netcologne.de] has quit [Ping timeout: 276 seconds] 02:50:21 -!- lithpr [~lithpr@cpe-204-210-208-155.neo.res.rr.com] has quit [Quit: Leaving] 02:53:37 http://codepad.org/Orj5VAHK 02:53:56 unbound variable? i am trying to pass in a string aas a filename 02:55:31 bttf, you need to specify (1) exactly what you typed, (2) exactly what you saw, and (3) exactly what you expected to see. 02:55:51 i created a function that takes in one argument, supposed to be a string 02:56:04 but the interpreter gave me an unbound variable error 02:56:13 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 02:56:13 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 02:56:13 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 02:56:17 what i should hav eseen was a list of tokens 02:56:22 Also, like I told aca20031 (are you in the same class?), you basically shouldn't ever use SET-CURRENT-INPUT-PORT!; at most, you should use WITH-INPUT-FROM-FILE: instead of (begin (set-current-input-port! (open-input-file filename)) (read-list)), write (with-input-from-file filename (lambda () (read-list))). 02:56:35 bttf, no, no, when I say `exactly', I mean *exactly*, not `roughly with some hand-waving'. 02:56:57 well that codepad link takes care of the first two 02:57:18 Let me give an example. 02:57:20 In any case, what don't you understand from the error message? 02:57:35 ERROR: "file.scm": unbound variable: set-current-input-port! 02:57:46 What more do you want us to tell you? 02:57:57 ...oh, sorry, I see. I read only the first part of the paste. 02:58:00 i dont understand what an unbound variable is 02:58:11 Same as undefined. 02:58:21 but it is defined 02:58:25 i am passing it in as an arguement 02:58:39 No it does not, since it says so. 02:59:07 is there a central scheme repo for libraries? (like pypi, hackage etc.) 02:59:16 bttf, it tells you that SET-CURRENT-INPUT-PORT! is undefined, not that FILENAME or FROBNOZZLE or ZAPPLETWOTZ-FEEBLEFITZER is undefined. 02:59:21 + 02:59:24 bttf, now, wild guess: you're using Guile, and your instructor expects you to use MIT Scheme. 02:59:35 i am using scm 02:59:56 OK, SCM, not Guile. (Guile is derived from SCM.) 03:01:10 bttf, that said, if you use WITH-INPUT-FROM-FILE rather than SET-CURRENT-INPUT-PORT!, as I suggested, at least that fragment will work in any Scheme system, be it Guile, SCM, MIT Scheme, or just about anything else. 03:01:25 i see now 03:01:28 ok 03:01:30 thank you 03:05:33 -!- chemuduguntar [~ravi@118-93-182-106.dsl.dyn.ihug.co.nz] has quit [Remote host closed the connection] 03:06:47 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 03:06:58 drdo [~user@91.205.108.93.rev.vodafone.pt] has joined #scheme 03:12:31 -!- bttf [~docBrown@c-68-59-124-155.hsd1.fl.comcast.net] has quit [Ping timeout: 272 seconds] 03:17:35 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Ping timeout: 240 seconds] 03:21:21 -!- mario-goulart [~user@67.205.85.241] has quit [Read error: Connection reset by peer] 03:21:51 mario-goulart [~user@67.205.85.241] has joined #scheme 03:28:54 -!- evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has quit [Ping timeout: 276 seconds] 03:29:48 evhan [~evhan@dyn-194-89.vpn.wisc.edu] has joined #scheme 03:30:12 -!- new2net [~N2N@unaffiliated/new2net] has quit [Ping timeout: 264 seconds] 03:30:57 -!- zbigniew_ is now known as zbigniew 03:33:36 -!- evhan [~evhan@dyn-194-89.vpn.wisc.edu] has quit [Read error: Connection reset by peer] 03:35:42 bttf [~docBrown@c-68-59-124-155.hsd1.fl.comcast.net] has joined #scheme 03:39:09 evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has joined #scheme 03:43:11 -!- tupi [~david@189.60.162.71] has quit [Quit: Leaving] 03:44:06 _danb_ [~user@124-168-189-41.dyn.iinet.net.au] has joined #scheme 03:45:27 -!- Khisanth [~Khisanth@pool-96-246-10-165.nycmny.east.verizon.net] has quit [Ping timeout: 250 seconds] 03:52:34 timj_ [~timj@e176193042.adsl.alicedsl.de] has joined #scheme 03:52:59 -!- timj__ [~timj@e176195058.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 03:53:18 -!- pjb [~t@81.202.16.46.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 03:55:59 dralston [~dralston@S0106687f74a12729.va.shawcable.net] has joined #scheme 04:02:12 rageous [~Adium@user-38q461p.cable.mindspring.com] has joined #scheme 04:07:09 pjb [~t@81.202.16.46.dyn.user.ono.com] has joined #scheme 04:08:23 -!- rageous [~Adium@user-38q461p.cable.mindspring.com] has left #scheme 04:14:22 -!- bttf [~docBrown@c-68-59-124-155.hsd1.fl.comcast.net] has quit [Read error: Connection reset by peer] 04:29:54 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 04:31:49 fantazo_ [~fantazo@178-191-168-102.adsl.highway.telekom.at] has joined #scheme 04:35:05 -!- fantazo [~fantazo@178-190-237-31.adsl.highway.telekom.at] has quit [Ping timeout: 246 seconds] 04:35:15 -!- dralston [~dralston@S0106687f74a12729.va.shawcable.net] has quit [Quit: Leaving] 04:44:09 rageous [~Adium@user-38q461p.cable.mindspring.com] has joined #scheme 04:44:13 Genieliu [~genie@59.78.62.120] has joined #scheme 04:45:23 -!- rageous [~Adium@user-38q461p.cable.mindspring.com] has left #scheme 04:47:27 saccade [~saccade@c-67-180-11-158.hsd1.ca.comcast.net] has joined #scheme 04:48:14 rageous [~Adium@user-38q461p.cable.mindspring.com] has joined #scheme 04:54:34 -!- pjb [~t@81.202.16.46.dyn.user.ono.com] has quit [Remote host closed the connection] 04:59:51 pjb [~t@81.202.16.46.dyn.user.ono.com] has joined #scheme 04:59:54 -!- paulh_ [~paulh@192-9-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 05:01:36 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 05:02:26 groovy2shoes [~guv@wvc32564rh.rh.ncsu.edu] has joined #scheme 05:02:26 -!- groovy2shoes [~guv@wvc32564rh.rh.ncsu.edu] has quit [Changing host] 05:02:26 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 05:06:29 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 250 seconds] 05:06:42 -!- lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has quit [Remote host closed the connection] 05:06:55 -!- evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has quit [Ping timeout: 250 seconds] 05:07:51 evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has joined #scheme 05:08:13 -!- futilius [~otheruser@cow9.org] has quit [Ping timeout: 250 seconds] 05:08:34 futilius [~otheruser@2001:470:d:128:216:3eff:fe86:c70e] has joined #scheme 05:09:50 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 05:10:32 new2net [~N2N@unaffiliated/new2net] has joined #scheme 05:10:53 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 05:12:03 -!- foocraft [~dsc@78.101.228.183] has quit [Remote host closed the connection] 05:13:27 -!- aca20031 [~aca20031@vps1.benbuzbee.com] has quit [] 05:18:03 Anyoen around? 05:18:10 just me 05:18:20 Well, hello there. 05:18:31 hi 05:18:50 i am kind of new around here 05:19:01 Oh, me too. 05:19:11 Hahahahaha. 05:19:15 I'm taking an introductory Computer Science course and it makes use of Scheme. 05:19:26 Lucky you. :-) 05:19:33 I'm wondering if there is any really great reason to keep a point list in sorted order. 05:19:41 I think I am lucky, really. 05:19:42 yeah, lucky you... i learned how to draw with pixels in Q basic :( 05:19:51 Yikes. 05:19:53 rageous: What's your program doing? What's the point list for? 05:20:03 Well, it's an abstract question. 05:20:18 We wrote some simply programs that expected a list in increasing order, and entering new values to maintain that order. 05:20:29 Well, a usual reason to keep anything in sorted order is to enable binary searching. 05:20:38 lexicogablahblah order 05:20:41 ? 05:20:54 new2net: Well, any ordering will do, not necessarily lexicographical. 05:23:24 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 05:23:31 We also wrote a program that determined the maximum distance between points in a point list. 05:23:38 But, that didn't depend on sorted order. 05:24:36 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 05:24:43 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Client Quit] 05:33:21 -!- blueadept [~blueadept@unaffiliated/blueadept] has quit [Quit: Leaving] 05:34:34 rageous: *nods* 05:34:44 How many dimensions are your points? 05:35:33 Only two. 05:35:46 -!- saccade [~saccade@c-67-180-11-158.hsd1.ca.comcast.net] has quit [Quit: This computer has gone to sleep] 05:36:49 It's kind of an odd open-ended questions. It's asking for the merits of placing point lists into sorted order, but we didn't really do anything in the exercises that demanded sorting like that. 05:38:27 do you plan on enforcing the order when the list is created/added to, or when it is called and order is important? 05:39:50 That's deep. 05:39:57 The order is enforced when creating. 05:40:25 As I said, we only created one procedure that dealt with the sorted order, and the procedure assumed that the list that we gave it was already in a sorted order. 05:40:54 It would accept two parameters, a new point and existed sorted-order list, and insert the point to the appropriate location to maintain the sorted order. 05:41:22 And I think I've had too much to drink. 05:44:17 Just ordering by X? Or by Y? By X then Y? Y then X? 05:49:59 Better! 05:50:08 Distance from the origin. 05:50:16 (0, 0) 05:51:18 (define (distance p1 p2) (sqrt (+ (square (- (get-x p2) (get-x p1))) (square (- (get-y p2) (get-y p1)))))) 05:51:33 nilg [~user@77.70.2.229] has joined #scheme 06:03:58 Well, yes. 06:04:40 In the C world, we have a function called hypot that does just that. 06:04:58 (define (hypot x y) (sqrt (+ (* x x) (* y y)))) 06:05:07 Then, your distance function could be defined thus: 06:05:30 (define (distance p1 p2) (hypot (- (get-x p2) (get-x p1)) (- (get-y p2) (get-y p1)))) 06:05:52 Or, with distance from the origin, just use hypot directly. 06:08:47 Multi-dimensional norm: (define (hypot . xs) (sqrt (apply + (map (lambda (x) (* x x)) xs)))) 06:10:43 -!- new2net is now known as N2N 06:15:21 user18 [~user@p5B2A96EB.dip0.t-ipconnect.de] has joined #scheme 06:19:24 -!- user17 [~user@p5B2A9CE6.dip0.t-ipconnect.de] has quit [Ping timeout: 264 seconds] 06:24:38 -!- N2N [~N2N@unaffiliated/new2net] has quit [Ping timeout: 240 seconds] 06:37:49 dnolen [~davidnole@184.152.69.75] has joined #scheme 06:37:52 -!- dnolen [~davidnole@184.152.69.75] has quit [Client Quit] 06:38:46 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 240 seconds] 06:39:25 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 06:59:49 zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #scheme 06:59:51 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has left #scheme 06:59:52 HG` [~HG@xdslax058.osnanet.de] has joined #scheme 07:05:16 -!- user18 [~user@p5B2A96EB.dip0.t-ipconnect.de] has quit [Quit: Leaving] 07:16:02 wav1 [~Adium@99-201-58-158.pools.spcsdns.net] has joined #scheme 07:16:59 tauntaun [~Antoninus@ool-457c37c3.dyn.optonline.net] has joined #scheme 07:33:57 -!- DrDuck [~duck@216.186.151.63] has quit [Ping timeout: 240 seconds] 07:34:11 jewel [~jewel@196-215-117-46.dynamic.isadsl.co.za] has joined #scheme 07:44:52 -!- wav1 [~Adium@99-201-58-158.pools.spcsdns.net] has quit [Quit: Leaving.] 07:47:13 DrDuck [~duck@216.186.151.63] has joined #scheme 07:48:07 wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has joined #scheme 07:49:20 Is there a print funtion in scheme? 07:54:37 Genieliu: display 07:55:03 -!- tauntaun [~Antoninus@ool-457c37c3.dyn.optonline.net] has quit [Quit: Ex-Chat] 07:56:49 -!- rageous [~Adium@user-38q461p.cable.mindspring.com] has quit [Quit: Leaving.] 07:57:21 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 276 seconds] 07:58:28 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 07:58:58 -!- wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has quit [Quit: Leaving.] 08:00:14 cky: If I want to print some variables,can I use this ?(display a b c) 08:09:46 Genieliu: No, but you can do these: 08:09:51 (display (list a b c)) 08:10:00 (for-each display (list a b c)) 08:10:11 (The output of the two are different. Try both and see which one you like better.) 08:12:27 cky: I got it. But it always says ;Unspecified return value . What does that means? 08:17:49 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 08:18:32 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 08:23:06 Gmind [~Nevermind@113.190.196.58] has joined #scheme 08:23:15 hi 08:23:28 what is the use of (top) anyway ? 08:25:59 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Read error: Connection reset by peer] 08:26:37 groovy2shoes [~guv@unaffiliated/groovebot] has joined #scheme 08:26:47 -!- groovy2shoes [~guv@unaffiliated/groovebot] has quit [Client Quit] 08:30:32 -!- Genieliu [~genie@59.78.62.120] has quit [Quit: Lost terminal] 08:44:16 Benjohn [~benjohn@91.104.181.131] has joined #scheme 08:44:37 -!- Benjohn [~benjohn@91.104.181.131] has left #scheme 08:47:22 Khisanth [~Khisanth@pool-96-246-11-45.nycmny.east.verizon.net] has joined #scheme 08:50:01 mmc1 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 08:53:43 cky: which shows that there's no REPL in scheme, but a REDR instead (read eval display recursion). 09:28:39 -!- leppie [~lolcow@196-215-83-109.dynamic.isadsl.co.za] has quit [] 09:34:28 leppie [~lolcow@196-215-83-109.dynamic.isadsl.co.za] has joined #scheme 09:37:21 -!- Khisanth [~Khisanth@pool-96-246-11-45.nycmny.east.verizon.net] has quit [Read error: Connection timed out] 09:40:31 cfy [~cfy@unaffiliated/chenfengyuan] has joined #scheme 09:48:30 -!- acarrico [~acarrico@pppoe-68-142-62-150.gmavt.net] has quit [Ping timeout: 276 seconds] 09:51:51 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 09:55:07 jiyunatori [~thomas@4ad54-1-88-172-90-158.fbx.proxad.net] has joined #scheme 09:56:21 Hi. newbie question: how can I write a procedure with side-effects, such as queue-add! ? 09:56:46 By using one of the primitives with side-effect (having a ! in their name). 09:57:17 Or by using a function that has side-effect (ie. which calls one of those primitives, or a function that has side-effect, etc). 09:58:30 Or: (define (procedure-has-side-effect? p) (or (primitive-with-side-effect? p) (some procedure-has-side-effect? (procedures-called-by p)))) 10:00:57 peterhil` [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #scheme 10:02:21 ok thanks. 10:03:58 -!- snorble [~snorble@s83-179-14-105.cust.tele2.se] has quit [Quit: Lämnar] 10:07:51 -!- Gmind [~Nevermind@113.190.196.58] has quit [Quit: Leaving.] 10:09:31 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 10:10:24 -!- mmc1 [~michal@82-148-210-75.fiber.unet.nl] has quit [Ping timeout: 264 seconds] 10:22:50 snorble [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 10:24:32 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 10:32:19 Gmind [~Nevermind@113.190.196.58] has joined #scheme 10:32:38 schmir [~schmir@p54A91A4E.dip0.t-ipconnect.de] has joined #scheme 10:33:23 -!- Gmind [~Nevermind@113.190.196.58] has quit [Client Quit] 10:41:50 -!- schmir [~schmir@p54A91A4E.dip0.t-ipconnect.de] has quit [Ping timeout: 240 seconds] 10:42:55 -!- snorble [~snorble@s83-179-14-105.cust.tele2.se] has quit [Remote host closed the connection] 10:52:36 masm [~masm@2.80.129.75] has joined #scheme 11:04:40 gravicappa [~gravicapp@ppp85-141-167-145.pppoe.mtu-net.ru] has joined #scheme 11:05:54 -!- arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has left #scheme 11:09:44 snorble [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 11:17:12 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 264 seconds] 11:17:44 foocraft [~dsc@78.101.228.183] has joined #scheme 11:17:58 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 11:18:01 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 11:23:10 can i compile a guile scrit into binary? 11:27:18 -!- leppie [~lolcow@196-215-83-109.dynamic.isadsl.co.za] has quit [Ping timeout: 260 seconds] 11:56:35 -!- DrDuck [~duck@216.186.151.63] has quit [Ping timeout: 240 seconds] 12:04:23 -!- dfeuer [~dfeuer@wikimedia/Dfeuer] has quit [Ping timeout: 240 seconds] 12:14:12 cfy, If you mean to native code, no. 12:15:05 dsmith: oh.got it 12:15:13 dsmith: thank you 12:16:32 zmv [~daniel@c95334cf.virtua.com.br] has joined #scheme 12:17:28 -!- ineiros [~itniemin@james.ics.hut.fi] has quit [Ping timeout: 260 seconds] 12:17:31 lithpr [~lithpr@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 12:18:04 dfeuer [~dfeuer@pool-74-96-191-81.washdc.fios.verizon.net] has joined #scheme 12:18:04 -!- dfeuer [~dfeuer@pool-74-96-191-81.washdc.fios.verizon.net] has quit [Changing host] 12:18:04 dfeuer [~dfeuer@wikimedia/Dfeuer] has joined #scheme 12:20:52 cfy: but if your script is portable, you could think about alternative scheme implementations that can compile to native code. I don't know much about it, but, e.g. with gambit scheme this should be possible 12:22:21 bremner: oh,just a simple script.i'm learning scheme:) 12:23:47 cfy: then it's probably too much work to make native code ;) 12:23:52 wingo [~wingo@90.164.198.39] has joined #scheme 12:23:57 schemers. 12:24:10 racket can make executables too, but they are pretty big. 12:24:39 if i have a macro exported from a module, `define-foo' 12:24:41 hey wingo, we were just talking about whether guile compiles down to "native code". 12:24:52 hello bremner 12:24:55 bremner: but my script is not portable,i use (times) 12:25:08 no it compiles scheme to bytecode; yall probably mentioned that already tho :) 12:25:21 yeah we did, but I thought you know more than me ;) 12:25:58 so! macro in a module. like this: (define-syntax define-foo (syntax-rules () ((_ id) (begin (define t '(1 2 3)) (define (id) t))))) 12:26:11 that's defined in module A. 12:26:23 a user imports the macro, and calls (define-foo bar) in module B. 12:26:44 is the symbol "t" bound in either module? and if so which one. 12:27:08 you can use "module" == "library" for this discussion, though other module systems are interesting to know about too. 12:33:02 -!- fantazo_ [~fantazo@178-191-168-102.adsl.highway.telekom.at] has quit [Read error: Operation timed out] 12:34:20 -!- homie` [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Remote host closed the connection] 12:34:20 -!- wbooze` [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Read error: Connection reset by peer] 12:34:56 here's a simpler one: 12:35:12 -!- pygospa [~pygospa@kiel-5f77bc48.pool.mediaWays.net] has quit [Ping timeout: 264 seconds] 12:35:27 wbooze` [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 12:35:30 (define-syntax define-qux (syntax-rules () ((_) (define qux 10)))) 12:35:33 homie` [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 12:36:05 does that define a "qux" binding that is visible to any other part of a program? 12:37:15 pygospa [~pygospa@kiel-4d0670c8.pool.mediaWays.net] has joined #scheme 12:39:50 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 240 seconds] 12:40:52 if you consider define a binding form, then no, because of hygiene. but if you go the chicken way and say define == set!, then it's visible in module A. 12:41:11 tupi [~david@189.60.162.71] has joined #scheme 12:41:36 -!- _danb_ [~user@124-168-189-41.dyn.iinet.net.au] has quit [Ping timeout: 264 seconds] 12:43:17 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 12:44:00 humm. 12:46:16 in chicken, if you would do (let () (define-qux) body...), would the "qux" binding be visible in body... ? 12:46:34 -!- homie` [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 12:46:43 -!- wbooze` [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 12:48:43 fantazo_ [~fantazo@178-191-167-125.adsl.highway.telekom.at] has joined #scheme 12:48:45 I think inner defines are always binding forms, so no 12:49:44 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 252 seconds] 12:49:45 homie [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 12:50:08 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 12:50:08 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 12:50:08 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 12:51:01 wbooze [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 12:56:00 hi. why doesn't this work? 12:56:09 (define pwd 'current-directory) 12:56:09 (pwd) 12:56:51 Error: call of non-procedure: current-directory 12:58:29 (define pwd current-directory). 12:58:57 doh 12:59:01 ty 13:02:12 Agari [~Agari@107.Red-81-38-181.dynamicIP.rima-tde.net] has joined #scheme 13:03:45 paulh_ [~paulh@193-9-ftth.onsnetstudenten.nl] has joined #scheme 13:07:32 but chicken's way is really just a relic of the R5RS toplevel that they should have gotten rid of when they introduced modules 13:09:48 are you sure that (define-qux) expanded in module B would define qux in module A ? 13:10:08 is there just one top level in chicken, or is there one per module? 13:10:35 guile does one top level per module, for better and for worse 13:11:14 there is just one toplevel with a hack like ##module#A#foo for modules 13:11:53 the context is http://thread.gmane.org/gmane.lisp.guile.bugs/4839 13:12:49 that's not that bad of a hack 13:13:48 in that bug, the "t" is defined in the expanding module, but the free var "t" in the procedure is scoped in the macro's module 13:13:56 yuk. 13:14:06 wingo, Eww 13:16:51 but t is not a free variable as it's bound in the first define 13:17:21 if expanded at the top level it is not lexically bound 13:18:15 if expanded within a let or lambda or such it is bound of course 13:20:04 it's the same as (let () (define t 1) t), the second t is bound by the define. this is the "a module with defines is just a big letrec*" school of thought. 13:20:59 mmc1 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 13:22:08 guile doesn't really follow that school, fwiw 13:22:30 and tbh i don't think r6rs does either, as much as it claims to do so 13:22:43 -!- bpalmer [~user@unaffiliated/bpalmer] has left #scheme 13:22:45 given the ability to define new bindings in modules at runtime... 13:25:36 did you see abdulaziz's eval-in-module hacks? http://www.mail-archive.com/ikarus-users@ikarus-scheme.org/msg00485.html 13:28:20 Khisanth [~Khisanth@pool-96-250-21-168.nycmny.east.verizon.net] has joined #scheme 13:29:08 interesting 13:30:56 i guess you can't actually make new bindings at runtime in that system, but you can get at "private" vars 13:32:46 Doesn't a begin in the body of a library supposed to splice the defines into the body of the library? 13:35:11 femtoo [~femto@95-89-249-74-dynip.superkabel.de] has joined #scheme 13:41:08 rageous [~Adium@user-38q461p.cable.mindspring.com] has joined #scheme 13:41:42 rageous1 [~Adium@user-38q461p.cable.mindspring.com] has joined #scheme 13:41:42 -!- rageous [~Adium@user-38q461p.cable.mindspring.com] has quit [Read error: Connection reset by peer] 13:42:10 nilg [~user@77.70.2.229] has joined #scheme 13:45:35 -!- dfeuer [~dfeuer@wikimedia/Dfeuer] has quit [Ping timeout: 240 seconds] 13:54:20 -!- MapMan [mapman@dynamic-78-8-49-79.ssp.dialog.net.pl] has quit [Ping timeout: 276 seconds] 13:55:25 MapMan [mapman@host-62-141-192-113.swidnica.mm.pl] has joined #scheme 13:55:26 -!- jewel [~jewel@196-215-117-46.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 13:59:27 dsmith: it does. 13:59:37 dfeuer [~dfeuer@wikimedia/Dfeuer] has joined #scheme 14:08:33 Gmind [~Nevermind@113.190.195.89] has joined #scheme 14:11:35 DrDuck [~duck@216.186.151.63] has joined #scheme 14:12:18 -!- Gmind [~Nevermind@113.190.195.89] has quit [Client Quit] 14:12:35 -!- Agari [~Agari@107.Red-81-38-181.dynamicIP.rima-tde.net] has quit [Ping timeout: 240 seconds] 14:18:17 -!- homie [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 14:18:22 -!- wbooze [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 14:19:51 -!- jiyunatori [~thomas@4ad54-1-88-172-90-158.fbx.proxad.net] has left #scheme 14:29:08 phao [phao@189.107.229.217] has joined #scheme 14:29:59 Riastradh, hey 14:30:18 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 14:31:57 phao, zot. 14:33:41 -!- paulh_ [~paulh@193-9-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 14:34:11 Riastradh, I'm kinda "done" with the TAI time part of my date/time module. But I'd like to be sure nothing is missing. I mean, I may be forgetting about some function people expect in a date/time module. 14:34:28 and before moving on to the UTC date/time object, I wanna that sorted out 14:34:42 do you know some place I could look to see what kind of stuff is expected in a date/time module? 14:34:45 Well, does it handle calling up the current authorities on moon observations for the Islamic calendar? 14:35:02 not 14:35:23 =) 14:35:31 In that case, it's missing a function some people might expect in a date/time module. 14:35:32 wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has joined #scheme 14:39:23 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 14:40:47 pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #scheme 14:47:26 -!- phao [phao@189.107.229.217] has quit [Ping timeout: 240 seconds] 14:50:05 jewel [~jewel@196-215-117-46.dynamic.isadsl.co.za] has joined #scheme 14:52:16 phao [phao@189.107.247.158] has joined #scheme 14:54:32 -!- wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has quit [Quit: Leaving.] 14:55:06 -!- corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has quit [Quit: Leaving] 14:57:29 -!- mmc1 [~michal@82-148-210-75.fiber.unet.nl] has quit [Read error: Connection reset by peer] 14:57:48 mmc1 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 15:02:07 -!- mmc1 [~michal@82-148-210-75.fiber.unet.nl] has quit [Ping timeout: 240 seconds] 15:02:33 Gmind [~Nevermind@123.16.108.26] has joined #scheme 15:13:04 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 15:14:38 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 15:16:23 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 240 seconds] 15:16:36 corruptmemory [~jim@ool-18bbd5b2.static.optonline.net] has joined #scheme 15:17:06 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 15:19:37 homie [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 15:21:25 wbooze [~levgue@xdsl-78-35-174-5.netcologne.de] has joined #scheme 15:23:26 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 15:24:50 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 15:30:14 -!- jewel [~jewel@196-215-117-46.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 15:33:02 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 15:34:08 wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has joined #scheme 15:35:02 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 15:38:51 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 15:43:20 wbooze` [~levgue@xdsl-78-35-175-167.netcologne.de] has joined #scheme 15:43:33 homie` [~levgue@xdsl-78-35-175-167.netcologne.de] has joined #scheme 15:45:26 -!- wbooze [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Ping timeout: 240 seconds] 15:45:32 -!- wbooze` [~levgue@xdsl-78-35-175-167.netcologne.de] has quit [Client Quit] 15:46:04 -!- homie` [~levgue@xdsl-78-35-175-167.netcologne.de] has quit [Client Quit] 15:46:08 -!- homie [~levgue@xdsl-78-35-174-5.netcologne.de] has quit [Ping timeout: 276 seconds] 15:46:43 -!- cfy [~cfy@unaffiliated/chenfengyuan] has quit [Remote host closed the connection] 15:47:29 jiyunatori [~thomas@4ad54-1-88-172-90-158.fbx.proxad.net] has joined #scheme 15:48:51 homie [~levgue@xdsl-78-35-175-167.netcologne.de] has joined #scheme 15:49:05 f8l [~f8l@77-254-79-250.adsl.inetia.pl] has joined #scheme 15:50:56 Agari [~Agari@107.Red-81-38-181.dynamicIP.rima-tde.net] has joined #scheme 15:51:02 -!- phao [phao@189.107.247.158] has quit [Ping timeout: 240 seconds] 15:53:12 wbooze [~levgue@xdsl-78-35-175-167.netcologne.de] has joined #scheme 15:55:00 -!- zmv [~daniel@c95334cf.virtua.com.br] has quit [Ping timeout: 264 seconds] 16:03:38 wingo: A hygienically renamed `t' is bound in module B. 16:03:55 outofbrain [~outofbrai@dslb-088-071-092-124.pools.arcor-ip.net] has joined #scheme 16:04:33 zmv [~daniel@c95334cf.virtua.com.br] has joined #scheme 16:04:39 Well, get out there and rescue it, and free it from its bindings, then! Hurry, there's a damsel in distress in module B! 16:05:14 tcleval [~funnyguy@186.213.51.22] has joined #scheme 16:14:00 are any Kawa users around? I'm having trouble defining a class in Kawa which implements a Java interface -- Kawa seems to be trying to look for a class instead of an interface since it complains with a "no such class" error. 16:15:30 user17 [~user@p5B2A96EB.dip0.t-ipconnect.de] has joined #scheme 16:17:21 nilg [~user@77.70.2.229] has joined #scheme 16:17:38 jesusito [~user@235.pool85-49-232.dynamic.orange.es] has joined #scheme 16:17:51 DerGuteMoritz: You are able to access classes using the same syntax, right? 16:18:01 cky: yes 16:18:05 Hmmm. 16:18:23 I tried it define-class, define-simple-class and module-implements 16:18:33 even the latter complains about unknown class 16:19:07 I don't think there are many Kawa users around here. After all, it's not Scheme... 16:19:26 Riastradh: it isn't? 16:19:45 Not last I checked. Does it have proper tail recursion, and working CWCC? 16:21:21 according to the docs, call/cc is not fully implemented, TCO has been added recently it seems 16:22:07 other than that it claims to be R5RS compliant 16:23:45 TCO, or proper tail recursion? GCC does TCO, but many calling conventions it conforms to preclude proper tail recursion. 16:23:47 As I understand it, the JVM method calling convention precludes proper tail recursion too. 16:23:47 tronador_ [~guille@190.253.157.72] has joined #scheme 16:24:53 -!- vu3rdd [~vu3rdd@fsf/member/vu3rdd] has quit [Remote host closed the connection] 16:25:19 paulh_ [~paulh@114-9-ftth.onsnetstudenten.nl] has joined #scheme 16:25:33 Kawa optimizes some tail calls but proper tail recursion is not supported if I remember correctly. 16:25:34 Riastradh: the docs say "Kawa now does general tail-call elimination, but only if you use the flag --full-tail-calls." 16:29:21 rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has joined #scheme 16:29:32 whee. 16:30:36 -!- gravicappa [~gravicapp@ppp85-141-167-145.pppoe.mtu-net.ru] has quit [Read error: Operation timed out] 16:30:38 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 240 seconds] 16:33:01 pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has joined #scheme 16:33:47 -!- pygospa [~pygospa@kiel-4d0670c8.pool.mediaWays.net] has quit [Disconnected by services] 16:33:59 pygospa [~pygospa@kiel-4dbedebb.pool.mediaWays.net] has joined #scheme 16:37:37 -!- rageous1 [~Adium@user-38q461p.cable.mindspring.com] has quit [Quit: Leaving.] 16:39:37 tauntaun [~Antoninus@64.134.66.146] has joined #scheme 16:42:30 -!- pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has quit [Quit: Leaving.] 16:45:05 -!- tcleval [~funnyguy@186.213.51.22] has quit [Quit: leaving] 16:45:17 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 16:47:10 -!- HG` [~HG@xdslax058.osnanet.de] has quit [Quit: Leaving.] 16:50:32 Couick [~quassel@AClermont-Ferrand-158-1-47-56.w86-211.abo.wanadoo.fr] has joined #scheme 16:51:33 elly, wooohoo! 16:52:03 spuuuriiing break! 16:52:48 it is not spring break yet 17:00:14 odd 17:00:28 Awww! 17:00:35 *dsmith* breaks a spring 17:00:52 (also I'm not a student, so I have no spring break anyway :P) 17:02:43 hehe :p well try to pretend you have a spring break when the students get it, so you can enjoy it more 17:07:12 haha 17:08:15 I could try seducing a nice college boy during MIT's spring break <.< 17:12:20 unrelated to that (honestly), I have discovered vegan pseudo-bacon 17:13:56 -!- amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has quit [Quit: leaving] 17:17:26 pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has joined #scheme 17:20:49 -!- pnkfelix [~Adium@c-68-38-142-34.hsd1.nj.comcast.net] has quit [Client Quit] 17:30:48 foof: ok. seems to require a globally-unique, serializable gensym. 17:31:41 .oO("nice college boy" ... "vegan pseudo-bacon" ...) 17:32:31 nice college-bacon 17:33:14 offby1: those are orthogonal 17:35:22 do they share a coordinate system, is the question 17:35:55 -!- wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has quit [Quit: Leaving.] 17:36:01 I don't think so... 17:39:33 wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has joined #scheme 17:44:09 Gmind1 [~Nevermind@123.16.108.26] has joined #scheme 17:45:14 -!- jiyunatori [~thomas@4ad54-1-88-172-90-158.fbx.proxad.net] has left #scheme 17:45:19 -!- Gmind [~Nevermind@123.16.108.26] has quit [Ping timeout: 250 seconds] 17:46:21 Nisstyre [~nisstyre@infocalypse-net.info] has joined #scheme 17:52:50 -!- Gmind1 [~Nevermind@123.16.108.26] has quit [Quit: Leaving.] 17:53:41 acarrico [~acarrico@pppoe-68-142-62-150.gmavt.net] has joined #scheme 17:54:51 jesusito` [~user@163.pool85-49-250.dynamic.orange.es] has joined #scheme 17:57:26 -!- jesusito [~user@235.pool85-49-232.dynamic.orange.es] has quit [Ping timeout: 240 seconds] 17:58:43 pavelludiq [~quassel@87.246.58.193] has joined #scheme 18:00:24 pavelludiq_ [57f63ac1@gateway/web/freenode/ip.87.246.58.193] has joined #scheme 18:01:08 -!- paulh_ [~paulh@114-9-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 18:03:10 saccade [~saccade@c-67-180-11-158.hsd1.ca.comcast.net] has joined #scheme 18:04:15 -!- pavelludiq [~quassel@87.246.58.193] has quit [Ping timeout: 272 seconds] 18:04:43 Harrold [~quassel@dhcp-101-110.hpsc-staff.carleton.ca] has joined #scheme 18:06:08 -!- jesusito` is now known as jesusito 18:06:43 -!- user17 [~user@p5B2A96EB.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 18:08:12 -!- saccade [~saccade@c-67-180-11-158.hsd1.ca.comcast.net] has quit [Ping timeout: 264 seconds] 18:12:39 -!- tronador_ [~guille@190.253.157.72] has quit [Quit: tronador_] 18:14:14 Gmind [~Nevermind@123.16.108.26] has joined #scheme 18:14:59 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 18:18:28 tronador_ [~guille@190.253.157.72] has joined #scheme 18:21:27 -!- wav1 [~Adium@cpe-66-68-116-199.austin.res.rr.com] has quit [Quit: Leaving.] 18:25:36 -!- Gmind [~Nevermind@123.16.108.26] has quit [Read error: Connection reset by peer] 18:37:49 -!- Harrold [~quassel@dhcp-101-110.hpsc-staff.carleton.ca] has quit [Ping timeout: 272 seconds] 18:39:01 -!- stepnem [~stepnem@176.119.broadband10.iol.cz] has quit [Quit: ZNC - http://znc.sourceforge.net] 18:43:28 HG` [~HG@xdslax058.osnanet.de] has joined #scheme 18:45:44 foof: ping 18:46:29 It's three in the morning right now where I suspect foof is, tizoc. Perhaps you should try email. 18:46:48 -!- snorble [~snorble@s83-179-14-105.cust.tele2.se] has quit [Quit: Lämnar] 18:46:51 Riastradh: ok, thanks 18:47:18 I think I just found a bug on chibi's string-ports, trying to debug it now 18:49:27 -!- wingo [~wingo@90.164.198.39] has quit [Ping timeout: 240 seconds] 18:51:05 stepnem [~stepnem@176.119.broadband10.iol.cz] has joined #scheme 18:55:32 -!- HG` [~HG@xdslax058.osnanet.de] has quit [Quit: HG`] 18:56:18 HG` [~HG@xdslax058.osnanet.de] has joined #scheme 18:59:04 -!- hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has left #scheme 18:59:40 Harrold [~quassel@dhcp-101-110.hpsc-staff.carleton.ca] has joined #scheme 19:01:40 gravicappa [~gravicapp@ppp85-141-167-145.pppoe.mtu-net.ru] has joined #scheme 19:03:38 femtooo [~femto@95-89-249-74-dynip.superkabel.de] has joined #scheme 19:06:59 -!- femtoo [~femto@95-89-249-74-dynip.superkabel.de] has quit [Ping timeout: 276 seconds] 19:19:58 aca20031 [~aca20031@vps1.benbuzbee.com] has joined #scheme 19:20:28 http://codepad.org/ApflHJ35 Im havin trouble with this, reaching max recursion depth. Ist here a reason it wouldnt read begin and terminate recursion, assuming it were called the first time with 'a' 19:22:50 is there a better way to debug this. i feel like just being able to print each loop or step through the code would help me fix this myself easily 19:23:06 but even printing each value of token requires me to do some crazy (begin) wrapper 19:23:10 Step 1. Clean up your brackets and indentation 19:23:36 fds I thought they were clean, compared to this http://www.cs.fsu.edu/~engelen/courses/COP4020/Pr1.pdf shit im working off of :/ im not sure what the standard is 19:24:21 The code in that PDF looks good 19:24:35 aca20031: scheme is not java ;) 19:24:38 cant tell where parenthesis begin and end in that system : 19:24:40 :( 19:24:49 aca20031: you need an editor that helps you 19:24:59 i feel like thats going to make debugging a b-i-t-c-h but Ill do it if youll help me with it switched :P 19:25:14 s/(name (read))/(name token)/ 19:25:43 good point. 19:26:11 -is- there some easy way to debug this? Like I said I feel like I cant even add prints without adding begins and 50 ()'s 19:27:01 Every pair of parentheses is significant, aca20031. However, that doesn't mean that it's important to read them -- especially not strings of closing delimiters. You just can't add them willy-nilly like you did around the COND; (lambda (token) ((cond ...))) has a very different meaning from (lambda (token) (cond ...)). 19:27:38 christ :( 19:27:39 aca20031: I only know racket, but it has a graphical debugger 19:27:46 Write parentheses, and read the indentation that Emacs automatically sets for you. 19:27:56 im doing this in VIM 19:28:00 Now, that said, what happens when there's no more input? What does READ do? 19:28:06 I couldnt even figure out how to exit MIT's edwin 19:28:31 Riastradh presumably for my test it will stop at 'begin' before it hits EOF 19:28:35 All you need to know to use Emacs (be it GNU Emacs or Edwin or XEmacs or what have you) is C-h, for help, and M-x, to execute a named command. 19:28:54 C is control, fine, whats M? 19:29:12 aca20031: "Meta", usually Alt on PC keyboards. 19:29:16 aca20031, that may be the intent -- but what if it misses the `begin' token? What will your program do then? 19:29:38 loop, I understand why it loops, in theory, just not why it doesnt reach begin and quit :P 19:29:47 of course I do now, since i changed name to name token 19:29:56 it doesnt od what i want it to still but thats a start, and ill try edwin 19:30:15 AND ill try using the formatting in that doc even though it confuses the hell out of my with reguards to where parenthesis begin and end 19:31:06 If you need to know, Emacs can tell you: just put the point before the opening delimiter, and type C-M-f (forward S-expression); or put the point on the closing delimiter, and type C-M-b (backward S-expression). 19:31:34 *aca20031* bangs head on wall 19:31:51 But most of the time, you don't need to know, because either the editor indents the code as you intended, in which case you read the indentation; or it doesn't, in which case the parentheses are wrong, and the indentation will tell you where they're wrong. 19:31:59 this seems like a fuck crazy project to assign for the -first- use of scheme in a class that spent only 1.2 weeks on basic syntax 19:32:01 aca20031: Seriously, if you use Emacs, your Scheme coding experience will be much improved. 19:32:18 Emacs or DrRacket are both decent. 19:32:29 aca20031: That's because Scheme has no/minimal syntax. You shouldn't need to spend very much time on syntax. 19:32:33 but I guess you have some restriction on scheme implementation. 19:32:57 bremner: I wonder if it's possible to implement paredit mode in DrRacket. 19:33:13 still, i opened htis project file not even knowing how to run it in an interpreter :( 19:33:37 cky: not sure, but there is a big gap between scheme-ignorant editor and paredit. 19:33:47 bremner: Indeed. 19:34:24 and for people who are frustrated/overwhelmed, gui's have their virtues. 19:35:18 *bremner* is frustrated and overwhelmed, but not by scheme ;) 19:35:42 scheme isnt too overwealming and seems simple, but being throw into writing something like this with no apparent way to debug issues, jesus 19:35:52 aca20031, open up a fresh Edwin. Type `(+ 1 2)' and then `C-x C-e'. 19:36:03 iev opened edwin and cant seem to figure out how to close it or list commands 19:36:03 lol 19:36:21 i cant even get out of the command portion to the main editing area 19:36:34 Type C-g. 19:36:40 aca20031: you *can* use Vim. 19:36:52 well im going to need a debugging environment 19:36:56 or I will be in tears. 19:37:02 or, if you want emacs goodness, you can use Emacs + Vimpulse 19:37:12 which is Emacs with a Vim-like text editor 19:37:14 \o/ 19:37:17 To exit Edwin, type `M-x save-buffers-kill-scheme RET', or `C-x C-c'. 19:38:21 If you don't have a Meta or Alt key, type `ESC x' instead: you can always type ESC and then a key in the place of Meta modifying the key. 19:38:37 yeah this isnt going to work, lol 19:38:56 stuck in command mode in nonsense, learning curve is going to be too high for me to be productive 19:39:00 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 240 seconds] 19:39:10 Do you want help, or do you want to complain? 19:39:17 gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 19:39:22 I dont want for you to have to walk me through stupid commands in emacs 19:39:34 aca20031: so you want to use Vim? 19:39:36 Id rather you not get frustrated before I get to use you to help me with the actual code :) 19:39:56 I wasn't planning to do more than show you how to evaluate Scheme expressions and enter the tutorial so that Edwin can walk you through itself. 19:40:16 Riastradh: Edwin is to Scheme what SLIME is to CL? 19:40:36 alright then 19:40:53 Sorry, I won't help you with your code if you won't let Emacs make it legible. I don't know any reason why anyone would ever use vim, and I don't think it will help you much with editing Scheme. 19:41:19 I had it evaluate a line of text, I take it it just puts a comment in there that I might as well delete? 19:41:27 zmv, Edwin is a GNU Emacs clone written in Scheme, which runs on MIT Scheme. 19:41:41 ooh, nice! 19:41:53 and ctrl+x = command mode? 19:41:55 does it use implementation dependent code? 19:41:57 aca20031, the *scheme* buffer is for scratch work. You can delete it if you want, but usually one leaves a transcript of one's interactions in the buffer. 19:42:49 so this is -not- where I want to be doing my actual coding? 19:42:56 aca20031, `C-x' is a general prefix for a lot of commands. Type `C-h t' for a tutorial, as Edwin suggests that you do when you start it up. 19:42:57 aca20031, just use drracket 19:43:35 Riastradh: does Edwin use implementation dependent code? 19:43:46 s/n d/n-d/ 19:44:38 aca20031, you can do work in *scheme*, but it won't be saved to a file unless you take some action to do so. Usually one opens a file with `C-x C-f /path/to/file.scm RET' to store one's code there, and types `C-x C-s' to save it. 19:44:50 apparently alt isnt a valid meta key here 19:45:26 so i can use escape, kosher 19:46:33 Anyway, read the tutorial. Practically everything I've said about using Edwin is in the tutorial. 19:47:08 im on it, thanks 19:47:55 probably he'd have less trouble with DrRacket, but anyway... 19:48:32 well to be fair the CS department only has MIT scheme installed, and I imagine thats where the professor will test my code 19:55:02 -!- jao [~user@pdpc/supporter/professional/jao] has quit [Ping timeout: 240 seconds] 20:02:52 ok, wellt ha was fun. 20:02:58 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 20:03:12 Now when you say it makes my code look pretty, what do you suggest my first step be after loading my code file into edwin 20:03:38 femtoo [~femto@95-89-249-74-dynip.superkabel.de] has joined #scheme 20:03:59 Put the point at the beginning of the buffer (`M-<', or `M-S-,') and type `C-M-q' to reindent the whole thing. If you want to indent a single line, put the point on that line and hit TAB (or C-i). 20:04:55 interesting 20:05:41 A little more specifically, C-M-q will indent one following S-expression. 20:06:35 -!- femtooo [~femto@95-89-249-74-dynip.superkabel.de] has quit [Ping timeout: 250 seconds] 20:06:44 and to say test my file by calling (convert "t") I would write (convert "t") and type c-x e? 20:06:50 somewhere near the end 20:07:40 In a foo.scm buffer, type `M-o' to evaluate the whole buffer; then switch to *scheme* to test it by typing `(convert "t") C-x C-e'. 20:08:01 im out of room on my whiteboard to write all that :( 20:09:03 If you forget what a key does, type `C-k k KEY'. If you forget what key runs a command, type `C-h w COMMAND RET'. 20:11:36 k, thank you. Sorry for the epic nubness 20:12:15 -!- Agari [~Agari@107.Red-81-38-181.dynamicIP.rima-tde.net] has quit [Ping timeout: 240 seconds]