00:07:29 -!- spiderweb [~lcc@unaffiliated/lcc] has quit [Quit: leaving] 00:35:40 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 00:37:25 spiderweb [~user@unaffiliated/lcc] has joined #scheme 00:43:09 -!- nowhere_man_ [~pierre@AStrasbourg-551-1-149-78.w90-48.abo.wanadoo.fr] has quit [Read error: Connection reset by peer] 00:44:44 jrslepak [~jrslepak@ip-64-134-65-75.public.wayport.net] has joined #scheme 00:45:26 nowhere_man [~pierre@AStrasbourg-551-1-149-78.w90-48.abo.wanadoo.fr] has joined #scheme 00:52:59 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 246 seconds] 00:54:26 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 00:55:14 -!- mark_weaver [~user@TURNTABLE.MIT.EDU] has quit [Ping timeout: 255 seconds] 00:58:14 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Ping timeout: 246 seconds] 00:58:42 -!- phao [phao@177.199.126.38] has quit [Quit: Not Here] 01:01:30 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 265 seconds] 01:11:56 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Read error: Connection reset by peer] 01:12:25 phao [phao@177.199.126.38] has joined #scheme 01:14:07 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 01:15:11 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 01:16:54 -!- hiroaki_ [~hiroaki@77-20-78-82-dynip.superkabel.de] has quit [Ping timeout: 264 seconds] 01:19:49 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 01:24:19 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 01:29:03 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 265 seconds] 01:32:03 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 01:42:24 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 01:43:03 -!- walter|r [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 01:46:04 walter|r [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has joined #scheme 01:48:31 -!- jrslepak [~jrslepak@ip-64-134-65-75.public.wayport.net] has quit [Quit: What happened to Systems A through E?] 01:48:50 youlysses-laptop [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 02:00:51 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 260 seconds] 02:06:23 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 02:06:24 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 02:12:46 b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has joined #scheme 02:12:59 -!- wbooze [~wbooze@xdsl-78-35-189-52.netcologne.de] has quit [Ping timeout: 246 seconds] 02:21:52 ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has joined #scheme 02:22:40 -!- masm [~masm@bl18-43-68.dsl.telepac.pt] has quit [Quit: Leaving.] 02:23:33 jrslepak [~jrslepak@c-71-233-149-127.hsd1.ma.comcast.net] has joined #scheme 02:23:53 -!- walter|r [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 02:33:48 -!- youlysses-laptop [~user@75-132-17-145.dhcp.stls.mo.charter.com] has quit [Quit: back to bed. o/] 02:34:12 walter|r [~walter@c-24-218-217-69.hsd1.ma.comcast.net] has joined #scheme 02:39:19 -!- youlysses is now known as youlysses-ao` 02:40:03 -!- youlysses-ao` is now known as youlysses-ao 02:53:02 -!- mmc [~michal@178-85-56-58.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 02:53:02 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 246 seconds] 03:30:24 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Quit: MichaelRaskin] 03:41:50 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 03:42:53 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 03:46:55 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 03:46:55 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 03:53:14 -!- MrFahrenheit [~RageOfTho@77.221.27.231] has quit [Ping timeout: 240 seconds] 04:11:07 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 04:11:36 amoe [~amoe@host-78-147-160-253.as13285.net] has joined #scheme 04:14:37 -!- amoe_ [~amoe@host-78-147-109-28.as13285.net] has quit [Ping timeout: 245 seconds] 04:15:49 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 248 seconds] 04:18:12 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 04:20:45 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 04:22:09 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 04:25:33 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 04:26:56 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 04:29:20 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 04:38:19 minsa [~minsa@c-24-130-180-195.hsd1.ca.comcast.net] has joined #scheme 04:42:35 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 04:43:26 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Client Quit] 04:50:24 bjz [~brendanza@101.162.214.115] has joined #scheme 04:50:46 githogori_ [~githogori@c-76-103-81-90.hsd1.ca.comcast.net] has joined #scheme 04:53:17 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 255 seconds] 05:06:47 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Read error: Operation timed out] 05:25:26 -!- tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has quit [Ping timeout: 268 seconds] 05:30:35 tali713 [~user@c-76-17-236-129.hsd1.mn.comcast.net] has joined #scheme 05:32:15 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 260 seconds] 05:41:49 -!- spiderweb [~user@unaffiliated/lcc] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 05:42:29 mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 05:42:43 superjudge [~mjl@37-46-176-69.customers.ownit.se] has joined #scheme 05:43:37 foof: did you see my proposed language for the definition of 'eqv?' for inexact real numbers? 05:44:47 http://lists.scheme-reports.org/pipermail/scheme-reports/2012-November/002757.html 05:44:48 http://tinyurl.com/a7tlpe3 05:45:32 I believe it solves both of the flaws of the R6RS definition. 05:46:29 -!- peterhil` [~peterhil@91-157-48-10.elisa-laajakaista.fi] has quit [Ping timeout: 246 seconds] 05:46:39 I would encourage anyone here on channel who cares about Scheme's handling of numerics to review that language and let me know if you see any problems. 05:54:41 What does EQV? return for two NaNs? 05:56:59 it is unspecified, which is what many people demand. 05:57:05 It seems you leave NaNs unspecified. 05:57:44 So the transitive closure is still unspecified. 05:57:46 I decided it was better not to fight that battle. I don't care much about the NaN handling, so whatever will cause the least resistance. 05:58:54 foof: no, because I use a different predicate to test (f x_1) and (f x_2).. I use the /substantially different/ for that, which is guaranteed to consider any two NaNs as _not_ substantiall different. 05:59:12 (that's my solution to the problem you found in R6RS) 05:59:29 and it also eliminates the circularity in the R6RS definition. 06:07:54 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 06:10:33 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 06:16:56 -!- phao [phao@177.199.126.38] has quit [Ping timeout: 246 seconds] 06:22:22 untrusted [~user@stgt-5f7180e0.pool.mediaWays.net] has joined #scheme 06:23:47 peterhil` [~peterhil@91-157-48-10.elisa-laajakaista.fi] has joined #scheme 06:28:29 -!- confab [~confab@086.112-30-64.ftth.swbr.surewest.net] has quit [Quit: Lost terminal] 06:31:14 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 06:36:10 answer_42 [~answer_42@gateway/tor-sasl/answer42/x-66983568] has joined #scheme 06:49:00 foof: sorry, what I should have said is: "yes, the transitive closure is still unspecified, but I no longer use the transitive closure to define eqv?" 06:51:11 instead I say: "Inexact real numbers x_1 and x_2 are /operationally equivalent/ if and only if for all procedures f that can be defined as a finite composition of the standard numerical operations specified in section 6.2.6, (f x_1) and (f x_2) are not /substantially different/." 06:51:47 and two inexact real numbers are 'eqv?' iff they are not both NaNs and the implementation can prove that they are /operationally equivalent/. 06:52:03 sorry, that last 'iff' should be 'if'. 06:53:08 (a mistake in my irc message but not in the post) 06:55:20 -!- phax [~phax@unaffiliated/phax] has quit [Quit: Leaving] 06:55:43 Where /substantially different/ is defined in terms of '=' on inexact reals (with the exception that no two NaNs are ever substantially different from each other), on inexact complex by dispatching on the real and imaginary parts, and using eqv? for everything else. 06:57:50 as I note in the post, there is considerable freedom in the definition of /substantially different/. It can be very coarse. As long as it's possible to construct a numeric procedure 'f' such that (f x_1) and (f x_2) are substantially different for any x_1 and x_2 that are distinguishable, that's enough to serve our purposes. 06:59:25 that is the key insight in this approach. the freedom in the definition of /substantially different/ allows us to use = instead of eqv?, and to consider no two NaNs as substantially different from each other. and this is what allows us to avoid the problems in the R6RS definition. 07:07:26 it might well be sufficient to define /substantially different/ as "one is negative infinity and the other is positive infinity" :) 07:07:55 (though that would assume that the implementation supports infinities) 07:08:11 or "one is a positive real number and the other is a negative real number". 07:08:34 I see no reason why these definitions would not be sufficient for purposes of this definition. 07:09:17 *why these definitions of /substantially different/ would not be sufficient for purposes of this definition of eqv? 07:10:01 -!- Enoria [~Enoria@jte.kidradd.org] has quit [Quit: Leaving] 07:11:04 -!- untrusted [~user@stgt-5f7180e0.pool.mediaWays.net] has quit [Remote host closed the connection] 07:13:49 -!- ijp [~user@host31-52-140-35.range31-52.btcentralplus.com] has quit [Read error: Connection reset by peer] 07:14:04 ijp [~user@host31-52-140-35.range31-52.btcentralplus.com] has joined #scheme 07:16:36 -!- superjudge [~mjl@37-46-176-69.customers.ownit.se] has quit [Ping timeout: 240 seconds] 07:25:06 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Remote host closed the connection] 07:25:41 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 268 seconds] 07:30:18 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 07:38:18 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 07:41:20 mmc [~michal@178-85-56-58.dynamic.upc.nl] has joined #scheme 07:42:36 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 240 seconds] 07:45:37 -!- mmc [~michal@178-85-56-58.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 07:47:54 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Quit: WeeChat 0.3.9] 07:50:47 niels1 [~niels@p4FD6D33F.dip.t-dialin.net] has joined #scheme 07:51:16 Sean-Der [~sean@NW1-DSL-74-215-64-154.fuse.net] has joined #scheme 07:51:28 I am new to scheme, but if lib-root is an atom(string) shouldn't (include (string-append lib-root "foo")) work? 07:51:45 (let lib-root "foo") 07:52:50 Sean-Der: Just curious, why would you want to do that? 07:54:10 In any case, `include' is likely a syntactical form; you'd have to do the string-concatenation in a macro before `include' sees it, I believe. 07:55:03 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 07:56:29 klutometis: I was going to define the root of my program, and then include the files I need. I am running awful (scheme HTTP server) so the files won't be in the working directory 07:56:39 string expected: (include lib-root "foo") 07:56:58 string expected: (include (string-append lib-root "foo")) 07:59:38 Also, am I not doing this 'the scheme way'? This is my first project and I am learning by writing 08:01:00 hkBst [~marijn@79.170.210.172] has joined #scheme 08:01:00 -!- hkBst [~marijn@79.170.210.172] has quit [Changing host] 08:01:00 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 08:01:06 ijp` [~user@host81-159-126-14.range81-159.btcentralplus.com] has joined #scheme 08:04:12 -!- ijp [~user@host31-52-140-35.range31-52.btcentralplus.com] has quit [Ping timeout: 276 seconds] 08:07:42 -!- Sean-Der [~sean@NW1-DSL-74-215-64-154.fuse.net] has left #scheme 08:12:05 MrFahrenheit [~RageOfTho@77.221.27.231] has joined #scheme 08:17:22 superjudge [~mjl@37-46-176-67.customers.ownit.se] has joined #scheme 08:19:16 Sean-Der, (load ) is a an optional procedure which can thus use strings constructed in any way 08:20:09 include is likely something special which only gets '(string-append lib-root "foo")' before it is evaluated 08:21:28 he has already left. 08:22:06 -!- superjudge [~mjl@37-46-176-67.customers.ownit.se] has quit [Ping timeout: 240 seconds] 08:23:38 ah, i seem to have /ignored those 08:24:08 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Quit: Leaving] 08:28:09 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 08:28:33 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 08:40:02 -!- astertronistic [~astertron@ip70-181-247-103.sd.sd.cox.net] has quit [Ping timeout: 245 seconds] 08:40:53 -!- leppie [~lolcow@105-236-244-248.access.mtnbusiness.co.za] has quit [Read error: Connection reset by peer] 08:41:31 leppie [~lolcow@105-236-244-248.access.mtnbusiness.co.za] has joined #scheme 08:41:43 aoh: I was about to mention `load', too; alas, it was too late. 08:44:02 *klutometis* wonders where in the aether Sean-Der betook himself; and whether his life-path will cross Scheme (or #scheme, for that matter), again. 08:44:20 God, the universe is full of mysteries. 08:45:37 There's got to be a race on some distant planet that has a corollary to #scheme, doesn't it; even if they're say, silicon-based life instead of carbon-based? 08:46:48 -!- minsa [~minsa@c-24-130-180-195.hsd1.ca.comcast.net] has quit [Quit: WeeChat 0.3.6] 08:50:40 superjudge [~mjl@37-46-176-67.customers.ownit.se] has joined #scheme 08:51:26 protist [~protist@125-237-130-19.jetstream.xtra.co.nz] has joined #scheme 08:53:49 Fuck it: to bed, or AI, or Monty Python; I need some diversion. 08:57:07 -!- superjudge [~mjl@37-46-176-67.customers.ownit.se] has quit [Ping timeout: 260 seconds] 09:01:57 -!- MrFahrenheit [~RageOfTho@77.221.27.231] has quit [Read error: Operation timed out] 09:03:19 -!- karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has quit [] 09:07:51 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 252 seconds] 09:29:57 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 248 seconds] 09:30:26 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 09:35:12 -!- githogori_ [~githogori@c-76-103-81-90.hsd1.ca.comcast.net] has quit [Ping timeout: 276 seconds] 09:39:05 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 09:44:33 mmc [~michal@sams-office-nat.tomtomgroup.com] has joined #scheme 09:46:13 -!- realitygrill [~realitygr@209-6-30-187.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com] has quit [Quit: Computer has gone to sleep] 09:46:34 -!- mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 09:49:07 -!- fantazo [~fantazo@91-119-203-9.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 09:57:50 -!- mario-goulart [~user@wkit.com.br] has quit [Remote host closed the connection] 09:58:20 mario-goulart [~user@wkit.com.br] has joined #scheme 10:04:42 -!- SeySayux [SeySayux@libsylph/developer/seysayux] has quit [Read error: Operation timed out] 10:04:48 SeySayux_ [SeySayux@libsylph/developer/seysayux] has joined #scheme 10:06:13 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 248 seconds] 10:07:30 -!- taylanub [tub@p4FD94C5D.dip.t-dialin.net] has quit [Disconnected by services] 10:07:47 taylanub [tub@p4FD93630.dip.t-dialin.net] has joined #scheme 10:23:14 masm [~masm@bl18-43-68.dsl.telepac.pt] has joined #scheme 10:41:05 -!- b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has quit [Remote host closed the connection] 10:48:43 superjudge [~mjl@37-46-176-67.customers.ownit.se] has joined #scheme 10:55:36 -!- ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 10:58:11 covi [~covi@wasp.dreamhost.com] has joined #scheme 10:58:45 http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html#node_toc_node_sec_13.2 why is the first list-product syntacally correct? The let looks incorrect to me 10:58:45 http://tinyurl.com/beky3za 11:05:06 anywho, this is the correct syntax: (let ) 11:06:55 -!- mmc [~michal@sams-office-nat.tomtomgroup.com] has quit [Quit: Leaving.] 11:07:24 mmc1 [~michal@sams-office-nat.tomtomgroup.com] has joined #scheme 11:09:04 oh i see, it's named let 11:10:46 mmc [~michal@sams-office-nat.tomtomgroup.com] has joined #scheme 11:14:13 -!- SeySayux_ is now known as SeySayux 11:30:18 add^_ [~add^_@m90-130-48-88.cust.tele2.se] has joined #scheme 11:57:10 http://losangeles.craigslist.org/lgb/sys/3400642997.html 11:59:39 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Quit: MichaelRaskin] 12:21:18 neworder [~chatzilla@175.156.174.83] has joined #scheme 12:23:05 -!- cdidd [~cdidd@95-26-126-163.broadband.corbina.ru] has quit [Remote host closed the connection] 12:23:19 gravicappa [~gravicapp@80.90.116.82] has joined #scheme 12:24:16 b4283 [~b4283@1-172-81-185.dynamic.hinet.net] has joined #scheme 12:25:58 Hi guys 12:26:36 I hope I can ask questions about "The Little Schemer" book here 12:44:30 realitygrill [~realitygr@209-6-30-187.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com] has joined #scheme 12:44:50 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 12:57:08 neworder: Yes, you can. 12:58:13 I am a complete beginner.. =) 12:58:21 So please excuse my ignorance 12:58:40 Is it true that this is an atom? atom 12:58:59 Below in the frame notes, it says L, S: (quote at om) or 'atom 12:59:12 L, S: (quote atom) or 'atom 12:59:21 what does that mean 12:59:33 What's the definition of atom? 13:00:12 A string of characters starting with a letter or digit? 13:00:13 That line'sa saying that (quote atom) is the same as 'atom 13:00:33 Doesn't the book give a definition of atom? at the start? 13:00:45 It's been a while since I read it... 13:01:06 Hmm, doesn't look like 13:01:36 I remember reading that they want us to come up with our own formal definitions 13:02:42 Well, try writing one then. :-) 13:03:00 In my opinion, a symbol should be an atom, don't you agree? 13:03:12 Do you know what QUOTE does? 13:06:09 I think the book even gives you a definition of atom? 13:06:18 t7 [~tommo@mailgate.ips-international.com] has joined #scheme 13:06:53 is there a repl in here? 13:07:21 rudybot: eval (* 42 42) 13:07:21 hkBst: your sandbox is ready 13:07:22 hkBst: ; Value: 1764 13:07:50 There's a link to the book here, but I'm not sure whether it's legal =( 13:07:51 how do i evaluate a quoted list, like i have '(+ 1 2 3) ? 13:07:51 http://www.google.com.sg/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&sqi=2&ved=0CC8QFjAD&url=http%3A%2F%2Fwww.newsmth.net%2Fbbsanc.php%3Fpath%3D%252Fgroups%252Fcomp.faq%252FFuncProgram%252FLisp%252Flessens%252FM.1290830022.Q0%26ap%3D417&ei=O_OgUNnBOpCurAeGvoGQBw&usg=AFQjCNFe5IkD3i1N3ocr2FpeB1loDXOD0g&cad=rja 13:07:58 http://tinyurl.com/byykbmb 13:08:25 Hi t7 =) 13:08:58 t7: the semantics of eval are a bit tricky and differ per implementation 13:09:12 oh its not a standard thing ? 13:09:43 t7: I don't think it is mandated by the standards, but is rather optional IIRC 13:09:59 t7: most implementations do provide means to do it though 13:10:20 t7: what are you trying to do? 13:10:40 im just messing about 13:10:57 rudybot: eval (eval '(+ 1 2 3)) 13:10:58 hkBst: ; Value: 6 13:11:04 t7: ^^^ racket 13:14:02 neworder: Page xii of that PDF shows the definition of atom? 13:15:00 rudybot: eval ((lambda (list-of-numbers) (apply + list-of-numbers)) '(1 2)) 13:15:00 ski: your sandbox is ready 13:15:00 ski: ; Value: 3 13:15:21 I'm new to scheme, so that defnition didn't really make sense to me, so I skipped it 13:15:23 haha 13:16:19 (lambda (x) ...) <-- a function of one argument called x. 13:17:19 pair? basically checks if something's been constructed with car/cdr and null? checks if it's the empty list. 13:19:54 Ah I see 13:20:08 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 13:20:45 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 13:22:03 Erm, `constructing with car/cdr' is a stupid thing to say. 13:22:07 I meant cons, of course. 13:22:38 That's why it's called cons. :-) 13:23:12 why do they call the function to get the first element of the list car 13:23:23 Is it an abbreviation for something? 13:23:40 `Contents of the Address Register', I think. But, basically, because it's short and easy to say. 13:23:54 ok 13:23:54 Plus it can be composed nicely, e.g. caadr 13:25:38 Which is (car (car (cdr ...))) 13:29:05 neworder, the names date far back in time: http://en.wikipedia.org/wiki/CAR_and_CDR 13:38:47 -!- t7 [~tommo@mailgate.ips-international.com] has quit [Ping timeout: 246 seconds] 13:48:16 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 13:55:28 -!- DT` [~ea@host168-87-dynamic.53-79-r.retail.telecomitalia.it] has quit [Ping timeout: 255 seconds] 13:56:08 -!- acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has quit [Ping timeout: 246 seconds] 13:56:34 -!- realitygrill [~realitygr@209-6-30-187.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com] has quit [Quit: Computer has gone to sleep] 13:59:58 niels1: ok thanks 14:02:08 DT` [~ea@host168-87-dynamic.53-79-r.retail.telecomitalia.it] has joined #scheme 14:04:28 -!- neworder [~chatzilla@175.156.174.83] has quit [Ping timeout: 255 seconds] 14:07:01 Gmind [~Deulamco@123.16.110.65] has joined #scheme 14:07:17 -!- mjonsson [~mjonsson@38.109.95.133] has quit [Ping timeout: 248 seconds] 14:09:35 neworder [~chatzilla@175.156.174.83] has joined #scheme 14:12:48 DrRacket asks me to choose a language 14:13:22 If I want to play with scheme, I have to choose the first option right? 14:13:47 Which is (Use the language declared in the source) 14:13:53 acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has joined #scheme 14:16:25 neworder: I guess with that option you'd have to declare a language in the source. :P 14:16:32 What are the other options ? 14:21:24 Got that 14:21:34 I used #lang scheme 14:21:52 I learned the car function 14:21:59 so I do I use it 14:22:07 car(a b c) gives me an error 14:22:50 so how do I use it* 14:23:19 Lol, sorry, I should be referring to the docs first 14:23:38 (car (cons 23 42)) 14:37:01 -!- huseby_ [~huseby@home.husebyhome.com] has quit [Quit: Leaving] 14:37:27 neworder: Are you already a programmer or is Scheme your first ? 14:38:29 Already a programmer, was just lazy just now 14:38:51 http://sprunge.us/hbJd I wrote this "rundown" of lisp, trying to be lisp-agnostic (i.e. it teaches the general concepts that would apply to any lisp) and very very brief. Maybe you'll like it. 14:39:02 thanks 14:40:02 -!- Gmind [~Deulamco@123.16.110.65] has quit [Ping timeout: 246 seconds] 14:40:43 Gmind [~Deulamco@123.16.110.65] has joined #scheme 14:41:34 tupi [~david@139.82.89.157] has joined #scheme 14:43:21 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 14:48:16 -!- samth_away is now known as samth 14:56:59 thoolihan [~Tim@50.43.162.199] has joined #scheme 15:05:53 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 15:06:28 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 15:08:16 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 15:09:05 -!- acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has quit [Ping timeout: 246 seconds] 15:09:45 -!- niels1 [~niels@p4FD6D33F.dip.t-dialin.net] has quit [Quit: WeeChat 0.3.8] 15:10:37 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 15:12:14 Gmind1 [~Deulamco@123.16.110.65] has joined #scheme 15:15:23 -!- Gmind [~Deulamco@123.16.110.65] has quit [Ping timeout: 246 seconds] 15:22:18 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 260 seconds] 15:25:34 acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has joined #scheme 15:25:39 I tried this, but it gives an error 15:25:41 (atom? 'turkey) 15:25:49 why 15:25:54 What's the error ? 15:28:07 atom?: undefined; cannot reference an identifier before its definition 15:29:02 Apparently no variable of the name `atom?' has been defined, i.e. you don't have that function. 15:29:09 (Functions reside in variables, in Scheme.) 15:29:27 neworder: a good substitute for (atom? x) is (not (pair? x)) 15:30:14 (define atom? (lambda (x) (and (not (pair? x)) (not (null? x))))) is what they give you in the book IIRC 15:30:51 ijp`` [~user@host86-182-152-27.range86-182.btcentralplus.com] has joined #scheme 15:31:10 (not (pair? x)) alone will miss the empty list 15:31:13 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 15:31:30 Hrm, the empty list is an atom though, isn't it ? :P 15:32:02 no, it is a list :) 15:32:08 (list? '()) -> #t 15:32:33 I guess this is one of the cases where the vagueness of the term "atom" bites. 15:32:51 -!- ijp` [~user@host81-159-126-14.range81-159.btcentralplus.com] has quit [Ping timeout: 260 seconds] 15:33:02 ijp``` [~user@host86-182-152-34.range86-182.btcentralplus.com] has joined #scheme 15:33:14 attila_lendvai [~attila_le@95.56.66.93] has joined #scheme 15:33:14 -!- attila_lendvai [~attila_le@95.56.66.93] has quit [Changing host] 15:33:14 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 15:33:33 taylanub: an atom is a thing that cannot be divided any further. so it is something that you cannot break down into several pieces with scheme procedures 15:33:57 But the empty list fits that definition. ;) 15:34:49 taylanub: but you can modify the empty list with set-car! and set-cdr! 15:35:05 Oh ? I'm pretty sure that's not standard. 15:35:11 -!- ijp`` [~user@host86-182-152-27.range86-182.btcentralplus.com] has quit [Ping timeout: 246 seconds] 15:35:20 taylanub: what makes you think so? 15:35:36 Doesn't make sense to me; the empty list isn't a pair. 15:35:58 guile errors out, saying it expected a pair. 15:36:17 taylanub: ah you are right 15:36:44 makes sense 15:36:53 I must have been dreaming 15:37:11 It's one of those nasty things when implementing lists via pairs. Caused me a lot of confusion, nowadays I have it mostly figured out. :P 15:38:04 -!- bjz [~brendanza@101.162.214.115] has quit [Quit: Leaving...] 15:38:08 -!- ijp``` is now known as ijp 15:38:27 wbooze [~wbooze@xdsl-78-35-129-191.netcologne.de] has joined #scheme 15:38:34 bjz [~brendanza@101.162.214.115] has joined #scheme 15:38:51 -!- bjz [~brendanza@101.162.214.115] has quit [Client Quit] 15:39:13 E.g. if you want to implement mutable sets via lists, supporting e.g. a set-add! procedure, you can't just use the empty list for the empty pair because then set-add! cannot be implemented. 15:39:37 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 15:39:49 -!- amoe [~amoe@host-78-147-160-253.as13285.net] has quit [Read error: Operation timed out] 15:40:20 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 15:40:44 *C-Keen* looks up the implementation of append 15:40:51 -!- huseby [~huseby@ip65-47-28-158.z28-47-65.customer.algx.net] has quit [Quit: Leaving] 15:40:57 taylanub: Empty pair? 15:41:03 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 15:42:23 You mean append! I presume. And indeed, I don't know what it does .. I guess it will either error out or the implementation doesn't guarantee mutation of its argument. SRFI-1 functions take the latter approach. (So the ! versions are just for potential speed boosts, and should still be used like (set! foo (lset-join! foo bar)).) 15:42:30 huseby [~huseby@ip65-47-28-158.z28-47-65.customer.algx.net] has joined #scheme 15:42:40 Euthy: Err, empty set. 15:42:56 amoe [~amoe@host-89-243-14-73.as13285.net] has joined #scheme 15:44:03 -!- superjudge [~mjl@37-46-176-67.customers.ownit.se] has quit [Ping timeout: 265 seconds] 15:44:17 Is there any particular reason () is not a pair? 15:44:28 Euthy: Histerical reisins. 15:44:54 Hysterical* :P 15:45:23 :) 15:46:14 I think using pairs as the basis of s-expressions is mainly a historical artifact, although it's also very easy to implement in e.g. C. 15:46:50 struct { Object *car; Object *cdr } Pair; 15:50:28 because a pair has two items 15:51:04 that's what the word 'pair' has means 15:51:34 -!- Gmind1 [~Deulamco@123.16.110.65] has quit [Ping timeout: 240 seconds] 15:51:47 Gmind [~Deulamco@123.16.110.65] has joined #scheme 15:52:26 I wonder what the implications of array-based sexps would be .. 15:52:47 apl 15:52:56 (well, not quite) 15:53:33 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 15:54:42 civodul [~user@193.50.110.189] has joined #scheme 15:57:27 -!- Gmind [~Deulamco@123.16.110.65] has quit [Quit: Leaving.] 15:59:01 -!- Natch [~Natch@c-eccde155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 15:59:27 neworder: BTW, for most purposes you want #lang racket and not #lang scheme. 16:00:19 I think ey wants to learn Scheme, so .. 16:01:15 I should implement a super-minimal lisp that just uses union { double number; char *string; char *symbol; struct pair pair; } object; :P 16:01:56 Whether you use '#lang scheme' is no really relevant to whether you want to use "Scheme" or not. It's just a deprecated setting that DrRacket supports that just happens to be named "scheme" 16:01:57 taylanub: where does the empty list fall? 16:02:09 ijp: Dang! 16:02:09 it is neither a number, a string, a symbol, nor a pair 16:02:29 asumu: Ah OK, didn't know. 16:02:49 (Perhaps it has #lang r5rs or so ?) 16:02:58 neworder: and JFYI the Guide talks about basic things like what language to set http://docs.racket-lang.org/guide/intro.html 16:03:02 #lang r5rs is for when you don't want to get anything done 16:03:08 LOL 16:04:27 ijp: Hey, I could still use nil. 16:04:55 you could but don't 16:04:59 Reminds me of how uncomfortable I am with the idea of using symbols for t and nil. 16:08:14 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 246 seconds] 16:10:30 attila_lendvai [~attila_le@95.56.66.93] has joined #scheme 16:10:30 -!- attila_lendvai [~attila_le@95.56.66.93] has quit [Changing host] 16:10:30 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 16:11:23 Natch [~Natch@c-eccde155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #scheme 16:11:30 wingo [~wingo@3-254.197-178.cust.bluewin.ch] has joined #scheme 16:11:48 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Client Quit] 16:12:12 attila_lendvai [~attila_le@95.56.66.93] has joined #scheme 16:12:12 -!- attila_lendvai [~attila_le@95.56.66.93] has quit [Changing host] 16:12:12 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 16:13:04 -!- thoolihan [~Tim@50.43.162.199] has quit [Quit: Leaving] 16:15:36 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 16:18:26 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 16:25:41 asumu: ok thanks 16:25:56 I was reading this The Little Schemer 16:26:47 It says that (atom? Harry) returns true 16:26:59 Shouldn't it work in DrRacket? 16:27:01 Why not 16:28:03 Depends on what the variable Harry holds, you know. 16:28:09 Or did you mean (atom? 'Harry) ? 16:29:06 Yup, that's what I meant 16:29:18 the other reason is that atom? is not a scheme procedure, though the definition however, is given in the introduction to the little schemer 16:29:21 Shouldn't it work? :) 16:29:24 atom? is not a standard Scheme function. 16:29:33 Ohhh 16:29:38 Alright 16:30:22 IIRC it goes (define (atom? foo) (not (or (null? foo) (pair? foo)))) 16:31:15 which is pretty incomplete, but sufficient for the little schemer's purposes 16:35:57 -!- protist [~protist@125-237-130-19.jetstream.xtra.co.nz] has quit [Quit: leaving] 16:41:29 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 16:46:22 impaktor [~user@b2.thep.lu.se] has joined #scheme 16:50:16 -!- wingo [~wingo@3-254.197-178.cust.bluewin.ch] has quit [Ping timeout: 265 seconds] 16:51:21 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 16:53:18 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 276 seconds] 16:53:41 -!- hypnocat [~hypnocat@unaffiliated/hypnocat] has left #scheme 17:00:42 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:04:11 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 17:04:30 -!- b4283 [~b4283@1-172-81-185.dynamic.hinet.net] has quit [Remote host closed the connection] 17:05:29 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 246 seconds] 17:05:40 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:07:25 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Max SendQ exceeded] 17:08:35 -!- civodul [~user@193.50.110.189] has quit [Remote host closed the connection] 17:09:59 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:13:01 -!- fds [~fds@tickle.compsoc.man.ac.uk] has quit [Remote host closed the connection] 17:15:10 Gmind [~Deulamco@123.16.110.65] has joined #scheme 17:15:26 is there a Lisp with postfix order ? 17:15:32 I can't remember its name 17:17:15 githogori_ [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:22:33 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 17:22:59 Hmmm? 17:23:50 -!- mmc [~michal@sams-office-nat.tomtomgroup.com] has quit [Ping timeout: 246 seconds] 17:26:06 cdidd [~cdidd@37-144-103-248.broadband.corbina.ru] has joined #scheme 17:30:30 dtm` [~dtm@adsl-69-110-9-153.dsl.pltn13.pacbell.net] has joined #scheme 17:35:30 Nisstyre-laptop [~yours@oftn/member/Nisstyre] has joined #scheme 17:38:03 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 17:41:11 gffa [~unknown@unaffiliated/gffa] has joined #scheme 17:44:14 -!- githogori_ [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Read error: Connection reset by peer] 17:44:16 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Read error: Connection reset by peer] 17:44:39 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 17:44:50 hypnocat [~hypnocat@unaffiliated/hypnocat] has joined #scheme 17:45:20 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 17:45:36 -!- gravicappa [~gravicapp@80.90.116.82] has quit [Remote host closed the connection] 17:52:44 fantazo [~fantazo@91-119-203-9.dynamic.xdsl-line.inode.at] has joined #scheme 17:52:58 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 17:58:22 attila_lendvai [~attila_le@95.56.66.93] has joined #scheme 17:58:22 -!- attila_lendvai [~attila_le@95.56.66.93] has quit [Changing host] 17:58:22 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 18:04:14 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Ping timeout: 240 seconds] 18:07:43 mucker [~mucker@183.83.240.198] has joined #scheme 18:11:31 Gmind: Forth ? 18:11:36 youlysses [~user@75-132-17-145.dhcp.stls.mo.charter.com] has joined #scheme 18:11:57 -!- neworder [~chatzilla@175.156.174.83] has left #scheme 18:17:39 taylanub, I know you would say that, but I heard there's a Lisp with postfix notation 18:17:48 just forgot its name :( 18:17:58 Hehe, OK. 18:18:18 by the way, I'm in trouble of implementing Recursion in my Lisp 18:20:24 I have defined : define, cons, let, if , operators, boolean, quote, unquote, eval .. but still stuck at making a recursive function. I heard about Y-combination, but can I just make recursive function from those primitive forms ? 18:20:28 eheh 18:21:06 recursive is anything which calls itself in it's body.... 18:21:08 phao [phao@177.27.22.165] has joined #scheme 18:21:11 Gmind: I don't see lambda in your list .. :P 18:21:20 tail-recursive is when the self-call is the last call in it's body 18:21:22 ah yeah, count lambda in 18:21:37 OK then, why does (define foo (lambda () (foo))) not work ? 18:22:03 -!- dsp_ [dsp@antenora.aculei.net] has quit [Remote host closed the connection] 18:22:08 it can't call "foo" from environment, 'cause it's not defined 18:22:36 neither primitive . Just in my current implementation :| .. 18:22:51 Well it doesn't call foo. 18:22:58 you call from inner to outer, lamdba has it's own env..... 18:23:02 (lambda () (foo)) doesn't call foo. 18:23:22 it output foo ? 18:23:30 it can't 18:23:46 The form (lambda () (foo)) gives you a function, that when called, would call foo. 18:24:08 'cause my eval will tell foo is a symbol , and if it's not number, string or bool then it must have a definition. 18:24:14 So (define foo (lambda () (foo))) doesn't call foo, it just defines the variable foo, holding a function which when called would call foo. 18:24:31 it just holding ? 18:25:01 ah yep, until (foo ) 18:25:10 (define foo (lambda blah...) (foo)) ? 18:25:36 so what should happen when I call foo function ? 18:25:49 Gmind: It would call foo. 18:25:56 Aaaaaand, recursion! 18:26:06 you won't notice anything..... 18:26:31 since it's calling and calling and calling and nobody's gonna anser the phone! 18:26:35 notdan [~h@unaffiliated/notdan] has joined #scheme 18:26:36 lol 18:26:42 I tried to allow it to call itself. but it seem to not bring along the result in a right way.. 18:26:43 rudybot: eval (let () (define foo (lambda () (foo))) (foo)) 18:26:54 ski: error: with-limit: out of time 18:27:29 hey sound like my current recursive func 18:27:38 rudybot: eval (let foo () (foo)) ; doing nothing, more concisely 18:27:43 spiderweb [~user@unaffiliated/lcc] has joined #scheme 18:27:48 ski: error: with-limit: out of time 18:27:56 -!- tupi [~david@139.82.89.157] has quit [Remote host closed the connection] 18:28:39 that local thing is weird.... 18:29:03 my current eval mechanism is I get a function parameters & its arguments, then zip it to a the lambda environment. Then when it eval the lambda, it just has the defined things from that local env. 18:30:26 somehow I found : (define (fac n) (if (= n 0) 1 (* n (fac (- n 1))))) with (fac 3) , will just stop at n = 2 then it stop substract n. 18:30:36 and it keep looping 18:30:48 the environment for `(lambda () (foo))' should include `foo' 18:30:50 rudybot: (define (fac n) (if (= n 0) 1 (* n (fac (- n 1))))) 18:30:51 Gmind: your sandbox is ready 18:30:51 Gmind: Done. 18:30:55 Nisstyre-laptop [~yours@oftn/member/Nisstyre] has joined #scheme 18:30:59 rudybot: (fac 3) 18:31:00 Gmind: ; Value: 6 18:32:18 ski, I have already add the global env with lambda local , but where the result of each call go ? 18:33:00 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Remote host closed the connection] 18:33:19 when processing `(define foo (lambda () (foo)))' you (a) create an entry in the environment for `foo' (but doesn't initialize it yet); then (b) evaluate `(lambda () (foo))' in this environment (which will not look up the value of `foo'), e.g. yielding a closure, then (c) initialize the `foo' entry in the environment to this closure value 18:33:28 where does those recursive function store or accumulate its result after each loop ? 18:33:47 in the function's stack.... 18:34:01 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 18:34:32 ski , are you on window or linux ? 18:34:39 the stack will hold pointers to next jump address etc.... 18:35:15 so recursion will eventually grow the stack when it goes on and on....unless you had made it tail-recursive or iterative 18:35:19 wbooze, agree, but it happen underneath my code, not actually visible on my code. 18:35:24 *ski* stares at an XTerm window 18:35:35 yep, it's invisible 18:35:46 and I have not yet allow that effect to happen in my code. 18:35:59 there was a special lisp emulator, which showed you all registers stacks etc.... 18:36:05 dunno when or what it was 18:36:20 ( or you can say that my code isn't actually compiled ) 18:36:39 it just like a kind of variable replacement, I think. 18:37:49 rudybot: (define (fac n)(if (= n 0) 1 (* n (eval `(fac (- n 1)))))) 18:37:50 Gmind: Done. 18:37:58 rudybot: (fac 3) 18:37:59 Gmind: error: reference to an identifier before its definition: n in module: 'program 18:38:12 rudybot: (define (fac n)(if (= n 0) 1 (* n (eval `(fac ,(- n 1)))))) 18:38:13 Gmind: Done. 18:38:17 rudybot: (fac 3) 18:38:18 Gmind: ; Value: 6 18:38:36 I tried that to avoid direct evaluation in my Lisp implementation 18:38:54 so the "fac" will be covered by Quote block 18:39:56 but this isn't encouragable , is it ? 18:41:37 amgarchIn9 [~amgarchin@p4FD601B4.dip0.t-ipconnect.de] has joined #scheme 18:41:51 `eval' is not what you want 18:42:22 (you should not use `eval', unless you know why you should not use `eval') 18:42:34 yes. it just what I tried to use to accomplish the task :( .. otherwise, "fac" will be directly called 18:42:55 why ? 18:44:03 previously, I didn't allow lambda to call definition from global env 18:45:54 -!- mucker [~mucker@183.83.240.198] has quit [Ping timeout: 240 seconds] 18:46:14 evaluating a `(lambda (n) ..n..)' to a closure, you capture the environment at that point 18:46:19 ... how would you construct recusive function if initially you don't have any recursive primitive ? I really want to know how 18:46:46 in the case of `(define fac (lambda (n) ..n..))', that environment includes `fac' (and anything else defined after `fac') 18:47:09 :-/ oh.. let me see.. 18:47:44 I must have messed up my code 18:49:35 about define, yes, the env at that moment will have "fac" as the definition name, and its (lambda..) as its value 18:50:17 -!- fantazo [~fantazo@91-119-203-9.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 18:50:29 not a problem, just when I execute it ( fac 3 ) -> 3 will be binded with fac parameter. 18:50:55 yes (s/binded/bound/) 18:55:42 -!- phao [phao@177.27.22.165] has quit [Read error: Connection reset by peer] 18:58:26 when talking like this, I don't know why I'm stuck :( 18:59:17 phao [phao@177.160.115.26] has joined #scheme 19:01:38 MrFahrenheit [~RageOfTho@77.221.30.31] has joined #scheme 19:02:24 whitedawg [~suraj@122.179.47.217] has joined #scheme 19:02:35 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 19:03:47 ski do you think I should have "apply" primitive ? 19:04:03 yes (or something similar) 19:09:33 -!- dtm` [~dtm@adsl-69-110-9-153.dsl.pltn13.pacbell.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 19:15:01 tupi [~david@139.82.89.157] has joined #scheme 19:16:37 hiroaki [~hiroaki@p5B049575.dip.t-dialin.net] has joined #scheme 19:18:00 peterhil- [~user@gatekeeper.brainalliance.com] has joined #scheme 19:18:58 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Quit: Leaving] 19:30:46 -!- whitedawg [~suraj@122.179.47.217] has quit [Quit: Leaving.] 19:36:26 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 19:43:42 -!- Gmind [~Deulamco@123.16.110.65] has quit [Quit: Leaving.] 19:45:32 Nisstyre [~yours@oftn/member/Nisstyre] has joined #scheme 19:49:27 -!- peterhil- [~user@gatekeeper.brainalliance.com] has quit [Ping timeout: 276 seconds] 19:50:21 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 256 seconds] 20:03:55 -!- amgarchIn9 [~amgarchin@p4FD601B4.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 20:05:11 -!- spiderweb [~user@unaffiliated/lcc] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20:05:45 amgarchIn9 [~amgarchin@p4FD601B4.dip0.t-ipconnect.de] has joined #scheme 20:10:54 spiderweb [~user@unaffiliated/lcc] has joined #scheme 20:16:55 -!- answer_42 [~answer_42@gateway/tor-sasl/answer42/x-66983568] has quit [Quit: WeeChat 0.3.9] 20:16:59 Blkt [~user@62.10.10.99] has joined #scheme 20:18:06 -!- acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has quit [Ping timeout: 264 seconds] 20:18:20 good evening everyone 20:19:22 mmc [~michal@178.85.56.58] has joined #scheme 20:20:17 g'evening 20:21:20 langmartin [~user@68.169.175.226] has joined #scheme 20:29:45 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 20:32:26 -!- hiroaki [~hiroaki@p5B049575.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 20:33:58 acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has joined #scheme 20:43:33 Has anyone in here tried or used CLFSWM? 20:44:03 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 20:48:35 rudybot: pray tell, what is CLFSWM ? 20:48:35 ski: hmm--which is the better/saner common lisp window manager, StumpWM or CLFSWM? or neither? 20:48:36 -!- ijp [~user@host86-182-152-34.range86-182.btcentralplus.com] has quit [Ping timeout: 240 seconds] 20:48:50 hiroaki [~hiroaki@77-20-78-82-dynip.superkabel.de] has joined #scheme 20:49:17 rudybot: why, thank you ! 20:49:31 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #scheme 20:49:31 20:49:31 -!- names: ccl-logbot hiroaki acarrico langmartin mmc Blkt spiderweb amgarchIn9 Nisstyre tupi jonrafkind MrFahrenheit phao notdan youlysses attila_lendvai hypnocat gffa cdidd kk` impaktor Natch amoe huseby copumpkin wbooze DT` add^_ mmc1 covi masm taylanub SeySayux mario-goulart leppie pchrist peterhil` tali713 adiii walter|r jrslepak nowhere_man ffs Quadrescence pothos amgarching araujo snorble_ cmatei joast shardz pavelpenev kanru ghast ivan\ hive-mind huangjs 20:49:31 -!- names: jaimef zbigniew noam blubberdiblub hiyosi copec BossKonaSegwaY1 ozzloy walter wuehli SHODAN asumu Euthy surrounder em foof jaaso_ psykotron youlysses-ao cibs mr_vile masak acieroid antoszka arbscht Khisanth DerGuteMoritz eli Zuchto tizoc Nshag offby1 snarkyboojum pjb-v sethalves ecraven ohama teiresias duncanm clog pyro- Razz_ sajith klutometis `micro bambams levi` FireFly gf3 aoh metasyntax eMBee saccadewrk ineiros tessier rudybot evhan m4burns C-Keen 20:49:31 -!- names: twem2 felipe shachaf drdo pyro-_ samth rotty gabot antono weinholt Viaken roderic fizzie tonyg Saeren jrslepak_neu yosafbridge muep rapacity certainty ft LeoNerd ski elliottcable dan64 ray nightfly_ fgudin YokYok brendyn turbofail z0d djanatyn gnomon stamourv Obfuscate cataska dostoyevsky SeanTAllen danking cky finnrobi 20:50:03 -!- mmc [~michal@178.85.56.58] has quit [Read error: Connection reset by peer] 20:52:36 mmc [~michal@178.85.56.58] has joined #scheme 20:58:34 -!- notdan [~h@unaffiliated/notdan] has quit [Remote host closed the connection] 20:59:37 civodul [~user@reverse-83.fdn.fr] has joined #scheme 21:01:18 nowhereman [~pierre@92.141.202.40] has joined #scheme 21:01:23 -!- nowhere_man [~pierre@AStrasbourg-551-1-149-78.w90-48.abo.wanadoo.fr] has quit [Read error: Operation timed out] 21:04:21 -!- mmc [~michal@178.85.56.58] has quit [Quit: Leaving.] 21:04:53 mmc [~michal@178.85.56.58] has joined #scheme 21:11:30 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 21:11:33 pnpuff [~aeiou@unaffiliated/pnpuff] has joined #scheme 21:21:58 ijp [~user@host86-182-157-166.range86-182.btcentralplus.com] has joined #scheme 21:27:38 -!- langmartin [~user@68.169.175.226] has quit [Ping timeout: 245 seconds] 21:29:51 -!- tupi [~david@139.82.89.157] has quit [Ping timeout: 260 seconds] 21:31:20 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 21:34:20 tupi [~david@139.82.89.157] has joined #scheme 21:35:27 -!- ijp [~user@host86-182-157-166.range86-182.btcentralplus.com] has quit [Ping timeout: 245 seconds] 21:38:59 "transient mode link"? 21:39:04 -!- pnpuff [~aeiou@unaffiliated/pnpuff] has quit [Quit: Bye.] 21:39:54 rudybot: "transient mode link"? 21:39:54 ski: isn't the usual solution for that to use an always-on client that forwards stuff to your transient clients? 21:40:17 (iow, what are you wondering ?) 21:40:35 -!- cmatei [~cmatei@95.76.22.68] has quit [Remote host closed the connection] 21:41:58 Well, rudybot's a bot, right? I don't understand the phrase "transient mode link" or why it's thanking you for it. 21:42:46 Maybe I'm just not Scheme-y enough yet. 21:45:07 Viaken: the "thank you" from rudybot was just random quote recall 21:45:15 Maybe I'm just not Scheme-y enough yet. 21:45:16 woop 21:46:12 What I meant to say was "ok". 21:47:22 where did you encounter the phrase "transient mode link" ? 21:47:59 .. oh 21:49:48 (sorry for the confusion. i had already forgotten what rudybot responded. i was assuming you read "transient mode link" is some kind of tutorial) 21:52:18 -!- acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has quit [Ping timeout: 264 seconds] 21:52:26 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 260 seconds] 21:52:41 -!- phao [phao@177.160.115.26] has quit [Quit: Not Here] 21:56:09 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 256 seconds] 21:57:29 -!- tupi [~david@139.82.89.157] has quit [Ping timeout: 255 seconds] 22:00:52 (No worries.0 22:00:56 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 22:01:02 ...I'm going to go back to my lurking now. 22:02:07 tupi [~david@139.82.89.157] has joined #scheme 22:05:44 ijp [~user@host81-159-30-33.range81-159.btcentralplus.com] has joined #scheme 22:08:24 acarrico [~acarrico@pppoe-68-142-51-49.gmavt.net] has joined #scheme 22:13:33 RageOfThou [~RageOfTho@77.221.30.31] has joined #scheme 22:18:00 -!- MrFahrenheit [~RageOfTho@77.221.30.31] has quit [Ping timeout: 268 seconds] 22:20:02 -!- psykotron [~user@2607:f298:2:120::69c:4502] has quit [Remote host closed the connection] 22:25:03 -!- tupi [~david@139.82.89.157] has quit [Ping timeout: 256 seconds] 22:31:30 tupi [~david@139.82.89.157] has joined #scheme 22:34:34 confab [~confab@086.112-30-64.ftth.swbr.surewest.net] has joined #scheme 22:38:53 -!- gffa [~unknown@unaffiliated/gffa] has quit [Quit: sleep] 22:41:26 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 268 seconds] 22:42:29 -!- RageOfThou [~RageOfTho@77.221.30.31] has quit [Read error: Operation timed out] 22:44:29 bipt [~bpt@71.70.253.241] has joined #scheme 22:45:31 -!- tupi [~david@139.82.89.157] has quit [Ping timeout: 252 seconds] 22:45:58 -!- pavelpenev [~quassel@85-130-11-8.2073813645.shumen.cablebg.net] has quit [Remote host closed the connection] 22:48:07 pavelpenev [~quassel@85-130-11-8.2073813645.shumen.cablebg.net] has joined #scheme 22:48:58 -!- pavelpenev [~quassel@85-130-11-8.2073813645.shumen.cablebg.net] has quit [Remote host closed the connection] 22:49:34 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 22:51:18 pavelpenev [~quassel@85-130-11-8.2073813645.shumen.cablebg.net] has joined #scheme 22:58:10 bjz [~brendanza@203-206-132-21.perm.iinet.net.au] has joined #scheme 23:02:49 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 23:04:34 madsy [~madsy@fu/coder/madsy] has joined #scheme 23:10:49 fantazo [~fantazo@91-119-203-9.dynamic.xdsl-line.inode.at] has joined #scheme 23:12:37 fds [~fds@tickle.compsoc.man.ac.uk] has joined #scheme 23:20:00 -!- ijp [~user@host81-159-30-33.range81-159.btcentralplus.com] has quit [*.net *.split] 23:20:00 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [*.net *.split] 23:20:00 -!- Quadrescence [~quad@unaffiliated/quadrescence] has quit [*.net *.split] 23:20:01 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [*.net *.split] 23:20:01 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [*.net *.split] 23:20:01 -!- teiresias [~teiresias@archlinux/trusteduser/teiresias] has quit [*.net *.split] 23:20:01 -!- ray [ray@xkcd-sucks.org] has quit [*.net *.split] 23:20:01 -!- Saeren [~saeren@mail.skepsi.net] has quit [*.net *.split] 23:21:15 Quadrescence [~quad@unaffiliated/quadrescence] has joined #scheme 23:29:18 ray [ray@xkcd-sucks.org] has joined #scheme 23:29:19 ijp [~user@host81-159-30-33.range81-159.btcentralplus.com] has joined #scheme 23:29:19 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 23:29:19 Euthy [~euthy@unaffiliated/euthydemus] has joined #scheme 23:29:19 antoszka [~antoszka@unaffiliated/antoszka] has joined #scheme 23:29:19 teiresias [~teiresias@archlinux/trusteduser/teiresias] has joined #scheme 23:29:19 Saeren [~saeren@mail.skepsi.net] has joined #scheme 23:29:23 -!- ijp [~user@host81-159-30-33.range81-159.btcentralplus.com] has quit [Quit: The garbage collector got me] 23:29:35 ijp [~user@host81-159-30-33.range81-159.btcentralplus.com] has joined #scheme 23:33:38 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 23:40:10 phax [~phax@unaffiliated/phax] has joined #scheme 23:41:19 mjonsson [~mjonsson@38.109.95.133] has joined #scheme 23:41:22 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 23:42:31 -!- civodul [~user@reverse-83.fdn.fr] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:50:58 -!- amgarchIn9 [~amgarchin@p4FD601B4.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 23:52:12 -!- add^_ [~add^_@m90-130-48-88.cust.tele2.se] has quit [Quit: add^_] 23:52:55 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds]