00:00:57 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 00:03:53 paulh_ [~paulh@3-12-ftth.onsnetstudenten.nl] has joined #scheme 00:12:00 ckrailo [~ckrailo@pool-71-170-15-148.dllstx.fios.verizon.net] has joined #scheme 00:13:02 -!- damg [~damg@p5086F56E.dip.t-dialin.net] has quit [Ping timeout: 255 seconds] 00:17:26 zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #scheme 00:17:45 -!- nteon [~nteon@204.28.122.186] has quit [Ping timeout: 252 seconds] 00:23:11 tronador_ [~guille@190.66.173.210] has joined #scheme 00:24:04 -!- pdlogan [~patrick@75-175-5-194.ptld.qwest.net] has left #scheme 00:27:39 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Remote host closed the connection] 00:32:29 nteon [~nteon@204.28.122.186] has joined #scheme 00:38:31 ijp` [~user@host86-148-145-100.range86-148.btcentralplus.com] has joined #scheme 00:40:55 -!- ijp [~user@host109-154-192-7.range109-154.btcentralplus.com] has quit [Ping timeout: 255 seconds] 00:42:14 -!- nteon [~nteon@204.28.122.186] has quit [Ping timeout: 250 seconds] 00:44:49 -!- lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has quit [Remote host closed the connection] 00:48:38 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 276 seconds] 00:51:01 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 00:51:28 -!- jesusito [~user@18.pool85-49-239.dynamic.orange.es] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 00:53:42 pytho [814f2216@gateway/web/freenode/ip.129.79.34.22] has joined #scheme 00:54:48 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Read error: Operation timed out] 00:55:05 Nisstyre [~nisstyre@infocalypse-net.info] has joined #scheme 00:55:39 nteon [~nteon@204.28.122.186] has joined #scheme 01:01:21 -!- mmc1 [~michal@82-148-210-75.fiber.unet.nl] has quit [Read error: Operation timed out] 01:01:28 -!- pytho [814f2216@gateway/web/freenode/ip.129.79.34.22] has quit [Quit: Page closed] 01:01:38 -!- Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has quit [Ping timeout: 276 seconds] 01:05:17 -!- davazp [~user@201.Red-88-6-204.staticIP.rima-tde.net] has quit [Remote host closed the connection] 01:06:43 -!- Intensity [lTPZzKoqIN@unaffiliated/intensity] has quit [Quit: Intensity] 01:21:22 Intensity [w4jkYxZ10A@unaffiliated/intensity] has joined #scheme 01:41:46 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 01:47:04 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 255 seconds] 01:50:19 MrFahrenheit [~RageOfTho@users-148-156.vinet.ba] has joined #scheme 01:54:54 homie` [~levgue@xdsl-78-35-138-185.netcologne.de] has joined #scheme 01:57:31 -!- homie [~levgue@xdsl-84-44-211-221.netcologne.de] has quit [Ping timeout: 260 seconds] 02:06:26 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Quit: Leaving.] 02:13:04 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 240 seconds] 02:15:57 xwl_ [~user@nat/nokia/x-wiqlekbgwfslhpqz] has joined #scheme 02:17:32 -!- arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has left #scheme 02:26:50 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 02:29:56 tr3x [~tr3x@78-1-152-200.adsl.net.t-com.hr] has joined #scheme 02:32:54 -!- tupi [~david@189.60.162.71] has quit [Quit: Leaving] 02:37:22 -!- myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 02:41:36 vu3rdd [~vu3rdd@64.104.132.187] has joined #scheme 02:41:36 -!- vu3rdd [~vu3rdd@64.104.132.187] has quit [Changing host] 02:41:36 vu3rdd [~vu3rdd@fsf/member/vu3rdd] has joined #scheme 02:50:49 -!- neilcj [~neilcj@c-174-49-216-137.hsd1.pa.comcast.net] has quit [Remote host closed the connection] 02:55:16 finallY! rudybot's special duncanm trap triggers. 02:55:22 *offby1* looks to see if he caught anything 02:57:43 -!- MrFahrenheit [~RageOfTho@users-148-156.vinet.ba] has quit [Ping timeout: 255 seconds] 03:05:41 -!- tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has quit [Quit: Ex-Chat] 03:15:06 tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has joined #scheme 03:17:13 -!- metasyntax [~taylor@72.86.89.174] has quit [Quit:  In our sky there is no limits, and masters we have none; heavy metal is the only one! ] 03:36:19 offby1: Yep, indeed so. :-) 03:37:04 nothing but a-chinaman 03:37:51 :-) 03:45:11 -!- tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has quit [Quit: Ex-Chat] 03:54:32 Hal9k [~Lernaean@unaffiliated/kusanagi] has joined #scheme 04:01:20 nilg [~user@77.70.2.229] has joined #scheme 04:04:29 -!- paulh_ [~paulh@3-12-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 04:11:17 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 04:25:07 myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has joined #scheme 04:36:16 -!- tr3x [~tr3x@78-1-152-200.adsl.net.t-com.hr] has quit [Ping timeout: 255 seconds] 04:37:01 emporas_ [~emporas@athedsl-171948.home.otenet.gr] has joined #scheme 04:37:25 tr3x_ [~tr3x@93-138-70-18.adsl.net.t-com.hr] has joined #scheme 04:38:48 -!- emporas [~emporas@athedsl-166692.home.otenet.gr] has quit [Ping timeout: 246 seconds] 04:41:11 myu2_ [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has joined #scheme 04:44:23 -!- myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has quit [Ping timeout: 255 seconds] 04:50:06 -!- azaq23 [~derivecto@unaffiliated/azaq23] has quit [Ping timeout: 250 seconds] 04:58:44 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Remote host closed the connection] 05:00:48 -!- homie` [~levgue@xdsl-78-35-138-185.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 05:02:37 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 05:16:23 homie [~levgue@xdsl-78-35-138-185.netcologne.de] has joined #scheme 05:17:40 -!- Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has quit [] 05:19:50 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Quit: Leaving] 05:31:58 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 05:39:23 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 05:46:14 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 05:48:02 necroforest [~jarred@ip68-106-224-116.ph.ph.cox.net] has joined #scheme 05:48:50 -!- tronador_ [~guille@190.66.173.210] has quit [Quit: tronador_] 05:51:13 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Remote host closed the connection] 05:52:16 -!- necroforest [~jarred@ip68-106-224-116.ph.ph.cox.net] has quit [Quit: necroforest] 06:05:30 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 06:10:22 -!- blueadept [~blueadept@unaffiliated/blueadept] has quit [Quit: Leaving] 06:17:25 Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has joined #scheme 06:17:39 jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has joined #scheme 06:20:54 -!- Khisanth [~Khisanth@pool-96-250-34-192.nycmny.east.verizon.net] has quit [Ping timeout: 276 seconds] 06:21:37 -!- ckrailo [~ckrailo@pool-71-170-15-148.dllstx.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] 06:29:41 -!- jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has quit [Ping timeout: 255 seconds] 06:39:43 Khisanth [~Khisanth@pool-96-250-21-139.nycmny.east.verizon.net] has joined #scheme 06:39:59 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Quit: ccorn] 06:40:50 -!- Benjohn [~benjohn@91.104.146.236] has quit [Quit: Benjohn] 06:44:37 bharath_g [~bharath10@117.211.88.150] has joined #scheme 06:55:01 -!- osoleve [~andy@adsl-074-166-228-237.sip.bct.bellsouth.net] has quit [Ping timeout: 260 seconds] 06:55:26 osoleve [~andy@adsl-074-166-228-237.sip.bct.bellsouth.net] has joined #scheme 07:00:22 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Quit: Leaving] 07:03:40 schmir [~schmir@mail.brainbot.com] has joined #scheme 07:13:07 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 07:17:16 `Jaka [Mango-chan@deu-77-231.ResHall.Berkeley.EDU] has joined #scheme 07:17:17 -!- `Jaka [Mango-chan@deu-77-231.ResHall.Berkeley.EDU] has quit [Remote host closed the connection] 07:19:55 -!- Mango-chan [~derp@unaffiliated/mango-chan] has quit [Ping timeout: 248 seconds] 07:24:11 hkBst [~quassel@gentoo/developer/hkbst] has joined #scheme 07:38:11 Mango-chan [Mango-chan@ucbvpn-208-147.VPN.Berkeley.EDU] has joined #scheme 07:38:11 -!- Mango-chan [Mango-chan@ucbvpn-208-147.VPN.Berkeley.EDU] has quit [Changing host] 07:38:11 Mango-chan [Mango-chan@unaffiliated/mango-chan] has joined #scheme 07:50:43 alcuadrado [~alcuadrad@host89.190-139-17.telecom.net.ar] has joined #scheme 07:51:24 Hi there! Can anyone tell me if this is correctly formated according to scheme's community conventions? http://paste.ofcode.org/tL8VBVvy7m6EC7TpCgywe7 07:53:18 looks good. i usually trust emacs' automatic code indentation 07:53:57 one thing, the inner DEFINE's body shouldn't be indented so far 07:55:10 sorry, I don't get what you mean, line 2? less indented? 07:55:25 I don't know how to use emacs :P 07:55:42 the entire COND form should be indented less 07:55:54 probably two spaces more than the inner DEFINE 07:57:46 I see 07:57:57 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 07:58:05 so define's "bodies" are indented two spaces? 07:58:26 yes, usually 07:58:56 I should learn to use emacs 07:59:19 many other tools support automatic indentation, i think :) 08:00:48 yep, but everyone in here says that emacs is the best editor for lisp 08:00:55 say* 08:02:18 ijp`` [~user@host109-153-22-115.range109-153.btcentralplus.com] has joined #scheme 08:04:38 -!- ijp` [~user@host86-148-145-100.range86-148.btcentralplus.com] has quit [Ping timeout: 255 seconds] 08:09:00 -!- Axioplase_ [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has quit [Ping timeout: 250 seconds] 08:09:40 Axioplase [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has joined #scheme 08:09:54 -!- Axioplase [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has quit [Client Quit] 08:11:04 Axioplase [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has joined #scheme 08:11:16 -!- Axioplase is now known as Axioplase_ 08:21:33 -!- nohcel [~l@Macaw.cens.UCLA.EDU] has quit [Read error: Operation timed out] 08:23:21 alcuadrado i spy some 08:23:22 SICP 08:24:14 yeah! I'm through chapter 1 :) 08:24:39 exercise 1.19 exactly :) 08:24:47 use emacs 08:24:55 it's magical 08:24:57 for lisp indentation 08:24:59 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 248 seconds] 08:26:05 I have to read the tutorial :P 08:26:27 is column 80 respected in lisp? 08:26:35 I mean, in lisp community 08:29:22 -!- cmatei [~cmatei@95.76.17.75] has quit [Read error: Operation timed out] 08:29:41 hey, can anyone help me with an error from the interpreter I can't understand? 08:30:06 Gmind [~Nevermind@113.190.194.105] has joined #scheme 08:30:16 alcuadrado 08:30:18 shoot for it 08:30:36 cmatei [~cmatei@95.76.17.75] has joined #scheme 08:30:44 lechon [~l@Macaw.cens.UCLA.EDU] has joined #scheme 08:30:44 -!- lechon [~l@Macaw.cens.UCLA.EDU] has quit [Changing host] 08:30:44 lechon [~l@unaffiliated/keram] has joined #scheme 08:30:45 http://paste.ofcode.org/Lvq6i2g9bdSGzhC8SQ5UBj 08:30:50 there it is 08:31:08 that happens when trying (fast-times 2 2) 08:31:30 I'm using racket v5.1 08:31:53 hm 08:32:59 I don't get line 6 08:33:06 there seems to be a paren mismatch 08:33:40 oh, there is 08:33:42 thanks! 08:33:53 gedit is not a good editor for scheme mabe haha 08:33:59 use emacs 08:34:00 use emacs or vim :) 08:34:01 seriously 08:34:17 ((<= (x (double x*))) 08:34:18 yeah 08:34:19 this line 08:34:28 you're trying to... apply x to double x 08:34:33 * 08:34:35 which doesn't make sense 08:34:48 oops 08:34:59 yeah, I fixed it 08:35:13 lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has joined #scheme 08:35:39 I use vim, but mostly on tty, I never got use to gvim, and having a GUI is nice 08:35:43 use emacs 08:35:44 for lisp 08:35:46 seriously! 08:35:49 alcuadrado: also using a pastebin like paste.lisp.org would have shown you that more easily 08:36:23 -!- xwl_ [~user@nat/nokia/x-wiqlekbgwfslhpqz] has quit [Remote host closed the connection] 08:36:25 I'm gonna read the emacs tutorial, I swear! 08:36:35 Mango-chan: you are a very serious human being today :) 08:36:45 C-Keen, I was about to paste it there, but, a captcha? Come on :( 08:37:23 alcuadrado: if you want to do it the hard way, counting parens in your head, go on 08:38:30 cool! I pasted it there :) 08:39:11 99 open parens on the wall... 08:39:22 not that hard, really :) 08:45:05 xwl_ [~user@nat/nokia/x-cgfkkvwnptfdqusf] has joined #scheme 08:47:11 -!- ijp`` [~user@host109-153-22-115.range109-153.btcentralplus.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 08:47:34 -!- lechon [~l@unaffiliated/keram] has quit [Ping timeout: 250 seconds] 08:51:56 lechon [~l@Macaw.cens.UCLA.EDU] has joined #scheme 08:51:56 -!- lechon [~l@Macaw.cens.UCLA.EDU] has quit [Changing host] 08:51:56 lechon [~l@unaffiliated/keram] has joined #scheme 09:04:13 well, I've read 20% of the tut so far and it seems interesting, although meta is so uncomfortable to type 09:06:32 left thumb FTW 09:08:36 paste.lisp.org's old captcha was the best 09:12:33 It was 'lisp' for years before they changed it to some digits, but surely any spammer who managed to OCR 'lisp' can also OCR an undistorted '4950' 09:12:42 or whatever number they generate 09:13:13 so that means lisppaste was probably targeted directly by someone who knew it was always 'lisp', but who would do that? 09:13:30 As everyone knows all lisp hackers are people of high morals :) 09:13:56 haha 09:14:09 wow, the captcha is mathe width HTML and CSS 09:14:40 *amoe* didn't realize that 09:14:47 so I think it can be broken with javascript 09:14:47 mental 09:15:57 well, It would be easier if it were an image, as it's a monospace pixelar font :P 09:17:17 fuck, it's pretty easy to break that thing :) 09:18:33 you are gonna heate me, but I think I prefer vim to emacs :$ 09:19:40 I don't see any reasonable people hating on others because they prefer a different editor 09:19:55 I use viper so I am exiled from both communities, heh 09:20:00 also there are quite a few schemers that don't use emacs 09:20:19 as long as you indent correctly, I wouldn't care which editor you use :) 09:20:55 viper? never heard about it 09:21:03 a vi mode for emacs 09:21:22 I see 09:21:48 *aoh* <- vi schemer 09:22:28 :set sm and you're good to go :) 09:25:17 hey, how can I unset showmatch in vim? :) 09:25:28 the cursor jumping anoys me 09:25:36 :set nosm 09:25:37 annoys* 09:28:19 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 09:28:21 damg [~damg@p5086F56E.dip.t-dialin.net] has joined #scheme 09:28:22 :set autoindent && :set lisp works like a charm :) 09:29:17 nilg [~user@77.70.2.229] has joined #scheme 09:29:52 f8l [~f8l@87-205-239-131.adsl.inetia.pl] has joined #scheme 09:29:59 mandragora [~mandragor@bb219-74-150-144.singnet.com.sg] has joined #scheme 09:30:11 -!- mandragora [~mandragor@bb219-74-150-144.singnet.com.sg] has left #scheme 09:38:23 Can you help me with an exercise of SICP? 09:47:04 *Axioplase_* <- vim schemer, but emacs common lisper :) 09:48:28 Even though I've been using vim for ages, I learnt CL with slime, and can't live without it (though I started using slimv. Seems better than nothing) 09:49:56 alcuadrado 09:49:57 sup 09:49:59 which one 09:51:00 this: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_thm_1.18 09:51:41 -3- too much math 09:51:59 haha, ok :) 09:52:02 thanks anyway 09:52:14 i just took a midterm on sicp today 09:52:20 so i don't want to think anymore about it 09:52:29 oh wow 09:52:31 to think too hard 09:53:00 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 09:53:31 -!- xwl_ [~user@nat/nokia/x-cgfkkvwnptfdqusf] has quit [Ping timeout: 260 seconds] 09:54:01 is there somethin like /* */ in scheme? 09:54:16 #| 09:54:19 |# 09:54:25 thanks 09:54:58 man i love lisp so much 09:55:19 syntax errors have always been the least of my concerns 09:55:21 -v- 09:55:59 -!- Gmind [~Nevermind@113.190.194.105] has quit [Quit: Leaving.] 09:56:52 (display "x: ") (display x) (display " Current x: ") (display x*) (display " ") (display current-value) (display " ") 09:57:00 is there any way to shorten that? 09:57:08 Mango-chan, note that they are nestable. 09:57:21 #| blabla #| bla |# |# is valid Scheme. 09:57:25 Gmind [~Nevermind@113.190.194.105] has joined #scheme 09:57:58 alcuadrado 09:58:12 http://wla.berkeley.edu/~scheme/index.html 09:58:24 use this compiler and run stk-simply 09:58:38 it has lots of built in stuff that will help you 09:59:05 does it have an interpreter? 09:59:18 i believe so 09:59:27 with those displays you're trying to 09:59:27 alcuadrado, what implementation are you using? 09:59:35 racket 09:59:36 debug, right? 09:59:42 alcuadrado, then, use printf. 09:59:46 yes, I'm 09:59:56 with this implementation 09:59:59 you have a trace function 10:00:06 (trace functioname) 10:00:12 nice :) 10:00:15 (printf "x: ~a~n Current x: ~a ~a " x x* current-value) 10:00:45 Mango-chan, almost all the implementations I know have that. 10:00:54 even MIT/GNU Scheme. 10:00:54 oh 10:01:00 then use that 10:02:12 i sleep with SICP under my pillow 10:03:19 I read it before going to bed. 10:03:48 i'm so lucky that my intro to cs class uses sicp as its text 10:03:49 and 10:03:54 the class itself is called SICP 10:04:12 saccade [~saccade@74-95-7-186-SFBA.hfc.comcastbusiness.net] has joined #scheme 10:04:25 I'm reading the HTML version :( 10:04:36 buy it 10:04:39 you will not regret doing so 10:04:47 it's not available in amazon 10:04:52 it is 10:04:54 it is. 10:04:55 isn't it? 10:05:01 not anymore 10:05:18 http://www.amazon.com/s/ref=nb_sb_ss_i_0_50?url=search-alias%3Daps&field-keywords=structures+and+interpretation+of+computer+programs&x=0&y=0&sprefix=structures+and+interpretation+of+computer+programs 10:05:19 http://tinyurl.com/4rkhrkp 10:05:30 http://www.amazon.com/Structure-Interpretation-Computer-Programs-Second/dp/0070004846/ref=sr_1_1?ie=UTF8&qid=1299751503&sr=8-1 10:05:31 http://tinyurl.com/45l24rd 10:05:31 first two results 10:05:39 ah, the hardcover version is the retired one 10:06:06 they're all second edition i believe 10:06:51 no, I was right, amazon doesn't sell it anymore 10:06:57 get it second hand 10:06:59 new is expensive 10:07:01 it's available from other sellers 10:07:05 yeah 10:07:08 it's always been like that 10:07:11 just purchase it w/ prime 10:07:12 or something 10:07:23 but I'm from argentina, and it's difficult to get a seller send a book into here 10:11:15 well, it's 7am in here, I must sleep 10:11:21 thanks for your help :) 10:11:26 see ya 10:11:42 bb 10:12:10 -!- alcuadrado [~alcuadrad@host89.190-139-17.telecom.net.ar] has quit [Quit: Leaving] 10:26:13 alaricsp [~alaric@geniedb.hotdesktop.biz] has joined #scheme 10:27:26 -!- Gmind [~Nevermind@113.190.194.105] has quit [Quit: Leaving.] 10:31:11 corvaleur [~corvaleur@p54A03748.dip.t-dialin.net] has joined #scheme 10:36:34 Bo3Bo3 [~Me3akes@196.205.156.74] has joined #scheme 10:36:43 -!- Bo3Bo3 [~Me3akes@196.205.156.74] has left #scheme 10:40:36 paulh [~paulh@3-12-ftth.onsnetstudenten.nl] has joined #scheme 10:44:44 -!- f8l [~f8l@87-205-239-131.adsl.inetia.pl] has quit [Quit: WeeChat 0.3.4] 10:46:33 metasyntax [~taylor@72.86.89.174] has joined #scheme 10:53:55 -!- schmir [~schmir@mail.brainbot.com] has quit [Remote host closed the connection] 10:59:07 -!- vu3rdd [~vu3rdd@fsf/member/vu3rdd] has quit [Remote host closed the connection] 11:24:40 mmc2 [~michal@85.90.76.66] has joined #scheme 11:37:53 -!- paulh [~paulh@3-12-ftth.onsnetstudenten.nl] has quit [Disconnected by services] 11:41:14 -!- amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has quit [Ping timeout: 276 seconds] 11:41:41 MrFahrenheit [~RageOfTho@users-151-187.vinet.ba] has joined #scheme 11:42:31 amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has joined #scheme 11:43:44 tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has joined #scheme 11:49:28 -!- amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has quit [Read error: Operation timed out] 11:51:05 amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has joined #scheme 12:04:37 -!- bharath_g [~bharath10@117.211.88.150] has quit [Remote host closed the connection] 12:08:47 tupi [~david@189.60.162.71] has joined #scheme 12:19:04 paulh_ [~paulh@3-12-ftth.onsnetstudenten.nl] has joined #scheme 12:37:23 -!- tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has quit [Quit: Ex-Chat] 12:55:18 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 12:55:35 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 13:02:01 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 13:02:01 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 13:02:01 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 13:04:01 pumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 13:04:04 -!- pumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 13:04:04 pumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 13:04:58 -!- Mango-chan [Mango-chan@unaffiliated/mango-chan] has quit [Ping timeout: 250 seconds] 13:06:36 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 260 seconds] 13:06:42 -!- myu2_ [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has quit [Remote host closed the connection] 13:10:38 Mango-chan [~derp@deu-77-231.ResHall.Berkeley.EDU] has joined #scheme 13:10:38 -!- Mango-chan [~derp@deu-77-231.ResHall.Berkeley.EDU] has quit [Changing host] 13:10:38 Mango-chan [~derp@unaffiliated/mango-chan] has joined #scheme 13:28:07 Nisstyre [~nisstyre@infocalypse-net.info] has joined #scheme 13:28:15 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 13:29:19 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 13:42:36 dnolen [~davidnole@184.152.69.75] has joined #scheme 13:44:49 bharath_g [~bharath10@117.211.88.150] has joined #scheme 13:45:32 -!- pumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 13:47:08 twem2- [~twem2@188.28.137.137.threembb.co.uk] has joined #scheme 13:47:55 -!- twem2- [~twem2@188.28.137.137.threembb.co.uk] has quit [Client Quit] 13:50:23 twem2- [~twem2@188.28.137.137.threembb.co.uk] has joined #scheme 13:59:31 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 14:03:35 tronador_ [~guille@190.66.173.210] has joined #scheme 14:07:41 nilg [~user@77.70.2.229] has joined #scheme 14:09:00 pnkfelix [~Adium@c-71-224-241-168.hsd1.nj.comcast.net] has joined #scheme 14:09:42 -!- mmc2 [~michal@85.90.76.66] has quit [Quit: Leaving.] 14:12:02 -!- alaricsp [~alaric@geniedb.hotdesktop.biz] has quit [Ping timeout: 276 seconds] 14:12:14 copumpkin [~pumpkin@17.101.89.204] has joined #scheme 14:12:15 -!- copumpkin [~pumpkin@17.101.89.204] has quit [Changing host] 14:12:15 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 14:12:39 homie` [~levgue@xdsl-78-35-186-126.netcologne.de] has joined #scheme 14:15:17 -!- homie [~levgue@xdsl-78-35-138-185.netcologne.de] has quit [Ping timeout: 276 seconds] 14:15:43 -!- homie` [~levgue@xdsl-78-35-186-126.netcologne.de] has quit [Client Quit] 14:16:09 alaricsp [~alaric@geniedb.hotdesktop.biz] has joined #scheme 14:21:59 -!- tronador_ [~guille@190.66.173.210] has quit [Quit: tronador_] 14:22:58 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 14:25:05 homie [~levgue@xdsl-78-35-186-126.netcologne.de] has joined #scheme 14:30:46 -!- twem2- [~twem2@188.28.137.137.threembb.co.uk] has quit [Remote host closed the connection] 14:40:12 vu3rdd [~vu3rdd@122.166.88.163] has joined #scheme 14:40:12 -!- vu3rdd [~vu3rdd@122.166.88.163] has quit [Changing host] 14:40:12 vu3rdd [~vu3rdd@fsf/member/vu3rdd] has joined #scheme 14:43:23 tronador_ [~guille@190.145.89.146] has joined #scheme 14:43:49 aleix [~aleix@53.119.21.95.dynamic.jazztel.es] has joined #scheme 14:54:27 aisa [~aisa@c-68-35-165-60.hsd1.nm.comcast.net] has joined #scheme 14:55:29 myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has joined #scheme 14:56:38 Gmind [~Nevermind@113.190.172.225] has joined #scheme 15:06:27 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 15:07:37 Nils^ [hammerfest@gateway/shell/devio.us/x-qmvuylxokduacuaq] has joined #scheme 15:08:49 Hello schemers. I'm using the queue module (use-modules (ice-9 q)) and stack pairs (cons 'tag "content") there. Before I write my own function to delete all 'tag from the queue: 15:09:39 Is there a way to trick eq? and therefore (q-delete! quere obj)? q-delete! uses eq? to match the obj so is there something to feed it like (cons 'tag ) ? 15:09:41 taylanub [~taylanub@p4FD93595.dip.t-dialin.net] has joined #scheme 15:10:23 Which version of Guile are you using? I'm on 2.0 and there is no q-delete! in (ice-9 q). 15:10:54 cky: 1.8.8 http://www.gnu.org/software/guile/manual/html_node/Queues.html#Queues 15:10:57 I think you meant q-remove!. 15:11:00 Hmm. 15:11:01 oh yes 15:11:13 wrote this from my head 15:12:19 Well, that's easy. 15:12:28 Here's the definition of q-remove! (at least for 2.0): 15:12:34 (define (q-remove! q obj) (set-car! q (delq! obj (car q))) (sync-q! q)) 15:12:55 So, the delq! is what's doing the comparison with eq?. 15:12:56 ok, that means rewriting. but its easy nevertheless :) 15:13:10 There's also delv! (using eqv?) and delete! (using equal?). 15:13:37 So it's really straightforward to make your own version. 15:13:38 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Quit: leaving] 15:13:45 thanks 15:13:51 Good luck. :-) 15:21:20 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 15:28:17 -!- paulh_ [~paulh@3-12-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 15:36:55 tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has joined #scheme 15:37:04 -!- tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has quit [Read error: Connection reset by peer] 16:02:32 -!- damg [~damg@p5086F56E.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 16:08:57 bweaver [~user@host-68-169-175-225.WISOLT2.epbfi.com] has joined #scheme 16:19:17 ckrailo [~ckrailo@208.86.167.249] has joined #scheme 16:22:02 gravicappa [~gravicapp@ppp91-77-190-72.pppoe.mtu-net.ru] has joined #scheme 16:22:28 tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has joined #scheme 16:22:31 -!- tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has quit [Read error: Connection reset by peer] 16:28:43 -!- rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 16:30:22 zmv [~daniel@c934a9f5.virtua.com.br] has joined #scheme 16:31:15 pdlogan [~patrick@75-175-5-194.ptld.qwest.net] has joined #scheme 16:33:43 rins [~user@173-162-214-174-NewEngland.hfc.comcastbusiness.net] has joined #scheme 16:38:45 -!- myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 16:41:44 hey cky, pjb, others... i think the test went well yesterday. i just want to thank yall again for your help. 16:45:57 Great. 17:00:57 -!- Gmind [~Nevermind@113.190.172.225] has quit [Read error: Connection reset by peer] 17:18:47 -!- hkBst [~quassel@gentoo/developer/hkbst] has quit [Read error: Connection reset by peer] 17:19:04 -!- Nils^ [hammerfest@gateway/shell/devio.us/x-qmvuylxokduacuaq] has left #scheme 17:20:35 ckrailo: \o/ 17:27:13 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 17:28:10 tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has joined #scheme 17:32:22 jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has joined #scheme 17:32:46 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 17:45:59 -!- tupi [~david@189.60.162.71] has quit [Quit: Leaving] 17:46:18 tupi [~david@189.60.162.71] has joined #scheme 17:51:07 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 17:53:19 HG` [~HG@dslb-188-109-149-085.pools.arcor-ip.net] has joined #scheme 18:09:06 -!- tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has quit [Quit: Ex-Chat] 18:15:10 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 18:26:07 -!- aleix [~aleix@53.119.21.95.dynamic.jazztel.es] has quit [Ping timeout: 255 seconds] 18:36:11 `Jaka [~derp@ucbvpn-208-217.VPN.Berkeley.EDU] has joined #scheme 18:36:36 pdlogan1 [~patrick@75-175-5-194.ptld.qwest.net] has joined #scheme 18:39:41 -!- Mango-chan [~derp@unaffiliated/mango-chan] has quit [Ping timeout: 260 seconds] 18:43:44 -!- alaricsp [~alaric@geniedb.hotdesktop.biz] has quit [Ping timeout: 276 seconds] 18:53:26 dsmith-work [~user@66.178.229.162] has joined #scheme 18:54:11 -!- bharath_g [~bharath10@117.211.88.150] has quit [Remote host closed the connection] 18:55:27 -!- pdlogan1 [~patrick@75-175-5-194.ptld.qwest.net] has quit [Quit: Leaving.] 19:09:37 -!- dsmith-work [~user@66.178.229.162] has left #scheme 19:13:08 ysph [~user@75-143-85-15.dhcp.aubn.al.charter.com] has joined #scheme 19:18:52 -!- tupi [~david@189.60.162.71] has quit [Remote host closed the connection] 19:28:16 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 252 seconds] 19:30:18 -!- rien [~rien@dyn-160-39-34-114.dyn.columbia.edu] has quit [Quit: --] 19:30:37 choas [~lars@p5792C203.dip.t-dialin.net] has joined #scheme 19:31:16 rien [~rien@dyn-160-39-34-114.dyn.columbia.edu] has joined #scheme 19:49:59 mmc2 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 20:06:36 mario-go` [~user@67.205.85.241] has joined #scheme 20:08:18 -!- mario-go` is now known as mario-goulart` 20:08:21 -!- mario-goulart [~user@67.205.85.241] has quit [Ping timeout: 260 seconds] 20:08:37 -!- mario-goulart` is now known as mario-goulart 20:11:58 -!- taylanub [~taylanub@p4FD93595.dip.t-dialin.net] has quit [Quit: WeeChat 0.3.5-dev] 20:25:35 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 20:47:56 pdlogan1 [~patrick@75-175-5-194.ptld.qwest.net] has joined #scheme 20:49:46 -!- nilg [~user@77.70.2.229] has quit [Read error: Connection reset by peer] 20:50:26 -!- HG` [~HG@dslb-188-109-149-085.pools.arcor-ip.net] has quit [Quit: Leaving.] 20:51:06 adu_ [~ajr@softbank220043138128.bbtec.net] has joined #scheme 20:55:05 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 255 seconds] 20:55:34 -!- rapacity [~prwg@unaffiliated/rapacity] has quit [Ping timeout: 250 seconds] 20:55:56 -!- adu_ [~ajr@softbank220043138128.bbtec.net] has quit [Client Quit] 20:56:24 adu_ [~ajr@softbank220043138128.bbtec.net] has joined #scheme 20:57:06 copumpkin [~pumpkin@17.101.89.204] has joined #scheme 20:57:06 -!- copumpkin [~pumpkin@17.101.89.204] has quit [Changing host] 20:57:06 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 20:58:20 -!- zmv is now known as anybody 20:58:35 -!- anybody is now known as zmv 20:59:17 -!- adu_ is now known as adu 20:59:33 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Client Quit] 20:59:59 adu [~ajr@softbank220043138128.bbtec.net] has joined #scheme 21:02:58 pumpkin [~pumpkin@17.101.89.204] has joined #scheme 21:02:58 -!- pumpkin [~pumpkin@17.101.89.204] has quit [Changing host] 21:02:58 pumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 21:04:44 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 246 seconds] 21:18:32 is it possible to have optional parameters (with default values) like in common lisp? 21:18:48 osoleve: yes 21:19:14 same format? 21:19:17 no 21:19:29 mmk, looking it up 21:19:30 thanks 21:20:01 (define (f x . opt) (if (?null opt) default (car opt))) 21:20:04 Erm, I think it depends on which Scheme you're using. 21:20:59 Oh, true, that works 21:21:11 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 255 seconds] 21:21:17 that's the "scheme format" 21:21:18 I think s/?null/null?/ though 21:21:27 oh oops 21:21:36 There's also SRFI 89, right? 21:22:18 so optional arguments follow a . ? 21:22:22 i think i get it, thanks 21:22:52 No, the . signifies a `rest' argument. That is, everything which isn't the other arguments. 21:23:10 But, if you don't provide any, it is (), the empty list. 21:23:24 Which is why he checked if it was null, and if it was, used a defualt 21:23:56 (And if it wasn't, got the value from the `rest list'.) 21:24:04 ah, okay. so there is never more than one name after the . then? 21:24:14 osoleve: no 21:24:18 No, but there can be more than one value 21:24:21 osoleve: there could be 5 or 10 21:24:47 ohh, okay. so. 21:24:55 rudybot, (define (f x y . opt1 opt2) 42) 21:24:55 DT``: I would love to see them called "Scheme Core" and just plain Scheme. However, I know that there exists an opinionated WG1 constituency (not that there's anything wrong with that... if not opininated, shouldn't opt onto the board) that doesn't want anything denoting "their" Scheme as somehow lesser to That Other Featurized Abomination. 21:25:13 osoleve, there can be only one name after the . 21:25:21 if i have 3 after, and 5 are supplied, it goes 1 2 (3 4 5)? 21:25:22 the . is more like a &rest. 21:25:26 ok 21:25:44 is there an &optional symbol? 21:25:48 or just &rest? 21:25:50 `Real' optional variables are implementation-specific; your implementation may have them 21:25:50 you can provide your optional parameter using the rest syntax, in a complete portable way. 21:26:02 else, depends from the implementation. 21:26:19 it's usually (define (f x (optional default-value)) ...) 21:26:31 some schemes support DSSSL like keyword and rest arguments 21:26:39 or (define (f x #!optional (y default)) ...) 21:26:55 and optional :) 21:27:06 looks like in Guile it's (define* (f a #:optional b c #:key c d . rest)) 21:27:29 -!- Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has quit [Read error: Connection reset by peer] 21:27:32 -!- corvaleur [~corvaleur@p54A03748.dip.t-dialin.net] has quit [Read error: Connection reset by peer] 21:27:36 i'll stick to portable 21:27:58 chicken is #!optional (var init) #!key (var init2) #!rest r 21:28:52 in Racket (var init) #:key (var init) . rest 21:29:11 osoleve: picking stuff out of the args list is just fine. As soon as you want to name some values and access them by name or make them optional you will end up implementing your own type of DSSSL 21:29:48 mk, i'll get more into it later, i have to shower in five minutes 21:29:55 i'm just going to answer this SO question and run 21:29:58 thanks a ton, guys 21:30:04 (i love thisn channel, you guys rule) 21:30:34 :D 21:30:52 nilg [~user@77.70.2.229] has joined #scheme 21:31:52 what a nice ego boost :) 21:32:14 C-Keen: indeed :) 21:32:38 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu] 21:35:58 How would I write a function like 21:37:00 I think I need to test before I ask :p 21:37:35 jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has joined #scheme 21:41:01 Scheme is hard :( 21:41:29 Articate: it only takes some time, is all. what was your question? 21:41:54 I'm still trying to figure it out :) 21:42:08 I'm just a bit unsteady on what's returned by a function in Scheme 21:42:30 probably because I'm used to explicit return statements 21:42:31 Articate, whatever the last expression executed returns. 21:42:42 ah! that does clear things up :) 21:42:54 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 21:43:16 would I use let to do to expressions in a row, or is there another way? 21:43:37 two* 21:43:38 (begin expr1 expr2 ... exprn) 21:44:29 There are `implicit begins' in several places, like the body of a define or a let. 21:44:41 Or in cond statements 21:44:42 You usually use `let' to introduce local variables and/or clean up the code. 21:44:51 tauntaun [~icarus@64.134.66.112] has joined #scheme 21:47:37 ah so, if I first do my calculation, then want to display what I calced before I return it, I could use (define (myfunc v) (+ 5 v) (display v) v)! 21:47:54 for some reason our lecturer has never displayed the implicit begin, it seems 21:48:35 Yeah, but notice that your (+ 5 v) there does nothing. 21:48:48 haha, right :) 21:49:44 how would I make it do something? 21:50:09 That depends what you want it to do. :-) 21:50:28 (define (myfunc v) (v (+ 5 v) (display v) v) ? 21:50:34 myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has joined #scheme 21:50:36 aand an extra ) in there 21:50:40 (define (myfunc v) (display v) (+ 5 v)) would return the plus5 value 21:51:30 what about updating v, displaying it, then returning it? 21:52:08 destructive updating is not really idiomatic in Scheme. 21:52:09 Hrmm, I'm not sure. :-D 21:52:18 Yeah, I never do it. 21:52:33 (when you can avoid it) 21:52:44 just seems useful to peek at your calculations while you do them 21:52:46 Articate: when you can't avoid it, use set! 21:53:06 (define (myfunc v) (set! v (+ 5 v)) (display v)) 21:53:07 Articate, you can use let: 21:53:30 rudybot, (define (myfunc v) (let ((v (+ 5 v))) (display v) v)) 21:53:30 DT``: Done. 21:53:34 rudybot, (myfunc 5) 21:53:34 DT``: ; Value: 10 21:53:36 rien: That won't work 21:53:50 aah, that's how :) 21:53:51 fds: right, because parameters are passed by value 21:53:52 thanks :) 21:53:57 rien: Indeed 21:54:23 I suppose I'll stick to the debugging tool, but it's nice to know :) 21:54:41 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Quit: Leaving] 21:55:21 Articate, usually schemers just test the functions just by seeing its result. 21:55:28 I hardly ever use display to debug. 21:55:56 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 21:56:02 yeah, but for this assignment I was given a frame to add to, so things get sent to another function once they're done 21:56:42 I get that they want us to be able to use existing frameworks with scheme, but it's a bit silly to have that be the second scheme assignment, as I seem to be missing out on some more rudementary stuff by having it done for me 21:56:55 the stuff like "(define (get-node-name node) (car node))" seems especially pointless to give us 21:57:18 Articate: You would have rather written that yourself? 21:57:25 I'd rather use (car node) 21:57:34 (define get-node-name car) ;<-- I'd do it like this :) 21:57:35 I already like this guy. 21:58:00 Articate: abstractions are useful 21:58:03 lucky you. 21:58:15 here in Brazil, we don't study Scheme. 21:58:25 we study VBasic ): 21:58:28 =O 21:58:32 yeah 21:58:36 I studied VB at school. :-P 21:58:37 zmv, lucky you. 21:58:38 Write a scheme compiler in VBasic and study that. 21:58:42 In the UK 21:58:44 lol 21:58:49 here in Italy, we study MS Word. 21:58:52 as I said, I know they are, but when we're learning to handle lists, it seems we should be the ones doing the abstraction, so we don't skip important steps like getting what (caddr node) does 21:58:54 Hahaha 21:58:56 DT``: Same in Egypt. 21:59:01 DT``: we'll study that too ): 21:59:17 instead we just get "(define (get-distance-from-start node) (caddr node))" that makes for an unnecessary shortcut when we're out to learn lists in Scheme, anyway 21:59:50 Articate: I agree. I guess your university is trying to teach you that in the real world you will have other people's abstractions imposed on you and won't have the opportunity to create your own. :/ 21:59:56 That may well be. 21:59:58 your teacher must be one of those c[ad]+r haters. 22:00:08 In addition, your code will be more readable to the TA if it's slightly abstracted. 22:00:14 maybe we should've just gotten some abstractions that we needed to fill out ourselves 22:00:30 yes, then the above would be perfect for the assigment, jcowan :) 22:00:57 (define (get-distance-from-start node) ( ;fill in)) 22:01:04 )) 22:01:07 I am not a big fan of cdaddaddrs myself. 22:01:07 right 22:01:18 caddadr makes my head hurt 22:01:22 Although the first Lisp I ever implemented actually handled an arbitrary number of them. 22:01:49 If a symbol in function position was not defined and had the right form, eval treated it as the appropriate function. 22:01:57 shiver me cadrs 22:02:25 hahah 22:02:57 Articate, once I needed a cadaddddaddddaddr. 22:03:10 Dear heavens. 22:03:11 worst code I ever wrote. 22:03:21 hahaha 22:03:36 DT``: How on earth can you even remember that? 22:03:41 I've been shaking my fists at the sky the last days over cadr and caddr 22:03:56 jcowan, it was something like that. 22:03:57 the trauma, jcowan :> 22:04:04 lol, too. 22:04:06 *jcowan* chuckles IRL 22:04:10 I use cadr and cddr all the time. But more than that is a bit extreme 22:04:27 makes sense with association lists 22:04:36 caddr is acceptable too. 22:04:49 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Quit: ccorn] 22:04:57 alcuadrado [~alcuadrad@host89.190-139-17.telecom.net.ar] has joined #scheme 22:05:25 Yeah, to be honest, I use them all, but I just feel bad about it sometimes. :-D 22:05:26 -!- tronador_ [~guille@190.145.89.146] has quit [Quit: tronador_] 22:05:47 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 22:05:47 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Client Quit] 22:05:48 Are c[ad]r O(1) operations? 22:06:04 I'd guess. 22:06:04 Normally yes. 22:06:13 fds, I feel bad only when the repl says ``reference to undefined identifier: cdddddr'' 22:06:17 Because they're not traversing the whole list or anything 22:06:22 jcowan: In your implementation? 22:06:23 DT``: :-D 22:06:27 Of course the constant factor might involve paging in virtual memory. 22:06:39 askhader: In all practical implementations. 22:06:52 I see. 22:07:08 -!- yosafbridge [~yosafbrid@li125-242.members.linode.com] has quit [Read error: Operation timed out] 22:07:18 practical implementations inline them anyway. 22:07:33 -!- ysph [~user@75-143-85-15.dhcp.aubn.al.charter.com] has quit [Remote host closed the connection] 22:08:11 Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has joined #scheme 22:08:22 how can I display more than one thing? 22:08:24 Well, there are still practical interpreters. 22:08:27 like (display 'foo 'bar) 22:08:31 Articate: (begin (display x) (display y)) 22:09:20 Articate: if you mean appending strings, it's (display (string-append "hello" "world")) 22:09:35 that'll print it nicely, albeit without a space in between :P 22:09:54 ah, cool 22:10:12 (begin (display "node: ") (display node) (display "next node: ") (display next-node)) did it in this case :> 22:10:38 Some implementations have `print' that accepts multiple strings directly. 22:10:40 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 22:10:56 (Chicken, at least. :-P) 22:11:29 Erm, and not just strings. Multiple anythings. 22:11:40 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Client Quit] 22:11:46 Not in the standard, alas. Easy to define yourself, of course. 22:11:52 Articate, which implementation are you using? 22:12:12 jcowan, (define (multi-display . xs) (for-each xs display)) 22:12:13 yosafbridge [~yosafbrid@li125-242.members.linode.com] has joined #scheme 22:13:05 DT``: Also add (newline), or at least that's what Chicken does. 22:13:49 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 22:13:58 jcowan: not for (print) 22:14:02 jesusito [~user@18.pool85-49-239.dynamic.orange.es] has joined #scheme 22:14:09 Yeah it does 22:14:20 (print "hey" " world") prints it in one line 22:14:22 I'm looking at it now! 22:14:27 me too 22:14:29 Right, but it ends with a newline 22:14:34 ugh - DrRacket has this tendency to just lock up :( 22:14:34 oh... 22:14:40 that's what you meant. sorry :) 22:14:43 Yes, so (begin (print 'x) (print 'y)) prints two lines. 22:14:58 right 22:15:08 Articate, you're using racket? 22:15:22 no, but DrRacket to write in 22:15:36 why not emacs? 22:15:49 using R5RS 22:16:41 I dunno - DrRacket's a pretty nice program besides the lockups 22:17:22 jcowan_ [~John@cpe-74-68-112-189.nyc.res.rr.com] has joined #scheme 22:17:51 -!- jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has quit [Disconnected by services] 22:17:55 -!- jcowan_ is now known as jcowan 22:18:02 This word is very, very, very, very, very obscure. 22:18:55 ..Okay? 22:19:03 *fds* is on the edge of his seat! 22:19:29 It means the repetition of words for vehemence or emphasis. 22:20:30 -!- Leonidas [~Leonidas@unaffiliated/leonidas] has quit [Ping timeout: 250 seconds] 22:21:48 jcowan: hermeneia? 22:22:08 epizeuxis? palilogia? 22:22:30 those are some obscure words, alright 22:23:00 this is more obscure 22:23:12 I'm pretty sure it's epizeuxis 22:26:02 -!- choas [~lars@p5792C203.dip.t-dialin.net] has quit [Quit: leaving] 22:27:06 Leonidas [~Leonidas@unaffiliated/leonidas] has joined #scheme 22:27:18 ysph [~user@75-143-85-15.dhcp.aubn.al.charter.com] has joined #scheme 22:28:56 tronador_ [~guille@190.144.171.111] has joined #scheme 22:29:42 Harrold [~quassel@bas1-ottawa11-1176121997.dsl.bell.ca] has joined #scheme 22:29:45 hi 22:30:00 Shhh, we're waiting for an obscure word. 22:30:06 anyone knows a good and/or useful tool for linux to create environment diagrams? 22:30:23 What is an environment diagram? 22:30:42 A contour model 22:30:43 What kind of environment? 22:31:19 global environment and your own definitions 22:31:20 You might be able to make use of a Dia template set, but I'm no Dia maven. 22:32:11 -!- tronador_ [~guille@190.144.171.111] has quit [Quit: tronador_] 22:32:47 didn't see anything with dia so far 22:32:52 *rien* thought we were playing a word game :) 22:33:04 I thought so too, but apparently not. :-\ 22:33:20 tronador_ [~guille@190.144.171.111] has joined #scheme 22:33:53 Well, there's always the old perennial favorite: Would you rather be called F*cking C*cksucker or Dummy Diddle? If not, why not? 22:34:36 I suppose "heterological" is not really an obscure word around here, though. 22:34:53 I'm confused. 22:35:47 Okay: how and by what? 22:36:04 by what you're saying and how I can't connect it to what you said before. 22:36:24 If crime fighters fight crime, and fire fighters fight fire, what do freedom fighters fight? 22:37:06 Correct. 22:37:41 freed-oh. 22:37:42 See, it's not too hard to understand novlang. 22:38:42 where do would you guys like me to paste code? 22:38:55 (Look at the topic) 22:39:15 -!- tronador_ [~guille@190.144.171.111] has quit [Quit: tronador_] 22:39:34 I guess no one knows 22:39:38 Although, personally, I don't find it offensive when people use other pastebins. 22:40:17 I tend to look more at paste.lisp.org than at the others. 22:40:32 I use paste.lisp.org too. 22:40:38 what's wrong with pastebins? 22:40:45 paste.lisp.org has the advantage that the channel (and therefore the log) is notified. 22:40:50 What's better in paste.lisp.org rather! 22:41:24 Well, you spoke of word games, so I mentioned one. 22:41:30 I like and use paste.lisp.org, but if some foreigner comes in here using a non-Lispy pastebin, I'm not going to cru about it. :-) 22:41:50 s/cru/cry/ 22:42:21 No, of course. But it's not bad recalling paste.lisp.org to newbies. 22:42:24 Then you wanted an obscure word, so I was going to use "heterological", but I don't know if that's obscure enough for a bunch of self-referential programmers. 22:42:38 my paste isn't posted :x 22:42:55 Articate: sometimes paste.lisp.org is buggy :-( 22:43:20 That is, sometimes, it behaves like the other pastebins, you have to copy and paste the url yourself. 22:43:37 yup - http://paste.lisp.org/display/120397 22:43:38 jcowan: I thought you proposed a game of guessing which word meant the same word repeated for emphasis. 22:43:48 tronador_ [~guille@190.144.171.111] has joined #scheme 22:43:49 ok, my problem is with my lambda, I think 22:44:06 when I call enqueue I wish that my Q is updated for the next time I call enqueue 22:44:24 instead it seems that all are done with the initial Q and THEN updated when the entire runthrough is done 22:44:42 No, I mentioned "epizeuxis" first, unless that got caught in the involuntary disconnect? 22:44:45 Articate: it seems that enqueue is functional. At least, it's not named enqueue! and the last case just returns a new cons. 22:45:20 pnkfelix1 [~Adium@c-71-224-241-168.hsd1.nj.comcast.net] has joined #scheme 22:45:28 Articate: Therefore the lambda has no side effect. What do you expect? 22:46:38 ah, because I send the Q with each lambda 22:47:00 and of course that is always the initial Q (at least with the first set of map) 22:47:14 -!- tronador_ [~guille@190.144.171.111] has quit [Client Quit] 22:47:33 then, how can I do so that I update Q with each pass of lambda? 22:47:43 Articate: the question is whether you're programming in functional style or in procedural style. You have to decide. 22:48:02 -!- pnkfelix [~Adium@c-71-224-241-168.hsd1.nj.comcast.net] has quit [Ping timeout: 255 seconds] 22:48:15 well, I was aiming for functional 22:48:17 am I failing? 22:48:25 -!- jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has quit [Quit: Leaving] 22:49:09 Can anyone help me with this exercise of SICP please? http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_thm_1.18 22:49:51 alcuadrado: Yep. What's the problem? 22:50:12 -!- pdlogan1 [~patrick@75-175-5-194.ptld.qwest.net] has left #scheme 22:50:15 I tryed to implement it but sometimes it doesn't halt 22:50:19 and I don't see why 22:50:23 Paste your code. 22:50:47 The solution to that exercise looks _very_ similar to the exponentiation procedure from just before 22:51:11 pjb, how would I functionally do that, then, pjb? 22:51:17 Articate: yes, it seems you failed at functional. First, in lambda the if should always return a value (then and else). Next, unless you want to produce a list of queues with that map, you'd better use foldr. 22:52:19 http://paste.lisp.org/+2KWE 22:53:27 foldr? 22:54:08 alcuadrado: Okay, look again at the fast-expt function with the expt-iter inside it 22:54:19 alcuadrado: And compare your function to it. 22:54:27 Articate: yes. Or foldl. 22:54:50 alcuadrado: One thing to notice is that your times-iter is doing two things differently (wrong? I think). 22:55:19 -!- foocraft [~dsc@89.211.254.177] has quit [Quit: Leaving] 22:55:19 pjb, when should I prefer foldl to foldr? 22:55:32 alcuadrado: One, it refers to arguments to fast-times, I'd like it to be self-contained. Two, it only takes two arguments; I don't think that's enough. 22:55:36 Articate: also, (append node Q) is suspect. First you do that when Q is null so append is overkill. Next it presuppose node is a list. Is it a list? 22:55:51 alcuadrado: Also, all of those displays make it difficult to read. :-) 22:55:51 yes 22:55:53 DT``: depends on whether you want to process the list from the right or from the left. 22:56:07 It's probably better to do it from the left if possible. 22:56:50 -!- jesusito [~user@18.pool85-49-239.dynamic.orange.es] has left #scheme 22:58:09 fds, how would you put that displays in order to debug it? and what do you mean but self contained? not using a closure? 22:59:15 alcuadrado: I wouldn't use displays, I'd think harder before I wrote the code. And I'd analyse the input and the output. :-) 22:59:40 pjb, about the if - the else-clause is not supposed to do anything. How should I implemend that? 22:59:43 alcuadrado: And by `self-contained' I mean that it doesn't use variables from outside the (define (times-iter ...) ...) bit 23:00:05 Articate: when you're programming in functional style, you do not do anything. 23:00:16 But a function should always return something. 23:02:06 tupi [~david@189.60.162.71] has joined #scheme 23:02:35 fds, but's wrong with using those variables? 23:03:34 alcuadrado: Nothing is necessarily wrong with doing it. But it destroys the `mathematical purity' of the function. If you tried to use it in a different context it would fail. 23:03:35 tronador_ [~guille@190.144.171.111] has joined #scheme 23:03:53 alcuadrado: And that's unnecessary here, look at their expt-iter 23:03:56 fds, free variables exist even in lambda calculus. 23:04:25 DT``: Yes, I know. But that doesn't mean you should use them carelessly. 23:05:06 -!- gravicappa [~gravicapp@ppp91-77-190-72.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 23:05:17 I've done expt-iter like that too 23:07:06 alcuadrado: I meant the one in the book, in section 1.2.4 23:07:27 alcuadrado: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_1.2.4 23:07:56 sorry, I was thinking in the previous exercise one 23:08:07 -!- bweaver [~user@host-68-169-175-225.WISOLT2.epbfi.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:08:16 Yes. Maybe we could talk about that too. :-) 23:08:27 I reworked it, pjb - http://paste.lisp.org/display/120399 23:08:56 as you pointed out, that if still does nothing 23:09:31 but, here you can see that I add the current node to a list of things to enqueue, and I don't want to add the current node if it's already present in the list 23:09:37 what should the else clause return in that case? 23:09:47 Articate: the if inside the lambda is still not returning anything specific in the else case... 23:09:51 as you pointed out, that if still does nothing <- that if has no else clase* 23:09:52 -!- mmc2 [~michal@82-148-210-75.fiber.unet.nl] has quit [Quit: Leaving.] 23:10:00 exactly 23:10:05 alcuadrado: But, do you see that they have (expt b n) calling (expt b n 1) 23:10:09 well, I did that like: http://paste.lisp.org/display/120400 23:10:13 Articate: It seems the lambda should return a node. So make it return a node in all cases. 23:10:19 alcuadrado: Your function doesn't work like that 23:10:30 Articate: perhaps just next-node? 23:10:38 but I don't want to return a node when it's already present in the list 23:10:47 Articate: then map is inadequate. 23:11:00 Articate: I'd suggest foldl 23:11:20 any documentation to that? 23:11:31 It's in SRFI/1 I guess. 23:12:22 Something like: (define (foldl fun val list ) (if (null? list) val (foldl fun (fun val (car list)) (cdr list)))) 23:12:59 rudybot: (define (foldl fun val list ) (if (null? list) val (foldl fun (fun val (car list)) (cdr list)))) 23:12:59 pjb: your sandbox is ready 23:12:59 pjb: Done. 23:13:06 rudybot: (foldl '+ 0 '(1 2 3 4)) 23:13:06 pjb: error: procedure application: expected procedure, given: +; arguments were: 0 1 23:13:10 rudybot: (foldl + 0 '(1 2 3 4)) 23:13:10 pjb: ; Value: 10 23:13:14 rudybot: (foldl cons 0 '(1 2 3 4)) 23:13:14 pjb: ; Value: (4 3 2 0 . 1) 23:13:32 rudybot: (define (foldl fun val list) (if (null? list) val (foldl fun (fun (car list) val) (cdr list)))) 23:13:33 pjb: Done. 23:13:34 rudybot: (foldl cons 0 '(1 2 3 4)) 23:13:34 pjb: ; Value: (4 3 2 1 . 0) 23:13:38 rudybot: (foldl + 0 '(1 2 3 4)) 23:13:38 pjb: ; Value: 10 23:13:42 rudybot: (foldl cons '() '(1 2 3 4)) 23:13:42 pjb: ; Value: (4 3 2 1) 23:13:54 -!- nteon [~nteon@204.28.122.186] has quit [Quit: Leaving] 23:14:07 my head hurts :D 23:14:15 Why? 23:14:40 There's no simplier function. Just process each item in the list in turn, from left to right, 23:14:52 rudybot: (foldl (lambda (a b) (list 'cons a b)) '() '(1 2 3 4)) 23:14:52 pjb: ; Value: (cons 4 (cons 3 (cons 2 (cons 1 ())))) 23:15:13 fds, my problem is that in the previous exercise I done the tail recursion from 1 to n, but here I don't get how to do it 23:17:55 alcuadrado: Basically, with all of these functions, you're trying to get one of the variables down to the base case. (0 or 1, depending on how yo udo it, or what the function is, &c.) 23:18:30 Articate: try; (foldl enqueue Q nodes) 23:19:10 alcuadrado: So, there are really only three situations. One, you're at the base case, yay, finished. Two, you're at an even number, so you can half the number and do the appropriate operation to your result. Or three, you're at an odd number, so you need to move to an even number. 23:19:17 alcuadrado: Does that help at all? 23:19:47 alcuadrado: Those are the only three cases. The base case. Even -> half. Odd -> even. 23:20:21 alcuadrado: You just need to apply the correct transformations to the result in the latter two cases, 23:20:34 alcuadrado: I think your solutions are making it a bit too complicated. 23:21:32 pjb, my R5RS doesn't like foldl 23:21:52 You need to use SRFI 1 23:22:02 my class uses R5RS :) 23:22:22 Then you need to define it yourself 23:22:44 I think pjb has already provided an exampe implementation 23:22:53 Example 23:23:39 Articate: use fold 23:23:56 fold represents the foldl function 23:24:00 it doens't like fold either 23:24:02 doesn't* 23:24:08 that's a bit worrying then 23:24:20 No, it isn't. Fold isn't R5RS 23:24:20 try reduce 23:24:36 Reduce isn't either 23:24:40 They're SRFI 1 23:24:51 yes, you are righ fds, I was looking badly at the cases 23:24:53 Articate: you're better off defining it yourself then :P 23:25:32 alcuadrado: It's okay. I hope I'm helping you. :-) 23:25:48 fds: yes but who uses strictly r5rs? :) 23:26:04 rien: Racket's #lang r5rs I suppse. 23:26:13 yeah I think so to... 23:26:32 man, this lambda calculus thing is so fun 23:26:48 :-) 23:28:12 -!- tronador_ [~guille@190.144.171.111] has quit [Quit: tronador_] 23:42:26 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 260 seconds] 23:47:06 tronador_ [~guille@190.144.171.111] has joined #scheme 23:50:25 fds, well, I just googled the solution :$ i was really easy, I was kind of blocked with it tough :s 23:51:46 alcuadrado: I could've just shown you the solution at the start! I was trying to make you think. :-P But, have you got any questions? Do you want to show me the code you found? 23:52:10 alcuadrado: And, yeah, it's easy to think a problem is more complicated than it is when you don't know the solution. :-) 23:52:35 this is the solution: http://www.kendyck.com/archives/2005/05/01/solution-to-sicp-exercise-118/ 23:53:15 The big inconvenient of IRC, is that you have no confirmation whether the newbies read your sentences :-( At least, IRL or with videophone, you can see the puzzled or sleepy expressions :-/ 23:54:02 yes, I know that, but I started that code yesterday very sleepy, and I was stuck with that approach 23:54:24 alcuadrado: I wasn't targeting anybody in particular ;-) 23:54:38 pjb, the secret is keeping answers short and simple. 23:55:01 Perhaps. I could try to improve in this dirrection. 23:55:06 alcuadrado: Hm, I like my solution better than his. http://paste.lisp.org/display/120403 23:55:09 pjb, that was for fds :P 23:55:23 pjb: it's also easy to skip a message altogether and never read it. I've done it a few times 23:55:28 more than a few times 23:56:56 I think my problem was being sure that I could do it with two parameters and the ones from the closed scope 23:57:50 alcuadrado: You probably could do it that way. But I think it's messier. 23:58:33 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 23:58:59 -!- MapMan [mapman@host-62-141-192-113.swidnica.mm.pl] has quit [Ping timeout: 276 seconds]