00:05:55 -!- sts193 [~sts193@c-76-104-226-126.hsd1.wa.comcast.net] has quit [Quit: sts193] 00:06:53 pnkfelix [~Adium@c-24-147-116-20.hsd1.ct.comcast.net] has joined #scheme 00:08:28 -!- bweaver [~user@75-148-111-133-Chattanooga.hfc.comcastbusiness.net] has quit [Ping timeout: 245 seconds] 00:09:39 pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has joined #scheme 00:10:07 zac31415` [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #scheme 00:10:29 -!- pnkfelix [~Adium@c-24-147-116-20.hsd1.ct.comcast.net] has quit [Client Quit] 00:10:38 -!- zac31415` [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Remote host closed the connection] 00:12:10 jimrees__ [~jimrees@ita4fw1.itasoftware.com] has joined #scheme 00:12:13 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Ping timeout: 245 seconds] 00:12:13 -!- jimrees_ [~jimrees@ita4fw1.itasoftware.com] has quit [Ping timeout: 245 seconds] 00:12:26 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 00:15:27 -!- TheRealPygo [~pygospa@217.191.192.218] has quit [Remote host closed the connection] 00:15:54 pygospa [~pygospa@217.191.192.218] has joined #scheme 00:22:03 -!- pavelludiq [~quassel@83.222.167.92] has quit [Remote host closed the connection] 00:29:13 -!- fradgers- [~fradgers-@2.121.50.126] has left #scheme 00:39:40 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 255 seconds] 00:46:46 daedra [~simon@unaffiliated/daedra] has joined #scheme 00:47:35 -!- gravicappa [~gravicapp@ppp85-140-116-137.pppoe.mtu-net.ru] has quit [Ping timeout: 260 seconds] 00:55:00 ... 00:55:19 I used the paste.lisp.org site.. I'm guessingg a link is meant to appear soon 00:55:39 It's dropped off the channel. The paste you made is here: http://paste.lisp.org/display/117004 00:55:55 lisppaste [~lisppaste@common-lisp.net] has joined #scheme 00:56:16 ah thanks 01:01:28 daedra pasted "eqlist" at http://paste.lisp.org/display/117006 01:01:42 there we go 01:02:07 with the example input I have placed at the bottom, I get #f false 01:02:13 chandler: That brings up an interesting point, how does one nuke a paste if they accidentally pasted a duplicate? I know about "Request Deletion"; is that the correct way? 01:02:20 the two lists _are_ equal 01:02:32 cky: Yeah, though I'm afraid I don't check that all that often 01:02:40 daedra: Are 117004 and 117006 identical? 01:02:44 no 01:02:44 chandler: Cool, thanks. 01:03:01 daedra: They are related, though, right? You can (should) use "Annotate this paste". 01:03:03 cky: I had to add some custom functions 01:03:13 oh sorry 01:03:20 first time user here :) 01:03:22 cky: it's OK. There aren't any rules, just suggestions. (Well, the rule is: don't spam. This isn't spam.) 01:03:43 chandler: :-) 01:04:48 clearly there is a logical error somewhere, but I have pulled these functions from The Little Schemer verbatim 01:05:09 oh dear the paste has gone a bit wrong 01:06:54 should I paste again? 01:07:24 You can't edit existing pastes, so the best you can do is to paste as an annotation of the incorrect paste. :-) 01:12:38 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 01:13:17 daedra annotated #117006 "final paste.. I swear" at http://paste.lisp.org/display/117006#1 01:15:00 I'm curious as to where this goes wrong. Guile is being very terse with (trace) output 01:15:54 Try giving it reduced input cases according to the structure of the recursive calls, and seeing where it goes wrong on a smaller input. 01:16:38 ok 01:18:59 ah yes it even fails on (eqlist? '('(1)) '('(1))) 01:20:20 -!- somnium [~user@184.42.17.189] has quit [Ping timeout: 255 seconds] 01:22:28 DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has joined #scheme 01:23:26 -!- pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has quit [Ping timeout: 264 seconds] 01:26:35 well.. "fails" meaning it evaluates to false incorrectly. I'm still not sure why though. Running it on paper has '('(1)) stop at (and (eqan? (car l1) (car l2)); if first of each are equal atoms, find out if rest are 01:26:43 with #t 01:28:20 then it recurs with both cdrs being null, which should evaluate to true 01:29:58 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 252 seconds] 01:33:41 daedra: What are you trying to do? 01:34:37 daedra: I'm not sure about eqlist?, but I don;t think that those two lists are eq? 01:35:03 Jafet [~Jafet@unaffiliated/jafet] has joined #scheme 01:36:00 -!- pygospa [~pygospa@217.191.192.218] has quit [Disconnected by services] 01:36:09 TheRealPygo [~pygospa@217.191.210.225] has joined #scheme 01:36:27 franki^: No, but they should be equal?. 01:38:44 Indeed, so what does eqlist? do? 01:39:42 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 01:45:55 franki^: It's a function you get to write yourself as part of reading through The Little Schemer. 01:46:25 cky: What is that function supposed to do? Is this hard to answer? 01:46:35 Ah, I see 01:47:12 My memory is failing me, but if you've written it yourself, you should know why it's returning #f when you want #t! :) 01:47:22 Hahahahaha. 01:47:58 drdo: It's like eqv? but extended to return #t for lists that have "equal" contents. 01:48:36 drdo: In that sense, it sits somewhere between eqv? and equal?. 02:03:00 sts193 [~sts193@c-76-104-226-126.hsd1.wa.comcast.net] has joined #scheme 02:03:03 -!- sts193 [~sts193@c-76-104-226-126.hsd1.wa.comcast.net] has quit [Remote host closed the connection] 02:16:37 leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has joined #scheme 02:20:47 -!- felipe [~felipe@my.nada.kth.se] has quit [Quit: felipe] 02:25:52 -!- masm [~masm@bl15-69-44.dsl.telepac.pt] has left #scheme 02:26:05 homie [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 02:34:05 -!- homie [~user@xdsl-78-34-109-81.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 02:36:31 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 252 seconds] 02:37:58 homie [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 03:07:57 -!- homie [~user@xdsl-78-34-109-81.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 03:27:26 felipe [~felipe@my.nada.kth.se] has joined #scheme 03:28:08 -!- MrFahrenheit [~RageOfTho@users-33-217.vinet.ba] has quit [Ping timeout: 255 seconds] 03:42:10 chemuduguntar [~user@smtp.touchcut.com] has joined #scheme 03:46:57 xwl_ [~user@nat/nokia/x-wrpacafmxjomxgsr] has joined #scheme 03:51:15 nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has joined #scheme 03:52:40 timj_ [~timj@e176193120.adsl.alicedsl.de] has joined #scheme 03:55:58 -!- timj__ [~timj@e176192149.adsl.alicedsl.de] has quit [Ping timeout: 245 seconds] 04:04:06 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: nighty night] 04:19:26 homie [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 04:20:30 wbooze [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 04:30:32 lusory [~bart@bb219-74-90-12.singnet.com.sg] has joined #scheme 04:34:00 -!- AtnNn [~welcome@modemcable060.239-177-173.mc.videotron.ca] has quit [Quit: nite] 04:38:34 -!- dfkjjkfd [~paulh@145.120.22.35] has quit [Quit: Lost terminal] 04:39:45 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Ping timeout: 260 seconds] 04:59:50 Whats a good example of unit tests in scheme? 05:02:09 MindVirus [~mindvirus@unaffiliated/mindvirus] has joined #scheme 05:02:35 Hello. ((if (< step 0) < >) next stop) -- is that supposed to not work? 05:03:16 No, nevermind. 05:03:58 Is it possible to have default arguments? 05:08:42 Also, what is the typical Scheme philosophy on validating input? 05:19:58 There is no `typical Scheme philosophy' on anything, really. 05:20:16 Riastradh: Any convention? 05:20:26 Let the program fail? 05:20:30 Run indefinitely? 05:20:35 The only standard way to express optional arguments with default values is to use rest arguments. 05:23:19 -!- alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: Lost terminal] 05:23:23 vu3rdd [~vu3rdd@nat/cisco/x-bpstquwtaivqdfaw] has joined #scheme 05:23:26 alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 05:24:27 MindVirus: some implementations have optional arguments and keywords. 05:24:33 -!- homie [~user@xdsl-78-34-109-81.netcologne.de] has quit [Remote host closed the connection] 05:24:33 -!- wbooze [~user@xdsl-78-34-109-81.netcologne.de] has quit [Remote host closed the connection] 05:24:45 OK. 05:25:03 What should I do about invalid input? Rather, what do most programmers do about invalid input, and why? 05:25:34 Rather, most programmers that take themselves seriously. 05:25:34 wbooze [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 05:25:38 homie [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 05:27:11 That depends on the specification on the program, not on the language. 05:27:49 Axioplase_: In Java, for example, catching exceptions is mandatory, and throwing them is highly recommended. 05:28:11 In C, a segfault due to invalid user input is a victory because the program compiled. 05:28:26 -!- wbooze [~user@xdsl-78-34-109-81.netcologne.de] has quit [Client Quit] 05:28:29 What do you call invalid input? 05:28:30 -!- homie [~user@xdsl-78-34-109-81.netcologne.de] has quit [Client Quit] 05:28:34 Axioplase_: Function arguments. 05:28:55 ((lambda (x) (+ 1 x)) "hello") ? 05:29:05 Basically. 05:29:09 This should not ever happen. 05:29:50 Consider (range start stop step) that makes a range from start to stop every step. If step = 0 should I let the program eat its own brain? 05:30:19 If you write this, the spec is bad, and you let your implementation fail. The program is supposed to work on valid input. What it does when you write crap is the designer's fault. He should fix that, not the programmer/language. 05:30:53 Same answer: ``the spec is incomplete. Ask the guy who made the spec what to do'' 05:31:21 So basically, no guidelines. 05:31:25 yup. 05:31:38 Freedom is so constricting. 05:34:10 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 05:42:14 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 05:46:25 kenjin2201 [~kenjin@61.99.46.4] has joined #scheme 05:47:39 homie [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 05:51:19 MindVirus, if you want to check for and report errors, you can use the ERROR procedure. (define (range start stop step) (if (zero? step) (error "Step must not be zero:" step)) ...) 05:55:58 wbooze [~user@xdsl-78-34-109-81.netcologne.de] has joined #scheme 05:57:15 Riastradh: Right on, thanks! 06:00:46 nilg [~user@85.239.138.109] has joined #scheme 06:01:44 HG` [~HG@xdsl-92-252-93-10.dip.osnanet.de] has joined #scheme 06:14:41 pygospa [~pygospa@217.191.167.195] has joined #scheme 06:16:39 -!- TheRealPygo [~pygospa@217.191.210.225] has quit [Ping timeout: 250 seconds] 06:18:18 -!- xwl_ [~user@nat/nokia/x-wrpacafmxjomxgsr] has quit [Remote host closed the connection] 06:43:36 -!- MindVirus [~mindvirus@unaffiliated/mindvirus] has quit [Ping timeout: 265 seconds] 06:44:57 xwl_ [~user@nat/nokia/x-lbjohccvjcqmzwga] has joined #scheme 06:50:01 -!- HG` [~HG@xdsl-92-252-93-10.dip.osnanet.de] has quit [Quit: Leaving.] 07:07:29 -!- kenjin2201 [~kenjin@61.99.46.4] has quit [Ping timeout: 265 seconds] 07:07:30 Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has joined #scheme 07:08:37 hypercube32 [~hypercube@158.102.207.68.cfl.res.rr.com] has joined #scheme 07:24:19 -!- jao [~user@172.Red-83-32-171.dynamicIP.rima-tde.net] has quit [Ping timeout: 240 seconds] 07:39:00 -!- EbiDK [~ebi@3e6b7ac3.rev.stofanet.dk] has quit [Read error: Connection reset by peer] 07:42:57 -!- Modius [~Modius@cpe-70-123-158-125.austin.res.rr.com] has quit [Quit: I'm big in Japan] 07:45:16 -!- alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: Lost terminal] 07:45:23 alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 08:02:48 snorble_ [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 08:10:27 HG` [~HG@xdsl-92-252-93-10.dip.osnanet.de] has joined #scheme 08:13:53 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 255 seconds] 08:23:55 -!- DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has quit [Ping timeout: 240 seconds] 08:24:19 hi 08:25:00 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 08:25:33 I have a pretty simple interpreter which can evaluate expressions like 1+5. now I want to extend it to be able to evaluate complex expressions like 1+2*3-4 which regards to precedence. how should I go for it? 08:27:36 phao [~phao@189.107.130.230] has joined #scheme 08:29:26 z0d: write an unambiguous parser for arithmetic expressions. 08:30:19 And then, you can should be able to use the same evaluator you wrote before (if it's already able to compute "((1+(2*3))-4)"). 08:30:48 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 08:31:21 it's not yet able to do it 08:31:41 should I build up a binary tree with the expressons? 08:33:57 pavelludiq [~quassel@83.222.167.92] has joined #scheme 08:36:40 -!- hypercube32 [~hypercube@158.102.207.68.cfl.res.rr.com] has quit [Quit: Leaving] 08:38:55 or is a non-binary tree better? 08:40:47 I still don't see how eqlist? should evaluate to #f given '('(1)) and '('(1)) 08:41:08 since eqan? evaluates 1 and 1 as #t 08:41:33 (= 1 1) -> #t 08:43:49 this is what I'm talking about http://paste.lisp.org/display/117006#1 09:10:34 alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has joined #scheme 09:29:38 pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has joined #scheme 09:30:49 gravicappa [~gravicapp@ppp85-140-116-137.pppoe.mtu-net.ru] has joined #scheme 09:31:46 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 252 seconds] 09:37:20 alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has joined #scheme 09:38:06 fradgers- [~fradgers-@2.121.50.126] has joined #scheme 09:48:33 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 250 seconds] 09:52:22 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Quit: Leaving] 10:04:42 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 15:30:29 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #scheme 15:30:29 15:30:29 -!- names: ccl-logbot ski karme nilg MrFahrenheit kenjin2201 vu3rdd notsonerdysunny dfkjjkfd Riastradh mmc EbiDK barosl masm wbooze` homie` slom HG` DrDuck gravicappa schmir tupi araujo alaricsp fradgers- pdelgallego pavelludiq phao snorble_ alexsuraci xwl_ pygospa lusory timj_ chemuduguntar felipe leo2007 Jafet lisppaste daedra jimrees__ dsmith ray saccade pothos askhader preflex ToxicFrog stamourv offby1 acarrico pantsd_home duncanm bremner shardz DerGuteMoritz 15:30:29 -!- names: certainty zbigniew rrm3 dlouhy Zol klutometis chandra z0d franki^ jimster sid3k qebab elly Adrinael stepnem `micro cky Axioplase_ ment nasloc__ C-Keen futilius eno ecraven mornfall Zahl_ tizoc ineiros pjb spacebat inimino Crito Nshag kniu Dark-Star chandler tessier roderic danking sloyd aking cipher sjamaan joast Kovensky devinus Khisanth eli gabot Obfuscate gapeme foof Euthydemus nowhere_man pr Quadrescence jensn rdd zeroish dRbiG eldragon 15:30:29 -!- names: mario-goulart weinholt bzzbzz wgd elf ve pchrist adzuci rotty Hal9k bill_h cataska_ Leonidas leppie yosafbridge Adamant Caleb-- emma chrissbx rapacity githogori rmrfchik Intensity aoh gnomon rpg rudybot borism antoszka clog 15:34:01 femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #scheme 15:49:40 masm1 [~masm@bl19-153-22.dsl.telepac.pt] has joined #scheme 15:49:50 -!- masm [~masm@bl15-69-44.dsl.telepac.pt] has quit [Ping timeout: 276 seconds] 15:52:20 -!- pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has quit [Ping timeout: 260 seconds] 16:03:05 -!- kenjin2201 [~kenjin@61.99.46.4] has quit [Quit: Leaving] 16:09:48 ASau [~user@95-28-62-161.broadband.corbina.ru] has joined #scheme 16:11:56 -!- Caleb-- [thedude@bzq-79-179-36-197.red.bezeqint.net] has quit [Ping timeout: 276 seconds] 16:15:58 Caleb-- [~caleb@bzq-79-182-51-207.red.bezeqint.net] has joined #scheme 16:16:22 -!- karme [~user@static.180.75.40.188.clients.your-server.de] has quit [Remote host closed the connection] 16:25:16 -!- EbiDK [~ebi@3e6b7ac3.rev.stofanet.dk] has quit [Read error: Connection reset by peer] 16:26:20 -!- saccade [~saccade@209-6-54-113.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Quit: This computer has gone to sleep] 16:33:51 bgs100_ [~ian@h106.36.186.173.dynamic.ip.windstream.net] has joined #scheme 16:36:23 -!- bgs100_ [~ian@h106.36.186.173.dynamic.ip.windstream.net] has quit [Client Quit] 16:36:41 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 16:41:20 -!- pantsd_home [~pantsd_ho@174-21-229-253.tukw.qwest.net] has quit [Ping timeout: 245 seconds] 16:43:50 -!- notsonerdysunny [~chatzilla@59.92.195.153] has quit [Ping timeout: 264 seconds] 16:44:04 -!- slom [~sloma@port-87-234-239-162.static.qsc.de] has quit [Read error: Connection reset by peer] 16:45:08 aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has joined #scheme 16:52:11 MindVirus [~mindvirus@unaffiliated/mindvirus] has joined #scheme 16:54:45 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Quit: Leaving] 17:00:05 pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has joined #scheme 17:10:19 -!- leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has quit [Ping timeout: 240 seconds] 17:13:17 -!- phao [~phao@189.107.130.230] has quit [Ping timeout: 255 seconds] 17:18:12 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 17:20:43 drdo [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 17:20:59 alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 17:24:37 -!- gravicappa [~gravicapp@ppp85-140-116-137.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 17:28:09 gravicappa [~gravicapp@ppp85-140-67-38.pppoe.mtu-net.ru] has joined #scheme 17:28:57 jao [~user@7.Red-79-152-126.dynamicIP.rima-tde.net] has joined #scheme 17:34:53 phao [~phao@189.107.137.239] has joined #scheme 17:42:40 -!- alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci_] 17:50:37 -!- alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Ping timeout: 252 seconds] 17:51:19 -!- Euthydemus [~euthydemu@vaxjo3.23.cust.blixtvik.net] has quit [Quit: leaving] 17:51:30 alexsuraci [~alex@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 17:52:55 Euthydemus [~euthydemu@vaxjo3.23.cust.blixtvik.net] has joined #scheme 18:10:33 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 18:15:30 saccade [~saccade@c-24-61-174-110.hsd1.ma.comcast.net] has joined #scheme 18:16:36 -!- alaricsp [~alaric@geniedb.hotdesktop.biz] has quit [Ping timeout: 240 seconds] 18:20:27 -!- dfkjjkfd [~paulh@145.120.22.32] has quit [Quit: Lost terminal] 18:21:04 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 18:26:22 -!- DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has quit [Ping timeout: 265 seconds] 18:27:42 leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has joined #scheme 18:28:35 -!- vu3rdd [~vu3rdd@122.167.71.144] has quit [Remote host closed the connection] 18:30:14 copumpkin [~pumpkin@user-142hbak.cable.mindspring.com] has joined #scheme 18:30:14 -!- copumpkin [~pumpkin@user-142hbak.cable.mindspring.com] has quit [Changing host] 18:30:14 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 18:41:42 -!- schmir [~schmir@mail.brainbot.com] has quit [Remote host closed the connection] 18:41:55 -!- phao [~phao@189.107.137.239] has quit [Quit: Leaving] 18:42:29 schmir [~schmir@mail.brainbot.com] has joined #scheme 18:43:46 z0d: If you haven't already read into "shunting-yard algorithm", you sohuld. 18:44:04 It's a method to parse infix expressions with proper precedence. 18:44:39 -!- schmir [~schmir@mail.brainbot.com] has quit [Remote host closed the connection] 19:12:34 -!- wgd [~will@76-205-0-91.lightspeed.stlsmo.sbcglobal.net] has quit [Ping timeout: 252 seconds] 19:13:34 wgd [~will@76-205-0-91.lightspeed.stlsmo.sbcglobal.net] has joined #scheme 19:14:13 -!- leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has quit [Ping timeout: 252 seconds] 19:15:46 kenjin2201 [~kenjin@61.99.46.4] has joined #scheme 19:15:52 -!- kenjin2201 [~kenjin@61.99.46.4] has quit [Remote host closed the connection] 19:17:10 -!- gravicappa [~gravicapp@ppp85-140-67-38.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 19:19:40 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 19:24:04 DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has joined #scheme 19:31:10 kar8nga [~kar8nga@m-206.vc-graz.ac.at] has joined #scheme 19:41:06 -!- saccade [~saccade@c-24-61-174-110.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 19:59:30 -!- ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 245 seconds] 20:00:38 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 264 seconds] 20:06:11 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Read error: Connection reset by peer] 20:12:57 -!- MindVirus [~mindvirus@unaffiliated/mindvirus] has quit [Ping timeout: 240 seconds] 20:14:06 gravicappa [~gravicapp@80.90.116.82] has joined #scheme 20:22:17 -!- pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has quit [Ping timeout: 240 seconds] 20:22:50 -!- DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has quit [Ping timeout: 245 seconds] 20:27:00 alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 20:29:39 -!- wbooze` [~user@xdsl-78-34-107-139.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20:29:48 -!- homie` [~user@xdsl-78-34-107-139.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20:36:16 -!- MrFahrenheit [~RageOfTho@users-55-71.vinet.ba] has quit [Read error: Connection reset by peer] 20:36:31 MrFahrenheit [~RageOfTho@users-55-71.vinet.ba] has joined #scheme 20:36:50 -!- dsmith [~dsmith@cpe-184-56-129-232.neo.res.rr.com] has quit [Ping timeout: 255 seconds] 20:40:03 -!- nilg [~user@85.239.138.109] has quit [Remote host closed the connection] 20:44:11 -!- alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci_] 20:44:51 alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has joined #scheme 20:45:45 fantazo [~fantazo@178-191-165-234.adsl.highway.telekom.at] has joined #scheme 20:49:12 What is generally considered elegant when implementing an iteration over a string which generates a result string, which is of variable size ( not the same size as the input string ) an example of what I mean: (funky-str "a1 b2") ->"A_B" 20:51:27 homie [~user@xdsl-78-34-107-139.netcologne.de] has joined #scheme 20:51:44 for that I do at the moment a (map (lambda (x) (add-to-result-list-if-it-meets-criteria x)) (string->list input-str)) (list->string result-list) 20:51:54 which feels kinda un-elegant. 20:54:50 -!- alexsuraci_ [~alexsurac@pool-71-188-133-67.aubnin.fios.verizon.net] has quit [Quit: alexsuraci_] 21:09:59 leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has joined #scheme 21:13:26 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 21:14:40 -!- leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has quit [Ping timeout: 252 seconds] 21:22:52 Euthydemus` [~euthydemu@vaxjo3.23.cust.blixtvik.net] has joined #scheme 21:22:52 -!- rudybot [~luser@2001:470:1:41:a800:ff:fe3e:cde7] has quit [Read error: Operation timed out] 21:22:52 rudybot [~luser@2001:470:1:41:a800:ff:fe3e:cde7] has joined #scheme 21:23:45 -!- Euthydemus [~euthydemu@vaxjo3.23.cust.blixtvik.net] has quit [Read error: Operation timed out] 21:26:22 choas [~lars@p578F6945.dip.t-dialin.net] has joined #scheme 21:33:32 leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has joined #scheme 21:39:55 -!- fantazo [~fantazo@178-191-165-234.adsl.highway.telekom.at] has quit [Remote host closed the connection] 21:44:10 wbooze [~user@xdsl-78-34-107-139.netcologne.de] has joined #scheme 21:48:12 danking pasted "Typed Structure Dispatch" at http://paste.lisp.org/display/117024 21:49:57 danking, why not just call that macro 't' ? 21:50:56 Ok, so. This is all in Racket. I have these data structures which I find myself constantly writing dispatch/match/case expressions for, so I abstracted over it with a bit of `define-syntax' and a generic dispatch function. Now, the reason I come to you is that if this was written in Typed Racket, I wonder if there's a better way to do this dispatch. You'll note that I use two procedures, one for things that are typed as Ids and one for things that 21:51:49 your message stopped at "one for things that" 21:51:51 jonrafkind: Instead of match-tea? No reason really, I usually write `match' statements and this was a match with some added functionality specific to my teascript structures 21:51:59 no instead of `tstruct' 21:52:07 You'll note that I use two procedures, one for things that are typed as Ids and one for things that are typed as Exps. 21:52:11 its already an unreadable word, so might as well go all the way 21:53:27 jonrafkind: Oh, I didn't think much about that one as it's only used there. I think `tstruct' is still better than `t', at least it still hints that they're structs. 21:53:57 *jonrafkind* will never understand such logic 21:55:57 -!- ASau [~user@95-28-62-161.broadband.corbina.ru] has quit [Ping timeout: 240 seconds] 21:56:22 anyway im not sure that typed racket would help you here 21:56:31 you still have to use some predicate to determine what the type of the object is 21:57:03 if you used some super structure for the tea objects then you could probably leave some predicates off 21:57:16 actually im not sure if typed racket is that smart yet 22:01:17 That's too bad. 22:01:47 Not that it's really a big deal to write the dispatcher once anyway. I have an inkling that writing it out is probably defining more semantics than Typed Racket could infer from just types 22:04:39 -!- leo2007 [~leo@cpc1-cmbg13-0-0-cust596.5-4.cable.virginmedia.com] has quit [Remote host closed the connection] 22:09:37 -!- gravicappa [~gravicapp@80.90.116.82] has quit [Remote host closed the connection] 22:17:20 pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has joined #scheme 22:28:22 -!- aisa [~aisa@c-68-35-167-179.hsd1.nm.comcast.net] has quit [Quit: aisa] 22:41:07 -!- fradgers- [~fradgers-@2.121.50.126] has left #scheme 22:44:08 -!- kar8nga [~kar8nga@m-206.vc-graz.ac.at] has quit [Remote host closed the connection] 22:46:44 schmir [~schmir@p54A90B59.dip0.t-ipconnect.de] has joined #scheme 22:51:00 alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has joined #scheme 22:51:04 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has quit [Remote host closed the connection] 22:59:01 Trying to run rudybot on some channel. It exits immediately as soon as something is written to the channel. 22:59:12 Logging this: 22:59:13 2010-11-25T23:58:20+0100 <= ":antoszka!~antoszka@unaffiliated/antoszka PRIVMSG #inflancka :foo" 22:59:16 procedure application: expected procedure, given: #(struct:corpus # #); arguments were: put "foo" 22:59:22 Any hints? 22:59:38 drdo [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 23:04:36 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 240 seconds] 23:06:50 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Read error: Operation timed out] 23:07:02 antoszka [~antoszka@unaffiliated/antoszka] has joined #scheme 23:14:21 *Caleb--* says hi to the #scheme gang 23:16:04 Hmm. I've never been cool enough to be in a gang before... 23:21:04 gravicappa [~gravicapp@ppp85-140-67-38.pppoe.mtu-net.ru] has joined #scheme 23:21:17 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 23:21:23 -!- schmir [~schmir@p54A90B59.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 23:21:38 this word cool. I do not think it means what you think it means. 23:23:20 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 265 seconds] 23:23:36 gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 23:24:31 -!- HG` [~HG@xdsl-188-118-130-54.dip.osnanet.de] has quit [Quit: Leaving.] 23:26:51 saccade [~saccade@c-24-61-174-110.hsd1.ma.comcast.net] has joined #scheme 23:34:48 -!- choas [~lars@p578F6945.dip.t-dialin.net] has quit [Quit: leaving] 23:37:26 -!- pavelludiq [~quassel@83.222.167.92] has quit [Remote host closed the connection] 23:46:19 pnkfelix [~Adium@c-24-147-116-20.hsd1.ct.comcast.net] has joined #scheme 23:53:37 -!- alaricsp [~alaric@mukhadvaram.gurukuli.co.uk] has quit [Ping timeout: 252 seconds] 23:53:49 -!- pnkfelix [~Adium@c-24-147-116-20.hsd1.ct.comcast.net] has quit [Quit: Leaving.] 23:55:44 -!- gravicappa [~gravicapp@ppp85-140-67-38.pppoe.mtu-net.ru] has quit [Ping timeout: 255 seconds]