00:01:11 -!- ckrailo [~ckrailo@208.86.167.249] has quit [Quit: Computer has gone to sleep.] 00:12:05 Nisstyre [~nisstyre@infocalypse-net.info] has joined #scheme 00:17:13 -!- pumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 00:18:40 -!- pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has quit [Read error: Operation timed out] 00:21:34 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 00:32:34 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 00:33:35 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 00:42:01 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 240 seconds] 00:43:02 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 00:43:02 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 00:43:02 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 00:44:17 ckrailo [~ckrailo@pool-173-57-102-171.dllstx.fios.verizon.net] has joined #scheme 00:49:13 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 00:54:05 choas [~lars@p5792CC77.dip.t-dialin.net] has joined #scheme 01:05:33 gremset [ubuntu@117.192.110.61] has joined #scheme 01:06:19 -!- gremset_ [ubuntu@117.192.96.182] has quit [Ping timeout: 246 seconds] 01:07:23 -!- realitygrill [~realitygr@76.226.219.151] has quit [Read error: Connection reset by peer] 01:07:25 realitygrill_ [~realitygr@76.226.219.151] has joined #scheme 01:09:14 Blkt`` [~Blkt@dynamic-adsl-94-34-39-183.clienti.tiscali.it] has joined #scheme 01:10:28 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit: Leaving] 01:12:33 -!- Blkt` [~Blkt@dynamic-adsl-94-34-31-211.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 01:12:33 zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has joined #scheme 01:19:26 ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has joined #scheme 01:31:46 gozoner_ [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 01:31:52 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Read error: Connection reset by peer] 01:38:40 martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 01:38:40 -!- zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 01:39:29 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit: Leaving] 01:40:14 ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has joined #scheme 01:43:53 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 01:45:04 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Quit: leaving] 01:45:52 -!- martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Ping timeout: 246 seconds] 01:48:39 xwl [~user@123.108.223.27] has joined #scheme 01:56:45 zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has joined #scheme 01:57:59 -!- xwl [~user@123.108.223.27] has quit [Ping timeout: 240 seconds] 01:57:59 -!- zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 02:09:49 -!- Blkt`` [~Blkt@dynamic-adsl-94-34-39-183.clienti.tiscali.it] has quit [Remote host closed the connection] 02:11:36 -!- masm [~masm@bl15-75-122.dsl.telepac.pt] has quit [Ping timeout: 258 seconds] 02:16:04 sstrickl [~sstrickl@c-71-192-163-167.hsd1.nh.comcast.net] has joined #scheme 02:16:10 zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has joined #scheme 02:20:56 soveran [~soveran@186.19.214.247] has joined #scheme 02:34:59 -!- elliottcable is now known as ec|detached 02:37:48 -!- leo2007 [~leo@2402:f000:5:2901:225:4bff:fea9:b9e4] has quit [Read error: Operation timed out] 02:44:46 gremset_ [ubuntu@117.192.102.11] has joined #scheme 02:44:46 -!- zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 02:45:22 -!- gremset [ubuntu@117.192.110.61] has quit [Ping timeout: 246 seconds] 02:47:56 -!- gozoner_ [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 02:56:51 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 02:56:55 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Heads or tails?] 02:56:56 -!- tauntaun [~Crumpet@ool-44c711b3.dyn.optonline.net] has quit [Quit: Ex-Chat] 02:58:42 leo2007 [~leo@123.114.54.94] has joined #scheme 02:59:23 -!- turbofail [~user@c-107-3-149-149.hsd1.ca.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 03:05:34 What's the string length procedure? 03:09:29 -!- JimmyRcom [~jimmy@adsl-75-53-45-212.dsl.rcsntx.sbcglobal.net] has quit [Ping timeout: 276 seconds] 03:16:05 -!- aidalgol [~user@114-134-7-23.rurallink.co.nz] has quit [Remote host closed the connection] 03:17:00 aidalgol [~user@114-134-7-23.rurallink.co.nz] has joined #scheme 03:17:20 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 03:18:32 aidalgol, string-length. 03:23:13 -!- mmc1 [~michal@82-148-210-75.fiber.unet.nl] has quit [Ping timeout: 240 seconds] 03:25:34 DT``: would you happen to be a chicken user? 03:27:38 what is the alternative to empty? in racket in chicken hmm 03:27:42 EM03_, I have it installed, but I don't use it much, just to test whether r5rs has the feature X. 03:27:47 oh, that's null?. 03:27:56 rudybot, (null? '()) 03:27:57 DT``: ; Value: #t 03:28:40 thanks DT`` 03:28:46 np. 03:28:48 is that bot a chicken bot? 03:28:53 Racket bot. 03:29:10 so whats the difference between empty and null? 03:29:37 empty? afaik is just an alias. 03:29:42 ah 03:30:50 one last stupid question and it seems some implementations do this differently, every define is global so the stack right? 03:31:03 which is why most people use let for local function bindings? 03:33:20 local functions, probably for loops or to remove duplicate code that depends on variables/parameters of the parent function. 03:38:14 -!- MrFahrenheit [~RageOfTho@users-146-61.vinet.ba] has quit [Ping timeout: 258 seconds] 03:39:08 http://wiki.call-cc.org/eggref/4/pandora does this look like something solid or something that does not use best practices ? 03:42:07 I'd say it's subjective. Some like prototype-based object systems (like me), some do not. 03:42:37 DT``: as you can imagine the syntax is confusing me but thats very natural 03:43:40 of course, but you'll get used to. 03:43:47 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 03:51:51 EM03_: Given a module system, definitions are always local to the module that defines them, which makes it easier to write code, since you don't need to write monolithic `letrec' expressions for your code. (Such expressions are often a clear sign of an implementation that doesn't have a module system, and was/is popular in r5rs implementations.) 03:52:24 eli: so whats your recommendations for that sort of thing? 03:52:47 EM03_: To use a module system, and then you don't care about "too many globals". 03:52:56 (Chicken should have one, IIUC.) 03:59:12 eli: it does 03:59:40 ThereYouGo. 04:00:29 -!- REPLeffect [~REPLeffec@69.54.115.254] has quit [Ping timeout: 252 seconds] 04:01:38 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 04:05:18 -!- aidalgol [~user@114-134-7-23.rurallink.co.nz] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 04:05:54 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 04:08:28 -!- ec|detached is now known as elliottcable 04:14:20 REPLeffect [~REPLeffec@69.54.115.254] has joined #scheme 04:19:13 -!- tupi [~david@189.60.161.65] has quit [Quit: Leaving] 04:43:45 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 260 seconds] 04:44:45 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 04:46:49 -!- leo2007 [~leo@123.114.54.94] has quit [Ping timeout: 246 seconds] 04:50:23 nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has joined #scheme 04:51:55 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 04:52:43 -!- elliottcable is now known as ec 04:56:39 rramsden [~rramsden@173.180.109.6] has joined #scheme 04:56:52 leo2007 [~leo@123.114.54.94] has joined #scheme 04:59:11 -!- ec is now known as elliottcable 04:59:29 -!- tippenein [~chatzilla@c-24-245-21-197.hsd1.mn.comcast.net] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 3.6.17/20110422045944]] 05:00:35 aidalgol [~user@114-134-7-23.rurallink.co.nz] has joined #scheme 05:00:42 gravicappa [~gravicapp@ppp91-77-178-92.pppoe.mtu-net.ru] has joined #scheme 05:02:01 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 05:03:45 tizoc: removing indentation isn't enough to sway me... compatibility with Riastradh's implementation might be 05:04:02 rotty_: thanks, I'll apply the fmt patch when I get back to Tokyo 05:05:29 rotty_: if it's not too bad I may take a patch - let me think and maybe drop you a hint how to best do it 05:05:43 -!- choas [~lars@p5792CC77.dip.t-dialin.net] has quit [Quit: leaving] 05:06:17 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 276 seconds] 05:12:29 -!- gravicappa [~gravicapp@ppp91-77-178-92.pppoe.mtu-net.ru] has quit [Ping timeout: 260 seconds] 05:21:57 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit: Leaving] 05:28:33 djcb [~user@a88-112-253-18.elisa-laajakaista.fi] has joined #scheme 05:44:49 gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has joined #scheme 05:49:12 HG` [~HG@p579F7209.dip.t-dialin.net] has joined #scheme 05:58:41 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 248 seconds] 06:02:00 where's a good exposition on the minimum set of primitives needed for scheme? 06:02:13 -!- realitygrill_ [~realitygr@76.226.219.151] has quit [Ping timeout: 252 seconds] 06:02:42 realitygrill [~realitygr@76.226.200.177] has joined #scheme 06:02:59 -!- vk0 [~vk@ip-23-75.bnaa.dk] has quit [Ping timeout: 240 seconds] 06:04:20 -!- crypto_ is now known as z0d 06:07:34 -!- z0d [~z0d@artifact.hu] has quit [Changing host] 06:07:34 z0d [~z0d@unaffiliated/z0d] has joined #scheme 06:08:49 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 248 seconds] 06:08:58 aspect, lambda. 06:09:24 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 06:09:28 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 06:09:28 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 06:15:43 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 06:21:47 -!- HG` [~HG@p579F7209.dip.t-dialin.net] has quit [Quit: Leaving.] 06:30:53 -!- gremset_ is now known as gremset 06:44:04 -!- acarrico [~acarrico@pppoe-68-142-54-117.gmavt.net] has quit [Ping timeout: 246 seconds] 06:46:15 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 260 seconds] 06:48:47 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 06:53:39 -!- gremset [ubuntu@117.192.102.11] has quit [Remote host closed the connection] 06:59:08 -!- realitygrill [~realitygr@76.226.200.177] has quit [Read error: Connection reset by peer] 06:59:54 realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has joined #scheme 07:08:23 jewel [~jewel@196-215-88-79.dynamic.isadsl.co.za] has joined #scheme 07:18:19 slom [~slom@pD9EB722C.dip.t-dialin.net] has joined #scheme 07:21:47 vk0 [~vk@ip-23-75.bnaa.dk] has joined #scheme 07:22:29 -!- elliottcable is now known as ec|detached 07:22:39 -!- ec|detached is now known as elliottcable 07:31:44 realitygrill_ [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has joined #scheme 07:31:44 -!- realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has quit [Read error: Connection reset by peer] 07:31:46 -!- realitygrill_ is now known as realitygrill 07:34:40 -!- rramsden [~rramsden@173.180.109.6] has quit [Ping timeout: 260 seconds] 07:43:43 -!- atomx` [~user@86.35.150.23] has quit [Ping timeout: 240 seconds] 07:43:58 masm [~masm@bl15-75-122.dsl.telepac.pt] has joined #scheme 07:44:39 -!- masm [~masm@bl15-75-122.dsl.telepac.pt] has quit [Client Quit] 07:44:56 masm [~masm@bl15-75-122.dsl.telepac.pt] has joined #scheme 07:45:22 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #scheme 07:49:20 -!- ckrailo [~ckrailo@pool-173-57-102-171.dllstx.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] 08:08:58 -!- lisppaste [~lisppaste@common-lisp.net] has quit [Remote host closed the connection] 08:11:09 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 08:19:33 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 08:20:27 -!- monqy [~chap@pool-71-102-217-117.snloca.dsl-w.verizon.net] has quit [Quit: hello] 08:31:58 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #scheme 08:38:14 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #scheme 08:51:28 wingo [~wingo@90.164.198.39] has joined #scheme 08:57:06 -!- realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has quit [Quit: realitygrill] 09:00:51 -!- gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has quit [Ping timeout: 260 seconds] 09:01:08 Has MIT-Scheme ever supported docstrings? 09:07:54 gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has joined #scheme 09:09:10 nataraj [~nataraj@122.165.223.135] has joined #scheme 09:09:15 Hi 09:09:20 -!- sstrickl [~sstrickl@c-71-192-163-167.hsd1.nh.comcast.net] has left #scheme 09:09:37 i want to be inspired 09:09:58 for more to do with scheme 09:10:09 any help? 09:12:45 presently on gauche scheme 09:14:52 What are you looking for? 09:15:17 More to do? There's infinite things left unprogrammed. 09:16:18 Write a portable component-based web framework, including continuation serialisation, persistence, and html/xml/rest/css. ;) 09:16:32 first, i need break into the object oriented scheme code of Wiliki 09:16:32 -!- wingo [~wingo@90.164.198.39] has quit [Ping timeout: 276 seconds] 09:17:54 realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has joined #scheme 09:20:19 -!- gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 09:20:22 pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has joined #scheme 09:22:58 HG` [~HG@p579F7209.dip.t-dialin.net] has joined #scheme 09:24:11 -!- wilx [wilx@shell.sh.cvut.cz] has quit [Ping timeout: 260 seconds] 09:24:37 wilx [wilx@shell.sh.cvut.cz] has joined #scheme 09:30:24 zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has joined #scheme 09:32:57 -!- HG` [~HG@p579F7209.dip.t-dialin.net] has quit [Quit: Leaving.] 09:32:57 -!- zorblek [~morganmay@50-47-169-35.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 09:40:49 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 246 seconds] 09:42:05 mmc1 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 09:42:42 -!- leo2007 [~leo@123.114.54.94] has quit [Quit: rcirc on GNU Emacs 23.3.50.1] 09:43:34 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 09:45:05 -!- Caleb-- [~caleb@bzq-79-176-200-138.red.bezeqint.net] has quit [] 09:49:42 -!- lisppaste [~lisppaste@tiger.common-lisp.net] has quit [Remote host closed the connection] 09:50:12 nataraj: An alternative interesting project would be to implement native Scheme X protocol bindings 09:52:04 gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has joined #scheme 09:53:48 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 09:57:47 -!- lisppaste [~lisppaste@tiger.common-lisp.net] has quit [Remote host closed the connection] 10:00:18 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 10:00:47 minion [~minion@tiger.common-lisp.net] has joined #scheme 10:00:54 specbot [~specbot@tiger.common-lisp.net] has joined #scheme 10:01:40 ecraven, Xlib? 10:02:15 nataraj: Native Scheme is the point. There is no portable ffi (though that would be another project ;) 10:02:43 where do i begin? 10:03:01 ecraven, doesn't the X protocol need networking anyway? 10:03:18 A socket, yes. 10:03:41 DT``: Yes, but networking libraries are all rather similar (though you run into trouble with unix sockets and whatnot..) 10:03:50 That makes it very easy to interface to. No need for a FFI. 10:04:38 pjb: For Xlib, you need an ffi, C only. Same for xcb. I don't know of any native Scheme binding for the X protocol (though it is certainly possible). 10:05:00 -!- lisppaste [~lisppaste@tiger.common-lisp.net] has quit [Ping timeout: 260 seconds] 10:05:01 -!- minion [~minion@tiger.common-lisp.net] has quit [Ping timeout: 244 seconds] 10:05:04 ecraven: Do not use libx11 or libxcb: it will be less efficient, and less safe. 10:05:05 -!- specbot [~specbot@tiger.common-lisp.net] has quit [Ping timeout: 248 seconds] 10:05:34 If you go thru a FFI, you have to convert scheme data into C data and back, and you have to deal with C memory management (overflows, leaks, etc). 10:05:40 pjb: I agree. Do you *know* of any native Scheme binding? 10:05:54 There *are* a few Xlib bindings out there ;) 10:05:56 Avoid that. Connect directly the X server thru the sockets. 10:06:33 ecraven: perhaps, but it's a silly solution. It is much safer to connect directly to X. The protocol is lisp friendly (since X was designed in Lisp at first). 10:07:39 You may have a look at emacs xwen or CL clx. 10:11:45 ecraven: there is a portable r6rs ffi fwtw 10:12:37 ijp: Thanks, I didn't know that, haven't switched from r5rs yet ;) 10:12:43 how about something suited for embedded? DirectFB? 10:12:56 ecraven: don't bother, r7rs is meant to kill it :) 10:13:18 Which direction is r7rs going? back towards r5rs or onwards into the same direction as r6rs went? 10:13:45 backwards, then forwards a little bit, then off at a tangent 10:14:04 ;) interesting. I'll read the drafts as soon as I find some time 10:14:43 -!- aoh_ is now known as aoh 10:15:03 rhp1s: rocky-horror-picture scheme 10:15:11 Also, the X11 protocol is specified almost formally, in a set of xml files. One could process them to generate mostly automatically the scheme code needed to communicate with the server. 10:16:04 atomx` [~user@86.35.150.23] has joined #scheme 10:16:06 iirc xlib also derives much of the code from the protocol spec 10:16:10 pjb: I've started on that a year ago, but got sidetracked ;) It should work fine. I didn't find a good way to process binary data yet though (convert a byte-stream to useful data) :( 10:16:21 IIRC xcb is automatically generated from the xml files 10:26:13 I don't like FFI at all. You cannot really do exploratory programming with (bare) FFI, because as soon as you pass the wrong argument, it crashes, like any other C program. 10:27:21 You would need to run the actual ffi code in a separate process from your actual Scheme, a bit like Erlang does. 10:27:26 Yes. 10:34:38 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 10:35:02 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 10:35:30 minion [~minion@tiger.common-lisp.net] has joined #scheme 10:35:36 specbot [~specbot@tiger.common-lisp.net] has joined #scheme 10:37:27 -!- aidalgol [~user@114-134-7-23.rurallink.co.nz] has quit [Quit: zZzZzZzZzZ] 10:46:38 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 10:47:58 -!- ijp [~user@host86-163-221-44.range86-163.btcentralplus.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 11:00:28 JimmyRcom [~jimmy@adsl-75-53-45-212.dsl.rcsntx.sbcglobal.net] has joined #scheme 11:15:25 MengZhang [~MengZhang@222.66.175.253] has joined #scheme 11:36:03 karme [~user@stgt-5f709a2e.pool.mediaWays.net] has joined #scheme 11:40:57 answer_42 [~answer_42@541AB7C3.cm-5-3c.dynamic.ziggo.nl] has joined #scheme 11:41:31 Hey, whats the best way to retrieve the digits of a number 11:41:57 (i tried converting it to a string and list, but that seems so much work..) 11:44:28 -!- nataraj [~nataraj@122.165.223.135] has quit [Quit: Leaving] 11:45:30 nowhere_man [pierre@AStrasbourg-551-1-49-204.w83-194.abo.wanadoo.fr] has joined #scheme 11:48:41 -!- kephas [pierre@AStrasbourg-551-1-41-208.w92-148.abo.wanadoo.fr] has quit [Ping timeout: 240 seconds] 11:51:06 MrFahrenheit [~RageOfTho@users-146-61.vinet.ba] has joined #scheme 11:51:52 acarrico [~acarrico@pppoe-68-142-54-117.gmavt.net] has joined #scheme 11:54:17 rudybot: (define (d n) (string->list (number->string n))) 11:54:18 pjb: your sandbox is ready 11:54:18 pjb: Done. 11:54:27 rudybot: (d 42) 11:54:27 pjb: ; Value: (#\4 #\2) 11:54:35 What could be less work than (d 42) ? 11:55:49 rudybot: (define (d n) (map (lambda (x) (string->number (string x))) (string->list (number->string n)))) 11:55:49 pjb: Done. 11:55:52 rudybot: (d 42) 11:55:53 pjb: ; Value: (4 2) 11:56:55 yeah, thats how i did it ;) 11:57:15 thanks, i am just going to use it 11:59:15 -!- karme [~user@stgt-5f709a2e.pool.mediaWays.net] has quit [Remote host closed the connection] 12:01:36 Any available code for "Cheney on the MTA"? 12:01:42 I found the source code in that paper is a little hard to understand. 12:02:22 Since it's in an pretty old c style.. 12:04:46 link: http://home.pipeline.com/~hbaker1/CheneyMTA.html 12:18:19 -!- acarrico [~acarrico@pppoe-68-142-54-117.gmavt.net] has quit [Ping timeout: 240 seconds] 12:19:37 kuribas [~user@d54C43D8A.access.telenet.be] has joined #scheme 12:19:50 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 12:29:46 -!- lisppaste [~lisppaste@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:29:46 -!- specbot [~specbot@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:29:46 -!- minion [~minion@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:33:48 leo2007 [~leo@th041104.ip.tsinghua.edu.cn] has joined #scheme 12:41:58 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 12:42:26 minion [~minion@tiger.common-lisp.net] has joined #scheme 12:42:32 specbot [~specbot@tiger.common-lisp.net] has joined #scheme 12:44:42 -!- lisppaste [~lisppaste@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:44:42 -!- minion [~minion@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:44:42 -!- specbot [~specbot@tiger.common-lisp.net] has quit [Remote host closed the connection] 12:46:34 -!- masm [~masm@bl15-75-122.dsl.telepac.pt] has quit [Quit: Leaving.] 12:47:00 -!- thoolihan [~Tim@99-157-225-37.lightspeed.bcvloh.sbcglobal.net] has quit [Read error: Connection reset by peer] 12:47:03 lisppaste [~lisppaste@tiger.common-lisp.net] has joined #scheme 12:47:32 minion [~minion@tiger.common-lisp.net] has joined #scheme 12:47:32 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 12:47:38 specbot [~specbot@tiger.common-lisp.net] has joined #scheme 12:49:36 thoolihan [~Tim@99-157-225-37.lightspeed.bcvloh.sbcglobal.net] has joined #scheme 12:49:47 masm [~masm@bl15-75-122.dsl.telepac.pt] has joined #scheme 13:03:31 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 13:06:12 -!- pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has quit [Read error: Operation timed out] 13:13:15 I would like to apply a function to iself n times. What would be the best practice to accomplish this? I wanted to do it with srfi-1 fold and a list of length n whose values are just discared, but that seems strange 13:17:06 -!- bremner_ [~bremner@yantan.tethera.net] has quit [Read error: Operation timed out] 13:18:02 bremner_ [~bremner@yantan.tethera.net] has joined #scheme 13:20:04 -!- MengZhang [~MengZhang@222.66.175.253] has quit [Remote host closed the connection] 13:20:30 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 13:21:18 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Read error: Connection reset by peer] 13:21:51 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 13:22:16 pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has joined #scheme 13:25:37 sepisult1um, you want `(f f)' n times? 13:28:45 choas [~lars@p5792CC77.dip.t-dialin.net] has joined #scheme 13:29:55 homie [~levgue@xdsl-78-35-174-66.netcologne.de] has joined #scheme 13:30:07 DT``: sorry, I meant something like a fixedpoint iteration: f(f(f(f(x)))) n times 13:31:15 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 13:32:05 I'd just use a loop, or (foldl ( (f r) (f r)) x (list f f f f ...)). 13:32:51 DT``: how can I generate a list of n #f elements? 13:33:10 but sometimes trying to be smart just obfuscates the code, so I'd use a loop. 13:34:24 sepisult1um, if your implementation provides something like build-list, (build-list n f), else (iota n) *should* do (I've never used it). 13:35:25 oops, I meant (build-list n ( (_) f)) 13:36:04 but, again, you should just use a loop. 13:36:44 DT``: Well I'm trying to avoid explicit loops, just for fun :) 13:36:45 or roll your own apply-n-times. 13:37:08 I've just done it with fold and iota, works well :) 13:37:15 sepisult1um, if it's just for fun, use church numerals! 13:37:56 DT``: well, I still want to solve a problem, I'm not doing it l'art pour l'art 13:41:22 tauntaun [~Crumpet@ool-44c711b3.dyn.optonline.net] has joined #scheme 13:41:38 DT``: thanks for your help! 13:41:41 np 13:42:35 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Ping timeout: 260 seconds] 13:43:00 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 13:43:00 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 13:43:00 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 13:46:58 ymasory [~ymasory@12.238.58.2] has joined #scheme 13:48:35 MengZhang [~MengZhang@221.239.197.127] has joined #scheme 13:51:02 -!- kuribas [~user@d54C43D8A.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 13:52:30 GETOUT_ [4572a1e8@gateway/web/freenode/ip.69.114.161.232] has joined #scheme 13:53:38 -!- realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has quit [Quit: realitygrill] 13:56:43 -!- ymasory [~ymasory@12.238.58.2] has quit [Quit: Leaving] 14:05:01 soveran [~soveran@186.19.214.247] has joined #scheme 14:10:46 Sure is quiet 14:11:55 -!- slom [~slom@pD9EB722C.dip.t-dialin.net] has quit [Remote host closed the connection] 14:12:17 Sure there's no question. 14:13:20 Back to #lisp it is. I would have no question for Scheme anyway. 14:13:23 -!- GETOUT_ [4572a1e8@gateway/web/freenode/ip.69.114.161.232] has quit [Quit: Page closed] 14:14:14 Quiet == feature. 14:14:31 I'm much, much more likely to follow a channel if it's quiet. 14:15:00 There's only like 3 channels I regularly follow, and they're all some shade of quiet. :-P 14:15:04 (The rest, I just lurk in.) 14:16:00 DT``: The (lambda (_) f) makes me want to see a constantly function. :-P 14:17:02 rudybot: (define (constantly . vals) (lambda _ (values vals))) 14:17:03 cky: your sandbox is ready 14:17:03 cky: Done. 14:18:29 cky, you forgot an apply there. 14:18:39 DT``: Oops. 14:18:46 rudybot: (define (constantly . vals) (lambda _ (apply values vals))) 14:18:47 cky: Done. 14:19:39 rudybot: (define (root1024 x) (apply compose (build-list 10 (constantly sqrt)))) 14:19:40 cky: Done. 14:19:55 rudybot: (root1024 16777216) 14:19:55 cky: ; Value: # 14:20:07 Hmm. 14:20:12 uh. 14:20:22 rudybot: (define root1024 (apply compose (build-list 10 (constantly sqrt)))) 14:20:22 cky: Done. 14:20:28 rudybot: (root1024 16777216) 14:20:28 cky: ; Value: 1.016378314910953 14:20:36 rudybot: (expt 16777216 1/1024) 14:20:36 cky: ; Value: 1.016378314910953 14:20:39 \o/ 14:21:34 -!- MengZhang [~MengZhang@221.239.197.127] has left #scheme 14:22:31 rudybot, (define ((aApplyTheFunctionFToTheArgumentXNTimesAndPrintTheReturnValueEx f n) x) (foldl ( (f r) (f r)) x (build-list 10 (const f)))) 14:22:31 DT``: your sandbox is ready 14:22:31 DT``: Done. 14:22:47 rudybot, ((aApplyTheFunctionFToTheArgumentXNTimesAndPrintTheReturnValueEx add1) 0) 14:22:47 DT``: error: procedure aApplyTheFunctionFToTheArgumentXNTimesAndPrintTheReturnValueEx: expects 2 arguments, given 1: # 14:22:51 rudybot, ((aApplyTheFunctionFToTheArgumentXNTimesAndPrintTheReturnValueEx add1 5) 0) 14:22:52 DT``: ; Value: 10 14:23:09 I forgot to change the 10 there. 14:23:11 whatever. 14:26:53 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 14:41:39 Checkie [2662@unaffiliated/checkie] has joined #scheme 14:49:40 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 14:55:35 wingo [~wingo@90.164.198.39] has joined #scheme 14:55:46 Nisstyre [~nisstyre@infocalypse-net.info] has joined #scheme 14:56:54 also forgot your NULL NULL NULL 15:12:32 0 15:13:45 karme [~user@stgt-5f709a2e.pool.mediaWays.net] has joined #scheme 15:26:18 *offby1* reads half the variable name, feels drowsy, and goes to sleep 15:27:52 *bremner_* rewrites in java for more conciseness 15:28:31 there ya go 15:31:09 *weinholt* presents wingo with a hairy segfault 15:31:56 ooh goodie :) 15:34:20 weinholt: good one! 15:34:37 thanks ;) 15:36:19 dnolen [~davidnole@184.152.69.75] has joined #scheme 15:37:07 martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 15:42:42 -!- martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Ping timeout: 250 seconds] 15:44:14 martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 15:46:24 -!- elliottcable is now known as ec|detached 15:49:20 -!- martinhex [~mjc@93-97-29-243.zone5.bethere.co.uk] has quit [Ping timeout: 260 seconds] 15:58:24 realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has joined #scheme 16:06:45 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 16:08:15 -!- homie [~levgue@xdsl-78-35-174-66.netcologne.de] has quit [Read error: Connection reset by peer] 16:21:32 -!- tauntaun [~Crumpet@ool-44c711b3.dyn.optonline.net] has quit [Quit: Ex-Chat] 16:28:26 -!- karme [~user@stgt-5f709a2e.pool.mediaWays.net] has quit [Remote host closed the connection] 16:35:33 HG` [~HG@p579F7209.dip.t-dialin.net] has joined #scheme 16:44:55 -!- pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has quit [Ping timeout: 244 seconds] 16:51:19 -!- wingo [~wingo@90.164.198.39] has quit [Ping timeout: 240 seconds] 16:56:44 -!- leo2007 [~leo@th041104.ip.tsinghua.edu.cn] has quit [Read error: Operation timed out] 16:57:58 -!- jewel [~jewel@196-215-88-79.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 17:00:18 -!- clsmith [~cls@ambrose.lubutu.com] has left #scheme 17:02:49 pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has joined #scheme 17:06:35 -!- pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has quit [Max SendQ exceeded] 17:07:35 pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has joined #scheme 17:11:39 sasm [~sasm@50-54-253-93.evrt.wa.frontiernet.net] has joined #scheme 17:24:11 monqy [~chap@pool-71-102-217-117.snloca.dsl-w.verizon.net] has joined #scheme 17:24:52 -!- HG` [~HG@p579F7209.dip.t-dialin.net] has quit [Quit: Leaving.] 17:41:07 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 17:44:36 leo2007 [~leo@th041104.ip.tsinghua.edu.cn] has joined #scheme 17:47:08 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 17:50:06 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #scheme 17:54:22 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 18:02:43 -!- realitygrill [~realitygr@adsl-76-226-116-21.dsl.sfldmi.sbcglobal.net] has quit [Ping timeout: 246 seconds] 18:05:08 realitygrill [~realitygr@76.226.123.105] has joined #scheme 18:12:13 -!- sasm [~sasm@50-54-253-93.evrt.wa.frontiernet.net] has quit [Remote host closed the connection] 18:14:16 -!- gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has quit [Ping timeout: 246 seconds] 18:17:28 soveran [~soveran@186.19.214.247] has joined #scheme 18:19:47 gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has joined #scheme 18:20:34 jewel [~jewel@196-215-88-79.dynamic.isadsl.co.za] has joined #scheme 18:22:05 kuribas [~user@d54C43D8A.access.telenet.be] has joined #scheme 18:28:42 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 18:29:55 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 18:30:33 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 18:33:53 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 18:38:25 -!- Khisanth [~Khisanth@50.14.244.111] has quit [Read error: Connection reset by peer] 18:43:44 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 18:49:25 homie [~levgue@xdsl-78-35-174-66.netcologne.de] has joined #scheme 18:52:05 ijp [~user@host86-163-221-44.range86-163.btcentralplus.com] has joined #scheme 18:56:43 jesusito [~user@224.pool85-49-231.dynamic.orange.es] has joined #scheme 19:06:46 -!- githogori [~githogori@c-24-7-1-43.hsd1.ca.comcast.net] has quit [Ping timeout: 246 seconds] 19:07:17 republican_devil [~g@pool-74-111-197-135.lsanca.fios.verizon.net] has joined #scheme 19:19:18 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 19:19:37 rramsden [~rramsden@173.180.109.6] has joined #scheme 19:20:46 -!- jewel [~jewel@196-215-88-79.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 19:20:52 -!- leo2007 [~leo@th041104.ip.tsinghua.edu.cn] has quit [Ping timeout: 248 seconds] 19:22:49 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has left #scheme 19:24:23 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 19:26:29 -!- Euthydemus [~euthydemu@vaxjo4.213.cust.blixtvik.net] has quit [Changing host] 19:26:29 Euthydemus [~euthydemu@unaffiliated/euthydemus] has joined #scheme 19:29:30 githogori [~githogori@c-24-7-1-43.hsd1.ca.comcast.net] has joined #scheme 19:32:28 -!- githogori [~githogori@c-24-7-1-43.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 19:33:48 -!- jesusito [~user@224.pool85-49-231.dynamic.orange.es] has left #scheme 19:47:23 aidalgol [~user@114-134-7-23.rurallink.co.nz] has joined #scheme 19:48:16 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 19:50:48 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 20:02:55 n 20:04:51 -!- rramsden [~rramsden@173.180.109.6] has quit [Quit: Leaving] 20:09:32 githogori [~githogori@c-24-7-1-43.hsd1.ca.comcast.net] has joined #scheme 20:16:20 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 20:20:33 scsh!! 20:20:34 wow 20:20:36 kicks ass 20:29:41 Khisanth [~Khisanth@50.14.244.111] has joined #scheme 20:30:25 barryfm [~barryfm@fl-71-51-70-89.dhcp.embarqhsd.net] has joined #scheme 20:33:18 Idk bash looks easier to use to me :/ 20:33:52 pothos_ [~pothos@111-240-166-48.dynamic.hinet.net] has joined #scheme 20:34:09 lol 20:34:11 tcl too 20:34:17 tcl is so friggin easy 20:34:22 its liek rational bash 20:34:35 nah tcl is messy 20:34:39 it's very interesting tho 20:35:33 -!- pothos [~pothos@111-240-173-34.dynamic.hinet.net] has quit [Ping timeout: 248 seconds] 20:35:45 -!- pothos_ is now known as pothos 20:37:34 plus i think it's easier to use eshell if you are already in emacs 20:38:08 set range {1 2 3 4 5 6 7} 20:38:18 foreach x $range { 20:38:32 puts "I love to eat $x reeces pieces" 20:38:34 } 20:42:33 vim here 20:42:45 "easier to use eshell if you are already in emacs" ... crazy talk 20:42:57 FYI: republican_devil is a troll also known as Gavino. He's a rather special brand of troll who has decided to grow quite attached to #scheme since he showed up about five or six years ago. 20:43:10 not a troll 20:43:49 ria what are you programming lately? 20:43:54 anything interesting? 20:44:04 -!- quackwoof [~copumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Read error: Connection reset by peer] 20:44:26 quackwoof [~copumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 20:44:42 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Read error: Connection reset by peer] 20:45:07 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 20:49:28 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 20:55:33 -!- blueadept [~blueadept@unaffiliated/blueadept] has quit [Quit: Leaving] 20:56:49 Riastradh: Do you know if W7 (the code) is available anywhere? (Or is it the heart of Scheme48?) 20:58:14 -!- copumpkin is now known as Is 20:58:28 -!- Is is now known as ls 20:58:47 -!- ls is now known as copumpkin 21:05:33 cafesofie [~cafesofie@ool-18e4e057.dyn.optonline.net] has joined #scheme 21:11:17 -!- republican_devil [~g@pool-74-111-197-135.lsanca.fios.verizon.net] has quit [Quit: Leaving.] 21:11:51 tonyg, I don't think there's any particular code implementing W7; the dissertation is a simplified explanation of the security aspects of the design behind Scheme48. 21:12:58 AntiPasto [~thomas@50.13.119.229] has joined #scheme 21:13:51 -!- cafesofie [~cafesofie@ool-18e4e057.dyn.optonline.net] has quit [Remote host closed the connection] 21:13:58 Hi there! anyone around? I have what I believe to be a very basic question about composing a list. 21:14:19 *offby1* watches the tumbleweeds skitter down Main St 21:14:21 nobody here but us zombie processes. 21:14:25 :D 21:14:33 *offby1* imagines a Liszt composition 21:14:48 *Riastradh* kills offby1. 21:14:48 cafesofie [~cafesofie@ool-18e4e057.dyn.optonline.net] has joined #scheme 21:14:49 (with SIGCHLD) 21:15:05 hahahah good idea, i should find some of him to listen to 21:15:41 I'm not pregnant! 21:16:10 anyway... okay... so say i have a function ... and i have to call that function to return a value... how can i loop through that function like X times, but compose a list of results? 21:16:33 this is kawa in java, so i guess i'm asking how can i turn a java array of strings into a proper list? 21:16:39 offby1, how do you know? Have you tested recently? 21:17:31 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 21:17:33 well, I feel the same as usual. 21:17:33 tonyg, that said, you might ask Jonathan by email whether he has any other code related to it that isn't part of Scheme48. 21:17:38 Plus, you know, I'm of a certain age 21:18:04 has a rabbit died around you lately? that's a sure sign i hear 21:18:13 AntiPasto: you might have something like vector->list available 21:18:17 Riastradh: thanks. Interesting. I'm about to get stuck in to the papers you have linked on your site. (Thanks for those BTW.) 21:18:31 Papers I have linked on my site? 21:18:32 offby1: good thinking i perhaps should keep digging 21:18:34 rudybot: (vector "fee" "fi" "fo" "fum") 21:18:34 *offby1: your scheme sandbox is ready 21:18:35 *offby1: ; Value: #("fee" "fi" "fo" "fum") 21:18:38 rudybot: (vector->list (vector "fee" "fi" "fo" "fum")) 21:18:39 *offby1: ; Value: ("fee" "fi" "fo" "fum") 21:18:44 Ah! haha 21:18:53 not certain that kawa has that, but it ought to :) 21:18:56 oops, I didn't spot the ~jar instead of the ~campbell 21:19:01 yes yes 21:19:03 if not, certain people have written handy vector-based SRFIs ... 21:19:09 now if only I could remember who ... 21:19:22 tonyg, ah. Yes, I am not Jonathan... 21:19:28 Indeed :-) 21:19:50 well understandable to forget a name. in cs there are 3 hard things, you're one of them, and naming things is the other 21:20:01 anyway, stay froody peeps! 21:20:04 -!- AntiPasto [~thomas@50.13.119.229] has left #scheme 21:20:44 *offby1* googles 'froody' 21:21:03 *bremner_* sends offby1 42 results 21:21:04 I assume it's unrelated to 'Frody', the name of the neighbourcat who visits me most days 21:22:30 -!- cafesofie [~cafesofie@ool-18e4e057.dyn.optonline.net] has quit [Remote host closed the connection] 21:30:52 -!- gravicappa [~gravicapp@ppp91-77-168-114.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 21:42:23 forcer [~forcer@g231160245.adsl.alicedsl.de] has joined #scheme 21:44:45 -!- Hal9k [~Lernaean@unaffiliated/kusanagi] has quit [] 21:45:22 Hal9k [~Lernaean@unaffiliated/kusanagi] has joined #scheme 21:46:29 Riastradh: could you verify that (parse-uri-path-absolute (string->parser-buffer "/foo")) generates an error on MIT-Scheme (as it should not)? 21:48:28 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 246 seconds] 21:49:50 -!- aidalgol [~user@114-134-7-23.rurallink.co.nz] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:50:14 -!- Khisanth [~Khisanth@50.14.244.111] has quit [Quit: Leaving] 21:50:20 rramsden [~rramsden@173.180.109.6] has joined #scheme 21:55:22 ecraven, yep. But I'm not sure what the intent is. 21:56:04 My intent? I just wanted to try to parse HTTP requests, and ran into this problem. Trying to debug it now. 21:57:14 Hmm... Looks like it should be: (define parse-uri-path-absolute (*parser (encapsulate encapsulate-uri (seq (values #f #f) parser:path-absolute (values #f #f))))) 21:58:08 That's what I'm trying right now ;) 21:58:41 Please write some automatic tests for this! 21:58:43 Khisanth [~Khisanth@50.14.244.111] has joined #scheme 21:58:45 Should it parse query and fragment too? 21:59:02 How ;) Can you point me to a file that contains such tests for another subsystem? 21:59:05 Oh, it should probably parse the query, but not the fragment. 21:59:14 See the tests/ subdirectory of the Git repository. 21:59:28 All the files listed in checks.scm are examples. 21:59:31 check.scm, rather. 22:00:09 So a bunch of DEFINE-TESTs with ASSERT-EQV or similar? 22:00:38 Yes. 22:01:09 I'll try to do this tomorrow. Just have to understand what these methods are supposed to do first ;) 22:02:47 tauntaun [~Crumpet@ool-44c711b3.dyn.optonline.net] has joined #scheme 22:04:10 I'm not really happy with the test language that Chris designed, and I use it in a very, very simple-minded way (see, e.g., the flonum-casts, division, ephemeron, floenv, and integer-bits tests) versus the way Chris uses it (e.g., the char-set, regsexp tests). 22:04:37 -!- gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has quit [Quit: Computer has gone to sleep.] 22:05:03 ckrailo [~ckrailo@pool-173-57-102-171.dllstx.fios.verizon.net] has joined #scheme 22:05:29 I've used the test-manager by alexey radul in one or two projects of mine. That seemed to work well enough, but I didn't test very thoroughly 22:05:45 crossfader [58497ee3@gateway/web/freenode/ip.88.73.126.227] has joined #scheme 22:05:53 hi there 22:06:13 How do I run the tests in a single file? 22:06:33 -!- barryfm [~barryfm@fl-71-51-70-89.dhcp.embarqhsd.net] has quit [Quit: Ex-Chat] 22:06:48 i got a problem passing variables to a fly evaluation... 22:06:49 Load load.scm, and run, say, (run-unit-tests "runtime/test-floenv"). 22:06:54 now i m using guile 22:07:26 but guess the problem is the same in other interpreters and / or compilers 22:08:10 ccorn [~ccorn@g132123.upc-g.chello.nl] has joined #scheme 22:08:11 i can use top-level definitions within the evaluated code... 22:08:32 but i can t pass additional definitions... 22:08:59 You need to be much more specific, crossfader. 22:09:15 You need to specify (a) exactly what you typed, (b) exactly what you saw, and (c) exactly what you expected to see. 22:09:31 ok.. 22:09:50 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Quit: leaving] 22:09:58 I don't know what `passing variables to a fly evaluation' means. 22:11:36 (let ((foo #t)) (eval-string "foo")) 22:12:03 this will say: foo is unbound 22:12:28 this one would work: 22:12:29 What if you evaluate (let ((x #t)) (eval-string "foo"))? 22:13:09 exactly the same, it s all unbound... i know why 22:13:24 top-level definitions work here... 22:13:55 Can you take a step back and explain what you are using EVAL-STRING for? -- what problem do you believe the use of EVAL-STRING is a subproblem? 22:14:15 like: (define foo #f) (let () (set! foo #t) (string-eval "foo")) 22:14:43 here the result would be: #t 22:15:04 -!- ccorn [~ccorn@g132123.upc-g.chello.nl] has quit [Quit: ccorn] 22:15:17 the code to evaluate is loaded from a database... 22:15:29 that s why string-eval 22:17:38 i need to start the code with various values... 22:18:03 crossfader: this is expected behaviour AFAICT 22:18:39 ok, it s expected... 22:18:42 You need to specify the environment in which you want to evaluate the code, crossfader. EVAL-STRING is presumably a Guile extension, and it is an accident that if you defined FOO at the top level then EVAL-STRING can get at it. 22:18:48 i argue abuout that 22:18:57 i agree about that 22:19:49 Riastradh: it isn't an accident, by default EVAL-STRING uses the current module 22:19:55 ok, so i need a special enviroment for each evaluation 22:20:03 ?? 22:20:03 Then it's a mistake, not an accient. 22:20:13 A design mistake, specifically. 22:20:22 No, it's still an accident, actually. 22:21:06 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Quit: superjudge] 22:21:25 can i define a special environment for each evaluation? 22:21:29 Consider in module A, (define foo 123) (define (bar x) (eval-string x)). If (bar "foo") ever gives 123 because of FOO's value in module A, it is an accident -- and it might fail next week when you evaluate (bar "foo") in the wrong module. 22:21:44 crossfader, if EVAL-STRING is anything like EVAL, then it will accept a second argument specifying an environment. 22:23:23 any idea how i could solve it, perhaps without eval-string? 22:23:36 -!- chrissbx [~chrissbx@69-196-152-229.dsl.teksavvy.com] has quit [Read error: Operation timed out] 22:27:26 -!- Sgeo_ [~Sgeo@ool-18bf618a.dyn.optonline.net] has quit [Ping timeout: 250 seconds] 22:28:59 Specify an environment. How you do that will vary from Scheme to Scheme; in the R5RS alone, the easiest way is probably ((eval `(lambda (foo bar) ,expression) (scheme-report-environment 5)) foo bar), if you don't mind granting access to all of the R5RS to the expression. 22:29:35 i fixed it for now, with a procedure, where i can pass variables like that (leteval (list (list 'foo foo) (list 'bar bar)) code-string) 22:29:41 djcb` [~user@a88-112-253-18.elisa-laajakaista.fi] has joined #scheme 22:30:10 the procedure is like this... 22:30:12 (define (leteval bindings code) (eval-string (string-append "(let (" (apply string-append (map (lambda (x) (string-append "(" (symbol->string (car x)) " " (if (string? (cadr x)) (string-append "\"" (cadr x) "\"") "\"\"") ")")) bindings)) ")" code ")")) ) 22:30:20 Yikes. 22:30:28 sorry, that s in a line 22:30:38 Riastradh: How do I identify sub-tests? I'm using ASSERT-TRUE, can I somehow pass a string to denote the exact sub-test? 22:30:42 OK, if you are really going to use EVAL, use that, not EVAL-STRING. 22:30:54 And if you want to paste code, use . 22:31:37 -!- djcb [~user@a88-112-253-18.elisa-laajakaista.fi] has quit [Ping timeout: 260 seconds] 22:32:08 ecraven, dunno, sorry. I don't use sub-tests; I just make lots of tests named with common prefixes. 22:32:15 I'll do the same 22:32:50 crossfader pasted "untitled" at http://paste.lisp.org/display/122182 22:33:39 crossfader, seriously, throw away the string nonsense. Use quasiquotation... 22:33:48 this might work for simple values, if i have to pass closures, it s over... 22:34:39 crossfader: Is there a reason this code has to be in the database? 22:35:10 ecraven, see runtime/test-floenv.scm for example. 22:35:32 Hm.. using (assert-true (uri=? ... ...)) 22:35:42 doesn't actually help much, I don't see *which* components are different 22:36:18 it s experimental, and it s the main idea of the project, to have the code in the database 22:36:40 ecraven: (define assert-uri= (binary-assertion uri=?)) 22:36:49 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #scheme 22:36:53 Thanks ;) just doing that 22:38:24 crossfader, no, as soon as you get a string, turn it into an S-expression. 22:39:26 with the "scheme-reader" over string-ports? 22:39:27 -!- zanea [~zanea@219-89-177-69.jetstart.xtra.co.nz] has quit [Remote host closed the connection] 22:39:54 through string-ports i mean 22:39:56 zanea [~zanea@219-89-177-69.jetstart.xtra.co.nz] has joined #scheme 22:40:37 -!- kuribas [~user@d54C43D8A.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:41:15 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Client Quit] 22:41:38 gozoner [~ebg@ip68-6-68-92.sb.sd.cox.net] has joined #scheme 22:44:29 ecraven, but, yeah, as I said, the test language is pretty frustrating. 22:44:34 i try it with something simple 22:44:52 if it s working, i tell you 22:46:22 Riastradh: So is httpio.scm it seems. Requests with no body are not read correctly. I'll go to bed now, and play around more tomorrow, thanks for your help! I'll let you know when I have some tests, so you can check them into git. 22:46:26 by the way, i was generating small prime numbers with scheme, and it took very long... even with numbers smaller than 10000 i had to wait more than a minute 22:46:41 i found differences in speed of scheme interpreters 22:47:01 it would be a miracle if they all took the same time 22:47:04 gamb-c and MIT were faster than guile 22:47:56 compiling the prociedure with gamb-c didn t speed up signigicantly 22:48:07 significantlyy 22:49:17 i found code on the web, and i checked it out, it was much faster than mine, but where my code took about a megabyte, this code took more than 500mb so it started to swap on my hd 22:50:20 i had to stop the process ... perhaps it s faster but useless on my system with numbers greater than 23*10^3 22:51:47 mistake, not the code took 500mb, the execution took 500 mb ram 22:51:54 that is what i mean ;) 22:54:07 ecraven, you might want to mail Chris or mit-scheme-devel about the HTTP support; I don't know much about it. 22:54:40 -!- djcb` [~user@a88-112-253-18.elisa-laajakaista.fi] has quit [Remote host closed the connection] 22:54:44 ok, i gonna check out the scheme reader functions 22:54:54 thx 22:55:12 i hope i get it working 22:58:48 -!- choas [~lars@p5792CC77.dip.t-dialin.net] has quit [Quit: leaving] 22:59:30 Riastradh: I got it so that I can receive a basic request and send an answer. I'll mail a patch after some more testing. 23:02:11 -!- ec|detached is now known as elliottcable 23:02:31 -!- ckrailo [~ckrailo@pool-173-57-102-171.dllstx.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] 23:03:59 well, (with-input-from-string "(list 'hallo)" (lambda () (read))) does it so far, but i still need to evaluate the x-expression 23:04:02 s-expression 23:11:54 -!- answer_42 [~answer_42@541AB7C3.cm-5-3c.dynamic.ziggo.nl] has quit [Ping timeout: 244 seconds] 23:17:22 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Ping timeout: 246 seconds] 23:25:58 aidalgol [~user@114-134-7-23.rurallink.co.nz] has joined #scheme 23:29:18 ok, got the code in s-expressions now, doesn t solve the problem, i still cant pass bindings to any eval environment, (top-level definitions only) 23:30:44 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 23:33:23 -!- pdelgallego [~pdelgalle@1385159903.dhcp.dbnet.dk] has quit [Read error: Operation timed out] 23:37:45 the combination of reading an input string and evaluating it as S-expression is exactly what the (string-eval "") procedure does... 23:45:54 cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #scheme 23:46:11 i guess i got a solution 23:46:19 got to check it out 23:53:05 yea it works 23:53:23 acarrico [~acarrico@pppoe-68-142-54-117.gmavt.net] has joined #scheme 23:54:30 i solved the problem like this... i put the S-expression to evaluate into a lambda 23:54:40 now i can pass bindings as arguments 23:54:44 :D 23:55:11 too easy, sometimes i feel handycapped in my mind... especialy when coding