05:21:34 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #scheme 05:21:34 05:21:34 -!- names: ccl-logbot kniu MichaelRaskin schmir Quadrescence vu3rdd jonrafkind timj_ adu copumpkin jcowan kilimanjaro dnolen Riastradh borism wbooze homie mmc Jafet wlen jao samth minion pothos EbiDK Axsuul leppie firecrow8 TheRealPygo stamourv Dark-Star antoszka gavv\w Caleb-- drdo Nshag pchrist alaricsp gnomon cataska Crito acarrico ski snorble museun1 rudybot alexsuraci inimino lusory Euthydemus necroforest pr zeroish rmrfchik nowhere_man gabot Kovensky spacebat 05:21:34 -!- names: langmartin Leonidas pjb ineiros rdd Hal9k bzzbzz dnm tizoc tonyg saccade Zahl_ ve felipe mornfall danking roderic Intensity ecraven eno futilius C-Keen cipher aoh specbot offby1 yosafbridge sloyd_ jensn wgd lisppaste metasyntax joast nasloc__ eldragon askhader ment preflex Khisanth mario-goulart elf Axioplase_ cky `micro stepnem Adrinael elly qebab sid3k eli sjamaan jimster jimrees_ fda314925 chandler ray rapacity franki^ clog weinholt ToxicFrog z0d 05:21:34 -!- names: tessier chandra foof klutometis duncanm rotty adzuci bremner Obfuscate Zol dlouhy rrm3 zbigniew certainty DerGuteMoritz shardz 05:22:08 offby1` [~user@q-static-138-125.avvanta.com] has joined #scheme 05:22:44 -!- Dark-Star [~michael@HSI-KBW-095-208-117-017.hsi5.kabel-badenwuerttemberg.de] has quit [Ping timeout: 276 seconds] 05:23:03 -!- Riastradh [debian-tor@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 05:26:38 -!- offby1 [~user@pdpc/supporter/monthlybyte/offby1] has quit [Ping timeout: 276 seconds] 05:26:49 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 05:28:54 Dark-Star [~michael@HSI-KBW-095-208-117-017.hsi5.kabel-badenwuerttemberg.de] has joined #scheme 05:30:53 -!- copumpkin is now known as opumpkin 05:31:45 -!- jcowan [~John@cpe-98-14-172-204.nyc.res.rr.com] has quit [Quit: Leaving] 05:31:48 -!- dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has quit [Ping timeout: 245 seconds] 05:41:11 nataraj [~nataraj@122.165.223.135] has joined #scheme 05:41:19 Hi 05:43:15 Euthydemus` [~euthydemu@vaxjo3.23.cust.blixtvik.net] has joined #scheme 05:43:59 dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has joined #scheme 05:44:09 -!- dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has quit [Read error: Connection reset by peer] 05:44:24 offby1`` [~user@q-static-138-125.avvanta.com] has joined #scheme 05:45:45 -!- Euthydemus [~euthydemu@vaxjo3.23.cust.blixtvik.net] has quit [Read error: Connection reset by peer] 05:45:50 dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has joined #scheme 05:46:17 -!- chandler [~n@opendarwin/developer/chandler] has quit [Ping timeout: 276 seconds] 05:46:18 -!- tessier [~treed@kernel-panic/copilotco] has quit [Ping timeout: 272 seconds] 05:46:23 chandler [~n@new.unmutual.info] has joined #scheme 05:46:48 tessier [~treed@mail.copilotco.com] has joined #scheme 05:46:49 -!- chandler is now known as Guest92500 05:47:53 -!- dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has quit [Client Quit] 05:48:50 -!- offby1` [~user@q-static-138-125.avvanta.com] has quit [Ping timeout: 272 seconds] 05:54:50 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 05:55:15 May i have an example of a lambda term? 05:56:22 nataraj: Huh? 05:56:40 Y = g.(x.g (x x)) (x.g (x x)), trying to decipher this 05:57:14 it's not a good way to start :) 05:57:49 xwl_ [~user@nat/nokia/x-nrvbhkjzrffmdbcx] has joined #scheme 05:58:02 Hahahahahaha. 05:58:03 opumpkin, may i know where to? 05:58:19 take (x. x) 05:58:20 dnm [~dnm@c-68-34-57-169.hsd1.va.comcast.net] has joined #scheme 05:58:24 that's pretty simple :) 06:04:19 currying?currying? what could it for? :( 06:04:57 it's a function that returns exactly what was passed to it 06:10:57 -!- opumpkin is now known as copumpkin 06:14:17 pavelludiq [~quassel@83.222.190.105] has joined #scheme 06:22:19 -!- cipher [~cipher@c-76-24-16-225.hsd1.ma.comcast.net] has quit [Read error: Operation timed out] 06:22:54 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 06:23:30 cipher [~cipher@c-76-24-16-225.hsd1.ma.comcast.net] has joined #scheme 06:24:49 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Ping timeout: 255 seconds] 06:25:41 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 06:31:59 -!- copumpkin [~pumpkin@c-66-31-44-245.hsd1.ma.comcast.net] has quit [Quit: Computer has gone to sleep.] 06:36:32 -!- EbiDK [~ebi@3e6b7ac3.rev.stofanet.dk] has quit [Remote host closed the connection] 06:41:20 -!- roderic [~roderic@zerowing.ccs.neu.edu] has quit [Ping timeout: 245 seconds] 06:41:45 -!- danking [~danking@zerowing.ccs.neu.edu] has quit [Ping timeout: 245 seconds] 06:42:15 roderic [~roderic@zerowing.ccs.neu.edu] has joined #scheme 06:42:26 danking [~danking@zerowing.ccs.neu.edu] has joined #scheme 06:44:26 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 264 seconds] 06:50:00 -!- mmc [~michal@cs27120227.pp.htv.fi] has quit [Ping timeout: 240 seconds] 06:59:30 gravicappa [~gravicapp@ppp85-140-116-56.pppoe.mtu-net.ru] has joined #scheme 07:01:58 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 07:04:30 adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has joined #scheme 07:08:51 -!- cataska [~cataska@210.64.6.233] has quit [Read error: Connection reset by peer] 07:08:58 cataska [~cataska@210.64.6.233] has joined #scheme 07:09:37 tthrone [~CoolIO@c-66-41-250-189.hsd1.mn.comcast.net] has joined #scheme 07:16:29 -!- saccade [~saccade@209-6-54-113.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Ping timeout: 276 seconds] 07:18:18 githogori [~githogori@host-82-135-20-190.customer.m-online.net] has joined #scheme 07:30:41 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 07:33:40 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 240 seconds] 07:39:28 I am using guile and it is having issue with me using an expression like 07:39:35 (= option 'v) 07:39:46 thoughts? 07:41:43 = takes only numbers. You can compare other objects for identity with EQV?. 07:41:48 rudybot: eval (eqv? 'x 'y) 07:41:49 Riastradh: your sandbox is ready 07:41:50 Riastradh: ; Value: #f 07:41:54 rudybot: eval (eqv? 'x 'x) 07:41:55 Riastradh: ; Value: #t 07:42:43 Riastradh, is that guile specific, because I used mit-scheme and I thought the (= worked fine in that language 07:43:36 This is the same in any Scheme system and has been so for twenty years. 07:44:01 MIT Scheme is no different; perhaps you're remembering something else. 07:45:13 specbot: r5rs = 07:45:13 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_254 07:45:14 http://tinyurl.com/5e69yv 07:45:19 specbot: r5rs eqv? 07:45:19 http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_210 07:45:20 http://tinyurl.com/3ekcm2 07:45:52 Riastradh, thank you 08:00:08 -!- ve [~a@vortis.xen.tardis.ed.ac.uk] has quit [Read error: Operation timed out] 08:01:08 Is there a way to accept 1 or 2 arguments in a lambda? 08:02:27 you can accept 1 or more, then error if you get more than two 08:02:40 but how would I do it so that I could have a (lambda (x y) ()) and call it with (1) or (1 2)? 08:02:44 also some scheme implementations might allow you to define optional arguments 08:02:50 (lambda (x . rest) ...) 08:03:06 rest will be a list (maybe empty), you can try to access the CAR to get your y 08:03:25 ecraven, thats currently what I do, just wondering if there was a better way 08:03:28 thank you 08:03:41 tthrone: only if your implementation supports optional arguments in some way 08:03:55 ve [~a@vortis.xen.tardis.ed.ac.uk] has joined #scheme 08:10:55 -!- Leonidas [~Leonidas@unaffiliated/leonidas] has quit [Ping timeout: 250 seconds] 08:12:51 If your implementation supports case-lambda, that's probably the most robust way to support functions that take 1 or 2 arguments. 08:21:07 -!- tthrone [~CoolIO@c-66-41-250-189.hsd1.mn.comcast.net] has quit [Ping timeout: 240 seconds] 08:36:40 -!- alaricsp [~alaric@relief.warhead.org.uk] has quit [Ping timeout: 272 seconds] 08:53:29 -!- minion [~minion@common-lisp.net] has quit [Ping timeout: 255 seconds] 08:53:29 -!- lisppaste [~lisppaste@common-lisp.net] has quit [Ping timeout: 255 seconds] 08:59:28 saccade [~saccade@209-6-54-113.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 09:04:15 mmc [~michal@cs27120227.pp.htv.fi] has joined #scheme 09:24:23 HG` [~HG@xdsl-92-252-83-201.dip.osnanet.de] has joined #scheme 09:27:01 -!- mmc [~michal@cs27120227.pp.htv.fi] has quit [Ping timeout: 240 seconds] 09:30:03 pdelgallego [~pdelgalle@1503031474.dhcp.dbnet.dk] has joined #scheme 09:32:01 -!- museun1 is now known as museun 09:32:05 -!- nataraj [~nataraj@122.165.223.135] has quit [Remote host closed the connection] 09:42:32 -!- HG` [~HG@xdsl-92-252-83-201.dip.osnanet.de] has quit [Quit: Leaving.] 09:51:50 -!- Caleb-- [~caleb@bzq-79-183-43-234.red.bezeqint.net] has quit [Ping timeout: 255 seconds] 09:58:56 -!- Euthydemus` [~euthydemu@vaxjo3.23.cust.blixtvik.net] has quit [Quit: leaving] 09:59:26 Euthydemus [~euthydemu@vaxjo3.23.cust.blixtvik.net] has joined #scheme 10:17:37 zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #scheme 10:18:05 -!- jao [~jao@83.32.170.229] has quit [Ping timeout: 255 seconds] 10:20:50 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 10:21:53 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Remote host closed the connection] 10:33:39 tupi [~david@186.205.37.15] has joined #scheme 10:47:41 skld [~skld@vpn.bangalore.geodesic.com] has joined #scheme 10:47:41 -!- skld [~skld@vpn.bangalore.geodesic.com] has quit [Changing host] 10:47:41 skld [~skld@unaffiliated/skld] has joined #scheme 10:48:12 -!- skld [~skld@unaffiliated/skld] has left #scheme 11:09:49 jao [~jao@74.Red-80-24-4.staticIP.rima-tde.net] has joined #scheme 11:11:55 -!- gravicappa [~gravicapp@ppp85-140-116-56.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 11:12:07 -!- pavelludiq [~quassel@83.222.190.105] has quit [Read error: Connection reset by peer] 11:22:33 ventonegro [~alex@200.150.183.81] has joined #scheme 11:26:44 fradgers- [~fradgers-@5e064cc1.bb.sky.com] has joined #scheme 11:51:19 emma [~em@unaffiliated/emma] has joined #scheme 11:58:20 alaricsp [~alaric@host86-159-57-200.range86-159.btcentralplus.com] has joined #scheme 12:02:37 -!- githogori [~githogori@host-82-135-20-190.customer.m-online.net] has quit [Remote host closed the connection] 12:08:05 drdo [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 12:08:05 -!- vu3rdd [~vu3rdd@nat/cisco/x-ohqmzuzmbyxcpxsf] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 12:09:25 mmc [~michal@cs27120227.pp.htv.fi] has joined #scheme 12:11:59 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 12:14:28 copumpkin [~pumpkin@c-66-31-44-245.hsd1.ma.comcast.net] has joined #scheme 12:24:25 drdo` [~user@2.208.54.77.rev.vodafone.pt] has joined #scheme 12:25:53 -!- drdo [~user@2.208.54.77.rev.vodafone.pt] has quit [Ping timeout: 255 seconds] 12:30:32 gravicappa [~gravicapp@80.90.116.82] has joined #scheme 12:30:45 MrFahrenheit [~RageOfTho@users-55-163.vinet.ba] has joined #scheme 12:33:59 Leonidas [~Leonidas@unaffiliated/leonidas] has joined #scheme 12:35:27 -!- ventonegro [~alex@200.150.183.81] has quit [Quit: ventonegro] 12:43:48 -!- copumpkin [~pumpkin@c-66-31-44-245.hsd1.ma.comcast.net] has quit [Remote host closed the connection] 12:52:19 wbooze` [~user@xdsl-78-34-235-239.netcologne.de] has joined #scheme 12:54:05 homie` [~user@xdsl-78-34-235-239.netcologne.de] has joined #scheme 12:54:25 -!- Guest92500 [~n@new.unmutual.info] has quit [Changing host] 12:54:25 Guest92500 [~n@opendarwin/developer/chandler] has joined #scheme 12:54:39 -!- Guest92500 is now known as chandler 12:54:44 -!- homie [~user@xdsl-78-34-204-231.netcologne.de] has quit [Ping timeout: 240 seconds] 12:54:45 -!- wbooze [~user@xdsl-78-34-204-231.netcologne.de] has quit [Ping timeout: 250 seconds] 13:19:13 thoolihan [~Tim@209.221.3.130] has joined #scheme 16:05:18 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #scheme 16:05:18 16:05:18 -!- names: ccl-logbot bgs100 mmc sts193 bweaver araujo aisa decaf copumpkin adu EbiDK_ wuj femtoo fradgers- tupi ASau AtnNn masm timj dfkjjkfd gravicappa xwl_ wingo HG` rdd Mohamdu cataska Checkie gnomon_ Jafet Intensity Adamant TheRealPygo jao saccade jensn Quadrescence pr pothos debiandebian Caleb-- nowhere_man preflex em antoszka rapacity yosafbridge ski rudybot askhader leppie Euthydemus pchrist foof gapeme alaricsp Obfuscate snorble gabot eli clog jimrees_ 16:05:18 -!- names: bill_h gavv\w lusory Khisanth devinus Kovensky felipe joast sjamaan wgd lisppaste metasyntax` cipher aking sloyd Leonidas ve danking roderic tessier chandler Dark-Star kniu borism stamourv Nshag Crito acarrico alexsuraci inimino rmrfchik spacebat pjb ineiros Hal9k bzzbzz Zol dlouhy rrm3 zbigniew certainty DerGuteMoritz shardz bremner adzuci rotty duncanm klutometis chandra z0d ToxicFrog weinholt franki^ ray jimster sid3k qebab elly Adrinael stepnem 16:05:18 -!- names: `micro cky Axioplase_ mario-goulart ment nasloc__ aoh C-Keen futilius eno ecraven mornfall Zahl_ tizoc 16:05:26 Like you could implement Python keywords in Scheme, if you so wanted 16:05:41 (Well, maybe no all of them, I'm not sure) 16:05:47 I'd like to see cky implement the other forty or so namespaces provided by CL 16:05:48 s/no/not/ 16:05:57 Jafet: NOOOO! *runs away screaming* 16:06:02 (Okay, it's really just ten or so) 16:07:01 -!- ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 16:08:09 Well, I'm off to go learn more Scheme. Thanks for the help. 16:08:22 vu3rdd [~vu3rdd@122.167.101.185] has joined #scheme 16:09:25 -!- sts193 [~sts193@c-76-104-226-126.hsd1.wa.comcast.net] has quit [Remote host closed the connection] 16:09:49 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 16:13:06 -!- decaf [~mehmet@88.252.51.99] has quit [Remote host closed the connection] 16:15:33 anyone know an email address for Riastradh? 16:15:46 his mumble.net site seems to have a pgp key but not where to send the mail 16:15:55 offby1 [~user@pdpc/supporter/monthlybyte/offby1] has joined #scheme 16:16:08 You'll most probably find the address inside the key. 16:16:32 not as far as I could see 16:17:54 *offby1* finds the key under the mat 16:19:21 copumpkin: Surely you could try the obvious, campbell@mumble.net. 16:19:44 cky: I figured I could guess that, but also thought someone in here might actually know 16:19:49 *nods* 16:19:57 but I'll try that, thanks 16:20:01 *cky* doesn't officially know, but that's indeed my first guess. 16:20:03 :-) 16:20:28 adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has joined #scheme 16:21:05 copumpkin: If you read http://mumble.net/~campbell/scheme/style.txt, that's indeed the correct email address. 16:21:15 oh, excellent! 16:21:16 thank you 16:21:19 copumpkin: My pleasure. 16:21:32 -!- 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:24:12 Azuvix [~james@174-27-34-218.bois.qwest.net] has joined #scheme 16:25:24 ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has joined #scheme 16:25:29 -!- Azuvix [~james@174-27-34-218.bois.qwest.net] has quit [Client Quit] 16:26:44 schmir [~schmir@p54A903DD.dip0.t-ipconnect.de] has joined #scheme 16:35:08 -!- schmir [~schmir@p54A903DD.dip0.t-ipconnect.de] has quit [Ping timeout: 245 seconds] 16:36:04 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit: adu] 10:13:09 ccl-logbot [~ccl-logbo@setf.clozure.com] has joined #scheme 10:13:09 10:13:09 -!- names: ccl-logbot fradgers- gravicappa pdelgallego pavelludiq MichaelRaskin phao HG` snorble_ alexsuraci xwl_ pygospa nilg wbooze homie vu3rdd lusory timj_ nego chemuduguntar felipe leo2007 Riastradh Jafet lisppaste daedra jimrees__ dsmith ray saccade pothos askhader preflex ToxicFrog stamourv offby1 acarrico pantsd_home copumpkin clog antoszka ski borism rudybot ASau rpg gnomon aoh Intensity rmrfchik githogori rapacity chrissbx emma Caleb-- Adamant 10:13:09 -!- names: yosafbridge leppie Leonidas cataska_ bill_h Hal9k rotty adzuci pchrist ve elf wgd bzzbzz weinholt mario-goulart eldragon dRbiG zeroish rdd jensn Quadrescence pr nowhere_man Euthydemus foof gapeme Obfuscate gabot eli Khisanth devinus Kovensky joast sjamaan cipher aking sloyd danking roderic tessier chandler Dark-Star kniu Nshag Crito inimino spacebat pjb ineiros tizoc Zahl_ mornfall ecraven eno futilius C-Keen nasloc__ ment Axioplase_ cky `micro stepnem 10:13:09 -!- names: Adrinael elly qebab sid3k jimster franki^ z0d chandra klutometis duncanm bremner Zol dlouhy rrm3 zbigniew certainty DerGuteMoritz shardz 10:16:11 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 10:21:19 -!- nilg [~user@85.239.138.109] has quit [Read error: Connection reset by peer] 10:22:48 alaricsp [~alaric@geniedb.hotdesktop.biz] has joined #scheme 10:23:10 kenjin2201 [~kenjin@61.99.46.4] has joined #scheme 10:58:00 araujo [~araujo@190.38.50.25] has joined #scheme 10:58:00 -!- araujo [~araujo@190.38.50.25] has quit [Changing host] 10:58:00 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 10:59:46 tupi [~david@186.205.37.15] has joined #scheme 11:04:12 schmir [~schmir@mail.brainbot.com] has joined #scheme 11:04:16 nilg [~user@85.239.138.109] has joined #scheme 11:09:54 any ideas as to why (eqlist? '('(1)) '('(1))) evals to #f ? http://paste.lisp.org/display117006#1 11:11:01 oh wait 11:11:07 I've just spotted an error 11:11:41 oh dear. 11:12:48 LINE 30 in the annotation 11:13:23 (atom? (car L) #f) should be ((atom? (car L)) #f) 11:13:34 that's why it always came out as #f! 11:14:32 oh that is annoying 11:17:59 waltermai [~user@c-68-54-64-79.hsd1.fl.comcast.net] has joined #scheme 11:20:03 chandler : has minion gone on a strike ? 11:20:17 daedra : are you sure by 11:20:18 (eqlist? '(1 '(1 2) '(3) '('(4 5) 6)) 11:20:25 '(1 '(1 2) '(3) '('(4 5) 6))) 11:20:33 you don't really meant to say 11:20:43 (eqlist? '(1 (1 2) (3) ((4 5) 6)) 11:20:54 '(1 (1 2) (3) ((4 5) 6))) 11:20:57 or 11:21:11 (eqlist? (list 1 (list 1 2) (list 3) (list (list 4 5) 6)) 11:21:22 (list 1 (list 1 2) (list 3) (list (list 4 5) 6))) 11:21:22 ? 11:22:07 (those two latter are the same, except that the last is guaranteed to make fresh lists which you can mutate, if you ever want to do that) 11:28:30 what I meant as input doesn't matter, since eqlist? wan't written correctly 11:29:05 Now when I try (eqlist? '('(1)) '('(1))) it evals to #t, as expected 11:30:00 and isn't '('(1)) == '((1))? 11:30:10 nope 11:30:29 rudybot: eval '('(1)) 11:30:30 ski: your scheme sandbox is ready 11:30:30 ski: ; Value: ((quote (1))) 11:30:33 rudybot: eval '((1)) 11:30:34 ski: ; Value: ((1)) 11:30:37 oh I see 11:30:46 rudybot: eval (list (list 1)) 11:30:47 ski: ; Value: ((1)) 11:31:05 well eqlist? still should eval the two to #t 11:31:12 which it does now :) 11:31:43 rudybot: eval (list (list '+ '2 '3) 'is (+ 2 3)) 11:31:44 ski: ; Value: ((+ 2 3) is 5) 11:31:52 rudybot: eval (list '(+ 2 3) 'is (+ 2 3)) 11:31:52 ski: ; Value: ((+ 2 3) is 5) 11:32:02 rudybot: eval `((+ 2 3) is ,(+ 2 3)) 11:32:03 ski: ; Value: ((+ 2 3) is 5) 11:32:13 -!- gravicappa [~gravicapp@ppp85-140-116-137.pppoe.mtu-net.ru] has quit [Ping timeout: 252 seconds] 11:32:23 wow what does backtick and comma do 11:32:33 quasi-quotation 11:33:09 slom [~sloma@port-87-234-239-162.static.qsc.de] has joined #scheme 11:33:41 backtick "`" is like the quote "'", except any time unquote "," (or unquote-splicing ",@") appears inside, that subexpression is evaluated 11:34:35 rudybot: eval `(0 1 ,(reverse (list 2 3)) 4 5) 11:34:35 ski: ; Value: (0 1 (3 2) 4 5) 11:34:39 rudybot: eval `(0 1 ,@(reverse (list 2 3)) 4 5) 11:34:39 ski: ; Value: (0 1 3 2 4 5) 11:35:48 oh i see 11:36:03 so quasiquote applies quote to all elements 11:36:13 apart from those marked by unquote 11:36:28 rudybot: eval `(0 1 `(2 ,3 `(,(+ 2 2) ,(reverse ,(+ 2 2)) 4) 5) 6 7) 11:36:28 ski: ; Value: (0 1 (quasiquote (2 (unquote 3) (quasiquote ((unquote (+ 2 2)) (unquote (reverse (unquote (+ 2 2)))) 4)) 5)) 6 7) 11:38:53 daedra : see the paper "Quasiquotation in Lisp" by Alan Bawden .. which can be found at 11:39:12 ok, thanks 11:40:06 *ski* is not sure what the difference between the two versions of it there are 11:42:34 gravicappa [~gravicapp@ppp85-140-116-137.pppoe.mtu-net.ru] has joined #scheme 11:50:22 -!- waltermai [~user@c-68-54-64-79.hsd1.fl.comcast.net] has quit [Ping timeout: 252 seconds] 11:54:35 tokam [~tokam@s1717.dyn.hrz.tu-darmstadt.de] has joined #scheme 12:10:05 -!- vu3rdd [~vu3rdd@nat/cisco/x-bpstquwtaivqdfaw] has quit [Remote host closed the connection] 12:23:21 DrDuck [~duck@66-168-225-64.static.mtgm.al.charter.com] has joined #scheme 12:24:26 -!- HG` [~HG@xdsl-92-252-93-10.dip.osnanet.de] has quit [Quit: Leaving.] 12:24:42 -!- kenjin2201 [~kenjin@61.99.46.4] has quit [Read error: Operation timed out] 12:27:14 any ideas on my interpreter question before? 12:33:49 -!- slom [~sloma@port-87-234-239-162.static.qsc.de] has quit [Ping timeout: 252 seconds] 12:42:43 HG` [~HG@xdsl-188-118-130-54.dip.osnanet.de] has joined #scheme 12:50:14 slom [~sloma@port-87-234-239-162.static.qsc.de] has joined #scheme 12:51:38 z0d : build an expression tree, for the kind of expressions you want to handle 12:51:49 .. possibly using for the parsing 12:58:58 homie` [~user@xdsl-78-34-107-139.netcologne.de] has joined #scheme 12:59:00 wbooze` [~user@xdsl-78-34-107-139.netcologne.de] has joined #scheme 13:00:24 masm [~masm@bl15-69-44.dsl.telepac.pt] has joined #scheme 13:01:16 -!- homie [~user@xdsl-78-34-109-81.netcologne.de] has quit [Ping timeout: 240 seconds] 13:01:26 -!- wbooze [~user@xdsl-78-34-109-81.netcologne.de] has quit [Ping timeout: 255 seconds] 13:10:08 ski: should I make it a binary tree or it doesn't matter? 13:18:58 barosl [~barosl@haje12.kaist.ac.kr] has joined #scheme 13:19:27 z0d : what do you mean by binary tree ? 13:19:43 there's several variants 13:20:14 you can have elements in the leaves, or in the nodes, or in both, e.g. 13:20:36 EbiDK [~ebi@3e6b7ac3.rev.stofanet.dk] has joined #scheme 13:20:42 -!- tokam [~tokam@s1717.dyn.hrz.tu-darmstadt.de] has quit [Quit: Leaving.] 13:21:02 (and they can be balanced (wrt some partial balance condition), or they could be heap-ordered .. though in this case, i don't think those are sensible) 13:21:30 in your case, i think it would make sense to have one kind of node for every operation that you want to have 13:27:22 thank you 13:28:14 I'd _love_ to do it in Scheme, but I'm helping a colleague with his Pascal studies 13:29:56 You don't need to actually build anything to evaluate code 13:29:58 mmc [~michal@cs27120227.pp.htv.fi] has joined #scheme 13:30:05 If you want to reify the code, that's a different matter 13:34:14 all I need is evaluation. with correct precedence and suppose for parentheses 13:35:14 guess if I eval. on-the-fly, I don't need a tree, just a recursive algorithm, right? 13:35:45 now that I think of it, it sounds very simple 13:35:57 If you flash-freeze that recursive algorithm, you get a tree. 13:36:47 I don't remember whether pascal has algebraic types, and this isn't the correct channel at all to ask someone that 13:38:01 that's why I didn't mention Pascal 13:38:16 I was interested in the theoretical background 13:38:38 -!- nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has quit [Read error: Connection reset by peer] 13:39:31 ski: regarding binary trees: a tree with only 2 leaves vs. having several leaves 13:39:35 but I guess you know that 13:42:13 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 245 seconds] 13:45:46 ie (* 2 (* 3 4)) vs. (* 2 3 4) 13:47:00 -!- ASau [~user@89-178-188-64.broadband.corbina.ru] has quit [Ping timeout: 245 seconds] 13:54:56 (Jafet : you can simulate them, with variant records, not that unsimilar to how you do it in C) 13:57:25 z0d : one option would be to fix an associativity, so that `2 * 3 * 4' would either parse into (something like) `(* 2 (* 3 4))', or alternatively into `(* (* 2 3) 4)' 13:57:50 another would be to parse associative operations like that into `(* 2 3 4)' 13:58:34 you still need to parse `2 - 3 - 4',`2 / 3 / 4',`2 ^ 3 ^ 4' into a "skew" tree, though 13:58:56 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 14:04:26 dfkjjkfd [~paulh@145.120.22.32] has joined #scheme 14:06:16 -!- ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 14:08:33 notsonerdysunny [~chatzilla@59.92.195.153] has joined #scheme 14:09:09 ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has joined #scheme 14:12:05 vu3rdd [~vu3rdd@122.167.71.144] has joined #scheme 14:19:21 kenjin2201 [~kenjin@61.99.46.4] has joined #scheme 14:26:02 -!- kenjin2201 [~kenjin@61.99.46.4] has quit [Ping timeout: 255 seconds] 14:33:06 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 14:34:13 kenjin2201 [~kenjin@61.99.46.4] has joined #scheme 14:36:22 MrFahrenheit [~RageOfTho@users-55-71.vinet.ba] has joined #scheme 14:37:05 -!- nilg [~user@85.239.138.109] has quit [Read error: Connection reset by peer] 14:38:27 nilg [~user@85.239.138.109] has joined #scheme 14:41:06 karme [~user@static.180.75.40.188.clients.your-server.de] has joined #scheme 15:26:46 ski_ [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has joined #scheme 15:28:33 -!- ski [~slj@c-2911e055.1149-1-64736c10.cust.bredbandsbolaget.se] has quit [Disconnected by services] 15:29:07 -!- ski_ is now known as ski