00:07:33 jcowan [n=jcowan@72.14.228.89] has joined #scheme 00:11:40 jwh335 [n=will@d-24-233-229-66.cpe.metrocast.net] has joined #scheme 00:12:43 -!- rmns [n=ramunas@78-61-90-37.static.zebra.lt] has quit ["Leaving."] 00:15:24 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has quit [Remote closed the connection] 00:17:24 -!- athos [n=philipp@92.250.250.68] has quit ["leaving"] 00:20:01 arcfide [n=arcfide@adsl-99-186-239-125.dsl.bltnin.sbcglobal.net] has joined #scheme 00:26:13 -!- Edico [n=Edico@unaffiliated/edico] has quit ["Leaving"] 00:29:48 Good evening everyone. 00:32:06 -!- hkBst [n=hkBst@gentoo/developer/hkbst] has quit [Read error: 104 (Connection reset by peer)] 00:42:35 -!- bsmntbombdood [n=gavin@97-118-125-166.hlrn.qwest.net] has quit [Read error: 110 (Connection timed out)] 00:45:48 yeah yeah 00:45:52 heard it, heard it 00:46:33 new batteries? 00:46:56 no, same ones as ever 00:47:03 minion: chant 00:47:03 MORE DIRECT 00:49:35 hadronzoo [n=hadronzo@ppp-70-247-160-214.dsl.rcsntx.swbell.net] has joined #scheme 00:56:20 benny` [n=benny@i577A09B8.versanet.de] has joined #scheme 00:58:49 bsmntbombdood_ [n=gavin@97-118-125-166.hlrn.qwest.net] has joined #scheme 01:07:47 -!- benny [n=benny@i577A0809.versanet.de] has quit [Read error: 110 (Connection timed out)] 01:13:15 -!- chaoslynx [n=cpehle@p57A771D6.dip.t-dialin.net] has quit [Read error: 113 (No route to host)] 01:13:29 -!- Mr_SpOOn [n=Mr_SpOOn@89-97-102-218.ip17.fastwebnet.it] has quit ["leaving"] 01:28:28 orgy_ [n=ratm_@pD9FFEB9C.dip.t-dialin.net] has joined #scheme 01:29:19 -!- jcowan [n=jcowan@72.14.228.89] has left #scheme 01:38:17 breily [n=breily@173.15.192.254] has joined #scheme 01:42:12 -!- eno__ is now known as eno 01:43:02 -!- geckosenator [n=sean@71.237.94.78] has quit [Read error: 145 (Connection timed out)] 01:44:52 -!- orgy` [n=ratm_@pD9FFCABA.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 01:48:55 cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has joined #scheme 01:50:20 kilimanjaro [n=kilimanj@70.116.95.163] has joined #scheme 01:53:02 -!- mejja [n=user@c-4bb5e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 02:02:41 So I made an immutable queue today, and it occurred to me that you really can't make an immutable queue. 02:03:28 (queue-get queue) gets the next item from the queue, but it then mutates the queue to remove the item internally. 02:03:51 I implemented queue-get to return two values, the next item, and the new queue minus that item, but I mean... 02:04:44 Could do a C++ and have top return the item and pop return the new queue, but that requires double calculations... 02:05:28 -!- bsmntbombdood_ is now known as bsmntbombdood 02:05:59 -!- cracki_ [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has quit [Read error: 113 (No route to host)] 02:07:02 jwh3351 [n=will@d-24-233-229-66.cpe.metrocast.net] has joined #scheme 02:07:03 -!- jwh335 [n=will@d-24-233-229-66.cpe.metrocast.net] has quit [Read error: 54 (Connection reset by peer)] 02:07:45 sepult_ [n=buggarag@xdsl-87-78-145-99.netcologne.de] has joined #scheme 02:07:51 -!- jwh3351 [n=will@d-24-233-229-66.cpe.metrocast.net] has quit [Client Quit] 02:08:50 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 02:11:06 -!- orgy_ [n=ratm_@pD9FFEB9C.dip.t-dialin.net] has quit [Remote closed the connection] 02:11:41 -!- jao [i=jao@dhcp-18-190-55-103.dyn.mit.edu] has quit [Read error: 110 (Connection timed out)] 02:15:52 -!- sepult [n=buggarag@87.78.184.167] has quit [Read error: 145 (Connection timed out)] 02:25:45 -!- elias` [n=me@unaffiliated/elias/x-342423] has quit [Read error: 145 (Connection timed out)] 02:26:29 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 02:46:07 hadronzoo_ [n=hadronzo@ppp-70-251-6-38.dsl.rcsntx.swbell.net] has joined #scheme 02:54:24 daedra [n=simon@unaffiliated/daedra] has joined #scheme 03:01:42 -!- hadronzoo [n=hadronzo@ppp-70-247-160-214.dsl.rcsntx.swbell.net] has quit [Read error: 110 (Connection timed out)] 03:03:59 dum de dum 03:12:11 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 03:13:01 -!- underspecified [n=eric@softbank220043052007.bbtec.net] has quit [] 03:17:55 jonrafkind [n=jon@c-98-202-86-149.hsd1.ut.comcast.net] has joined #scheme 03:26:19 hadronzoo [n=hadronzo@ppp-70-247-173-50.dsl.rcsntx.swbell.net] has joined #scheme 03:27:43 hmm 03:27:52 Is it possible to make a non-mutable circular list? 03:28:22 -!- hadronzoo_ [n=hadronzo@ppp-70-251-6-38.dsl.rcsntx.swbell.net] has quit [Read error: 104 (Connection reset by peer)] 03:28:32 There is no standard way to make an immutable list except by writing it literally, in which case it can't be circular. 03:29:05 With some extensions, however, one might procure such a beast. For example, given a reader extension for shared structure, one might write the expression (QUOTE #1=(0 . #1#)). 03:30:34 -!- daedra [n=simon@unaffiliated/daedra] has quit ["Lost terminal"] 03:30:56 Ah, huh. 03:32:21 Just curious mostly. I was thinking about circular lists with position the other day, as a sort of way to cycle through items in a pool of resources equitably. 03:33:00 srfi/1 has (circular-list) but it produces a mutable list <.< 03:33:23 wait.. so does list. I'm doing it wrong 03:34:29 (immutable? (list 1 2)) --> #f 03:34:42 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 03:34:53 synx: Yes, that's an old Lisp idiom. 03:35:21 Since you're writing srfi/1 and talking about immutable lists, I assume you're using PLT. 03:35:39 Yeah I thought plt lists were immutable. It has the mlist for a reason after all, right? 03:36:04 yes 03:36:34 Rather than literals you can write 03:36:36 (shared ((x (cons 1 (cons 2 (cons 3 x))))) x) 03:36:52 to get the equivalent of (circular-list 1 2 3) 03:36:58 I guess they're mutable, but just don't have any methods to mutate them? 03:37:12 They are initializable, but not mutable. 03:37:40 Then why does (immutable? (list 1 2)) return #f? 03:38:02 foof: that's fun, thanks. :3 03:38:03 However, you're fairly limited in the circular structures you can create - they more or less have to be written as above, using a few explicit operators like cons, list and vector. 03:39:05 So there are some operations you can't implement like list->circular-list. 03:39:06 Understood foof. 03:39:15 rudybot: doc immutable? 03:39:16 And good luck removing an element from such a circular list. 03:39:22 eli: http://docs.plt-scheme.org/reference/booleans.html#(def._((quote._~23~25kernel)._immutable~3f)) 03:39:29 synx: look there. 03:39:43 yeah I can see that... eh 03:39:49 sorry thought it also applied to lists. 03:39:50 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 03:40:09 I guess list? is enough to ensure immutablity. 03:40:13 Although I proposed an alternative implementation that let's you use any arbitrary functions and would let you implement list->circular-list. 03:40:15 In plt that is. 03:43:37 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 03:45:34 Well you sure can't cons anything onto a circular list. 03:46:00 (??? 'b (circular-list 1 2 3)) -> (circular-list 'b 1 2 3) 03:46:14 borism_ [n=boris@195.50.200.199] has joined #scheme 03:47:17 And there's definitely no way to remove an element. (??? (circular-list 1 2 3)) -> (circular-list 2 3). cdr obviously doesn't do that. 03:47:17 Some time ago zbigniew was looking to name a macro that concanenates strings at compile-time. 03:47:20 How about UNQUOTE? 03:47:27 So they don't really look all that useful. 03:47:52 -!- hadronzoo [n=hadronzo@ppp-70-247-173-50.dsl.rcsntx.swbell.net] has quit [Read error: 110 (Connection timed out)] 03:49:55 Riastradh: Which is what I said, but his complaint was that would concatenate them at runtime. 03:50:32 -!- borism [n=boris@195-50-199-224-dsl.krw.estpak.ee] has quit [Read error: 145 (Connection timed out)] 03:51:10 I don't think you can calculate the length of a circular list either, or circumference if you'd prefer. 03:51:13 No, I mean a macro named UNQUOTE that takes a list of strings as an argument and concatenates them. 03:51:29 (define-syntax unquote (er-macro-transformer (lambda (form rename compare) rename compare (string-concatenate (cadr form] 03:51:41 synx: Yes, you can calculate the length of a circular list. 03:51:52 Or the period, rather. 03:52:12 Hmm you could loop on the list and increment a counter until you find an element eq? to the first... 03:52:49 -!- Arelius [n=Indy@netblock-68-183-230-134.dslextreme.com] has quit [] 03:53:53 -!- luz [n=davids@189.60.54.152] has quit ["Client exiting"] 03:54:15 UNQUOTE is an interesting name. I just called that same macro STRING-LITERAL. 03:54:44 But dang... that would mean that cdr becomes as expensive as length. 03:54:55 ??? 03:55:37 synx: you have blown my mind 03:56:18 what'd I do ._. 03:59:12 incubot: the wind, it moans past your ears 03:59:16 what does this have to do with dynamic-wind? 03:59:26 right, sorry 04:01:15 rudybot: countdown to april-fools-day 04:01:15 Daemmerung: eh? Try "rudybot: help". 04:05:03 -!- RageOfThou [n=RageOfTh@92.36.144.0] has quit [Read error: 101 (Network is unreachable)] 04:18:50 Well, neat stuff: https://synx.us.to/code/scheme/clist.ss 04:19:50 You can do a lot more with circular lists than I thought. But still probably too esoteric to be the solution. 04:19:55 -!- tarbo [n=me@unaffiliated/tarbo] has quit [Read error: 60 (Operation timed out)] 04:31:15 underspecified [n=eric@163.221.116.201] has joined #scheme 04:32:51 annodomini [n=lambda@c-75-69-96-104.hsd1.nh.comcast.net] has joined #scheme 04:34:07 -!- neilv [n=user@dsl092-071-030.bos1.dsl.speakeasy.net] has quit ["Leaving"] 04:35:02 tarbo [n=me@unaffiliated/tarbo] has joined #scheme 04:37:06 -!- flazz [n=franco@qubes.org] has quit [Read error: 110 (Connection timed out)] 04:37:38 *zbigniew* swallows his tail 04:45:29 -!- sreeram [n=sreeram@122.164.213.204] has quit [] 04:47:38 sreeram [n=sreeram@122.164.213.204] has joined #scheme 04:51:54 -!- sreeram [n=sreeram@122.164.213.204] has quit [Client Quit] 04:52:55 geckosenator [n=sean@71.237.94.78] has joined #scheme 05:17:36 -!- meanburrito920_ [n=John@adsl-76-222-109-63.dsl.lsan03.sbcglobal.net] has quit ["has been attacked by a grue"] 05:19:45 sreeram [n=sreeram@122.165.2.126] has joined #scheme 05:29:10 MichaelRaskin_ [n=raskin@213.171.48.239] has joined #scheme 05:39:35 *Daemmerung* calculates the length of Ouroboros 05:45:46 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 05:49:49 -!- Daemmerung [n=goetter@1133sae.mazama.net] has quit [Read error: 104 (Connection reset by peer)] 05:49:55 For handling constants that I want to embed in my code, such as an appended string, I usually use DEFINE-CONSTANT. I find it more generally useful than a specific macro for string concatenation. 05:50:15 (DEFINE-CONSTANT MY-MESSAGE (STRING-APPEND ...)). 05:55:48 eno__ [n=eno@adsl-70-137-141-104.dsl.snfc21.sbcglobal.net] has joined #scheme 05:59:49 -!- ASau [n=user@193.138.70.52] has quit [Remote closed the connection] 05:59:59 ASau [n=user@193.138.70.52] has joined #scheme 06:02:14 reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 06:02:30 -!- eno [n=eno@nslu2-linux/eno] has quit [Nick collision from services.] 06:02:35 -!- synthase [n=synthase@68.63.48.10] has quit [Read error: 110 (Connection timed out)] 06:02:37 -!- eno__ is now known as eno 06:05:13 -!- r0bby_ is now known as r0bby 06:12:01 -!- bsmntbombdood [n=gavin@97-118-125-166.hlrn.qwest.net] has quit [Read error: 110 (Connection timed out)] 06:12:41 bsmntbombdood [n=gavin@97-118-125-166.hlrn.qwest.net] has joined #scheme 06:45:17 breily_ [n=breily@173.15.192.254] has joined #scheme 06:52:01 -!- breily [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 06:59:05 -!- reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 06:59:09 reprore [n=reprore@125.2.132.58] has joined #scheme 06:59:16 -!- kilimanjaro [n=kilimanj@70.116.95.163] has quit ["Leaving"] 06:59:52 mmc [n=mima@esprx02x.nokia.com] has joined #scheme 06:59:56 -!- reprore [n=reprore@125.2.132.58] has quit [Remote closed the connection] 07:00:19 breily [n=breily@173.15.192.254] has joined #scheme 07:06:29 -!- breily_ [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 07:10:23 -!- kniu [n=kniu@OLAWDYME.RES.CMU.EDU] has quit [Read error: 110 (Connection timed out)] 07:10:47 -!- mmc [n=mima@esprx02x.nokia.com] has quit [Remote closed the connection] 07:11:34 mmc [n=mima@esprx02x.nokia.com] has joined #scheme 07:15:52 ejs [n=eugen@77.222.151.102] has joined #scheme 07:19:27 ecraven [n=nex@140.78.42.103] has joined #scheme 07:20:12 Daemmerung [n=goetter@1133sae.mazama.net] has joined #scheme 07:22:36 ASau` [n=user@host64-230-msk.microtest.ru] has joined #scheme 07:24:07 mike [n=m@dslb-088-067-040-238.pools.arcor-ip.net] has joined #scheme 07:24:36 -!- mike is now known as Guest14730 07:25:04 ejs1 [n=eugen@nat.ironport.com] has joined #scheme 07:32:28 -!- ejs [n=eugen@77.222.151.102] has quit [Read error: 110 (Connection timed out)] 07:46:54 -!- mmc [n=mima@esprx02x.nokia.com] has quit [Remote closed the connection] 07:47:00 mmc [n=mima@esprx02x.nokia.com] has joined #scheme 07:47:24 -!- Guest14730 [n=m@dslb-088-067-040-238.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 07:48:50 RageOfThou [n=RageOfTh@92.36.129.227] has joined #scheme 07:49:26 -!- jenkins [n=jenkins@ixa150.internetdsl.tpnet.pl] has quit [] 08:20:33 arcfide: I suppose you don't use anonymous lambdas then. 08:24:45 what's an anonymous lambda? 08:25:40 -!- ecraven [n=nex@140.78.42.103] has quit ["brb"] 08:27:08 -!- cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has quit ["The funniest things in my life are truth and absurdity."] 08:27:54 geckosenator: Obviously, a lambda that cares about its privacy 08:29:44 like you don't even know it's a lambda? 08:29:57 or it just has someting it's hiding? 08:30:01 No, that would be an undercover lambda 08:30:43 It just doesn't want you to know its name 08:30:50 I know know about all these kind of lambdas 08:31:01 I mean, I don't 08:31:21 the compiler gives all my lambdas names 08:31:36 they are like prisoners, get a number for a name 08:31:49 it's inhumane how these lambdas are being treated by the compiler 08:32:01 Poor lambdas 08:32:19 I'm glad I wasn't born a lambda 08:32:44 but I guess if I imagine a lambda that's like it being born 08:32:47 Using lambdas is cruel, so I only use sheepdas. 08:35:10 isn't there a way to implement lambda using call/cc ? 08:35:18 or do I have it backwards? 08:35:37 I don't support anonymous lambdas! What exactly are they trying so hard to hide? They're obviously terrorists! 08:41:51 ecraven [n=nex@140.78.42.103] has joined #scheme 08:46:41 npe [i=npe@naist-wavenet125-203.naist.jp] has joined #scheme 08:49:40 -!- RageOfThou [n=RageOfTh@92.36.129.227] has quit [Read error: 110 (Connection timed out)] 09:01:50 -!- geckosenator [n=sean@71.237.94.78] has quit [Read error: 110 (Connection timed out)] 09:04:09 Ragnaroek [i=8f5df98c@gateway/web/ajax/mibbit.com/x-685174a254e7f0f3] has joined #scheme 09:06:18 -!- brandelune [n=suzume@pl064.nas934.takamatsu.nttpc.ne.jp] has quit [] 09:14:33 -!- araujo [n=araujo@gentoo/developer/araujo] has quit [Read error: 110 (Connection timed out)] 09:22:20 -!- Adrinael [n=adrinael@barrel.rolli.org] has quit [Read error: 60 (Operation timed out)] 09:29:24 Adrinael [i=adrinael@rid7.kyla.fi] has joined #scheme 09:30:31 -!- ASau [n=user@193.138.70.52] has quit [Remote closed the connection] 09:33:21 ejs2 [n=eugen@77.222.151.102] has joined #scheme 09:37:45 jewel [n=jewel@dsl-242-133-68.telkomadsl.co.za] has joined #scheme 09:38:50 ray_ [i=ray@the.ug] has joined #scheme 09:39:19 -!- ray_ is now known as ray 09:42:39 -!- ejs1 [n=eugen@nat.ironport.com] has quit [Connection timed out] 09:43:24 Arelius [n=Indy@netblock-68-183-230-134.dslextreme.com] has joined #scheme 09:43:51 -!- mmc [n=mima@esprx02x.nokia.com] has quit ["Leaving."] 09:44:01 mmc [n=mima@esprx01x.nokia.com] has joined #scheme 09:44:44 orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has joined #scheme 09:57:14 ejs1 [n=eugen@nat.ironport.com] has joined #scheme 09:57:54 jeremiah [n=jeremiah@31.Red-213-98-123.staticIP.rima-tde.net] has joined #scheme 10:00:12 Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has joined #scheme 10:01:04 sreeram_ [n=sreeram@61.247.251.10] has joined #scheme 10:02:03 -!- sreeram [n=sreeram@122.165.2.126] has quit [Nick collision from services.] 10:02:13 -!- sreeram_ is now known as sreeram 10:04:25 -!- bsmntbombdood [n=gavin@97-118-125-166.hlrn.qwest.net] has quit [Read error: 110 (Connection timed out)] 10:04:41 -!- ejs2 [n=eugen@77.222.151.102] has quit [Read error: 110 (Connection timed out)] 10:14:34 NameAlreadyInUse [n=NameAlre@unaffiliated/namealreadyinuse] has joined #scheme 10:15:06 araujo [n=araujo@gentoo/developer/araujo] has joined #scheme 10:15:15 i am using PLT scheme and trying to make some simple macros 10:15:26 is this correct: http://codepad.org/v76zPz8X ? 10:15:40 (it appears to work) 10:26:50 The pattern can be simpler: (swap! a b) 10:29:05 ah, didn't know i could do that 10:30:56 hotblack23 [n=jh@p5B054991.dip.t-dialin.net] has joined #scheme 10:41:26 mike [n=m@dslb-088-064-135-202.pools.arcor-ip.net] has joined #scheme 10:41:31 -!- Arelius [n=Indy@netblock-68-183-230-134.dslextreme.com] has quit [] 10:41:54 -!- mike is now known as Guest77469 10:44:13 -!- synx [i=synx@gateway/gpg-tor/key-0xA71B0C6A] has quit [Remote closed the connection] 10:49:38 hkBst [n=hkBst@gentoo/developer/hkbst] has joined #scheme 10:56:48 -!- hark [n=strider@hark.slew.org] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- rodge [n=roderic@129.10.116.123] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- minion [n=minion@common-lisp.net] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- clog [i=nef@bespin.org] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- Sartak [n=sartak@sartak.akrasiac.org] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- XTL [i=t6haha00@rhea.oamk.fi] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- npe [i=npe@naist-wavenet125-203.naist.jp] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- rudybot [n=luser@q-static-138-125.avvanta.com] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- ttmrichter [n=ttmricht@59.172.141.201] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- metasyntax [n=taylor@pool-71-127-85-87.aubnin.fios.verizon.net] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- Debolaz [n=debolaz@berle.cc] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- qxi [n=havarti@taurine.csclub.uwaterloo.ca] has quit [verne.freenode.net irc.freenode.net] 10:56:48 -!- z0d [n=z0d@unaffiliated/z0d] has quit [verne.freenode.net irc.freenode.net] 10:57:39 npe [i=npe@naist-wavenet125-203.naist.jp] has joined #scheme 10:57:39 Sartak [n=sartak@sartak.akrasiac.org] has joined #scheme 10:57:39 hark [n=strider@hark.slew.org] has joined #scheme 10:57:39 rudybot [n=luser@q-static-138-125.avvanta.com] has joined #scheme 10:57:39 ttmrichter [n=ttmricht@59.172.141.201] has joined #scheme 10:57:39 qxi [n=havarti@taurine.csclub.uwaterloo.ca] has joined #scheme 10:57:39 metasyntax [n=taylor@pool-71-127-85-87.aubnin.fios.verizon.net] has joined #scheme 10:57:39 Debolaz [n=debolaz@berle.cc] has joined #scheme 10:57:39 XTL [i=t6haha00@rhea.oamk.fi] has joined #scheme 10:57:39 z0d [n=z0d@unaffiliated/z0d] has joined #scheme 10:57:39 minion [n=minion@common-lisp.net] has joined #scheme 10:57:39 rodge [n=roderic@129.10.116.123] has joined #scheme 10:57:39 clog [i=nef@bespin.org] has joined #scheme 11:03:24 hadronzoo [n=hadronzo@ppp-70-247-175-122.dsl.rcsntx.swbell.net] has joined #scheme 11:05:58 -!- sreeram [n=sreeram@61.247.251.10] has quit [Connection timed out] 11:07:29 wingo-tp [n=wingo@dhcp-18-190-39-132.dyn.mit.edu] has joined #scheme 11:07:57 -!- npe [i=npe@naist-wavenet125-203.naist.jp] has quit [] 11:18:11 breily_ [n=breily@173.15.192.254] has joined #scheme 11:19:48 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has quit [Remote closed the connection] 11:21:12 sreeram [n=sreeram@61.247.251.10] has joined #scheme 11:24:50 C-Keen [i=ckeen@pestilenz.org] has joined #scheme 11:27:17 -!- breily [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 11:31:51 -!- sreeram [n=sreeram@61.247.251.10] has quit [] 11:35:47 -!- NameAlreadyInUse [n=NameAlre@unaffiliated/namealreadyinuse] has quit ["Leaving"] 11:37:43 -!- wingo-tp [n=wingo@dhcp-18-190-39-132.dyn.mit.edu] has quit [Read error: 60 (Operation timed out)] 11:40:47 wingo-tp [n=wingo@18.190.39.132] has joined #scheme 11:52:51 elias` [n=me@194.81.254.39] has joined #scheme 11:53:11 -!- metasyntax [n=taylor@pool-71-127-85-87.aubnin.fios.verizon.net] has quit [Remote closed the connection] 11:53:22 metasyntax [n=taylor@pool-71-127-85-87.aubnin.fios.verizon.net] has joined #scheme 12:02:08 -!- sepult_ [n=buggarag@xdsl-87-78-145-99.netcologne.de] has quit ["leaving"] 12:03:45 sepult [n=buggarag@xdsl-87-78-145-99.netcologne.de] has joined #scheme 12:24:41 -!- orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has quit [Remote closed the connection] 12:26:53 thehcdreamer [n=thehcdre@62-101-93-169.ip.fastwebnet.it] has joined #scheme 12:31:32 dlt_ [n=dlt@20158130137.user.veloxzone.com.br] has joined #scheme 12:31:47 -!- wingo-tp [n=wingo@18.190.39.132] has quit [Read error: 145 (Connection timed out)] 12:42:34 a-s` [n=user@85.9.55.98] has joined #scheme 12:52:31 Nshag [n=shagoune@Mix-Orleans-106-4-162.w193-248.abo.wanadoo.fr] has joined #scheme 12:59:05 annodomini [n=lambda@c-75-69-96-104.hsd1.nh.comcast.net] has joined #scheme 13:02:37 deat [n=deat@fac34-8-88-172-174-215.fbx.proxad.net] has joined #scheme 13:08:20 NameAlreadyInUse [n=NameAlre@203-206-110-231.dyn.iinet.net.au] has joined #scheme 13:08:30 is there some way to get type information about an object 13:08:34 like (typeof x)? 13:09:32 not in r5rs scheme 13:09:48 how about in PLT scheme? 13:09:53 you can try NUMBER?, PAIR?, etc. to test for each "type" 13:13:57 -!- Guest77469 [n=m@dslb-088-064-135-202.pools.arcor-ip.net] has quit [Read error: 60 (Operation timed out)] 13:15:19 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 13:17:15 eli: please approve my two mails to plt list 13:21:16 hkBst: Please subscribe to the list to avoid waiting for approval. 13:21:31 -!- dlt_ [n=dlt@20158130137.user.veloxzone.com.br] has quit ["Leaving"] 13:24:29 -!- MichaelRaskin_ [n=raskin@213.171.48.239] has quit [Read error: 110 (Connection timed out)] 13:29:16 breily [n=breily@173.15.192.254] has joined #scheme 13:35:31 wingo-tp [n=wingo@18.190.26.53] has joined #scheme 13:36:12 Edico [n=Edico@unaffiliated/edico] has joined #scheme 13:36:41 -!- breily_ [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 13:40:13 annodomini [n=lambda@64.30.3.122] has joined #scheme 13:49:39 how do ellipses work in pattern matching? 13:49:44 -!- Pegazus_ [n=awefawe@201.253.217.14] has quit [] 13:52:42 alaricsp [n=alaricsp@88-202-213-29.rdns.as8401.net] has joined #scheme 13:53:02 Judofyr [n=Judofyr@c349BBF51.dhcp.bluecom.no] has joined #scheme 13:54:58 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 13:56:22 -!- dsmith [i=mj1sew5q@cpe-71-74-230-225.neo.res.rr.com] has quit [Remote closed the connection] 14:00:20 breily_ [n=breily@173.15.192.254] has joined #scheme 14:04:11 vaasu [n=yt@123.176.20.170] has joined #scheme 14:04:38 do there exist a scheme->c translator for _plt_ scheme? 14:05:07 scm and gambit has one.. 14:05:51 bzzbzz [n=franco@207.236.146.245] has joined #scheme 14:06:04 Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has joined #scheme 14:06:18 -!- breily [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 14:07:47 -!- underspecified [n=eric@163.221.116.201] has quit [] 14:07:51 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has quit [Client Quit] 14:08:14 Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has joined #scheme 14:09:35 eli: the list is almost completely noise and the volume is way too high. If only there was a development list I could subscribe to. 14:11:29 hkBst: (1) MailMan has a "no-mail" option to be able to send emails to a list but not receive messages; (2) if you'd read the messages I send when I approve your emails (not now, in the last time), you'd see exactly that explanation and a pointer to the mailman page with instructions of doing that; (3) there is a `plt-dev' mailing list. 14:11:55 annodomini [n=lambda@130.189.179.215] has joined #scheme 14:11:58 -!- wingo-tp [n=wingo@18.190.26.53] has quit [Read error: 145 (Connection timed out)] 14:17:03 aquanaut [n=user@pool-71-191-244-210.washdc.fios.verizon.net] has joined #scheme 14:22:55 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 14:25:38 -!- arcfide [n=arcfide@adsl-99-186-239-125.dsl.bltnin.sbcglobal.net] has quit [Remote closed the connection] 14:26:16 eli: thanks, I have subscribed to plt-dev and will send my mails there in the future. 14:26:48 It doesn't have the same rols. 14:26:53 s/rols/role/ 14:27:03 eli: it seems it only exists for a few months though 14:27:15 About a month. 14:28:32 eli: I realize that, but very few people on plt-scheme@ are interested in compilation or bundled libs anyway and those on plt-dev@ are, or so I hope. 14:28:50 yay for this new list :D 14:29:23 hkBst: I realize that you realize that, I just pointed you at the fact that the new list is not intended to be some lower-volume replica of the main list. 14:29:40 In fact, it can sometimes be swamped with noise, for example, when we release. 14:30:00 well, that's the stuff I'm interested in probably 14:30:50 I dout that you're interested in all of it; see the archives to get the flavor. 14:31:05 luz [n=davids@139.82.89.70] has joined #scheme 14:31:08 reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 14:33:24 orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has joined #scheme 14:33:54 -!- ejs1 [n=eugen@nat.ironport.com] has quit [Read error: 110 (Connection timed out)] 14:36:05 -!- luz [n=davids@139.82.89.70] has quit [Remote closed the connection] 14:36:23 eli: I don't see a reply by you on the list and I don't remember getting one personally, I'm searching through my spam... 14:36:37 repror___ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 14:37:23 -!- reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 14:37:59 hkBst: http://list.cs.brown.edu/mailman/listinfo/plt-scheme/ 14:38:12 hkBst: click the "Unsubscribe or edit options" 14:38:23 hkBst: in the next screen enter your email and password 14:38:38 hkBst: you will be in the configuration page where the first option is where you can disable delivery 14:38:55 is there some way i can define a variable argument lambda? 14:39:54 NameAlreadyInUse: What's a variable argument? 14:40:13 sorry, i mean a variable number of arguments 14:40:34 rudybot: eval (define (foo . r) (apply + r)) 14:40:39 rudybot: eval (foo 1 2 3 4) 14:40:40 eli: ; Value: 10 14:43:21 mike [n=m@dslb-088-066-224-106.pools.arcor-ip.net] has joined #scheme 14:43:49 -!- mike is now known as Guest25912 14:44:50 jah [n=jah@22.56.76-86.rev.gaoland.net] has joined #scheme 14:46:32 jlongster [n=user@75.148.111.133] has joined #scheme 14:48:11 orgy_ [n=ratm_@pD9FFC85C.dip.t-dialin.net] has joined #scheme 14:49:36 luz [n=davids@139.82.89.70] has joined #scheme 14:49:56 -!- luz [n=davids@139.82.89.70] has quit [Read error: 104 (Connection reset by peer)] 14:50:09 luz [n=davids@139.82.89.70] has joined #scheme 14:52:18 reprore_ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 14:52:33 -!- repror___ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 14:54:10 -!- jah [n=jah@22.56.76-86.rev.gaoland.net] has left #scheme 14:54:12 -!- mmc [n=mima@esprx01x.nokia.com] has quit ["Leaving."] 14:55:49 -!- orgy_ [n=ratm_@pD9FFC85C.dip.t-dialin.net] has quit [Client Quit] 14:57:05 underspecified [n=eric@220.43.52.7] has joined #scheme 14:59:40 -!- sepult [n=buggarag@xdsl-87-78-145-99.netcologne.de] has quit [Read error: 104 (Connection reset by peer)] 15:00:47 -!- orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has quit [Read error: 113 (No route to host)] 15:04:22 mmc [n=mima@esprx01x.nokia.com] has joined #scheme 15:05:11 sepult [n=buggarag@xdsl-87-78-137-157.netcologne.de] has joined #scheme 15:05:56 -!- ecraven [n=nex@140.78.42.103] has quit ["bbl"] 15:10:04 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has quit [Read error: 60 (Operation timed out)] 15:11:24 chaoslynx [n=cpehle@p57A7427A.dip.t-dialin.net] has joined #scheme 15:11:55 orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has joined #scheme 15:27:12 wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has joined #scheme 15:28:04 -!- vaasu [n=yt@123.176.20.170] has left #scheme 15:33:48 ejs [n=eugen@100-114-112-92.pool.ukrtel.net] has joined #scheme 15:37:25 bweaver [n=user@75.148.111.133] has joined #scheme 15:37:26 -!- bweaver [n=user@75.148.111.133] has quit [Client Quit] 15:38:07 bweaver [n=user@75.148.111.133] has joined #scheme 15:39:11 -!- wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has quit ["Leaving"] 15:39:15 wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has joined #scheme 15:51:30 -!- Guest25912 [n=m@dslb-088-066-224-106.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 15:54:22 -!- jonrafkind [n=jon@c-98-202-86-149.hsd1.ut.comcast.net] has quit [Read error: 60 (Operation timed out)] 15:57:45 dlt_ [n=dlt@201.57.58.146] has joined #scheme 15:57:52 yawn, qwhat a long day at the circus :| 16:00:49 sreeram [n=sreeram@122.164.213.204] has joined #scheme 16:03:15 -!- thehcdreamer [n=thehcdre@62-101-93-169.ip.fastwebnet.it] has quit [] 16:04:09 -!- Ragnaroek [i=8f5df98c@gateway/web/ajax/mibbit.com/x-685174a254e7f0f3] has quit ["http://www.mibbit.com ajax IRC Client"] 16:05:45 vixey [n=yoo@amcant.demon.co.uk] has joined #scheme 16:07:35 -!- ASau` [n=user@host64-230-msk.microtest.ru] has quit ["Off!"] 16:11:56 mike [n=m@dslb-088-066-224-106.pools.arcor-ip.net] has joined #scheme 16:12:24 -!- mike is now known as Guest73550 16:13:51 -!- NameAlreadyInUse [n=NameAlre@unaffiliated/namealreadyinuse] has quit ["Leaving"] 16:19:10 athos [n=philipp@92.250.250.68] has joined #scheme 16:30:29 -!- ejs [n=eugen@100-114-112-92.pool.ukrtel.net] has quit ["This computer has gone to sleep"] 16:38:36 -!- wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has quit [Read error: 110 (Connection timed out)] 16:43:27 notByan [n=notByan@logo.csl.mtu.edu] has joined #scheme 16:43:42 Is something like a (return-first-not-false ) 16:43:52 notByan: OR 16:44:22 if I do (or #f (+ 2 2) (+ 2 3)), that'll return 4? 16:44:25 *notByan* tries it 16:44:39 actually, how do I tell the bot in here to try it? 16:44:49 rudybot: eval (or #f (+ 2 2) (+ 2 3)) 16:44:50 *offby1: your scheme sandbox is ready 16:44:51 *offby1: ; Value: 4 16:44:57 sweet 16:44:57 *offby1* bows 16:45:03 thanks 16:45:29 wow, that makes or very very useful.. 16:50:13 hmmm, i wonder why my predicate is slower than the converter... inexact->exact is faster than exact? same with inexact :\ 16:51:20 rudybot: eval (or "c" "b" "a") 16:51:20 proq: ; Value: "c" 16:51:26 rudybot: eval (or "a" "b" "c") 16:51:27 proq: ; Value: "a" 16:51:37 thats so amazingly powerful =D 16:51:59 gets rid of like.. half the reasons you would use (if ) 16:54:42 rudybot: eval (or 1 2 3) 16:54:43 proq: ; Value: 1 16:54:47 rudybot: eval (or 3 2 1) 16:54:47 proq: ; Value: 3 16:55:01 rudybot: eval (or #f #t #f) 16:55:02 proq: ; Value: #t 16:55:08 rudybot: eval (or #f #f #f) 16:55:08 proq: ; Value: #f 16:55:16 proq: what are you trying to figure out 16:55:30 notByan: sorry, I'm just playing with the bot 16:55:39 no worries 16:59:59 rudybot: eval (or #f '() 1) 17:00:00 proq: ; Value: () 17:00:44 ASau [n=user@193.138.70.52] has joined #scheme 17:04:28 how do I do constants in scheme? 17:05:25 -!- a-s` [n=user@85.9.55.98] has quit [Remote closed the connection] 17:06:59 I guess there isn't really a way... 17:07:01 notByan: just don't use SET! on it 17:07:02 jonrafkind [n=jon@crystalis.cs.utah.edu] has joined #scheme 17:07:17 aaco [n=aaco@201-95-197-160.dsl.telesp.net.br] has joined #scheme 17:07:22 notByan: like C's `const'? 17:07:46 more like.. #define 17:08:01 but, the const would work 17:08:23 I have magic numbers.. 17:08:27 You can define a Scheme macro with define-macro, and do anything you could with C's #define, plus a bunch more. 17:08:37 notByan: you could roll your own code for immutable objects, but that would be overkill IMO 17:08:44 (define-macro is just one of the macro systems out there) 17:09:31 hmm 17:10:23 notByan: there isn't anything analagous to C's const, so it depends on what you want to do. #define a 5 could be implemented as (define-macro (a) 5), but that's just one case. 17:10:39 (define a 5) 17:11:09 notByan ^ 17:12:01 yeah, thats what I am gonna use vixey \ 17:12:09 I just wondered if there was a better way 17:12:14 this is the best way 17:12:29 so, whats the best naming scheme for these. 17:12:39 you should call everything FOO 17:12:42 I think I am gonna use $a, etc... 17:13:23 notByan: what are 'these'? 17:13:41 rudybot: eval (define 1) 17:13:52 rudybot: eval 17:13:53 proq: ; Value: 1 17:13:59 what's with the <>'s? 17:14:29 -!- notByan is now known as [] 17:14:34 -!- [] is now known as notByan 17:14:47 vixey: just a suggestion 17:20:57 notByan: or you could use all caps for consts, or prefix with a letter like k 17:21:21 tessier_ [n=treed@kernel-panic/sex-machines] has joined #scheme 17:23:30 -!- alaricsp [n=alaricsp@88-202-213-29.rdns.as8401.net] has quit [] 17:23:36 ugh... now there are apricot bars in the coffee area 17:23:47 sorry, wrong channel :( 17:24:46 notByan: do you want constant such that the compiler can optimize your code or do you want them to help you not assign them? 17:24:49 I realized that there is no real reason to use these numbers rather than literals.. 17:25:09 hkBst: just trying to figure out the best way to do this.. 17:25:20 I am a C programmer, writing in scheme requires me to think differently 17:25:23 breily [n=breily@173.15.192.254] has joined #scheme 17:25:26 to do what? ;) 17:25:35 khisanth_ [n=Khisanth@pool-68-237-103-91.ny325.east.verizon.net] has joined #scheme 17:26:01 uhm, it's an assignment, trying to ouput abstract syntax from actual syntax 17:26:23 abstract syntax from actual syntax? 8-/ 17:26:43 wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has joined #scheme 17:27:02 r5rs eof-object? 17:27:03 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_618 17:27:09 -rudybot:#scheme- http://tinyurl.com/59qhmr 17:27:41 r5rs with-input-from-file 17:27:41 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_600 17:27:43 -rudybot:#scheme- http://tinyurl.com/delx9d 17:30:25 hkBst: http://www.csl.mtu.edu/cs4121/www/hw/hw5/hw5.html 17:31:29 -!- breily_ [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 17:32:03 -!- Khisanth [n=Khisanth@pool-68-237-103-91.ny325.east.verizon.net] has quit [Connection timed out] 17:32:50 melgray [n=melgray@70.99.250.82] has joined #scheme 17:32:54 -!- khisanth_ is now known as Khisanth 17:35:53 sreeram_ [n=sreeram@59.92.82.33] has joined #scheme 17:38:23 ah I see 17:39:19 r5rs values 17:39:28 r5rs values 17:39:28 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_572 17:39:33 -rudybot:#scheme- http://tinyurl.com/yoye9g 17:41:37 cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has joined #scheme 17:41:59 -!- cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has quit [Read error: 104 (Connection reset by peer)] 17:42:10 cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has joined #scheme 17:42:21 RageOfThou [n=RageOfTh@92.36.184.0] has joined #scheme 17:53:59 -!- sreeram [n=sreeram@122.164.213.204] has quit [Read error: 110 (Connection timed out)] 17:57:58 rudybot: eval (and 3 4) 17:58:00 notByan: your sandbox is ready 17:58:00 notByan: ; Value: 4 17:58:11 and (and ) does the last one.. 17:58:13 =) 17:59:05 -!- hkBst [n=hkBst@gentoo/developer/hkbst] has quit [Read error: 104 (Connection reset by peer)] 17:59:33 hkBst [n=hkBst@gentoo/developer/hkbst] has joined #scheme 18:00:38 rudybot: eval (and #t 2 (= 1 2) 3) 18:00:38 proq: ; Value: #f 18:02:30 -!- sreeram_ [n=sreeram@59.92.82.33] has quit [Read error: 110 (Connection timed out)] 18:04:41 rudybot: eval (define result1 (and #t 3)) 18:04:47 notByan: no it doesn't use BEGIN for that 18:04:53 rudybot: eval (define result2 (and 3 #t)) 18:05:00 vixey: hmm? 18:05:09 rudybot: eval (if (= result1 result2) (display "true\n") (display "false\n")) 18:05:09 proq: error: =: expects type as 2nd argument, given: #t; other arguments were: 3 18:05:23 notByan: I wouldn't recommend using numbers in and/or ^^ 18:05:32 why not? 18:05:46 notByan: it was only meant for #f and #t 18:06:31 *notByan* shrugs 18:07:10 as long as I don't forget they are numbers.. I should be fine 18:10:22 if I'm wrong, I'll learn the hard way 18:10:45 r5rs current-input-port 18:10:45 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_596 18:10:48 -rudybot:#scheme- http://tinyurl.com/dc3q3d 18:12:56 -!- benny` is now known as benny 18:12:57 it does make things really cryptic if I keep abusing (and ) as if's.. 18:13:02 maybe I should stop.. 18:13:57 you can pretty much never use (if )... 18:16:27 notByan: (or (and ) ) is less readable then (if Not to mention that if returns #f, the first form will still execute when it shouldn't 18:17:38 yeah, if you are using else's then if is useful.. 18:17:39 -!- orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has quit [Remote closed the connection] 18:27:28 dudrenov [n=user@67.101.217.41] has joined #scheme 18:28:14 anborn [n=anborn@host-84-220-69-12.cust-adsl.tiscali.it] has joined #scheme 18:29:47 notByan: also, in C you would expect (or 0 '() #t) to work whereas in scheme it doesn't 18:29:54 -!- tessier_ [n=treed@kernel-panic/sex-machines] has left #scheme 18:30:08 s/work/to be true 18:32:01 -!- mmc [n=mima@esprx01x.nokia.com] has quit [Remote closed the connection] 18:32:02 wait, what? 18:32:16 rudybot: eval (or 0 '() #t) 18:32:17 notByan: ; Value: 0 18:32:24 oh, I see 18:32:33 thats a good point 18:34:34 -!- aaco [n=aaco@unaffiliated/aaco] has quit [Read error: 110 (Connection timed out)] 18:36:39 alaricsp [n=alaricsp@88-202-213-29.rdns.as8401.net] has joined #scheme 18:39:19 schmalbe [n=bernhard@p549A1351.dip0.t-ipconnect.de] has joined #scheme 18:40:27 breily_ [n=breily@173.15.192.254] has joined #scheme 18:42:23 drizzd [n=drizzd@p549A561F.dip.t-dialin.net] has joined #scheme 18:46:37 -!- breily [n=breily@173.15.192.254] has quit [Read error: 110 (Connection timed out)] 19:04:55 -!- luz [n=davids@139.82.89.70] has quit ["Client exiting"] 19:04:59 -!- breily_ [n=breily@173.15.192.254] has quit [] 19:05:27 -!- chaoslynx [n=cpehle@p57A7427A.dip.t-dialin.net] has quit ["leaving"] 19:08:51 -!- pchrist [n=spirit@gentoo/developer/pchrist] has quit [Read error: 54 (Connection reset by peer)] 19:17:08 wy [n=wy@c-98-228-40-51.hsd1.in.comcast.net] has joined #scheme 19:17:50 is there an exists? or something.. 19:17:59 to see if a value exists in a list 19:18:03 or do you have to do that by hand 19:18:08 -!- wy [n=wy@c-98-228-40-51.hsd1.in.comcast.net] has quit [Client Quit] 19:19:19 it's called member, if you can find these sorts of things in 19:19:21 r5rs member 19:19:21 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_432 19:19:27 or any beginners gude 19:19:28 -rudybot:#scheme- http://tinyurl.com/3r2q3n 19:19:28 guide 19:19:47 -!- Adrinael [i=adrinael@rid7.kyla.fi] has quit [Read error: 110 (Connection timed out)] 19:19:56 thanks 19:22:18 -!- alaricsp [n=alaricsp@88-202-213-29.rdns.as8401.net] has quit [] 19:23:23 pchrist [n=spirit@gentoo/developer/pchrist] has joined #scheme 19:29:41 choas [n=lars@p5B0DDD0E.dip.t-dialin.net] has joined #scheme 19:36:11 arcfide [n=arcfide@adsl-99-186-239-125.dsl.bltnin.sbcglobal.net] has joined #scheme 19:43:22 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 19:46:27 -!- sreeram [n=sreeram@122.164.213.204] has quit [] 19:49:17 geckosenator [n=sean@71.237.94.78] has joined #scheme 19:50:41 -!- wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has quit [Read error: 110 (Connection timed out)] 19:58:29 breily [n=breily@137.54.12.69] has joined #scheme 19:58:43 -!- drizzd [n=drizzd@p549A561F.dip.t-dialin.net] has left #scheme 20:03:04 Arelius [n=Indy@netblock-68-183-230-134.dslextreme.com] has joined #scheme 20:05:25 wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has joined #scheme 20:14:04 langmartin [n=user@adsl-074-167-038-128.sip.cha.bellsouth.net] has joined #scheme 20:14:55 MichaelRaskin_ [n=raskin@gwh-1-177-mytn23k1.ln.rinet.ru] has joined #scheme 20:15:43 arcfide: maybe you need a spoon :) 20:18:38 repror___ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 20:18:39 -!- reprore_ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 113 (No route to host)] 20:20:52 mike_ [n=m@dslb-088-066-248-126.pools.arcor-ip.net] has joined #scheme 20:21:20 -!- mike_ is now known as Guest72170 20:24:58 -!- breily [n=breily@137.54.12.69] has quit [Read error: 104 (Connection reset by peer)] 20:28:09 -!- Guest73550 [n=m@dslb-088-066-224-106.pools.arcor-ip.net] has quit [Read error: 110 (Connection timed out)] 20:28:31 slom [n=slom@pD9EB6CA1.dip.t-dialin.net] has joined #scheme 20:29:13 alaricsp [n=alaricsp@88-202-213-29.rdns.as8401.net] has joined #scheme 20:30:27 leppie: What? 20:32:09 the guy looking for the benchmark function :) 20:32:39 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [Read error: 113 (No route to host)] 20:35:06 hm, how do I start plt's web-server? I have tried mzscheme -f $plt_root/collect/web-server/web-server.ss but then (web-server) is not known contrary to what the manual at http://download.plt-scheme.org/doc/352/html/web-server/web-server.html#node_toc_start suggests 20:35:08 -rudybot:#scheme- http://tinyurl.com/ddmk9p 20:35:45 oh never mind.... 20:37:21 orgy` [n=ratm_@pD9FFC85C.dip.t-dialin.net] has joined #scheme 20:37:49 it's quiet in here... people must be at the lisp conference or something 20:38:01 ecraven [n=nex@140.78.42.103] has joined #scheme 20:40:05 i just just discovered, that I have discovered monads! 20:40:34 well i think I did :) 20:40:46 you are now a plumber! 20:42:26 the tspl doesn't convert nicely from pdf/postscript to ascii.. :( 20:42:49 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 20:43:04 there are inserted all over the place 20:44:11 picture code? 20:44:13 -!- repror___ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 20:44:35 dont you love it when people put images of code listing in articles? 20:44:42 reprore_ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 20:48:24 -!- reprore_ [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 20:49:22 -!- notByan [n=notByan@logo.csl.mtu.edu] has quit [Remote closed the connection] 20:49:26 notByan [n=notByan@logo.csl.mtu.edu] has joined #scheme 20:52:32 mejja [n=user@c-4bb5e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #scheme 20:53:54 -!- vincenz is now known as poucet 20:55:22 breily [n=breily@173.15.192.254] has joined #scheme 20:56:01 -!- deat [n=deat@fac34-8-88-172-174-215.fbx.proxad.net] has quit [Read error: 104 (Connection reset by peer)] 21:05:00 ejs [n=eugen@100-114-112-92.pool.ukrtel.net] has joined #scheme 21:16:19 nan8 [n=user@dslb-088-064-138-109.pools.arcor-ip.net] has joined #scheme 21:23:04 dlt__ [n=dlt@201.57.58.146] has joined #scheme 21:25:16 -!- mejja [n=user@c-4bb5e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 21:26:19 mejja [n=user@c-4bb5e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #scheme 21:28:48 leppie: Um, I am not sure I get your reference, though I do recall the benchmarking guy. What does that have to do with spoons? 21:28:53 saccade_ [n=saccade@dhcp-18-188-70-132.dyn.mit.edu] has joined #scheme 21:30:17 -!- schmalbe [n=bernhard@p549A1351.dip0.t-ipconnect.de] has quit [Remote closed the connection] 21:33:58 -!- ecraven [n=nex@140.78.42.103] has quit ["bbl"] 21:36:55 -!- ejs [n=eugen@100-114-112-92.pool.ukrtel.net] has quit ["This computer has gone to sleep"] 21:37:28 -!- anborn [n=anborn@host-84-220-69-12.cust-adsl.tiscali.it] has quit ["Leaving"] 21:41:26 -!- dlt_ [n=dlt@201.57.58.146] has quit [Read error: 113 (No route to host)] 21:45:06 -!- dlt__ [n=dlt@201.57.58.146] has quit [Read error: 113 (No route to host)] 21:45:11 -!- annodomini [n=lambda@wikipedia/lambda] has quit [Read error: 110 (Connection timed out)] 21:45:13 jao [i=jao@dhcp-18-190-9-87.dyn.mit.edu] has joined #scheme 21:45:32 -!- jonrafkind [n=jon@crystalis.cs.utah.edu] has quit [No route to host] 21:48:45 jonrafkind [n=jon@eng-4-124.hotspot.utah.edu] has joined #scheme 21:50:00 -!- saccade_ [n=saccade@dhcp-18-188-70-132.dyn.mit.edu] has quit [Read error: 60 (Operation timed out)] 21:53:21 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Nick collision from services.] 21:53:31 sladegen [n=nemo@unaffiliated/sladegen] has joined #scheme 21:54:41 -!- wingo-tp [n=wingo@dhcp-18-190-26-53.dyn.mit.edu] has quit [Read error: 110 (Connection timed out)] 21:57:15 annodomini [n=lambda@130.189.179.215] has joined #scheme 21:59:57 bombshelter13p [n=bombshel@24.114.234.1] has joined #scheme 22:00:42 -!- bombshelter13p [n=bombshel@24.114.234.1] has quit [Client Quit] 22:00:59 -!- jao [i=jao@dhcp-18-190-9-87.dyn.mit.edu] has quit [Read error: 60 (Operation timed out)] 22:08:20 Eekdacat [i=Eekdacat@cpe-74-70-16-163.nycap.res.rr.com] has joined #scheme 22:09:03 ejs [n=eugen@113-128-124-91.pool.ukrtel.net] has joined #scheme 22:09:59 arcfide: spoon feeding :p 22:10:57 i have an (a b c) triplet and definable constraints for f(a) and f(b), such that f(a) is 0 or 1, f(b) is the opposite of f(a), and c determines which one is which 22:11:03 -!- ejs [n=eugen@113-128-124-91.pool.ukrtel.net] has quit [Client Quit] 22:11:09 is there any way to make a separate procedure returning just f 22:11:27 which can then be passed in as f(x) where x is something between a and b 22:12:32 dysinger [n=tim@cpe-75-80-200-182.hawaii.res.rr.com] has joined #scheme 22:14:10 ASau` [n=user@193.138.70.52] has joined #scheme 22:14:53 -!- Guest72170 [n=m@dslb-088-066-248-126.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 22:15:58 to simplify the problem, i have a, b, f(a), f(b), i need a way to determine f on the fly and have x be passed to it 22:15:59 synx [i=synx@gateway/gpg-tor/key-0xA71B0C6A] has joined #scheme 22:16:40 -!- annodomini [n=lambda@wikipedia/lambda] has quit [Read error: 110 (Connection timed out)] 22:16:45 f assumed to be linear 22:16:56 wow... my HTTP/1.1 module just actually worked. 22:17:07 Now's about when I ask if anyone's done that already before 22:18:13 -!- jewel [n=jewel@dsl-242-133-68.telkomadsl.co.za] has quit [Read error: 60 (Operation timed out)] 22:19:49 Eekdacat: I think you need to explain yourself better. Are you saying that you have two numbers A and B, and you want a function which maps the range [A, B] or [B, A] to [0, 1]? 22:20:44 f(x) corresponds to a range from 0 to 1, can be decimal 22:21:08 -!- ASau [n=user@193.138.70.52] has quit [Read error: 110 (Connection timed out)] 22:21:08 it's simple slope-intercept, but is there a way to make a procedure to return just f 22:21:24 Eekdacat, do you mean that f(x) *returns* a value in the range 0 to 1, or that it expects that value? Is that an inclusive or an exclusive range? 22:21:44 gnomon: range of a function is what it returns. 22:21:59 it expects a value from a<=x<=b, returns 0<=f(x)<=1 22:22:03 synx, I'm asking Eekdacat for more information. Thanks, though. 22:22:40 simple line plot, have a,b,f(a),f(b), can calculate slope and intercept of f 22:22:45 eekdacat: is the domain and codomain of F a subset of the reals? 22:22:56 (define (f x) (/ (- x a) (- b a))) 22:23:36 minion: chant 22:23:36 MORE INFORMATION 22:23:42 :-) Exactly what I wanted. 22:24:04 it's a simple line in cartesian like you would have in pre-algebra 22:24:10 (define (make-f a b) (lambda (x) (/ (- x a) (- b a)))) 22:24:20 synx, please don't do Eekdacat's homework. 22:24:33 *arcfide* seconds gnomon. 22:24:52 i could calculate f(x) in 1 procedure, but it just becomes unreadable 22:25:02 aw, but I wanted to be unhelpful 22:25:34 Eekdacat: please very carefully, precisely, and unambiguously explain what you are trying to do, and you may suddenly realize the answer. 22:26:05 can a procedure return a lambda procedure is my question really 22:26:24 Eekdacat: what is a lambda procedure? 22:26:36 (lambda (x) (+ x 2)) 22:27:03 Eekdacat: what distinguishes that from a regular procedure? 22:27:05 Yes Eekdacat a procedure can return a procedure. Procedures are first class values in scheme. 22:27:10 Samus_ [n=samus@r190-135-46-148.dialup.adsl.anteldata.net.uy] has joined #scheme 22:27:20 -!- ASau` is now known as ASau 22:27:26 You should try it yourself though, instead of taking our word for it. 22:27:41 synx: Aw, you're making this too easy. :-D 22:27:58 for f(x), i would want say ((make-f a b c d) x) 22:28:19 does that explain my train of thought better 22:28:37 Well try it Eekdacat, see what that produces. 22:29:14 reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 22:29:20 -!- Judofyr [n=Judofyr@c349BBF51.dhcp.bluecom.no] has quit [Remote closed the connection] 22:29:28 oh i just forgot how to make procedure returning procedure 22:29:33 Eekdacat: You need to translate your basic algebra knowledge into source. Grab that sleek pen and paper. 22:29:54 puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has joined #scheme 22:30:05 Eekdacat: Don't memorize something like that, it's a natural extension of doing any kind of expression composition in Scheme. 22:30:06 oh the algebra is fine 22:30:32 Eekdacat: First stage is 22:30:36 (define make-f 22:30:39 (lambda (a b c d) 22:30:43 (lambda (x) 22:30:51 ... 22:30:53 *arcfide* shakes his head. 22:30:54 why lambda (a b c d) 22:31:01 ((make-f a b c d) x) 22:31:03 leppie: And you think I need a spoon? 22:31:08 -!- puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has quit [Client Quit] 22:31:16 Eekdacat: What is LAMBDA? 22:31:17 (define (make-f a b c d) (lambda (x) (translation))) 22:31:27 -!- reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 22:31:28 (define (procedure-returning-procedure) +) 22:31:49 Eekdacat: that's equiv. to what I wrote 22:31:54 Eekdacat: either way works 22:31:55 oh 22:32:11 That defines a procedure of 4 arguments, Eekdacat 22:32:12 a, b, c and d. 22:32:12 and now it's just a matter of 8th grade math 22:32:15 Eekdacat: (EXPAND '(DEFINE (BLAH X) Y)) => '(DEFINE BLAH (LAMBDA (X) Y)). 22:32:23 arcfide: an anonymous function ? 22:32:35 or one without a name ? 22:33:08 or rather a function generatore ? 22:33:23 sepult: LAMBDA is a form that evaluates to a procedure. Whether or not it is anonymous depends on whether it is bound to something. All functions are "anonymous" in some sense in Scheme. 22:33:55 By "it is bound" I mean that the procedure to which the LAMBDA form evaluates is bound to some name. 22:33:58 A lambda can have a name. The name is just whatever argument it's in. Might be better to say a name can hold a lambda. 22:34:07 No procedure has a...yeah what arcfide said. 22:34:34 MrFahrenheit [n=RageOfTh@92.36.221.202] has joined #scheme 22:36:53 asolove [n=user@c-76-25-230-100.hsd1.co.comcast.net] has joined #scheme 22:40:34 reprore [n=reprore@ntkngw304058.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 22:49:34 Quetzalcoatl_ [n=godless@cpe-71-72-235-91.cinci.res.rr.com] has joined #scheme 22:50:25 -!- RageOfThou [n=RageOfTh@92.36.184.0] has quit [Read error: 101 (Network is unreachable)] 22:53:27 nan8` [n=user@dslb-088-065-172-086.pools.arcor-ip.net] has joined #scheme 22:54:20 actually, an identifier can be bound to a value, not the other way 22:54:43 procedures don't have names 23:04:08 -!- Eekdacat [i=Eekdacat@cpe-74-70-16-163.nycap.res.rr.com] has left #scheme 23:04:20 -!- jonrafkind [n=jon@eng-4-124.hotspot.utah.edu] has quit [Connection timed out] 23:07:32 bombshelter13 [n=bombshel@209-161-235-227.dsl.look.ca] has joined #scheme 23:08:07 `sorrow` [n=kvirc@92.4.210.217] has joined #scheme 23:08:19 -!- nan8` [n=user@dslb-088-065-172-086.pools.arcor-ip.net] has quit [Remote closed the connection] 23:09:07 -!- nan8 [n=user@dslb-088-064-138-109.pools.arcor-ip.net] has quit [Read error: 110 (Connection timed out)] 23:09:44 -!- Nshag [n=shagoune@Mix-Orleans-106-4-162.w193-248.abo.wanadoo.fr] has quit [Remote closed the connection] 23:11:57 -!- `sorrow` is now known as `sorrow_bobot 23:21:18 *`sorrow_bobot* yesssssssssssssssssssssss it works ! 23:21:35 -!- `sorrow_bobot is now known as `sorrow_guile` 23:23:53 jao [i=jao@dhcp-18-190-9-87.dyn.mit.edu] has joined #scheme 23:24:30 -!- langmartin [n=user@adsl-074-167-038-128.sip.cha.bellsouth.net] has quit [Read error: 110 (Connection timed out)] 23:25:59 what works ? 23:26:13 works how ? 23:26:22 does it work too much ? 23:26:47 *Quetzalcoatl_* definitely works too much. 23:31:04 jonrafkind [n=jon@crystalis.cs.utah.edu] has joined #scheme 23:31:27 -!- jlongster [n=user@75.148.111.133] has quit [Read error: 113 (No route to host)] 23:31:29 -!- asolove [n=user@c-76-25-230-100.hsd1.co.comcast.net] has left #scheme 23:35:45 -!- athos [n=philipp@92.250.250.68] has quit ["leaving"] 23:36:21 -!- vixey [n=yoo@amcant.demon.co.uk] has quit ["Quitting!"] 23:42:19 Wilduck [n=erik@c121h059.wless.reed.edu] has joined #scheme 23:47:08 Can someone help me figure out how compiling/loading .scm files works in mit-scheme? 23:47:29 I have a .scm file that I'd like to run, either as a binary, or in the interpreter 23:47:34 I really have no preference 23:47:43 but I can't figure out the user manual 23:47:59 I did get the file to compile once, but the binary was unusable 23:58:02 -!- jao [i=jao@dhcp-18-190-9-87.dyn.mit.edu] has quit [Remote closed the connection] 23:58:40 -!- hotblack23 [n=jh@p5B054991.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)]