00:02:18 -!- unkown247 [~lover@94.99.120.36] has quit [] 00:03:00 -!- taylanub [tub@p4FD9355F.dip.t-dialin.net] has quit [Disconnected by services] 00:03:30 taylanub [tub@p4FD93538.dip.t-dialin.net] has joined #scheme 00:03:49 -!- saccadewrk [saccadewrk@nat/google/x-cdrnoyamhocsnijp] has quit [Read error: No route to host] 00:07:29 amgarchIn9 [~amgarchin@p4FD609B8.dip0.t-ipconnect.de] has joined #scheme 00:16:40 -!- pib2009 [pib2009@2600:3c00::f03c:91ff:fe70:bb80] has quit [Remote host closed the connection] 00:21:24 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 00:26:43 -!- dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has quit [Ping timeout: 246 seconds] 00:35:34 ehaliewicz [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 00:38:00 Kruppe [~user@CPE602ad0938e9a-CM602ad0938e97.cpe.net.cable.rogers.com] has joined #scheme 00:38:54 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 00:53:08 what if it was possible to upload knowledge directly to the brain 00:53:19 -!- amgarchIn9 [~amgarchin@p4FD609B8.dip0.t-ipconnect.de] has quit [Ping timeout: 264 seconds] 01:00:07 People would buy "knowledge packs", and sit around ingesting them through their "knowledge ports". 01:07:10 Regis_ [~Regis@189.34.44.144] has joined #scheme 01:09:21 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 01:10:05 -!- GOMADWarrior [~Regis@189.34.44.144] has quit [Ping timeout: 255 seconds] 01:11:30 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 01:14:35 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 258 seconds] 01:17:30 -!- agumonkey [~agu@8.158.70.86.rev.sfr.net] has quit [Ping timeout: 264 seconds] 01:20:35 dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has joined #scheme 01:22:19 -!- dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has quit [Remote host closed the connection] 01:23:03 BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 01:23:09 -!- BossKonaSegwaY1 [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Read error: Connection reset by peer] 01:26:02 dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has joined #scheme 01:34:54 -!- BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Ping timeout: 264 seconds] 01:35:30 BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 01:35:38 -!- Regis_ [~Regis@189.34.44.144] has quit [Read error: Connection timed out] 01:36:30 Regis_ [~Regis@189.34.44.144] has joined #scheme 01:40:26 BossKonaSegwaY1 [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 01:40:36 -!- BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Read error: Connection reset by peer] 02:00:26 -!- yacks [~py@180.151.36.168] has quit [Read error: Connection reset by peer] 02:02:49 yacks [~py@180.151.36.168] has joined #scheme 02:06:09 Regis__ [~Regis@189.34.44.144] has joined #scheme 02:09:34 -!- Regis_ [~Regis@189.34.44.144] has quit [Ping timeout: 245 seconds] 02:12:06 -!- trusktr [~trusktr@130.86.99.144] has quit [Ping timeout: 252 seconds] 02:12:55 -!- Regis__ [~Regis@189.34.44.144] has quit [Ping timeout: 256 seconds] 02:13:12 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 02:13:48 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 272 seconds] 02:21:03 Regis__ [~Regis@189.34.44.144] has joined #scheme 02:23:55 -!- b4283 [~b4283@198.211.107.209] has quit [Quit: ZNC - http://znc.sourceforge.net] 02:24:56 Regis_ [~Regis@189.34.44.144] has joined #scheme 02:28:04 GOMADWarrior [~Regis@189.34.44.144] has joined #scheme 02:28:22 -!- Regis__ [~Regis@189.34.44.144] has quit [Ping timeout: 272 seconds] 02:30:06 -!- Regis_ [~Regis@189.34.44.144] has quit [Ping timeout: 276 seconds] 02:37:57 b4283 [~b4283@198.211.107.209] has joined #scheme 02:39:45 -!- BossKonaSegwaY1 [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Quit: Leaving.] 02:40:22 BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 02:41:23 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 02:44:12 -!- Sambio is now known as sambio 02:46:32 microcode [~microcode@bas1-toronto04-1242324716.dsl.bell.ca] has joined #scheme 02:46:49 what is the best way to work with a ring buffer in schemeL 02:46:58 s/schemeL/scheme?/ 02:48:40 preferrably with the ability to treat it something like a list 02:56:34 preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 03:00:29 -!- dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has quit [Ping timeout: 252 seconds] 03:01:11 -!- GOMADWarrior [~Regis@189.34.44.144] has quit [Read error: Connection timed out] 03:01:41 amoe_ [~amoe@host-78-147-102-79.as13285.net] has joined #scheme 03:02:26 GOMADWarrior [~Regis@189.34.44.144] has joined #scheme 03:04:54 -!- amoe [~amoe@host-92-26-172-101.as13285.net] has quit [Ping timeout: 264 seconds] 03:08:27 -!- tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has quit [Ping timeout: 276 seconds] 03:10:41 -!- GOMADWarrior [~Regis@189.34.44.144] has quit [Read error: Connection reset by peer] 03:11:07 GOMADWarrior [~Regis@189.34.44.144] has joined #scheme 03:20:32 tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has joined #scheme 03:25:34 Tanami [~carnage@9ch.in] has joined #scheme 03:25:53 zacts [~blueberry@unaffiliated/zacts] has joined #scheme 03:26:53 adu_ [~ajr@pool-173-66-11-197.washdc.fios.verizon.net] has joined #scheme 03:31:54 dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has joined #scheme 03:36:06 -!- pierpa [~user@host28-20-dynamic.53-79-r.retail.telecomitalia.it] has quit [Ping timeout: 264 seconds] 03:37:17 -!- Fare [fare@nat/google/x-rjlbryrovwowvmbn] has quit [Quit: Leaving] 03:38:08 -!- rszeno [~rszeno@79.114.101.82] has quit [Quit: Leaving.] 03:43:33 -!- wbooze [~wbooze@xdsl-78-35-135-176.netcologne.de] has quit [Ping timeout: 248 seconds] 03:45:37 trusktr [~trusktr@c-71-193-54-200.hsd1.ca.comcast.net] has joined #scheme 03:49:18 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Read error: Connection reset by peer] 03:49:47 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 03:53:00 -!- amoe_ [~amoe@host-78-147-102-79.as13285.net] has quit [Read error: Connection reset by peer] 03:53:24 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Quit: MichaelRaskin] 03:55:29 -!- GOMADWarrior [~Regis@189.34.44.144] has quit [Ping timeout: 256 seconds] 03:55:53 -!- ehaliewicz [~user@50-0-51-11.dsl.static.sonic.net] has quit [Remote host closed the connection] 03:56:07 -!- adu_ is now known as adu 03:58:33 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Ping timeout: 240 seconds] 03:58:35 amoe [~amoe@host-78-147-96-202.as13285.net] has joined #scheme 04:04:16 -!- sambio [~sambio@unaffiliated/sambio] has quit [] 04:23:38 -!- joneshf-laptop [~joneshf@mail.concordusapps.com] has quit [Ping timeout: 272 seconds] 04:33:38 amoe_ [~amoe@host-92-26-165-85.as13285.net] has joined #scheme 04:36:11 -!- amoe [~amoe@host-78-147-96-202.as13285.net] has quit [Ping timeout: 252 seconds] 04:37:31 -!- dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has quit [Remote host closed the connection] 04:49:45 tacey [~tacey@220.231.27.150] has joined #scheme 04:57:50 -!- Triclops256 is now known as Triclops256|away 05:04:24 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 264 seconds] 05:09:04 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 05:17:30 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [Ping timeout: 264 seconds] 05:18:32 gravicappa [~gravicapp@ppp91-77-166-11.pppoe.mtu-net.ru] has joined #scheme 05:33:18 -!- adu [~ajr@pool-173-66-11-197.washdc.fios.verizon.net] has quit [Quit: adu] 05:36:16 Fare [fare@nat/google/x-iebjwewvhopbqgiq] has joined #scheme 05:36:49 tacey_ [~tacey@220.231.27.150] has joined #scheme 05:52:13 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 05:57:01 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 256 seconds] 06:00:14 snowylike [~sn@91-67-171-156-dynip.superkabel.de] has joined #scheme 06:06:49 -!- taylanub [tub@p4FD93538.dip.t-dialin.net] has quit [Disconnected by services] 06:07:14 taylanub [tub@p4FD93538.dip.t-dialin.net] has joined #scheme 06:38:19 wingo [~wingo@cha74-2-88-160-190-192.fbx.proxad.net] has joined #scheme 06:39:48 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 264 seconds] 06:42:36 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has quit [Remote host closed the connection] 06:43:05 -!- yacks [~py@180.151.36.168] has quit [Quit: Leaving] 06:46:06 rszeno [~rszeno@79.114.105.21] has joined #scheme 06:49:18 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Ping timeout: 264 seconds] 06:55:15 joneshf-laptop [~joneshf@086.112-30-64.ftth.swbr.surewest.net] has joined #scheme 07:02:53 ASau [~user@p5797F4B2.dip.t-dialin.net] has joined #scheme 07:22:07 -!- Fare [fare@nat/google/x-iebjwewvhopbqgiq] has quit [Ping timeout: 264 seconds] 07:32:30 amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 07:37:10 Fare [~fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has joined #scheme 07:47:24 -!- tacey [~tacey@220.231.27.150] has quit [Quit: Lost terminal] 07:47:54 -!- rszeno [~rszeno@79.114.105.21] has quit [Read error: Operation timed out] 07:49:25 rszeno [~rszeno@79.114.105.21] has joined #scheme 07:49:34 -!- eMBee [~eMBee@foresight/developer/pike/programmer] has quit [Ping timeout: 252 seconds] 07:53:04 eMBee [~eMBee@foresight/developer/pike/programmer] has joined #scheme 07:56:40 -!- trusktr [~trusktr@c-71-193-54-200.hsd1.ca.comcast.net] has quit [Ping timeout: 245 seconds] 07:58:58 -!- gravicappa [~gravicapp@ppp91-77-166-11.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 08:00:38 yacks [~py@180.151.36.168] has joined #scheme 08:02:02 -!- amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Read error: Operation timed out] 08:02:46 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 08:03:21 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 08:07:12 -!- adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has quit [Ping timeout: 272 seconds] 08:08:59 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 08:09:47 -!- Euthy [~euthy@unaffiliated/euthydemus] has quit [Ping timeout: 260 seconds] 08:13:29 Euthy [~euthy@unaffiliated/euthydemus] has joined #scheme 08:14:28 -!- bjz [~brendanza@125.253.99.68] has quit [Read error: Connection reset by peer] 08:14:35 bjz [~brendanza@125.253.99.68] has joined #scheme 08:16:40 amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 08:17:16 bjz_ [~brendanza@125.253.99.68] has joined #scheme 08:17:35 -!- amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Client Quit] 08:17:38 -!- bjz [~brendanza@125.253.99.68] has quit [Read error: Connection reset by peer] 08:17:45 amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 08:18:12 -!- ASau [~user@p5797F4B2.dip.t-dialin.net] has quit [Read error: Connection reset by peer] 08:18:37 ASau [~user@p5797F4B2.dip.t-dialin.net] has joined #scheme 08:19:12 -!- acieroid [~acieroid@wtf.awesom.eu] has quit [Read error: Connection reset by peer] 08:23:53 -!- zacts [~blueberry@unaffiliated/zacts] has quit [Ping timeout: 255 seconds] 08:25:21 zacts [~blueberry@97-123-204-53.albq.qwest.net] has joined #scheme 08:25:47 acieroid [~acieroid@wtf.awesom.eu] has joined #scheme 08:25:51 gravicappa [~gravicapp@ppp91-77-162-104.pppoe.mtu-net.ru] has joined #scheme 08:26:35 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 08:27:13 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 08:30:06 -!- amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Quit: Konversation terminated!] 08:30:13 amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 08:33:48 -!- Fare [~fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 272 seconds] 08:37:27 -!- zacts [~blueberry@97-123-204-53.albq.qwest.net] has quit [Read error: Operation timed out] 08:41:38 zacts [~blueberry@168-103-124-153.albq.qwest.net] has joined #scheme 08:46:28 youlysse` [~user@75-132-7-80.dhcp.stls.mo.charter.com] has joined #scheme 08:47:13 -!- waxysubs` [hope6@world.peace.net] has quit [Ping timeout: 240 seconds] 08:47:33 -!- youlysses [~user@75-132-7-80.dhcp.stls.mo.charter.com] has quit [Ping timeout: 240 seconds] 08:56:49 -!- amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Quit: Konversation terminated!] 08:56:59 amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 09:23:00 -!- SeySayux [SeySayux@libsylph/developer/seysayux] has quit [Ping timeout: 264 seconds] 09:25:04 SeySayux [SeySayux@libsylph/developer/seysayux] has joined #scheme 09:26:42 snearch [~snearch@brln-4dba4130.pool.mediaWays.net] has joined #scheme 09:33:24 -!- snearch [~snearch@brln-4dba4130.pool.mediaWays.net] has quit [Quit: Verlassend] 09:59:33 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 248 seconds] 10:00:16 the-sun [542859de@gateway/web/freenode/ip.84.40.89.222] has joined #scheme 10:02:19 -!- cdidd [~cdidd@95-25-98-38.broadband.corbina.ru] has quit [Remote host closed the connection] 10:04:09 ijp [~user@host81-155-24-234.range81-155.btcentralplus.com] has joined #scheme 10:04:14 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 10:06:56 -!- tacey_ [~tacey@220.231.27.150] has quit [Quit: ...] 10:10:08 -!- Kruppe [~user@CPE602ad0938e9a-CM602ad0938e97.cpe.net.cable.rogers.com] has quit [Remote host closed the connection] 10:12:12 -!- asumu [~at@2001:470:b:b7:1e6f:65ff:fe23:c3d4] has quit [Ping timeout: 264 seconds] 10:12:32 asumu [~at@2001:470:b:b7:1e6f:65ff:fe23:c3d4] has joined #scheme 10:21:55 -!- kvda [~kvda@unaffiliated/kvda] has quit [Quit: x___x] 10:27:10 -!- gravicappa [~gravicapp@ppp91-77-162-104.pppoe.mtu-net.ru] has quit [Ping timeout: 272 seconds] 10:36:51 MrFahrenheit [~RageOfTho@cable-77-221-21-70.dynamic.telemach.ba] has joined #scheme 10:39:03 -!- acedia [~rage@unaffiliated/ffs] has quit [Remote host closed the connection] 10:39:19 acedia [~rage@unaffiliated/ffs] has joined #scheme 10:39:35 pierpa [~user@host28-20-dynamic.53-79-r.retail.telecomitalia.it] has joined #scheme 10:48:03 gravicappa [~gravicapp@ppp91-77-162-104.pppoe.mtu-net.ru] has joined #scheme 11:00:24 -!- gnomon [~gnomon@CPE000e582ae076-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 245 seconds] 11:02:22 gnomon [~gnomon@CPE000e582ae076-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 11:18:30 ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has joined #scheme 11:19:12 -!- tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has quit [Ping timeout: 276 seconds] 11:38:55 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 11:42:55 -!- ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has quit [Quit: ccorn] 12:00:33 ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has joined #scheme 12:09:31 edw [~edw@207.239.61.34] has joined #scheme 12:12:35 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 12:15:07 -!- z0d [~z0d@unaffiliated/z0d] has quit [Ping timeout: 246 seconds] 12:15:16 z0d [~z0d@q.notresp.com] has joined #scheme 12:15:16 -!- z0d [~z0d@q.notresp.com] has quit [Changing host] 12:15:16 z0d [~z0d@unaffiliated/z0d] has joined #scheme 12:20:59 waxysubs` [hope1@world.peace.net] has joined #scheme 12:24:40 civodul [~user@reverse-83.fdn.fr] has joined #scheme 12:28:54 dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has joined #scheme 12:31:17 -!- youlysse` [~user@75-132-7-80.dhcp.stls.mo.charter.com] has quit [Remote host closed the connection] 12:39:45 *absolute silence since last night* 12:40:01 it's often like that 12:40:33 “What we cannot speak about we must pass over in silence.” 12:40:57 *ijp* rolls eyes 12:41:22 What is understood does not need to be discussed 12:41:30 -!- bjz_ [~brendanza@125.253.99.68] has quit [Ping timeout: 264 seconds] 12:41:52 rudybot: unsociable wretches, the lot of them 12:41:52 ijp: turned me a little bit unsociable, and I finally gave up all tobacco and alcohol intake 12:42:08 -!- the-sun [542859de@gateway/web/freenode/ip.84.40.89.222] has quit [Ping timeout: 245 seconds] 12:42:09 bjz [~brendanza@125.253.99.68] has joined #scheme 12:42:17 rudybot: I can't imagine how you took it in the first place, but good for you 12:42:18 ijp: It took some configuring, but towards the end autocompletion and stuff worked 12:53:28 -!- bjz [~brendanza@125.253.99.68] has quit [Ping timeout: 272 seconds] 12:53:48 -!- weie [~eie@softbank221078042071.bbtec.net] has left #scheme 13:03:01 botton [~willie@router.isis.poly.edu] has joined #scheme 13:03:01 -!- botton [~willie@router.isis.poly.edu] has left #scheme 13:06:16 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Ping timeout: 245 seconds] 13:09:24 hkBst [~marijn@79.170.210.172] has joined #scheme 13:09:25 -!- hkBst [~marijn@79.170.210.172] has quit [Changing host] 13:09:25 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 13:09:37 bjz [~brendanza@125.253.99.68] has joined #scheme 13:11:29 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Excess Flood] 13:12:13 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 13:18:54 Fare [~fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has joined #scheme 13:20:37 -!- z0d [~z0d@unaffiliated/z0d] has quit [Ping timeout: 264 seconds] 13:22:32 LeoNerd: but there's something I don't understand :( 13:24:00 z0d [~z0d@unaffiliated/z0d] has joined #scheme 13:24:15 ring buffers don't really seem to make much sense in scheme 13:24:24 Why not? 13:24:54 list-ref doesn't seem like a good/performant way to index positions relative to the pointer 13:25:18 I guess you could decons the last pair, and reconstruct with a new value 13:25:21 Indeed not. So don't use numeric indices -- use the pairs themselves and take the car. 13:25:55 If you need to wrap around, either remember the first pair in the list in some enclosing object, or use a circular list. 13:27:07 hmm 13:27:31 is there a way I could index into a raw bitfield? 13:27:36 that may be a better fit for this 13:29:09 I guess I can look that up 13:29:17 scheme is so difficult to web search 13:30:37 Index into a raw bitfield? 13:30:58 Can you step back a moment and explain what problem you're trying to solve of which ring buffers and raw bitfields are subproblems? 13:32:08 well 13:32:21 I'm trying to move items in a queue 13:32:41 where the reader will automatically give up for items that have been overwritten in a log structure 13:33:23 for the purpose of making sure items continue to flow 13:33:46 (retransmission is based on endpoints, so dropping items is not an issue) 13:35:03 the application is a messaging system for communication between several networked components, and the messaging system has some high-level routing tasks to perform(not unlike smtp-style email) 13:35:30 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 13:36:43 in this use case, it is better that messages never arrive, rather than waiting in the queue for the rest of the data(linearly increasing latency and the size of the queue) 13:36:50 microcode: a queue can be implemented using two lists. I didn't understand if you had additional requirements 13:37:49 one of the requirements is that the writer be able to overwrite stale elements 13:38:17 Is the size of the buffer fixed? 13:38:21 this is a fairly simple system in a language like C, you just manage the memory directly 13:38:25 the size of the buffer is fixed 13:38:33 In that case, why don't you use a vector? 13:38:34 then a circular list should work AFAICT 13:39:07 right, or a vector + index variable 13:39:43 mmkay 13:39:59 how would I go about implementing a circular list in say.... GNU Guile? 13:40:15 set-cdr! 13:40:24 circular-list, from SRFI-1 13:40:37 or using SRFI 1 something like (apply circular-list (iota 10)) 13:40:54 -!- xwl [~user@119.161.133.104] has quit [Remote host closed the connection] 13:41:16 mmkay 13:41:18 microcode: take care that some of the default library functions may not terminate on circular lists 13:41:44 yeah, I'm aware of that particular property 13:42:10 I should hope they don't terminate on such a structure 13:42:16 that would be a mighty-bad omen 13:42:41 wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has joined #scheme 13:42:52 that's a different sense of "terminate" :) 13:43:06 the vector based approach might be a bit simpler though 13:43:33 hmm 13:44:09 DerGuteMoritz: assuming that's fairly-well-studied, where might I find resources describing such an approach? 13:44:47 microcode: about the vector based approach? 13:44:55 No different from C, microcode. 13:45:24 nothing special reuqired, just have an index variable that you increase with set! and reset to 0 when you reach the last element 13:45:25 DerGuteMoritz: ja 13:45:37 Allocate a vector/array (make-vector in Scheme, malloc or calloc or your favourite allocator in C). Maintain an index modulo the length of the vector. Fetch items with vector-ref and store them with vector-set!. 13:45:39 then use vector-set! to write elements 13:45:44 ahh 13:45:46 and what Riastradh says 13:45:46 :-) 13:45:54 mmkay 13:46:05 ah yes, modulo is more elegant :-) 13:46:18 I wasn't aware whether or not I could allocate an array like that in scheme 13:46:36 one thing to do is to somehow clean up the index every once in a while 13:46:48 then again, maybe I don't need to, will it roll over automatically? 13:47:10 (and, assuming it's a multiple of the modulus of the buffer, will it roll gracefully?) 13:47:31 GOMADWarrior [~Regis@189.34.44.144] has joined #scheme 13:47:51 there are u8vectors on some Schemes :) 13:47:55 You need to compute the modulo yourself. 13:48:22 microcode: vectors are just like C arrays, no automagical rolling over or anything 13:48:22 I know, but the modulus is the length of the buffer 13:49:38 DerGuteMoritz: no, I meant the index rolling over to 1 after being incremented past (- (** 2 (sizeof i)) -) 13:50:01 wat 13:50:38 if you keep incrementing the index on a writer/reader 13:50:54 yes 13:50:59 and you're modulating it into the size of the buffer 13:51:04 yes 13:51:18 it'll eventually hit the limit of the index's type 13:51:20 then it will wrap around at the size of the buffer 13:51:32 no 13:52:06 -!- ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has quit [Quit: ccorn] 13:52:12 well, only if your buffer is larger than the size of your index type which I guess is not possible by definition or something :-) 13:52:12 If i is a valid index into v, then (modulo (+ i 1) (vector-length v)) is also a valid index into v. 13:52:19 the immediate index is (% counter buffersize) 13:52:40 AHH 13:52:40 I see 13:52:41 the function is called modulo 13:52:42 derp 13:53:15 I need to get out of the house and get into thinking mode 13:53:26 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 13:53:32 hammock time! 13:53:40 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 13:53:42 you meant setting i to the modulated value on each increment 13:53:50 yep 13:54:03 ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has joined #scheme 13:54:35 mmkay 13:54:38 this will all work out 13:54:48 just need to push some bytes real-hard 13:55:09 I'll go to the AGO 13:56:03 oh dear 13:56:27 I always read the ISO code for japanese(ja) as ja 13:57:10 in deutscher sprache 14:02:15 throstur [82d0f702@gateway/web/freenode/ip.130.208.247.2] has joined #scheme 14:02:47 (define (length2 lis) (cond ((null? lis) 0) (else (1 + (length2 (cdr lis)))))) 14:03:00 what's wrong with it? expected a function after parethesis? 14:03:07 hkBst_ [~marijn@gentoo/developer/hkbst] has joined #scheme 14:03:18 (len2 '(1, 2)) fails with that error 14:03:33 When you wrote (1 + ...), you asked Scheme to take the number 1 and apply it as if it were a procedure to the arguments + and (length2 (cdr lis)). 14:03:49 ah right... prefix notation 14:04:41 thanks, that was definitely what was wrong 14:05:01 -!- joneshf-laptop [~joneshf@086.112-30-64.ftth.swbr.surewest.net] has quit [Ping timeout: 246 seconds] 14:05:40 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Ping timeout: 272 seconds] 14:07:53 -!- Natch [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 240 seconds] 14:10:51 (define (mem elem lis) (cond ( (null? lis) false) (else (if (= (car lis) elem) (true) (else (mem (cdr lis))))))) 14:11:30 LAMMJohnson [~ja@user-5af4306f.broadband.tesco.net] has joined #scheme 14:13:56 throstur: (define (mem? elem lis) (cond ((null? lis) #f) (else (if (= (car lis) elem) #t (mem? elem (cdr lis)))) 14:13:57 -!- LAMMJohn1on [~ja@user-5af43360.broadband.tesco.net] has quit [Ping timeout: 248 seconds] 14:15:03 -!- throstur [82d0f702@gateway/web/freenode/ip.130.208.247.2] has quit [Ping timeout: 245 seconds] 14:16:47 throstur [82d0f702@gateway/web/freenode/ip.130.208.247.2] has joined #scheme 14:18:10 (define (mem elem lis) (cond ((null? lis) false) (else (if (= elem (car lis)) true (mem elem (cdr lis)))))) - I get (=: expects a number as 2nd argument, given (list 'unquote 2) when I enter (mem 2 '(1, 2)) 14:18:17 what am I doing wrong there? 14:18:48 In Scheme, the notation (1, 2) is equivalent to the notation (1 (unquote 2)). 14:19:02 Normally the space and the comma are written in the other order to make this clearer: (1 ,2) 14:19:24 oh of course, lists don't have commas in them in scheme 14:19:24 Unquote usually goes together with quasiquote: 14:19:36 rudybot: eval (let ((x 2)) `(1 ,x 3)) 14:19:36 Riastradh: your sandbox is ready 14:19:36 Riastradh: ; Value: '(1 2 3) 14:19:38 scheme is so cool, but it's a bit different from other functionals like SML :P 14:19:39 -!- dnolen [~user@cpe-72-225-195-95.nyc.res.rr.com] has quit [Read error: Connection reset by peer] 14:19:41 rudybot: eval (let ((x 2)) '(1 ,x 3)) 14:19:41 Riastradh: ; Value: '(1 ,x 3) 14:20:19 many thanks 14:20:25 Is unquote even required to make sense outside of quasiquote? 14:21:03 Yes. 14:21:07 LeoNerd: unquote is just data, to be acted upon by quasiquote or not 14:21:10 rudybot: eval (let ((unquote sqrt)) ,2) 14:21:10 Riastradh: ; Value: 1.4142135623730951 14:23:42 Hrmm... R5 isn't too clear on the matter 14:26:43 -!- throstur [82d0f702@gateway/web/freenode/ip.130.208.247.2] has quit [Ping timeout: 245 seconds] 14:29:22 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Remote host closed the connection] 14:29:36 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 14:30:50 "Withink literal expressions and representations of objects read by the read procedure, the forms ', `, ,, and ,@ denote two-element lists whose first elements are the symbols quote, quasiquote, unquote, and unquote-splicing, respectively." 14:30:59 perfectly clear 14:31:45 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 14:32:04 the equivalence is necessary so that a scheme can be represented by lists 14:32:22 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 14:37:59 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 14:38:35 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 14:43:02 -!- Fare [~fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 272 seconds] 14:43:34 -!- agumonkey [~agu@8.158.70.86.rev.sfr.net] has quit [Remote host closed the connection] 14:45:20 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 14:49:19 -!- samth_away is now known as samth 14:57:31 -!- edw [~edw@207.239.61.34] has quit [Ping timeout: 264 seconds] 14:59:12 anyhoozle 14:59:23 off Igo 15:00:31 edw [~edw@207.239.61.34] has joined #scheme 15:01:54 -!- zacts [~blueberry@168-103-124-153.albq.qwest.net] has quit [Ping timeout: 264 seconds] 15:02:03 -!- ccorn [~ccorn@D57D21E3.static.ziggozakelijk.nl] has quit [Quit: ccorn] 15:03:23 zacts [~blueberry@174-28-44-26.albq.qwest.net] has joined #scheme 15:03:45 ijp: ``a scheme''? 15:04:25 You know -- a conspiracy, like the one McCarthy represented by the list he waved around in his hand so enthusiastically. 15:05:08 Natch [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #scheme 15:05:22 adiii [~adityavit@c-76-117-52-187.hsd1.nj.comcast.net] has joined #scheme 15:06:15 for those of you who weren't able to figure out the missing word at home, the answer was "implementation" 15:06:38 I think you meant `program', not `implementation'. 15:07:12 bah, indeed 15:07:37 just goes to show, I should have read what I wrote, instead of inferring it from what someone else wrote 15:09:00 McCarthy waved lists around by hand? I'd always assumed he used a computer to process lists 15:09:04 *offby1* laughs hysterically 15:09:11 it's funny because they're both named McCarthy, you see 15:14:28 ijp` [~user@host81-155-24-234.range81-155.btcentralplus.com] has joined #scheme 15:15:33 -!- ijp [~user@host81-155-24-234.range81-155.btcentralplus.com] has quit [Disconnected by services] 15:15:39 -!- ijp` is now known as ijp 15:18:05 -!- hkBst_ [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 15:25:40 -!- wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has quit [Remote host closed the connection] 15:26:35 wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has joined #scheme 15:28:21 -!- wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has quit [Remote host closed the connection] 15:29:47 wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has joined #scheme 15:31:36 zvrba [96456@diamant.ifi.uio.no] has joined #scheme 15:38:33 -!- wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has quit [Remote host closed the connection] 15:40:27 Natch_l [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #scheme 15:41:30 Natch_y [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #scheme 15:43:20 -!- Natch [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 245 seconds] 15:45:14 -!- Natch_y is now known as Natch 15:45:31 -!- Natch_l [~Natch@c-fecee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 15:45:32 -!- Natch is now known as Natch_l 15:45:42 -!- amgarchIn9 [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Ping timeout: 276 seconds] 15:45:45 -!- Natch_l is now known as Natch 15:48:54 -!- joast [~rick@76.178.135.192] has quit [Quit: Leaving.] 15:53:31 joast [~rick@76.178.135.192] has joined #scheme 16:02:02 -!- Triclops256|away is now known as Triclops256 16:03:36 -!- Triclops256 is now known as Triclops256|away 16:04:14 -!- GOMADWarrior [~Regis@189.34.44.144] has quit [Ping timeout: 255 seconds] 16:07:46 wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has joined #scheme 16:10:00 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 16:10:36 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 16:15:26 jao [~jao@48.Red-88-17-131.dynamicIP.rima-tde.net] has joined #scheme 16:15:30 -!- jao [~jao@48.Red-88-17-131.dynamicIP.rima-tde.net] has quit [Changing host] 16:15:30 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 16:17:44 GOMADWarrior [~Regis@189.34.44.144] has joined #scheme 16:27:41 cdidd [~cdidd@89-178-222-27.broadband.corbina.ru] has joined #scheme 16:30:07 amgarchIn9 [~amgarchin@p4FD60969.dip0.t-ipconnect.de] has joined #scheme 16:30:57 -!- wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has quit [Remote host closed the connection] 16:31:50 wbooze [~wbooze@xdsl-78-35-160-98.netcologne.de] has joined #scheme 16:33:19 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 16:34:03 alexei [~amgarchin@p4FD60969.dip0.t-ipconnect.de] has joined #scheme 16:34:03 -!- amgarchIn9 [~amgarchin@p4FD60969.dip0.t-ipconnect.de] has quit [Client Quit] 16:38:24 zoey0 [~Zoey0@114.241.128.21] has joined #scheme 16:50:44 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Quit: ccorn] 16:58:15 -!- zoey0 [~Zoey0@114.241.128.21] has left #scheme 17:05:52 -!- yacks [~py@180.151.36.168] has quit [Ping timeout: 245 seconds] 17:15:53 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 240 seconds] 17:16:26 trusktr [~trusktr@c-71-193-54-200.hsd1.ca.comcast.net] has joined #scheme 17:22:45 `fogus [~fogus@freedom.d-a-s.com] has joined #scheme 17:24:45 Kruppe [~user@j2petkovich.uwaterloo.ca] has joined #scheme 17:25:30 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 17:33:41 -!- edw [~edw@207.239.61.34] has quit [Quit: Computer has gone to sleep.] 17:34:18 -!- trusktr [~trusktr@c-71-193-54-200.hsd1.ca.comcast.net] has quit [Ping timeout: 245 seconds] 17:34:53 LAMMJohn1on [~ja@user-5af437e5.broadband.tesco.net] has joined #scheme 17:37:23 -!- LAMMJohnson [~ja@user-5af4306f.broadband.tesco.net] has quit [Ping timeout: 255 seconds] 17:40:42 carleastlund [~cce@gotham.ccs.neu.edu] has joined #scheme 17:42:59 hiroakip [~hiroaki@p5B0496C0.dip.t-dialin.net] has joined #scheme 17:43:24 edw [~edw@207.239.61.34] has joined #scheme 17:44:14 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 17:46:31 bill_tvm [73f1ffd1@gateway/web/freenode/ip.115.241.255.209] has joined #scheme 17:49:12 Hi all, i am building mit-scheme portable c 9.1.1 on debian stable on an amd 64-bit box, and I get build errors. 17:56:13 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 17:57:56 pjb` [~t@AMontsouris-651-1-15-231.w90-46.abo.wanadoo.fr] has joined #scheme 18:01:32 -!- pjb [~user@AMontsouris-651-1-192-178.w82-123.abo.wanadoo.fr] has quit [Ping timeout: 260 seconds] 18:03:10 bill_tvm: what kind of build errors? out-of-scope errors? 18:03:21 errors in the build script? 18:04:51 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Quit: ccorn] 18:04:52 -!- pjb` is now known as pjb 18:13:02 -!- taylanub [tub@p4FD93538.dip.t-dialin.net] has quit [Remote host closed the connection] 18:18:10 bill_tvm, any particular reason you're using the C distribution and not the amd64 distribution? 18:19:08 Note that both are essentially binary distributions -- there is no advantage to the C distribution on amd64. Here `C' means `the Scheme compiler spat out C code, not amd64 machine code'. 18:25:09 Well I was using portable c on all our boxes since, that we have many boxes of many distros. 18:27:27 *since , we have many boxes having different distros. 18:28:56 *since we have many boxen running distributions which differ 18:29:12 Anyway, what exactly did you type to build it, and how exactly did it fail? 18:29:26 microcode, the error as I see it is this "*** No rule to make target `compiler-unx.c', needed by `compiler-init.c'. Stop." 18:30:14 (Both the C and amd64 distributions should work -- but you'd be happier with the amd64 one, which is faster and more stable. What non-x86 platforms do you have to support, by the way?) 18:30:36 bill_tvm: install the executable distribution on that particular type of box 18:30:50 I personally don't use MIT Scheme 18:32:06 bill_tvm, the error say the dependences are broken 18:32:46 bill_tvm, how far along in the build does it say that? 18:32:53 actually this debian box has 64 bit kernel with 32 bit userland, 18:32:55 why don't you use dpkg-buildpackage? 18:33:06 Also, did you do that from a clean extraction of mit-scheme-c-9.1.1.tar.gz? 18:33:08 I use Guile on all of my architectures, ARM, Power, MIPS, x86-64, Itanium... oh, and sparc64 18:33:13 (If you run `make clean' or anything, it won't work.) 18:33:55 Riastradh: what kind of broken piece of crap makefile is that ? :P 18:34:12 Riastradh, I did make clean once 18:34:44 bill_tvm: try, as he's instructed, to build without cleaning it 18:34:46 bill_tvm, OK, start over from a clean extraction of the tarball. 18:34:52 Riastradh, the build fails after 'run_cmd in compiler/: make compile-liarc-bundle' 18:35:17 Ok, Riastradh, I will try that 18:35:27 microcode, it's a very complicated one that runs in POSIX make. Someone needs to rewrite that crap, but nobody has had the time and interest yet. Are you volunteering? 18:35:51 ahh 18:35:52 hmm 18:36:05 as long as it's a makefile it should be... fairly simple 18:36:36 really we should've figured out the build problem in the language by now >.> 18:36:48 haha 18:36:49 Well, speaking as someone who was responsible for simplifying it several years ago one iteration before its current one, I can tell you that it's not fairly simple. 18:37:13 I'm sitting in an art gallery(AGO) and using their electrical outlets 18:37:19 security comes in but concludes that I work here 18:38:02 RIastradh: that's too bad, I imagine after all these years, MIT Scheme has turned into a monster which belongs in webkit 18:38:45 oh dear god 18:38:55 "Has a built in Emacs-like editor called Edwin" 18:39:11 There's a nontrivial amount of C, assembly, and Scheme. The portable C build first bootstraps a Scheme compiler from the C code using the system's C compiler, and then uses that to compile the Scheme code afresh, and then compiles that with the system C compiler. 18:39:12 read: "Has an operating system built in" 18:40:38 I am a newbie, but when i first downloaded the mit-scheme source, I got a shock to read, you already needs to have a working mit-scheme to build mit-scheme. 18:40:55 You need a working C compiler to build most C compilers. 18:41:01 mmhm 18:41:12 usually though you can do a cross-build 18:41:28 even if you're compiling from a different architecture 18:41:52 extra lucky if you're building on something with existing architecture support for your development platform 18:41:57 MIT Scheme does cross-builds from architecture to architecture using the C back end for the compiler. 18:43:02 (Would be nice if it didn't need that intermediate step, but there's nobody to do the work necessary to get rid of it.) 18:45:03 -!- bill_tvm [73f1ffd1@gateway/web/freenode/ip.115.241.255.209] has quit [Ping timeout: 245 seconds] 18:45:39 bill_tvm [73f1ffd1@gateway/web/freenode/ip.115.241.255.209] has joined #scheme 18:49:45 hmm 18:49:59 Riastradh: how much work do you reckon that would be to fix? 18:50:11 hmm 18:50:25 what am I talking about? I have my own implementation to worry about ;p 18:51:08 barryfm [~barryfm@fl-71-52-209-5.dhcp.embarqhsd.net] has joined #scheme 18:51:09 I could probably fix the make infrastructure for native builds in a week or two, at the expense of breaking cross-builds. Fixing the Scheme compiler's interface would probably take much longer. 18:53:50 NP-Completeass [~NP-Hardas@unaffiliated/np-hardass] has joined #scheme 18:54:21 hmm 18:57:06 -!- wingo [~wingo@cha74-2-88-160-190-192.fbx.proxad.net] has quit [Ping timeout: 245 seconds] 18:58:08 I'm new to scheme (and functional languages) and I'm trying to wrap my head on how to approach a problem. I have a list of functions, and an value. I wan't to end up with a list where each item is the result of applying oneof those functions on the value. I was thinking of recursing on the list, applying the function and cons-ing as I go. Is there a better way of doing this, and/or is there a builtin function that does this same th 18:58:25 NP-Completeass, you were truncated at `is there a builtin function that does this same th'. 18:58:36 same thing* 18:58:42 You want 'map' 18:59:01 Normally, map takes a single function and a list of values, applying the function to each value 18:59:17 (map (lambda (f) (f x)) (list sqrt atan list imag-part exp log)) 18:59:21 But in your case if you give the map a function whose value is a function, and applies -that- function to the given value you started with, you can use map over the list of functions 18:59:29 rudybot: (let ((x 1+2i)) (map (lambda (f) (f x)) (list sqrt atan list imag-part exp log))) 18:59:29 Riastradh: ; Value: '(1.272019649514069+0.7861513777574233i 1.3389725222944935+0.4023594781085251i (1+2i) 2 -1.1312043837568135+2.4717266720048188i 0.8047189562170503+1.1071487177940904i) 19:00:38 hmm, interesting 19:00:55 thanks Riastradh and LeoNerd 19:01:06 A key point of understanding functional programming, is that functions are just values. They can be passed around like any other value 19:06:28 okay so I am mapping a function which is an application of a function on my value, to the list functions... 19:07:19 Is that the correct way of looking at it? 19:07:19 peterhil [~peterhil@91-157-48-77.elisa-laajakaista.fi] has joined #scheme 19:07:49 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 252 seconds] 19:07:52 I guess so yes 19:08:25 hm, I learned a lot. Thanks again LeoNerd and Riastradh. 19:08:27 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 19:11:11 joneshf-laptop [~joneshf@mail.concordusapps.com] has joined #scheme 19:12:05 wingo [~wingo@cha74-2-88-160-190-192.fbx.proxad.net] has joined #scheme 19:12:22 -!- kryptiskt [~kryptiskt@213.101.209.229] has quit [Ping timeout: 256 seconds] 19:18:53 -!- NP-Completeass [~NP-Hardas@unaffiliated/np-hardass] has quit [Ping timeout: 245 seconds] 19:33:04 -!- permagreen [~donovan@204-195-27-175.wavecable.com] has quit [Read error: Operation timed out] 19:33:29 permagreen [~donovan@204-195-27-175.wavecable.com] has joined #scheme 19:39:44 NP-Completeass [~NP-Hardas@unaffiliated/np-hardass] has joined #scheme 19:42:32 -!- hiroakip [~hiroaki@p5B0496C0.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 19:42:41 Riastradh, microcode, Thank you, I have build the portable c distribution, after extracting from the downloaded tar anew 19:44:53 Looks like what happened is like this: I was doing a build, but I had to abort it in the middle as I had to power off the box, and move elsewhere for some time. Later when I came back, I did a clean and started a new build, from then onwards the build was failing. 19:51:54 taylanub [tub@p4FD93538.dip.t-dialin.net] has joined #scheme 19:53:11 youlysses [~user@75-132-7-80.dhcp.stls.mo.charter.com] has joined #scheme 19:57:20 -!- bill_tvm [73f1ffd1@gateway/web/freenode/ip.115.241.255.209] has quit [Quit: Page closed] 19:57:30 hiroakip [~hiroaki@77-20-72-92-dynip.superkabel.de] has joined #scheme 20:06:45 -!- rszeno [~rszeno@79.114.105.21] has quit [Quit: Leaving.] 20:07:00 -!- snowylike [~sn@91-67-171-156-dynip.superkabel.de] has quit [Quit: Nettalk6 - www.ntalk.de] 20:11:48 -!- `fogus is now known as fogus|away 20:18:45 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 20:35:02 I'm reading the original Scheme report out of interest, and can't understand the following (Scheme parts modernized): http://sprunge.us/GdcY 20:37:22 saccadewrk [saccadewrk@nat/google/x-jtkjxaskgklvdard] has joined #scheme 20:38:56 frankV [~frankV@c-68-84-20-78.hsd1.fl.comcast.net] has joined #scheme 20:39:05 -!- frankV [~frankV@c-68-84-20-78.hsd1.fl.comcast.net] has left #scheme 20:40:44 Nisstyre-laptop [~yours@oftn/member/Nisstyre] has joined #scheme 20:41:58 fmdfrankv [~frankV@c-68-84-20-78.hsd1.fl.comcast.net] has joined #scheme 20:44:35 hello everyone 20:51:36 taylanub: your modernisation broke the example :P (since p is no longer in scope) 20:53:52 have a quick question about a short program http://paste.lisp.org/display/136764 20:54:08 -!- pothos [~pothos@114-36-249-241.dynamic.hinet.net] has quit [Read error: Connection reset by peer] 20:54:35 values only output as #!unspecific 20:56:53 well, your cond only has one clause 20:57:15 ijp: Dangit .. make that a `letrec'. And assume (letrec (identifier x) body) to be equivalent to (letrec ((identifier x)) body). 20:57:20 so, in the case in which the c is not the eof-object, filestats terminates with an unspecified value 20:57:24 pothos [~pothos@1-164-211-51.dynamic.hinet.net] has joined #scheme 20:57:37 which your scheme has chosen to be a particular value called #!unspecfic 20:58:04 ah 20:58:18 proper indentation would alleviate this 20:58:18 I'm a newb can you tell? 20:58:39 emacs or drracket will do it right for you. Other editors may need some coaxing. 20:58:44 (Paredit in Emacs highly recommended.) 20:58:55 Does DrRacket have Paredit ? 20:59:17 there was something like that for it, but I am fuzzy on the details 20:59:35 taylanub: I assume it is the usual block vs. async problem 20:59:45 but without reading the implementation, that is a guess 21:01:43 the cond actually contains everything through the rest of the loop. 21:02:54 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 276 seconds] 21:02:58 -!- FireFly [~firefly@oftn/member/FireFly] has quit [Quit: WeeChat 0.3.9.2] 21:03:09 you probably want that case in an 'else' clause 21:03:51 so drop the cond all together and move that whole portion into an else? 21:04:02 or maybe drop the case alogether, and just replace it by 3 cond clauses 21:04:58 Hrm, pages ~38 have the definitions of the multiprocessing primitives. 21:05:10 for the record, you don't need the begin in the lambda either 21:05:28 I was wondering about that 21:05:33 or in the cond clauses 21:06:02 thanks for pointing that out 21:06:07 FireFly [~firefly@oftn/member/FireFly] has joined #scheme 21:07:18 ijp: What is the block vs. async problem ? 21:07:42 taylanub: blocking is considered slow, since you aren't letting anything else run 21:08:59 but the comment in the text makes me thing this isn't the case 21:09:09 fmdfrankv: so, have you got it working now? 21:09:27 no still trying 21:09:40 Well, if it really blocked it would loop infinitely, no ? It allows other evaluate!uninterruptibly bodies to run every time it re-enters p via the tail-call, because the beginning of p is not uninterruptible. 21:09:51 rudybot: eval (let ((c #f)) (cond ((eof-object? c) 'yahooie))) 21:09:52 ijp: your sandbox is ready 21:09:52 ijp: Done. 21:10:05 fmdfrankv: do you understand why that didn't return 'yahooie ? 21:10:21 I think so 21:10:40 yeah it makes sense 21:12:14 -!- wingo [~wingo@cha74-2-88-160-190-192.fbx.proxad.net] has quit [Ping timeout: 252 seconds] 21:12:32 removed the cond, moved that into a new (else (eof-object?) 21:14:02 but now it says ill-formed clause (loop c lines words )) 21:14:07 -!- barryfm [~barryfm@fl-71-52-209-5.dhcp.embarqhsd.net] has left #scheme 21:14:41 can you please paste what you did 21:14:47 doing it now 21:15:29 http://paste.lisp.org/display/136764#1 21:16:01 well, now your case has two 'else's 21:16:35 that's embarrassing 21:16:54 so, you'll need an 'if' 21:18:20 can I make a case for (eof-object) 21:19:26 never mind, that's another inf loop 21:19:33 well, if your scheme has an eof literal, maybe 21:20:00 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 245 seconds] 21:24:00 ijp: you were saying I could replace the case with all cond 21:24:31 sure, case is just syntactic sugar for cond+eqv/memv 21:25:02 how would you rewrite the cond's for '(#\newline)' 21:25:05 and etc. 21:25:12 so (cond ((eof-object c) ...) ((eqv? c #\newline) ...) ((memv c '(#\space #\newline)) ...) (else ...)) 21:25:32 er, '(#\space #\tab) 21:26:13 let me try that 21:28:50 is there a difference between eqv? and memv? 21:29:21 rudybot: doc eqv? 21:29:22 *offby1: your sandbox is ready 21:29:22 *offby1: http://docs.racket-lang.org/reference/booleans.html#(def._((quote._~23~25kernel)._eqv~3f)) 21:29:26 rudybot: doc memv? 21:29:31 *offby1: not found in any library's documentation: memv? 21:29:35 rudybot: doc memv 21:29:35 *offby1: your sandbox is ready 21:29:35 *offby1: http://docs.racket-lang.org/reference/pairs.html#(def._((lib._racket%2Fprivate%2Flist..rkt)._memv)) 21:30:07 fmdfrankv: memv is like eqv? but it lets you test if a value is eqv? to a value in a list 21:31:08 (or (eqv? c #\space) (eqv? c #\tab)) would be equivalent to (memv c '(#\space #\tab)) 21:31:52 thanks for the explanation 21:32:06 -!- Triclops256|away is now known as Triclops256 21:33:22 http://paste.lisp.org/display/136764#2 21:33:58 -!- Triclops256 is now known as Triclops256|away 21:33:59 missing a pair of parens 21:34:22 yeah got a syntactic keyword may not be... 21:34:50 is it the cond? 21:36:13 insert a ( before '(eof-object?', and ) after '() 21:36:25 also note the ?, which I forgot 21:37:13 did I forget a close-input? it's looping indef. 21:37:26 it loops indefinitely, because you are always looping on the same char 21:39:34 am I misusing read-char? 21:40:23 fmdfrankv: no, just underusing it 21:40:25 fmdfrankv: You have to pass the loop a new value; the initial expression just gives the initial value. 21:41:01 so after the cond, I need to change (loop (c... 21:41:11 (let loop ((var (calculate-initial-value))) (loop (calculate-next-value))) 21:42:36 jonrafkind [~jon@racket/jonrafkind] has joined #scheme 21:42:36 (Of course any (calculate-blah) could as well be a variable-reference instead of a function-call, like it is in your case, in which case you simply pass that variable's value to the next loop .. i.e. if you use the variable without changing it, you'll be passing the same value again and again.) 21:43:02 -!- carleastlund [~cce@gotham.ccs.neu.edu] has quit [Quit: carleastlund] 21:44:15 should have been this "(eqv? ...(loop (read-char srcf)" 21:45:10 it appears to be working now 21:48:04 anyway to avoid printing out that empty list at the bottom of the eof-object? 21:48:17 if I leave it out I get more unspecifics.. 21:49:26 That cond usage is totally wrong, in the last paste .. 21:49:45 Does your program not print out lots of weird stuff at the moment ? 21:50:04 No wait .. it doesn't. 21:50:15 But it also never displays the result, right ? 21:50:31 it does display the results but word count is off 21:50:54 Can you paste the current code ? 21:51:26 http://paste.lisp.org/display/136764#3 21:51:34 Oh you fixed the cond. 21:51:48 (Oh, I'm lagging 20 minutes behind. :P) 21:51:58 no prob :) 21:52:26 Where do you get #!unspecific ? 21:53:01 Ah, you print the return-value of the function. 21:53:09 if I remove the empty list after the displays in cond, it will print unspecific but I'd rather not have it print the empty () 21:53:25 Just don't print the return-value of the function. 21:54:10 (`display' I mean.) 21:54:30 I need to print out the gals for the three variables 21:54:32 -!- Triclops256|away is now known as Triclops256 21:54:41 You do that in the body of the function. 21:54:54 sorry then I don't know what you mean 21:55:28 (display (filestats ...)) 21:55:36 That will display the return-value of the function. 21:55:47 ah! lol 21:55:53 -!- gravicappa [~gravicapp@ppp91-77-162-104.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 21:57:22 the word count is terribly wrong still, I even tried to split it out to two more eqv? 21:57:32 -!- civodul [~user@reverse-83.fdn.fr] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:58:58 taylanub: it still prints out unspecific after removing the extra (display filestat... 21:59:39 disregard that though. I need to focus on getting my word count correct 21:59:43 -!- hiroakip [~hiroaki@77-20-72-92-dynip.superkabel.de] has quit [Ping timeout: 245 seconds] 22:00:07 Sure you removed all displays around filestat calls ? 22:00:30 yeah 22:00:56 Paste code .. Regarding word-count, the last word won't end in a space/tab, right ? 22:01:02 never mind I found that 22:01:20 right, I thought about that but it's off more severe than by one 22:01:48 A new line also ends the previous word, right ? But then there's cases where there's a newline after a space ... 22:01:55 And you could have many spaces/tabs between words. 22:02:14 the numbers are drastically lower 22:02:40 I have a small test case, it has 10 words and count is only 3 on that one 22:02:50 How many newlines ? 22:03:24 8, newlines are fine 22:03:48 Newlines are not fine, because you don't increment the word-count on newlines. 22:04:10 sorry, I mean that the newline counts are correct 22:04:16 Ah. :) 22:20:54 -!- NP-Completeass [~NP-Hardas@unaffiliated/np-hardass] has left #scheme 22:28:43 -!- Kruppe [~user@j2petkovich.uwaterloo.ca] has quit [Ping timeout: 264 seconds] 22:32:58 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 256 seconds] 22:35:02 -!- agumonkey [~agu@8.158.70.86.rev.sfr.net] has quit [Ping timeout: 245 seconds] 22:35:46 -!- robot-beethoven [~user@c-24-118-142-0.hsd1.mn.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:52:58 -!- Triclops256 is now known as Triclops256|away 22:57:22 -!- alexei [~amgarchin@p4FD60969.dip0.t-ipconnect.de] has quit [Quit: Konversation terminated!] 23:03:01 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 23:04:16 -!- samth is now known as samth_away 23:08:33 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 23:09:15 robot-beethoven [~user@c-24-118-142-0.hsd1.mn.comcast.net] has joined #scheme 23:10:18 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 276 seconds] 23:12:04 -!- robot-beethoven [~user@c-24-118-142-0.hsd1.mn.comcast.net] has quit [Remote host closed the connection] 23:12:16 robot-beethoven [~user@c-24-118-142-0.hsd1.mn.comcast.net] has joined #scheme 23:15:19 -!- robot-beethoven [~user@c-24-118-142-0.hsd1.mn.comcast.net] has quit [Client Quit] 23:29:35 -!- jonrafkind [~jon@racket/jonrafkind] has quit [Ping timeout: 245 seconds] 23:32:08 -!- edw [~edw@207.239.61.34] has quit [Quit: Computer has gone to sleep.] 23:35:33 -!- evhan [evhan@pdpc/supporter/active/evhan] has quit [Ping timeout: 240 seconds] 23:37:34 evhan [evhan@pdpc/supporter/active/evhan] has joined #scheme 23:41:03 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 23:45:13 -!- fmdfrankv [~frankV@c-68-84-20-78.hsd1.fl.comcast.net] has left #scheme 23:47:29 ASau` [~user@p5797F5CF.dip.t-dialin.net] has joined #scheme 23:50:50 -!- ASau [~user@p5797F4B2.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 23:52:53 kurk [~sambio@190.57.227.109] has joined #scheme 23:57:11 kvda [~kvda@unaffiliated/kvda] has joined #scheme 23:57:23 Regis__ [~Regis@189.34.44.144] has joined #scheme