00:00:07 -!- tronador_ [~guille@190.66.191.25] has quit [Quit: tronador_] 00:02:21 masm [~masm@bl16-182-101.dsl.telepac.pt] has joined #scheme 00:09:15 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 264 seconds] 00:11:37 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 00:17:41 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 00:17:41 peddie [~peddie@XVM-107.MIT.EDU] has joined #scheme 00:19:15 nilg [~user@77.70.2.229] has joined #scheme 00:21:30 skeptical_p [~rononovsk@bzq-79-179-185-90.red.bezeqint.net] has joined #scheme 00:28:50 tronador_ [~guille@190.66.191.25] has joined #scheme 00:30:01 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 00:32:06 -!- alaricsp [~alaric@relief.warhead.org.uk] has quit [Ping timeout: 276 seconds] 00:34:20 -!- githogori [~githogori@61.sub-75-210-29.myvzw.com] has quit [Remote host closed the connection] 00:39:55 -!- samth is now known as samth_away 00:42:33 nowhere_man [pierre@AStrasbourg-551-1-69-115.w92-141.abo.wanadoo.fr] has joined #scheme 00:43:11 -!- kephas [pierre@AStrasbourg-551-1-83-170.w81-51.abo.wanadoo.fr] has quit [Ping timeout: 260 seconds] 00:51:20 -!- homie [~levgue@xdsl-78-35-174-192.netcologne.de] has quit [Read error: Operation timed out] 00:51:51 homie` [~levgue@xdsl-78-35-160-217.netcologne.de] has joined #scheme 00:59:31 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 260 seconds] 01:01:32 -!- kuatto [~deep@c-75-72-177-136.hsd1.mn.comcast.net] has quit [Ping timeout: 246 seconds] 01:09:11 -!- yosafbridge [~yosafbrid@li125-242.members.linode.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 01:12:22 yosafbridge [~yosafbrid@li125-242.members.linode.com] has joined #scheme 01:13:38 Hi, does anyone want to talk about the knapsack problem? I've got a solution here, which works fine (and runs in less than three seconds on my machine). But just for fun, I wanted to memoise it; the problem is that it stops getting the right answer when I do! 01:14:03 I guess it's because it's memoising non-optimal pieces of the solution, but I'm not sure how to fix it 01:14:07 Here's my code: http://paste.lisp.org/display/120338 01:15:42 That's the shoddily memoising version, if you remove all the references to hash tables it should get the right answer. :-P 01:16:14 fds: http://community.schemewiki.org/?memoization 01:17:12 Yes, but I don't think that the problem is really with how I'm memoising, but _what_ I'm memoising. 01:18:29 I thought about calculating whether the new value was better than the value previously stored in the table, but I quicky realised that destroys the whole purpose of memoising. ;-) 01:19:28 yeah, using a memo for any given function application should not change the computation. 01:19:48 but I am going to dinner rather than reading your code... surry. :) 01:19:58 No problem 01:20:33 I wouldn't even have thought of memoising this if the Wikipedia page hadn't mentioned it. So there must be a well-known way to memoise it. 01:21:02 "The important thing about this memoization, is that it should only be used with pure functions (i.e. referentially-transparent) -- functions that map every input to exactly one output, performing no side effects" 01:21:35 -!- aidalgol [aidan@2002:453d:f72::1337:3] has quit [Quit: ZNC - http://znc.sourceforge.net] 01:21:39 (best of luck) 01:21:42 -!- pdlogan [~patrick@75-175-5-194.ptld.qwest.net] has left #scheme 01:21:53 Yes, this is the confusion. Because the `index' in my code doesn't map to only one output. But there is one optimal output, which is the one I want to memoise. ;-) 01:22:12 *fds* continues to talk to himself 01:22:33 aidalgol [aidan@2002:453d:f72::1337:3] has joined #scheme 01:32:28 xwl_ [~user@nat/nokia/x-avwztotsilongmnt] has joined #scheme 01:45:21 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 01:51:35 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Ping timeout: 246 seconds] 01:51:52 gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has joined #scheme 01:55:41 -!- new2net [~new2net@unaffiliated/new2net] has quit [Ping timeout: 252 seconds] 01:56:10 -!- myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 01:57:37 nilg [~user@77.70.2.229] has joined #scheme 01:59:58 dsmith [~dsmith@cpe-184-56-129-232.neo.res.rr.com] has joined #scheme 02:01:13 fantazo_ [~fantazo@178-190-239-65.adsl.highway.telekom.at] has joined #scheme 02:01:47 -!- fantazo__ [~fantazo@178-191-171-229.adsl.highway.telekom.at] has quit [Read error: Operation timed out] 02:01:54 -!- ckrailo [~ckrailo@208.86.167.249] has quit [Quit: Computer has gone to sleep.] 02:02:38 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 02:04:11 -!- masm [~masm@bl16-182-101.dsl.telepac.pt] has quit [Ping timeout: 246 seconds] 02:05:14 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 02:13:42 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 02:21:32 by the way, do you guys fall in the "mutexes" or "mutices" plural-of-mutex-camp? 02:21:46 -!- homie` [~levgue@xdsl-78-35-160-217.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 02:23:29 -!- pygospa [~TheRealPy@kiel-5f768ea8.pool.mediaWays.net] has quit [Disconnected by services] 02:23:41 pygospa [~TheRealPy@kiel-5f76856d.pool.mediaWays.net] has joined #scheme 02:25:23 mutexen 02:26:33 foof: oh, nice! 02:27:12 mutices 02:27:21 That, or plural avoidance. 02:27:38 homie [~levgue@xdsl-78-35-160-217.netcologne.de] has joined #scheme 02:29:11 myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has joined #scheme 02:30:28 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: Leaving] 02:30:29 ckrailo [~ckrailo@utdpat242007.utdallas.edu] has joined #scheme 02:31:25 Riastradh: isn't that an etymological anachronism, though? 02:31:26 Or just speak in Japanese where there is no plural. 02:31:38 I was about to ask, isn't that a compound word? 02:31:48 like regex 02:31:49 Or just use other means to do concurrency 02:31:53 regices would be silly 02:31:58 rien: mutual exclusion? 02:32:02 right 02:32:10 so mutices would be wrong and pedantic 02:32:41 -en is used for many things in the programming world. emacsen, boxen, regexen 02:32:42 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 02:32:59 windows seven 02:33:10 *hem* 02:33:14 rien: So you're actually a group of ri? 02:33:32 huhu :) 02:33:40 Axioplase_: hilarious 02:33:51 -!- Axioplase_ is now known as Axioplase 02:34:21 There was once a debate about whether the correct plural of `shoe' was `shoes' or `shoon'. 02:34:25 `Regex'? No such beast. There are regexps, of course. That has a serious consonant cluster that keeps out the linguistic riffraff, too. 02:34:38 Proudfeet! 02:34:38 `Shoes' pretty much won though, in case you're wondering. 02:34:41 foof: maybe in the sense that ri is a specific instance of nothing. 02:36:15 i find this bizarre: `rien' (nothing) stems from latin `res' (thing): . 02:36:26 foof: :) 02:36:44 autantonym, anyone? 02:37:16 Ceci n'est rien. 02:37:18 Interesting. Imagine if `nothing' were in some way derived from the word `thing' with a negating prefix! 02:37:34 fds: indeed; but there's no negative prefix! 02:37:37 fds: was that a serious debate? wasn't the plural of cow kine? 02:37:47 But there's a suffix! 02:38:13 rien: Yes, I believe Jonathan Swift may even have been involved. 02:38:15 fds: just an accusative suffix (it derives more nearly from `rem', apparently). 02:38:30 klutometis: maybe because rien in latin could be expressed as "nulla res" but rien only stemmed from the last word in that phrase 02:38:47 rien: could be; and indeed `rien' means something in certain contexts. 02:38:53 rien: In fact, dictionary.com still has an entry for `shoon': http://dictionary.reference.com/browse/shoon 02:39:11 heh 02:39:35 klutometis: romance languages usually derive from the accusative 02:40:28 rien: is that so? bizarre 02:41:15 I think it's because in medieval latin the accusative was like the super case and it began to be used for everything and with all sorts of prepositions 02:51:16 -!- myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 03:13:31 vu3rdd [~vu3rdd@64.104.132.187] has joined #scheme 03:13:31 -!- vu3rdd [~vu3rdd@64.104.132.187] has quit [Changing host] 03:13:32 vu3rdd [~vu3rdd@fsf/member/vu3rdd] has joined #scheme 03:16:22 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 03:18:24 jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has joined #scheme 03:18:42 *jcowan* unvanishes 03:20:58 -!- MrFahrenheit [~RageOfTho@62.101.148.113] has quit [Quit: Leaving] 03:22:52 -!- hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has quit [Quit: Leaving.] 03:23:00 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 03:26:05 mumble 03:27:10 -!- jblz [~jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Quit: Leaving] 03:27:44 bharath_g [~bharath10@117.211.88.150] has joined #scheme 03:27:53 -!- lithpr [~user@cpe-204-210-208-155.neo.res.rr.com] has quit [Remote host closed the connection] 03:28:55 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 03:31:48 Tentative explanation about "rien" being "thing", meaning "nothing". I believe one used to say "je n'ai rien", as "I don't have a thing", which, by simplification since we often omit the negation, became "j'ai rien", which thus made "thing" have the meaning of "nothing" when used in other contexts from that, as it didn't seem to contractict the common (simplified) usage. 03:32:55 I thus believe that somehow complex grammar caused the meaning shift. 03:34:22 Axioplase++ 03:34:27 that's really interesting 03:36:58 for a similar situation, see how portuguese and spanish got to have "coisa/cosa" for "thing" from the latin "causa res" or something like that 03:37:41 Axioplase: interesting hypothesis, but doesn't one still say "je n'ai rien"? it seems like "j'ai rien" only comes up when there's an auxiliary verb (and thus in the perfect tense or with an infinitive): "j'ai rien a dire", "j'ai rien vu", etc. 03:38:15 i shouldn't say "only comes up:" that's too restrictive. 03:42:11 -!- ckrailo [~ckrailo@utdpat242007.utdallas.edu] has quit [Quit: Computer has gone to sleep.] 03:44:27 klutometis: indeed, one still says "je n'ai rien", but it seems that dropping the "n'" (or "ne") has been here for a while. "T'as quelque chose ?" (Do you have anything?) "Non, j'ai rien" (Nope. Nothin'). Thus, the shift could have been here for a long time because of popular use by uneducated people, and then, it would have made it's way into the language of all as its "incorrect" use spread. 03:47:30 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Quit: Leaving.] 03:47:46 je n'ai rien would be a double negative 03:48:39 night, fellows 03:50:20 rien: well, my guess is that initially, it wasn't, and now, that this word is an autoantonym. 03:50:35 *Axioplase* goes to lunch 03:51:13 saccade [~saccade@74-95-7-186-SFBA.hfc.comcastbusiness.net] has joined #scheme 03:54:34 Double negatives don't appear to exist in Romance languages. :-) 03:56:07 -!- tupi [~david@189.60.162.71] has quit [Quit: Leaving] 03:56:23 no hay negatives dobles in Español 03:57:12 Nope. No hay nada de negativos dobles. 03:57:35 thanks, I was trying for something like that. 03:58:14 Heh, it was probably wrong. My Spanish is still shockingly bad. :-) 04:03:18 rudybot: t8 en es Spanish doesn't have double negatives. 04:03:18 offby1: El español no tiene dobles negaciones. 04:03:22 *shrug* 04:04:25 rudybot: t8 en es There are no double negatives 04:04:26 fds: No hay dobles negaciones 04:04:32 Is what I was aiming for. 04:04:53 But, with double negation, obvioulsy. 04:05:43 s/obvioulsy/obviously/ 04:06:01 ckrailo [~ckrailo@pool-71-170-15-148.dllstx.fios.verizon.net] has joined #scheme 04:07:08 You want `no hay ninguno'. 04:08:02 (Accent marks left as an exercise in futility for the X11 luser^W^W^W^W^W^Wfor the reader.) 04:14:50 Yeah, probably. I always get nada/ninguno/nunca/nadie mixed up. 04:16:09 Although, accents are no problem here. Yay for Alt Gr; the key with the manliest name! 04:16:47 Damn lag, rhough. 04:17:46 could someone help me make this code... not suck? i feel like it is very not lispy. 04:17:49 http://codepad.org/cjviujrk 04:18:12 josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has joined #scheme 04:19:22 -!- peterhil` [~peterhil@a91-153-112-241.elisa-laajakaista.fi] has quit [Ping timeout: 250 seconds] 04:20:42 gaah 04:21:16 osoleve: first write a couple of unit tests 04:21:35 i.e., some sample values of stack, and the corresponding resulting values of group and counter 04:21:41 then quit using mutation! 04:21:45 *offby1* hits osoleve with a ruler 04:21:54 i want to but i can't think of how to :( 04:22:00 do the unit tests first. 04:22:06 mmk 04:22:11 back en moment 04:25:38 zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has joined #scheme 04:27:05 yeah, it doesn't do shit, captain 04:27:06 just hangs. 04:27:54 heh 04:27:58 oh... also, i never loaded the definition for function-token? 04:27:59 brb 04:28:02 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 04:28:29 nope, still hangs 04:29:23 *offby1* chants: unit test unit test unit test 04:30:46 i guess i don't understand what you mean by that :( 04:31:02 scheme is making me feel stupid. 04:31:03 haha 04:32:00 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has left #scheme 04:34:35 make up an example stack. 04:34:41 I assume it's just a list of symbols and other things. 04:34:50 i tried that, i couldn't even get the code to run 04:34:55 Now think what the result of your function, when given that stack, should be; and write down the result. 04:34:56 it just hangs the REPL 04:35:02 okay 04:35:07 forget about your code for a munte. 04:35:08 minute. 04:35:25 come up with a couple of different input-and-output sets. 04:35:28 Those are test cases! 04:35:39 mmk, working on it now 04:35:40 thanks 04:35:50 Now find a way to feed the stacks into your code, and examine the result, and check if the result is correct. 04:35:58 Some schemes have stuff built in to make that easy. 04:36:11 Racket, for example, has "rackunit", plus some other newer stuff with which I'm not familiar. 04:36:16 ("check-expect" or something) 04:36:40 in a simple case like this, once you get a couple of test cases written, then writing the code to actually pass the tests becomes really easy. 04:37:46 hahahaha i just found a glaring error 04:37:48 you're awesome 04:40:34 tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has joined #scheme 04:41:05 what'd I do? 04:41:44 nothing, you're just awesome 04:48:23 myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has joined #scheme 04:49:38 http://codepad.org/k4jq09OF 04:49:40 success! 04:49:48 i named the wrapper function goat. 04:51:16 `Goat' is a good name, I often use it myself. But. now, onto more important things; getting rid of `set!'! 04:51:41 that's what I really want help with, I couldn't figure out how to do it without mutating the lists 04:51:53 I REALLY want to do (set! stack (cdr stack)) 04:51:56 but won't. 04:52:16 Note that MAP doesn't guarantee any particular order of application of the procedure to elements of the list. 04:52:28 *offby1* nods gravely 04:52:29 ...oh. 04:52:34 osoleve: which Scheme are you using? 04:52:47 Guile 04:52:51 jcowan_ [~John@cpe-74-68-112-189.nyc.res.rr.com] has joined #scheme 04:53:14 You want to use FOR-EACH. 04:53:53 -!- jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has quit [Ping timeout: 240 seconds] 04:53:55 and maybe investigate foof-loop or whatever clever iterating thingy wingo has provided 04:53:55 mmk 04:55:23 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 246 seconds] 04:57:31 -!- jcowan_ [~John@cpe-74-68-112-189.nyc.res.rr.com] has quit [Ping timeout: 248 seconds] 05:02:02 osoleve: Do you know how iteration works in Scheme? If so, you'll know how you get by without _ever_ using set!. 05:02:20 i'm looking into it now, actually 05:02:28 *nods* 05:02:31 i was considering locally defining a recursive function to do the job 05:02:39 Yes. 05:03:00 is that... did i just stumble across some huge awesome secret? 05:03:11 If you call that "recursive" function in tail position only (i.e., the last "action" in a function), then you've just performed iteration. 05:03:43 neat. can i enroll in camp kill yourself now? 05:03:56 osoleve: No, because I have nothing to do with them. 05:04:00 dang. 05:04:04 Hehehehehe. 05:04:30 back in a minute, time to hack away at this (unless i fall asleep at my desk) 05:04:43 thanks for the pointers, guys. you people are much more friendly than the people in #lisp. 05:05:05 Hahahahahaha. 05:05:28 As I mentioned previously (maybe in another channel), Schemers just want to have fun. They usually don't care about being "right", whatever that means. 05:08:30 That should be my tagline. :-P 05:09:01 ysph [~user@adsl-89-38-168.mgm.bellsouth.net] has joined #scheme 05:09:03 (People not familiar with pop culture can read this: http://en.wikipedia.org/wiki/Girls_Just_Want_to_Have_Fun :-)) 05:09:31 Are you going to perform it on Youtube too? 05:09:40 Hehehehehehe. 05:09:50 :-) 05:16:20 -!- tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has quit [Ping timeout: 246 seconds] 05:19:40 okay, okay. i think i made a little headway, but i got stuck. 05:19:46 can i get a little direction? :D 05:19:52 http://codepad.org/xp5YbB2C 05:21:59 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 05:23:20 I'm not very good at the hash-scheme Socratic method, but I'll give it a go. For a start, why have you got a `when' and an `unless'? 05:24:06 -!- evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has quit [Quit: leaving] 05:24:16 Perl envy. 05:24:26 Perl was my very first language :3 05:24:40 And why have you got '\(), shouldn't it be just '()? 05:24:46 i don't see how to do it without the when 05:24:55 no, the character ( 05:25:10 er, symbol 05:25:11 Oh, I see. 05:25:28 But, you could do it with a `cond'. 05:25:30 Ignoring the fact that CL has had `when' and `unless' for decades - the authors were time travellers who thought the Perl of the future was cool. 05:25:52 true 05:25:59 *osoleve* changes that 05:26:43 jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has joined #scheme 05:26:45 Other than that, it looks quite good, I think. 05:27:02 I could be wrong though. :-) 05:27:18 And I haven't done anything as crude as actually running the code! 05:27:53 hmmm, i don't see quite how to output the result 05:27:55 "I have only proved this code correct; I have not tested it." --Don Knuth 05:28:01 (It had bugs.) 05:28:27 osoleve: Scheme automatically outputs!! 05:28:49 i know that, but.. hmm, how do i explain what i mean? 05:28:52 It's `expression-based' or some jazz. 05:28:55 nothing is being outputted. haha. 05:29:05 I think you've got too many parentheses 05:29:31 is... that a joke? 05:29:34 i'm really tired. 05:30:06 No, it's not a joke. It looks to me like you close the define on line 4 05:30:22 But, I don't think that's what you want. However, I'm rather tired too... 05:30:26 http://codepad.org/wDzHIJ3z 05:30:31 sorry, updated version 05:31:00 githogori [~githogori@101.sub-75-208-220.myvzw.com] has joined #scheme 05:32:25 Hmm. Do you want an `else'? 05:33:21 http://codepad.org/8Xj3WdqW 05:33:25 still nothing :( 05:33:27 -!- lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has quit [Remote host closed the connection] 05:34:22 nilg [~user@77.70.2.229] has joined #scheme 05:34:27 Argh, Emacs is being funny. 05:34:36 s/funny/sexy/ 05:35:52 also, just realized that this function is iterative, not recursive. does that matter? 05:37:29 is it recursive now? 05:37:31 http://codepad.org/sC4w1IIJ 05:37:58 Do you specifically want it to be recursive? 05:38:06 nope, just trying to learn 05:38:14 i started scheme today 05:38:33 *osoleve* started scheming today 05:38:36 Yes, then. The second one forms a recursive process and the first one doesn't. :-) 05:38:36 Ah. Well, realize that not everything that *looks* recursive actually *is* recursive, because of proper tail calling. 05:38:47 woooo 05:39:19 (define (loop) (display "x") (loop)), for example, is iterative, not recursive. 05:39:34 (Useless either way, to be sure, unless you want a whole lot of x's) 05:39:40 i do. 05:40:03 There's a whole lot of x'in going down. 05:40:21 http://codepad.org/or2A81kq 05:40:30 okay, why doesn't this output anything? :( 05:42:45 jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has joined #scheme 05:46:21 Hm, well, for one thing, it'll never get to the `(eq? stack '())' test 05:46:38 Because if the stack is empty it errors out before that, when you try and take its car 05:46:48 so it should be first 05:46:50 But, that isn't your problem, just something I noticed. :-P 05:46:54 Yeah 05:47:48 -!- saccade [~saccade@74-95-7-186-SFBA.hfc.comcastbusiness.net] has quit [Ping timeout: 252 seconds] 05:48:20 nowhereman [pierre@AStrasbourg-551-1-77-75.w81-51.abo.wanadoo.fr] has joined #scheme 05:48:20 -!- tronador_ [~guille@190.66.191.25] has quit [Quit: tronador_] 05:48:35 -!- nowhere_man [pierre@AStrasbourg-551-1-69-115.w92-141.abo.wanadoo.fr] has quit [Ping timeout: 246 seconds] 05:48:38 And, '\( doesn't seem work for me. Are you sure you don't want #\( ? 05:48:42 -!- muks [~muks@misha.banu.com] has quit [Quit: brb reboot] 05:48:49 saccade [~saccade@74-95-7-186-SFBA.hfc.comcastbusiness.net] has joined #scheme 05:49:12 Did you say that you were using Guile? Which version? 05:49:12 pretty sure, the input forthe function is in symbol form 05:49:39 1.8.8-1 05:51:44 muks [~muks@misha.banu.com] has joined #scheme 05:51:45 Well, your code just makes it hang for me. It's waiting for a ) to close the '\( 05:52:07 mmk, i'll switch to #\( and see what happens 05:54:33 is it okay to use string->list? 05:54:49 Yes, if you have to. 05:55:12 But, do you have to? 05:55:53 i... don't know 05:56:00 are there equivalents for car and cdr for strings? 05:56:03 *osoleve* searches 05:59:03 There are ways to decompose strings, but I'm not sure where you're going with that. Although, I have to admit I don't really understand what you're doing, heh. 05:59:30 i'm trying to translate my implementation of the Shunting-yard Algo from CL to Scheme 05:59:51 this part is getting all of the operators off of the stack when they're grouped by parens 06:00:55 I see. So, what do you actually want the function to return? A list of operators? 06:01:04 -!- jcowan [~John@cpe-74-68-112-189.nyc.res.rr.com] has quit [Quit: Leaving] 06:01:57 yes 06:02:16 to be appended to the existing output stack 06:02:24 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 06:03:42 Okay. Could you pastebin some examples of expected inputs and outputs? 06:04:17 Although, I'm worried that my Internet connection's going to die any minute now, I'll try my best to help you! 06:04:47 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 06:05:43 thanks so much 06:05:45 http://codepad.org/3J5tHQeM 06:09:04 Okay, two things. One, you can't do that `let' for the same reason as before. You're checking if it's the empty list after trying to take its car in the let 06:09:34 Also, your two example inputs appear to be missing a ) 06:10:08 nooo, the \( is the character (, escaped to be valid input 06:10:28 Oh, I see. Heh, sorry. You should use #\( for the character 06:10:44 -!- githogori [~githogori@101.sub-75-208-220.myvzw.com] has quit [Ping timeout: 250 seconds] 06:10:51 mmk, fixing the let 06:11:04 If you put in #\( then your function works for me 06:11:25 I see your expected output 06:11:41 Of course, you should fix the let, but that doesn't affect your example test cases 06:13:05 Gmind [~Nevermind@113.190.194.208] has joined #scheme 06:14:52 So, in case you're wondering, this is what works for me: http://codepad.org/iZV6OiNs 06:15:19 thanks so much for your help 06:16:00 It's my pleasure. 06:16:47 I'm hoping to be even more helpful next time. :-) 06:17:03 and now, for sleep 06:17:07 thanks again, you guys rock 06:17:12 Yeah, sounds like a plan 06:17:23 And #scheme is the best! 06:21:02 -!- saccade [~saccade@74-95-7-186-SFBA.hfc.comcastbusiness.net] has quit [Ping timeout: 276 seconds] 06:23:21 nixness [~dsc@dyn-86-36-42-96.wv.qatar.cmu.edu] has joined #scheme 06:24:19 -!- Gmind [~Nevermind@113.190.194.208] has quit [Read error: Connection reset by peer] 06:33:08 -!- zac314159 [~user@c-68-84-149-234.hsd1.nm.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 06:44:29 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 06:45:50 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 250 seconds] 06:54:41 -!- christopher__ [~christoph@c-98-201-58-105.hsd1.tx.comcast.net] has quit [Ping timeout: 246 seconds] 06:54:49 christopher__ [~christoph@c-98-201-58-105.hsd1.tx.comcast.net] has joined #scheme 06:56:32 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu] 06:57:29 -!- jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 07:31:04 peterhil` [~peterhil@a91-153-112-241.elisa-laajakaista.fi] has joined #scheme 07:31:52 -!- christopher__ [~christoph@c-98-201-58-105.hsd1.tx.comcast.net] has quit [Remote host closed the connection] 07:32:19 christopher__ [~christoph@c-98-201-58-105.hsd1.tx.comcast.net] has joined #scheme 07:34:49 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 07:44:58 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Quit: ccorn] 07:54:05 -!- vu3rdd [~vu3rdd@fsf/member/vu3rdd] has quit [Remote host closed the connection] 08:00:22 Moin moin! 08:29:19 -!- ysph [~user@adsl-89-38-168.mgm.bellsouth.net] has quit [Ping timeout: 255 seconds] 08:30:52 gravicappa [~gravicapp@ppp91-77-164-31.pppoe.mtu-net.ru] has joined #scheme 08:45:39 -!- amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has quit [Read error: Operation timed out] 08:55:19 -!- xwl_ [~user@nat/nokia/x-avwztotsilongmnt] has quit [Remote host closed the connection] 09:03:45 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 09:09:42 taylanuc [~taylanub@p4FD93ACD.dip.t-dialin.net] has joined #scheme 09:10:51 alaricsp [~alaric@relief.warhead.org.uk] has joined #scheme 09:13:24 -!- taylanub [~taylanub@p4FD9439C.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 09:14:09 Mango-chan [~derp@unaffiliated/mango-chan] has joined #scheme 09:14:23 why are closures so fucking awesome 09:16:45 they don't leave you hanging 09:17:21 you can build anything with them 09:17:22 ;_; 09:17:26 s-sugoi dess 09:21:05 -!- ckrailo [~ckrailo@pool-71-170-15-148.dllstx.fios.verizon.net] has quit [Quit: Computer has gone to sleep.] 09:28:38 kephas [pierre@AStrasbourg-551-1-72-116.w92-141.abo.wanadoo.fr] has joined #scheme 09:28:46 -!- nowhereman [pierre@AStrasbourg-551-1-77-75.w81-51.abo.wanadoo.fr] has quit [Ping timeout: 240 seconds] 09:33:23 Why express your astonishment in some kind of Japanese? 09:34:23 japanese are the most superior race on earth 09:35:18 Mango-chan: oh, no: weeaboo? 09:35:27 no i'm japanese 09:35:58 are they mutually exclusive? 09:36:06 yes 09:36:07 they are 09:40:30 I never heard "weeaboo". 09:40:44 EncyclopediaDramatica helped me learn something today. 09:41:35 nowhere_man [pierre@AStrasbourg-551-1-71-155.w92-141.abo.wanadoo.fr] has joined #scheme 09:41:41 Mango-chan: by the way, could you tell me why the washing machines of the superior race on earth don't wash with hotwater? 09:42:19 -!- kephas [pierre@AStrasbourg-551-1-72-116.w92-141.abo.wanadoo.fr] has quit [Ping timeout: 248 seconds] 09:42:30 Even my toilet seat is more technologically advanced than my washing machine By far 09:52:22 -!- taylanuc is now known as taylanub 09:56:53 -!- Axioplase is now known as Axioplase_ 10:01:18 fantazo__ [~fantazo@178-191-161-193.adsl.highway.telekom.at] has joined #scheme 10:04:43 -!- fantazo_ [~fantazo@178-190-239-65.adsl.highway.telekom.at] has quit [Ping timeout: 248 seconds] 10:05:34 Axioplase_, 10:05:37 http://blog.english.ctrip.com/wp-content/uploads/2010/11/japan-toilet.jpg 10:05:43 thier toilet > your toiler. 10:06:05 DT``: I don't have the rotating knob. 10:06:28 But basically, yes :) 10:24:41 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 246 seconds] 10:26:53 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 10:37:34 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 255 seconds] 10:39:20 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 10:42:19 -!- schmir [~schmir@mail.brainbot.com] has quit [Remote host closed the connection] 10:55:10 amoe [~amoe@cpc1-brig13-0-0-cust658.3-3.cable.virginmedia.com] has joined #scheme 10:58:17 Is there any way to emulate LOAD in R6RS? 11:03:34 schmir [~schmir@mail.brainbot.com] has joined #scheme 11:04:58 I don't know about r6rs, but I believe in r5rs something like: (define (load file) (call-with-input-file file (lambda (port) (let loop ((form (read port))) (if (eof-object? form) #t (begin (eval form (scheme-report-environment 5)) (loop (read port)))))))) ; could do. (I've doubts about the environment parameter of eval). 11:08:42 pjb: I thought so but I think that definitions will not propagate to the outside environment 11:08:59 Hum, if you do that, the env is "reset" at each call of eval 11:09:33 Yes. I'm afraid there's no r5rs standard way to get the toplevel environment. 11:09:52 It would work if eval returned (values result new-env) or something like that. 11:10:56 hmmm 11:11:00 That would be quite clean, btw. I wonder why it's not done 11:12:17 anyone have another strategy for writing stuff that has to dynamically load code in this way? 11:12:22 On the other hand, in Common Lisp, the equivalent function would work. 11:12:39 Er, with (scheme-report-environment 5) ? :) 11:13:06 amoe: check you particular scheme implementations (or the r6rs standard), there may be a way. Otherwise, I guess you will have to go meta-linguistic (implement your own scheme over scheme). 11:13:24 Axioplase_: particularly it has to merge definitions created across independent calls to EVAL 11:14:12 Check if your scheme implementation (or the r6rs standard) has way to create other environments, or get access to the toplevel environment. 11:14:24 amoe: hum maybe you have to rethink the whole design of your app 11:14:50 But then of course, Common Lisp already has a load function predefined. 11:14:51 Axioplase_: I am porting something that uses LOAD, it's a web framework that loads scripts on demand 11:14:55 And move the loading of scheme code into, not the original eval, but your own embedded interpreter of half common lisp :/ 11:15:28 amoe: or give up portability, and use an implementation whose eval can mutate the current environment 11:15:29 I'm afraid Greenspun's Tenth law applies to scheme too. 11:15:57 Ah, I forgot, in r5rs, there's (interaction-environment) (optional procedure). 11:16:18 So: (define (load file) (call-with-input-file file (lambda (port) (let loop ((form (read port))) (if (eof-object? form) #t (begin (eval form (interaction-environment)) (loop (read port)))))))) ; could work. 11:16:31 optionnaly. 11:17:24 pjb: I figure that it's meant for REPL use 11:18:00 Well, in the standard r5rs, there's not a lot of choice of environment. The only that might be modifiable I guess is (interaction-environment), if present. 11:18:29 But then again, a specific implementation or the r6rs standard, neither of which I know, may have additionnal environments accessible. 11:19:40 amoe: also, if what you LOAD is known in advance, but just loaded on demand, you may move the loaded code to the main app 11:20:12 Axioplase_: no, the path is only known at runtime... 11:20:32 If you load a completely unknown file with unknown contents, then, as I said, either give up portability or rethink the whole thing 11:20:51 By the way, what's loaded? data, or code too? 11:20:58 Code too 11:21:20 Axioplase_: If you were going to restructure how would you do it? 11:21:55 At the moment I am trying to avoid that but I might do it in the long term anyway 11:22:11 It's definitely necessary to be able to load arbitrary code at runtime though 11:22:19 I don't know, it depends on the code. Maybe limitate what can be loaded, and write a DSL in the app. 11:22:25 I might be able to get around the environment-splicing 11:23:15 It comes back to Greenspunning your app, unless you can restrain what you load to a nice DSL. 11:26:00 *Axioplase_* vanishes 11:31:48 kuribas [~user@dD57634AF.access.telenet.be] has joined #scheme 11:34:16 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 11:38:53 tupi [~david@189.60.162.71] has joined #scheme 11:46:24 damg [~damg@p54AD9A07.dip.t-dialin.net] has joined #scheme 11:46:46 -!- myu2 [~myu2@58x5x224x106.ap58.ftth.ucom.ne.jp] has quit [Remote host closed the connection] 11:49:36 rotty_web [8dc96d8c@gateway/web/freenode/ip.141.201.109.140] has joined #scheme 11:51:06 amoe: FWIW, R6RS has a more useful form of `eval', and a way to construct custom environments from existing libraries 11:56:51 rotty_web: ah nice! cheers 11:59:49 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Read error: Operation timed out] 12:00:42 hmm, works nicely 12:02:46 Now if only there was a nice standard way to tell a running interpreter to clear its cache of compiled libraries ;) 12:03:53 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 12:03:58 kill -9 works pretty well for that. 12:15:44 -!- schmir [~schmir@mail.brainbot.com] has quit [Quit: rcirc on GNU Emacs 24.0.50.1] 12:20:37 I'd love to see an OS where signal 9 maps to SIGCONT or SIGINFO or SIGUSR1 something fun like that. Just for the lulz. 12:22:08 SIGKILL is _WAY_ overused, and I think it should be mapped onto signal 4294967295 (or 2147483647; I don't mind). 12:22:13 cky: you only need to redefine your system's signal table and you are set 12:22:33 C-Keen: ...doesn't that require some kind of custom kernel build? 12:22:40 cky: yes! 12:23:51 Fun fun. :-) 12:24:12 tauntaun [~icarus@208.252.23.2] has joined #scheme 12:39:16 -!- drdo [~user@91.205.108.93.rev.vodafone.pt] has quit [Ping timeout: 264 seconds] 12:44:28 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 255 seconds] 12:46:43 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 12:48:34 nowhereman [pierre@AStrasbourg-551-1-50-208.w83-194.abo.wanadoo.fr] has joined #scheme 12:50:04 -!- nowhere_man [pierre@AStrasbourg-551-1-71-155.w92-141.abo.wanadoo.fr] has quit [Ping timeout: 264 seconds] 13:00:43 -!- skeptical_p [~rononovsk@bzq-79-179-185-90.red.bezeqint.net] has quit [Ping timeout: 248 seconds] 13:02:27 C-Keen, Isn't there only about 5 bits worth of signals? So 32 max? 13:06:02 -!- tauntaun [~icarus@208.252.23.2] has quit [Ping timeout: 240 seconds] 13:06:42 hkBst [~quassel@gentoo/developer/hkbst] has joined #scheme 13:08:27 we should have have arbitrary precision signals, then we can goedel encode any program to be run. 13:12:09 schmir [~schmir@mail.brainbot.com] has joined #scheme 13:12:20 dsmith: think so 13:17:34 tronador_ [~guille@190.66.191.25] has joined #scheme 13:18:35 rudybot: eval 42 13:18:35 amoe: your sandbox is ready 13:18:35 amoe: ; Value: 42 13:18:49 rudybot: eval (begin (define (x) 42) x) 13:18:49 amoe: ; Value: # 13:19:14 rudybot: eval (display (begin (define (x) 42) x)) 13:19:14 amoe: error: eval:1:16: define: not allowed in an expression context in: (define (x) 42) 13:19:39 rudybot: eval (display (let () (define (x) 42) x)) 13:19:39 amoe: ; stdout: "#" 13:19:43 rudybot, (+ 2 2) 13:19:43 DT``: your sandbox is ready 13:19:44 DT``: ; Value: 4 13:19:46 bremner: eh? 13:19:50 Teeko [~Teeko@162.Red-88-22-219.staticIP.rima-tde.net] has joined #scheme 13:20:20 what's the difference between (begin ...) and (let () ...) in that example? 13:20:27 hkBst: You wish me to explain the joke? 13:21:18 amoe, let creates a new lexical scope, begin does not. 13:21:45 DT``: OK. but how come the first (begin ...) worked and the second one didn't? 13:21:54 bremner: I guess I missed some pretext, which caused me to miss that you were joking. 13:22:23 amoe, that context expected an expression. 13:22:38 so it will reject the define. 13:24:34 and the 'toplevel' in the first 'begin' example expects either an expression or a definition? 13:24:58 Ah I see 13:25:46 the scheme standard says that any toplevel begin's body must be considered toplevel as well. 13:25:58 so definitions are allowed, there. 13:26:01 yeah, just got that 13:26:37 I find it kind of weird to use the same keyword for 2 constructs that seem quite semantically different 13:26:44 but makes sense now anyway. 13:28:43 myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has joined #scheme 13:28:46 it really helps when writing macros that need to define multiple things. 13:29:44 cheers DT`` 13:35:05 -!- gravicappa [~gravicapp@ppp91-77-164-31.pppoe.mtu-net.ru] has quit [Ping timeout: 246 seconds] 13:36:14 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 255 seconds] 13:37:34 dnolen [~davidnole@184.152.69.75] has joined #scheme 13:37:34 -!- dnolen [~davidnole@184.152.69.75] has quit [Excess Flood] 13:38:03 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 13:40:45 -!- homie [~levgue@xdsl-78-35-160-217.netcologne.de] has quit [Read error: Operation timed out] 13:41:11 homie` [~levgue@xdsl-84-44-211-221.netcologne.de] has joined #scheme 13:43:15 dnolen [~davidnole@184.152.69.75] has joined #scheme 13:55:09 -!- Euthydemus` [~euthydemu@vaxjo7.80.cust.blixtvik.net] has quit [Read error: Operation timed out] 13:56:00 -!- homie` [~levgue@xdsl-84-44-211-221.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 14:00:07 homie [~levgue@xdsl-84-44-211-221.netcologne.de] has joined #scheme 14:02:41 -!- tronador_ [~guille@190.66.191.25] has quit [Quit: tronador_] 14:05:54 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 276 seconds] 14:06:04 Euthydemus [~euthydemu@vaxjo7.80.cust.blixtvik.net] has joined #scheme 14:07:12 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 276 seconds] 14:10:44 _reid [~reid@pool-108-1-61-117.chi01.dsl-w.verizon.net] has joined #scheme 14:13:41 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 14:14:17 -!- kauwgom [~reid@static-173-53-193-121.chi01.dsl-w.verizon.net] has quit [Ping timeout: 246 seconds] 14:24:12 Benjohn [~benjohn@91.104.146.236] has joined #scheme 14:25:22 Hi, is this an okay place for questions about gambit scheme? 14:26:09 Benjohn: yes. There's also #gambit if you don't get good answers here. 14:26:22 Excellent, thank you. 14:27:16 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 14:28:37 I'm trying to get some basic information about how I go about getting libraries loaded in to use them. So, this page here (http://metasyntax.net/code/doc/lib/scheme/gambit.html) alludes to there being a "filter" function that I should be able to call from gambit scheme, but I have no idea how to load the library that it is in. I know there are "load" and "include" macros, but those don't seem to look anywhere other than in the folder I'm running gsi from. 14:28:48 (I'm on OS X, btw) 14:31:15 In general, there's a lovely Ruby book called "Pragmatic Ruby" and I'm wondering if there is a Scheme equivalent. The book gives you a great feel for the pure abstractions of the language, but does so by touring you through it's every day realities and how you actually do stuff with it. 14:31:42 I think I need that book ;-) 14:31:52 Benjohn: you probably need to load SRFI-1 to get `filter'. 14:33:03 Right  I picked up that filter was part of SRFI-1, in my searching. What I don't know is how to load anything, and what the "SRFI-1" library is likely to be called. 14:33:23 (or at least, I picked up that srfi-1 had a "filter" in it) 14:34:16 Maybe (import 'srfi-1)?  goes to try 14:34:33 *** ERROR IN (console)@23.2 -- Unbound variable: import 14:35:00 Benjohn, (import (std srfi/1)) 14:35:18 (this is what google says) 14:36:21 ? It is? I'm still getting *** ERROR IN (console)@24.2 -- Unbound variable: import  think I might need to load in the "import" function :-) 14:36:54 evhan [~evhan@76-250-39-229.lightspeed.mdsnwi.sbcglobal.net] has joined #scheme 14:37:16 You may need to have Black Hole installed first. 14:37:17 suggestion here "http://www.phildawes.net/blog/tag/scheme/" that I might need to do "(load "chjmodule")", but that leads to "*** ERROR IN (console)@25.1 -- No such file or directory" 14:37:26 Once I tried to find out how to do that in Gambit and the only thing I found was that finding that info it is amazingly difficult. 14:38:05 mario-goulart: IIRC SRFI 1 only comes as a Black Hole package, so one has to install BH first. 14:38:17 Black Hole is a packaging system, right? 14:38:21 (where BH is kind of like PLaneT, eggs, tec.) 14:38:22 Yep. 14:38:29 cky: and before that, one has to know how to install BH 14:38:35 Indeed. 14:38:45 Ah. 14:39:49 dfeuer [~dfeuer@pool-71-178-171-30.washdc.fios.verizon.net] has joined #scheme 14:39:49 -!- dfeuer [~dfeuer@pool-71-178-171-30.washdc.fios.verizon.net] has quit [Changing host] 14:39:49 dfeuer [~dfeuer@wikimedia/Dfeuer] has joined #scheme 14:40:57 -!- gnomon [~gnomon@CPE0022158a8221-CM000f9f776f96.cpe.net.cable.rogers.com] has quit [Quit: ...] 14:42:04 Do you all use some other scheme? I'm drawn to Gambit because I'm hoping to target iPhone in the end, but to learn scheme I'd be happy to try something else. 14:43:27 Benjohn: IIRC, outworlder on #chicken (offline now) played with chicken on iphone. 14:44:29 *nods* I came across Chicken but didn't find much about people getting working on iPhone. 14:44:49 Do you recall how it went for him? 14:45:41 davazp [~user@201.Red-88-6-204.staticIP.rima-tde.net] has joined #scheme 14:45:49 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 246 seconds] 14:48:04 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 14:48:09 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 14:49:37 tronador_ [~guille@190.145.89.146] has joined #scheme 14:49:47 Benjohn: I don't know much details. See http://www.reddit.com/r/programming/comments/fvrtr/chicken_portable_efficient_c_compiler_for_the/c1j053l for a related comment. 14:49:47 http://tinyurl.com/4oy9392 14:50:27 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Remote host closed the connection] 14:50:51 lovely, thanks. I'll look there, and I'm also on the Gambit channel asking the Q above. Thanks everyone. 14:51:26 You're welcome, Benjohn. 14:51:33 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 14:51:44 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Remote host closed the connection] 14:52:09 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 14:53:23 kephas [pierre@AStrasbourg-551-1-82-45.w81-51.abo.wanadoo.fr] has joined #scheme 14:54:19 -!- nowhereman [pierre@AStrasbourg-551-1-50-208.w83-194.abo.wanadoo.fr] has quit [Ping timeout: 248 seconds] 14:57:19 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 15:03:49 mao_ [mao@lost.my.eye.rs] has joined #scheme 15:09:26 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 260 seconds] 15:11:14 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 15:13:34 aisa [~aisa@173-10-243-253-Albuquerque.hfc.comcastbusiness.net] has joined #scheme 15:17:06 -!- mao_ [mao@lost.my.eye.rs] has quit [Quit: leaving] 15:20:57 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 15:22:55 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Remote host closed the connection] 15:24:12 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 15:26:35 Jafet1 [~Jafet@unaffiliated/jafet] has joined #scheme 15:27:48 -!- Jafet [~Jafet@unaffiliated/jafet] has quit [Ping timeout: 276 seconds] 15:28:58 -!- offby1 is now known as ultrabot 15:29:04 -!- myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 15:29:18 -!- ultrabot is now known as rudybot` 15:31:26 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 255 seconds] 15:32:20 -!- nixness [~dsc@dyn-86-36-42-96.wv.qatar.cmu.edu] has quit [Ping timeout: 255 seconds] 15:34:30 -!- Benjohn [~benjohn@91.104.146.236] has quit [Quit: Benjohn] 15:35:30 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 15:36:22 -!- jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has quit [Remote host closed the connection] 15:38:46 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 15:46:01 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 246 seconds] 15:49:24 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 15:51:14 -!- christopher__ [~christoph@c-98-201-58-105.hsd1.tx.comcast.net] has quit [Ping timeout: 246 seconds] 15:54:06 mao_ [mao@lost.my.eye.rs] has joined #scheme 15:58:55 XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has joined #scheme 16:04:07 -!- hkBst [~quassel@gentoo/developer/hkbst] has quit [Read error: Connection reset by peer] 16:04:57 corruptmemory [~jim@96.246.167.18] has joined #scheme 16:07:46 tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has joined #scheme 16:10:44 -!- corruptmemory [~jim@96.246.167.18] has quit [Quit: Leaving] 16:14:58 Benjohn [~benjohn@91.104.146.236] has joined #scheme 16:17:45 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 16:18:12 ckrailo [~ckrailo@208.86.167.249] has joined #scheme 16:19:21 -!- rotty_web [8dc96d8c@gateway/web/freenode/ip.141.201.109.140] has quit [Quit: Page closed] 16:20:03 -!- rudybot` is now known as offby1 16:21:54 Gmind [~Nevermind@113.190.227.168] has joined #scheme 16:23:42 -!- damg [~damg@p54AD9A07.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 16:23:47 christopher__ [~christoph@66.202.158.22] has joined #scheme 16:24:13 -!- christopher__ [~christoph@66.202.158.22] has quit [Client Quit] 16:24:32 christopher__ [~christoph@66.202.158.22] has joined #scheme 16:24:56 -!- bharath_g [~bharath10@117.211.88.150] has quit [Ping timeout: 252 seconds] 16:33:59 jblz [~Jake@cpe-204-210-208-155.neo.res.rr.com] has joined #scheme 16:34:52 Benjohn [~benjohn@91.104.146.236] has joined #scheme 16:38:09 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 16:40:55 alaricsp_ [~alaric@relief.warhead.org.uk] has joined #scheme 16:41:47 -!- alaricsp [~alaric@relief.warhead.org.uk] has quit [Ping timeout: 276 seconds] 16:42:53 jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has joined #scheme 16:43:34 pdlogan [~patrick@75-175-5-194.ptld.qwest.net] has joined #scheme 16:48:14 -!- tauntaun [~icarus@ool-44c7e46c.dyn.optonline.net] has quit [Quit: Ex-Chat] 16:59:22 -!- josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has quit [Remote host closed the connection] 16:59:52 josephholsten [~josephhol@216.16.128.242] has joined #scheme 17:01:37 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 17:08:35 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 17:09:51 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 276 seconds] 17:21:12 f8l [~f8l@87-205-239-131.adsl.inetia.pl] has joined #scheme 17:23:19 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Quit: ccorn] 17:24:00 Articate [~Moriya@pjp-78.uio.no] has joined #scheme 17:25:47 I'm trying to make an association list like '((a b) (c d) (c e)) 17:26:00 how do I add '(c e) to '((a b) (c d))? 17:26:26 -!- dfeuer [~dfeuer@wikimedia/Dfeuer] has quit [Remote host closed the connection] 17:27:08 Articate: (append '((a b) (c d)) '((c e))) 17:27:17 durr :) 17:27:18 thanks :) 17:27:28 Or, if you don't care about the order, (cons '(c e) '((a b) (c d))) 17:28:09 while trying to learn Scheme I've been introduced to one too many three-lettered term be successful at keeping track of them all yet :p 17:28:12 thanks, again :) 17:29:38 You're welcome. 17:29:40 -!- davazp [~user@201.Red-88-6-204.staticIP.rima-tde.net] has quit [Remote host closed the connection] 17:34:43 Benjohn [~benjohn@91.104.146.236] has joined #scheme 17:35:09 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 17:41:17 azaq23 [~derivecto@unaffiliated/azaq23] has joined #scheme 17:41:22 Benjohn [~benjohn@91.104.146.236] has joined #scheme 17:43:07 lbc [~quassel@1908ds1-aboes.0.fullrate.dk] has joined #scheme 17:43:07 -!- Benjohn [~benjohn@91.104.146.236] has quit [Read error: Connection reset by peer] 17:43:09 Benjohn_ [~benjohn@91.104.146.236] has joined #scheme 17:43:45 -!- Jafet1 is now known as Jafet 17:47:21 -!- Benjohn_ [~benjohn@91.104.146.236] has quit [Client Quit] 17:48:19 -!- pygospa [~TheRealPy@kiel-5f76856d.pool.mediaWays.net] has quit [Disconnected by services] 17:48:30 pygospa [~TheRealPy@kiel-5f76952f.pool.mediaWays.net] has joined #scheme 17:51:27 mmc1 [~michal@82-148-210-75.fiber.unet.nl] has joined #scheme 17:53:14 Benjohn [~benjohn@91.104.146.236] has joined #scheme 17:53:34 -!- tronador_ [~guille@190.145.89.146] has quit [Quit: tronador_] 17:54:41 -!- nome [~user@c-98-249-30-223.hsd1.va.comcast.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 17:55:42 nome [~user@c-98-249-30-223.hsd1.va.comcast.net] has joined #scheme 18:02:44 masm [~masm@bl16-168-147.dsl.telepac.pt] has joined #scheme 18:04:26 fantazo_ [~fantazo@178-191-171-182.adsl.highway.telekom.at] has joined #scheme 18:04:53 -!- fantazo__ [~fantazo@178-191-161-193.adsl.highway.telekom.at] has quit [Ping timeout: 252 seconds] 18:11:14 HG` [~HG@dslb-188-109-149-085.pools.arcor-ip.net] has joined #scheme 18:14:49 kuatto [~deep@75-163-50-17.roch.qwest.net] has joined #scheme 18:16:50 -!- Teeko [~Teeko@162.Red-88-22-219.staticIP.rima-tde.net] has quit [Ping timeout: 246 seconds] 18:20:46 -!- Benjohn [~benjohn@91.104.146.236] has quit [Quit: Benjohn] 18:21:57 Benjohn [~benjohn@91.104.146.236] has joined #scheme 18:21:57 corvaleur [~corvaleur@p54A03833.dip.t-dialin.net] has joined #scheme 18:22:51 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 18:27:37 Cowmoo [~Cowmoo@cambridge-vxty.basistech.com] has joined #scheme 18:27:37 -!- kuatto [~deep@75-163-50-17.roch.qwest.net] has quit [Quit: Leaving] 18:28:14 Benjohn [~benjohn@91.104.146.236] has joined #scheme 18:30:19 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 18:32:51 Benjohn [~benjohn@91.104.146.236] has joined #scheme 18:35:02 -!- josephholsten [~josephhol@216.16.128.242] has quit [Ping timeout: 246 seconds] 18:35:28 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 18:36:54 Benjohn [~benjohn@91.104.146.236] has joined #scheme 18:39:11 pchrist_ [~spirit@gentoo/developer/pchrist] has joined #scheme 18:39:11 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Read error: Operation timed out] 18:40:03 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 18:40:18 -!- Hal9k [~Lernaean@unaffiliated/kusanagi] has quit [] 18:40:19 foocraft [~dsc@89.211.254.177] has joined #scheme 18:42:05 Benjohn [~benjohn@91.104.146.236] has joined #scheme 18:43:46 Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has joined #scheme 18:47:00 josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has joined #scheme 18:47:45 -!- josephholsten [~josephhol@ip70-189-106-111.ok.ok.cox.net] has left #scheme 18:51:59 tronador_ [~guille@190.145.89.146] has joined #scheme 18:56:59 -!- Benjohn [~benjohn@91.104.146.236] has quit [Quit: Benjohn] 19:02:20 -!- Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has quit [Read error: Connection reset by peer] 19:02:23 Benjohn [~benjohn@91.104.146.236] has joined #scheme 19:04:01 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 19:04:35 Benjohn [~benjohn@91.104.146.236] has joined #scheme 19:05:46 -!- Benjohn [~benjohn@91.104.146.236] has quit [Client Quit] 19:07:59 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 19:14:43 -!- schmir [~schmir@mail.brainbot.com] has quit [Remote host closed the connection] 19:16:51 Hal9k [~Lernaean@unaffiliated/kusanagi] has joined #scheme 19:18:44 Benjohn [~benjohn@91.104.146.236] has joined #scheme 19:23:38 -!- mao_ [mao@lost.my.eye.rs] has left #scheme 19:24:13 skeptical_p [~rononovsk@bzq-79-178-185-60.red.bezeqint.net] has joined #scheme 19:38:56 rpg [~rpg@216.243.156.16.real-time.com] has joined #scheme 19:44:29 -!- foocraft [~dsc@89.211.254.177] has quit [Remote host closed the connection] 19:44:34 contempt [~foo@host130-136-dynamic.31-79-r.retail.telecomitalia.it] has joined #scheme 19:47:34 foocraft [~dsc@89.211.254.177] has joined #scheme 19:47:41 -!- jimrees_ [~jimrees@ita4fw1.itasoftware.com] has quit [Ping timeout: 276 seconds] 19:51:06 -!- Gmind [~Nevermind@113.190.227.168] has quit [Read error: Connection reset by peer] 19:51:08 -!- snorble [~snorble@s83-179-14-105.cust.tele2.se] has quit [Read error: Connection reset by peer] 19:53:38 -!- derrida [~derrida@unaffiliated/deleuze] has quit [Ping timeout: 240 seconds] 19:55:55 -!- alaricsp_ [~alaric@relief.warhead.org.uk] has quit [Ping timeout: 246 seconds] 19:56:13 jimrees_ [~jimrees@ita4fw1.itasoftware.com] has joined #scheme 19:56:57 derrida [~derrida@unaffiliated/deleuze] has joined #scheme 20:04:59 -!- jewel [~jewel@196-215-16-243.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 20:09:42 snorble [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 20:10:33 -!- XTL [~XTL@dsl-olubrasgw2-fe6af800-251.dhcp.inet.fi] has quit [Ping timeout: 276 seconds] 20:12:11 -!- askhader [~askhader@taurine.csclub.uwaterloo.ca] has quit [Ping timeout: 260 seconds] 20:14:11 ok - let's see if I can explain this 20:14:29 So far, you didn't explain anything. 20:14:43 So it seems you cannot. 20:15:01 I start off a list as '(j h) and I check if the next pair I drag up's first part is the same has h 20:15:26 askhader [~askhader@taurine.csclub.uwaterloo.ca] has joined #scheme 20:15:58 and when it is, I add that pair to the list, and I get, let's say '((h e) (j h)) 20:16:06 now I need to check that e against the next pair and so on 20:16:58 with ((eq? (caar S) (cadr p)) it works as long as there's only one pair in the list 20:17:29 and I haven't been successful in finding a way that the list behaves the same with one element as with more than one - or that is that cadr or any equivilent works 20:17:52 Lists don't behave, they're dead data. 20:18:03 You need to write a function. Only functions behave. 20:18:30 as I said, or rather that cadr or equivilent behaves the same 20:19:13 Do you have any specifications for a function? 20:20:02 a whole bunch, but I was hoping some clarification on lists and car and cdr would be all I needed 20:20:18 hmm - maybe I'm adding to the list wrong 20:20:24 how do i test if some param == '()? 20:20:40 car returns the first element of the list. cdr returns the rest of the list. 20:20:47 (define first car) (define rest cdr). 20:21:21 ckrailo: (equal? param '(quote ())) 20:21:30 like i want to pop off the first element of a list repeatedly until i get to the end... but i cant figure out the test to make sure i dont try to car or cdr a '() 20:21:37 -!- christopher__ [~christoph@66.202.158.22] has quit [Remote host closed the connection] 20:21:46 ckrailo: Now if you wanted to test if some param was (), you could use (eq? param '()) or (null? param) for short. 20:22:03 The last cdr of a proper list contain (), not '(). 20:22:33 so how do i know when to stop cdr'ing? 20:22:52 ckrailo: null? 20:22:57 rudybot: (null? '()) 20:22:58 cky: your racket sandbox is ready 20:22:58 cky: ; Value: #t 20:23:04 cool 20:23:08 When the current cons cell (pair) has a cdr which is equal to (). That can be tested with null? indeed. 20:24:28 cky: http://pastebin.com/VHYW3xut 20:24:36 can you take a looksie at that and see where i'm being silly? 20:24:37 -!- Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has quit [Remote host closed the connection] 20:24:58 so, now I've made my list be '((j h)), and when I add things to it changes to '((h e) (j h)) 20:24:59 The first error is not to use http://paste.lisp.org/new/scheme 20:25:08 ckrailo: What's the expected output? 20:25:16 why is it that when I say (cdr (car list)) I get (h) and not h? 20:25:22 cky: (C B A) 20:25:25 so the list reversed 20:25:55 rudybot: (require srfi/1) 20:25:55 cky: Done. 20:26:06 femtoo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 20:26:08 The second error is not to give a specification. As far as I can see, the function mirror works perfectly well: you give it some parameter, it gives out some result. 20:26:15 rudybot: (define (mirror l) (fold cons '() l)) 20:26:15 cky: Done. 20:26:21 rudybot: (mirror '(a b c)) 20:26:21 cky: ; Value: (c b a) 20:26:25 sorry pjb, i didnt pay attention to the topic 20:26:37 Articate: what is (car list)? 20:26:48 sorry, not list, I mean mylist 20:26:58 ckrailo: ^^--- Sorry, I decided I had to solve it the cheap way (though of course R5RS has REVERSE too, so). 20:27:02 rudybot: (reverse '(a b c)) 20:27:02 cky: ; Value: (c b a) 20:27:03 Articate: So what's (car mylist)? 20:27:07 :( 20:27:19 *ckrailo* hates prof for not letting him use the features of the language 20:27:28 ckrailo: reimplement them! 20:27:34 just like in java class... could we use the built-in linked list stuff? no... always had to do it ourselves. 20:27:37 pjb: (j h) 20:27:42 pjb: trying... failing... hence the question here. 20:27:48 Articate: correct. What does cdr return? 20:28:06 () 20:28:08 mmmm 20:28:14 ckrailo: what does mirror return when given a list? 20:28:29 Articate: no. I said it above: cdr returns the REST of the list. 20:28:39 Articate: what is the rest of (j h)? 20:28:41 pjb: the output i put commented at the bottom 20:28:50 pjb: it should return (C B A) 20:28:56 ckrailo: Yes, but what is it? 20:29:04 if you're talking about (cdr mylist) then that's nothing 20:29:17 if we're talking (cdr (car mylist)) then I'd think that's h 20:29:19 pjb: basically it should be just like reverse... but i'm messing something up. 20:29:20 but it's (H) 20:29:23 h* 20:29:27 Articate: The cdr of a list such as (j h) is the rest of that list, that is the list (h). 20:30:02 so I have to do (car (cdr (car mylist))) 20:30:10 Yes. 20:30:17 cadar? 20:30:22 Works too. 20:31:08 ckrailo: yes, it returns a reversed list. So when you call (cons (mirror (cdr stuff)) (car stuff)), it builds a list whose FIRST ELEMENT is the reversed rest of stuff, and whose rest is the first element of stuff. 20:31:52 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has left #scheme 20:33:27 pjb: so what should that line look like? 20:33:59 Well, that's the question, isn't it. You should think more about it. How do you reverse a list? 20:35:25 I'd reverse a list using iteration. 20:35:30 It seems harder to do using recursion. 20:35:57 It's quite easy using recursion. Hint: you may use more than one parameter. 20:36:28 well recursively it's just like... (call recursion with everything but the first) (grab the first)... or so i think. 20:36:59 something like this yes. 20:37:07 But when you grab the first, you should do something with it. 20:37:41 which is? (this isnt for an assignment, but part of me studying for a test while i'm at work.) 20:38:12 It could help if you got an image. Try to take three or four coins, and put them in a stack that will represent the input list. Like (cons 'a (cons 'b (cons 'c '()))) 20:38:26 Then try to reverse the order of your "list" of coins. 20:38:38 i wrote somethign that, when given (1 5) returns (2 3 4) just fine... so this is frustrating. heh. 20:38:46 hmmm 20:39:06 i could draw an image if that'd help you explain it to me 20:40:10 ckrailo: you see, the way lists are processed in lisp and scheme, they're quite like a stack. You can get easy access to the first element with car, or the elements "under" it with cdr, but you don't have access to the end of list (bottom of stack). 20:40:23 -!- pchrist_ [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 20:40:36 ckrailo: so reversing a list in lisp is like reversing a stack. You can do that very easily with a recursive function. 20:41:00 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 20:41:07 one sec, let me try something 20:41:15 But when you're in the middle of reversing a stack, you will have two stacks: part of the original, and part of the reversed one. 20:42:13 pjb: The approach you're describing is iterative, not recursive, unless I'm mistaken. 20:42:18 rudybot: (define (mirror l) (let loop ((l l) (r '())) (if (null? l) r (loop (cdr l) (cons (car l) r))))) 20:42:18 cky: Done. 20:42:22 ^^--- this is iterative. 20:42:30 cky: that's becasue there's no difference between iteration and recursion. 20:42:42 Meh. When I talk about recursion, I mean the non-tail variety. 20:42:54 I've long stopped seeing tail recursion as any kind of recursion. 20:43:38 Well, I guess you could always add a (display "popping") at the end to remove the tail call... 20:44:05 -!- hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has quit [Quit: Leaving.] 20:44:25 But I fail to see the point in trying to write a recursive function without a tail recursive call when a function with a tail recursive call can do the job. 20:44:31 -!- rasterbar [~rasterbar@unaffiliated/rasterbar] has quit [Remote host closed the connection] 20:45:30 it's possible to write it with only 1 variable, though... right? 20:45:49 Yes, you can always render things more complicated. 20:46:24 is it just a tweak to the line i already have or is it more complicated? 20:46:25 Turing Machines use just one marker to a tape. 20:46:44 It's more complicated. See cky above. 20:46:51 yeah i saw his version 20:47:12 i was hoping to do it differently, but if that's not possible then at least knowing this way should help 20:47:55 hmmm 20:48:15 Well, I'd do it with two functions, but it's essentially identical to cky: http://paste.lisp.org/display/120360 20:48:17 *ckrailo* formats cky's definition differently and tries to understand it 20:48:31 ckrailo: there are hundreds of ways to implement reverse. 20:48:41 rasterbar [~rasterbar@unaffiliated/rasterbar] has joined #scheme 20:49:05 ckrailo: see for other examples (in Common Lisp): http://www.informatimago.com/develop/lisp/l99/p05.lisp 20:49:32 -!- tupi [~david@189.60.162.71] has quit [Ping timeout: 250 seconds] 20:49:32 the push-pop thing makes sense though 20:49:53 ckrailo: this is exactly the same as cky's let loop. 20:50:42 (ie. given a honest compiler both sources should produce the same binary). 20:51:56 interesting 20:53:47 pjb: Smart arse (re (display "popping")). 20:54:00 Yes. 20:54:04 I'm like that. 20:54:07 :-P 20:54:52 dotted pairs drive me nuts 20:54:54 ckrailo: My version there is identical to the "fold" version I posted, just for the record. 20:58:04 -!- HG` [~HG@dslb-188-109-149-085.pools.arcor-ip.net] has quit [Quit: Leaving.] 20:59:21 cky and pjb: thanks for your help guys... i think i should do fine on the scheme part of the test now. :) the other parts are already pretty easy (infix/prefix/postfix and converting btwn them... and some stuff about variable storage) 20:59:39 ijp [~user@host109-154-192-7.range109-154.btcentralplus.com] has joined #scheme 20:59:40 ckrailo: and mind reading sicp! 21:00:29 Caleb-- [thedude@bzq-79-176-206-190.red.bezeqint.net] has joined #scheme 21:01:11 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 21:01:34 tupi [~david@189.60.162.71] has joined #scheme 21:02:58 pjb: sicp? 21:03:06 this?: http://mitpress.mit.edu/sicp/ 21:03:18 Yes. 21:03:53 femtooo [~femto@95-89-198-8-dynip.superkabel.de] has joined #scheme 21:04:01 actually that'll probably be very helpful... the class i'm taking is Organization of Programming Languages, which covers a bunch of stuff (lots i already know from using a number of languages) 21:04:34 Harrold [~quassel@dhcp-143-27.hpsc-students.carleton.ca] has joined #scheme 21:04:42 heck a lot of this class was just giving formal names to things i've noticed already :D pretty good feeling IMO 21:05:32 -!- _reid [~reid@pool-108-1-61-117.chi01.dsl-w.verizon.net] has quit [Ping timeout: 246 seconds] 21:06:35 -!- femtoo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Ping timeout: 246 seconds] 21:11:55 -!- Cowmoo [~Cowmoo@cambridge-vxty.basistech.com] has quit [Remote host closed the connection] 21:14:59 -!- samth_away is now known as samth 21:20:18 Hezy [~Hezy@81.199.251.200] has joined #scheme 21:21:00 -!- Hezy [~Hezy@81.199.251.200] has left #scheme 21:25:46 -!- ckrailo [~ckrailo@208.86.167.249] has quit [Quit: Computer has gone to sleep.] 21:26:01 arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has joined #scheme 21:33:28 in Quack, how do I change the working directory? 21:43:42 M-x cd ? 21:44:19 thaaank you 21:44:53 ccorn [~ccorn@j109182.upc-j.chello.nl] has joined #scheme 21:46:10 hmmm, i still can't load the file i want to 21:46:15 says it doesn't exist. 21:46:17 silly emacs. 21:46:53 jesusito [~user@18.pool85-49-239.dynamic.orange.es] has joined #scheme 21:47:05 In the inferior scheme? 21:47:33 mhm 21:47:36 It would have inherited the directory when launched, and would need to be changed from within 21:47:55 i relaunched it 21:48:01 that works too 21:48:47 hmm, now it's saying i have too many left parens, i think 21:48:53 the errors are not very informative. 21:49:21 M-x check-parens RET 21:50:00 nothing happened... 21:50:02 haha 21:50:10 Riastradh: Do you have time for a paredit question? How does paredit handle |? I notice that when I have | in my comments or in my strings, it causes paredit to sometimes think that there are misbalanced parentheses when there are not. 21:50:29 Riastradh: I also notice that combinations of |'s can fix this at points. I have not quite seen the full pattern to this yet. 21:50:38 I am using paredit 22. 21:51:49 osoleve, if nothing happens when you type `M-x check-parens RET', then your parentheses are probably OK. 21:52:09 arcfide, how does paredit handle |? Badly. 21:52:20 Riastradh: Ah, okay. 21:52:24 Riastradh: If I may ask, why? 21:52:27 There should be no problem with vertical bars in strings. 21:52:31 Or in comments. 21:52:41 However, Emacs in general handles #| ... |# and |foo| poorly. 21:52:44 I only have used them in strings, and that is what is causing the problem. 21:52:50 then what does "ERROR: In procedure scm_i_lreadparen: ERROR [...file...]:83:1: end of file ABORT: (read-error)" mean? 21:53:20 You can sort of avoid the problem by writing #|| ... ||# instead, and telling Emacs that | is a string delimiter like ". 21:54:12 arcfide, OK, that sounds like a bug. In that case, nagivate to the second page of paredit.el. Follow the instructions where it says `*** WARNING *** IMPORTANT *** DO NOT SUBMIT BUGS BEFORE READING ***'. 21:54:13 Riastradh: So, my problem is that I am using | in some TeX code embedded into strings of Scheme code, so I can't really do things like that. Right now I use %| to ``balance'' things out. 21:55:17 -!- kuribas [~user@dD57634AF.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:58:04 -!- rpg [~rpg@216.243.156.16.real-time.com] has quit [Quit: rpg] 21:59:45 sigue [contempt@2002:d447:1366::25] has joined #scheme 22:01:26 _reid [~reid@static-173-53-180-155.chi01.dsl-w.verizon.net] has joined #scheme 22:01:33 -!- fantazo_ [~fantazo@178-191-171-182.adsl.highway.telekom.at] has quit [Remote host closed the connection] 22:01:59 -!- femtooo [~femto@95-89-198-8-dynip.superkabel.de] has quit [Quit: Leaving] 22:04:12 -!- _reid [~reid@static-173-53-180-155.chi01.dsl-w.verizon.net] has quit [Read error: Connection reset by peer] 22:04:39 tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has joined #scheme 22:04:41 _reid [~reid@static-173-53-180-155.chi01.dsl-w.verizon.net] has joined #scheme 22:04:50 -!- zbigniew [~zb@3e8.org] has quit [Ping timeout: 240 seconds] 22:05:15 -!- taylanub [~taylanub@p4FD93ACD.dip.t-dialin.net] has quit [Quit: WeeChat 0.3.5-dev] 22:05:44 zbigniew [~zb@3e8.org] has joined #scheme 22:06:37 -!- tauntaun is now known as tauntaun_away 22:06:47 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 246 seconds] 22:07:17 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 22:12:44 -!- githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Ping timeout: 250 seconds] 22:13:24 -!- tauntaun_away [~icarus@ool-457c37c3.dyn.optonline.net] has quit [Quit: Ex-Chat] 22:16:08 arcfide, so do you have a simple case to reproduce the problem? 22:17:05 arcfide, oh, by the way, do I remember correctly that you use OpenBSD on a MacBook? 22:19:03 I used to, before my Macbook went swimming. 22:22:14 What do you use now? 22:22:56 I am currently running Slackware Linux on a Thinkpad T500. 22:23:13 The Slackware part is mostly because of WPA2 "Enterprise" things. 22:23:44 Gee, wpa_supplicant doesn't work on OpenBSD or something? 22:23:58 I think it does, but I never tried to get it working, and it was just annoying. 22:24:07 In fact, wpa_supplicant annoys me in general. 22:24:16 Does Slackware have a better suggestion? 22:24:25 On Slackware I use wicd to hide wpa_supplicant behind a GUI. 22:24:56 I *think* you could do the same on OpenBSD, but wpa_supplicant is not "build-in" IIRC. 22:25:13 I don't honestly remember. 22:26:07 Are you still hunting for a laptop? 22:26:24 Anyway, I asked because I'm rewriting NetBSD's PowerBook trackpad driver today to support MacBooks, tapping, and two-finger scrolling, and it is probably pretty easily adaptible to OpenBSD. 22:27:23 Oooh, now that would be a nice thing to play with. 22:27:42 I had one of the macbooks before they changed to the fancy finger gesture thing. 22:28:01 I think 22:28:10 I'm not hunting for a laptop -- I gave up and just got a new disk for my MacBook. 22:28:14 it had a two-finger scroll, but that was about it. 22:30:29 All Apple laptops since 2005 have been capable of fancy finger gesture stuff, if the OS does anything fancy with the sensor data -- the device just reports the pressure (roughly) on each node in a two-dimensional grid of sensors. 22:31:12 duncanm [~duncan@a-chinaman.com] has joined #scheme 22:31:12 la la la 22:31:19 I think mine was a 2005-ish model. 22:31:34 dum de dum 22:31:37 (This driver doesn't do anything really fancy such as pinching for zooming, though; NetBSD's mouse abstraction doesn't support that anyway, except inasmuch as applications can interpret the scroll wheel for zooming.) 22:31:47 hey Riastradh! 22:31:51 Hi, duncanm. 22:32:08 Riastradh: where are you these days? 22:32:47 -!- corvaleur [~corvaleur@p54A03833.dip.t-dialin.net] has quit [Quit: Leaving.] 22:32:50 In the middle of nowhere in upstate New York. Perhaps I'll be back in Boston for a couple of weeks in a couple of weeks. 22:33:28 cool 22:36:22 Riastradh: Well, at least you are writing a driver for them. We need more drivers like that. 22:36:23 tauntaun [~icarus@ool-457c37c3.dyn.optonline.net] has joined #scheme 22:36:40 Personally, I like the fingerprint drivers. I have not had any time to do that though. 22:38:08 Fingerprint drivers? 22:39:28 Yes, for the fingerprint reader. 22:39:48 What would you want to do with a fingerprint reader? 22:39:52 -!- contempt [~foo@host130-136-dynamic.31-79-r.retail.telecomitalia.it] has left #scheme 22:39:59 Play with it. 22:40:15 githogori [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has joined #scheme 22:40:24 Use it for things like running commands and the like. 22:41:24 ...heh, OK. Thumb, launch Emacs, index finger; launch Firefox; middle finger, launch flames at the nitwit whose newsgroup post you're looking at; &c.... 22:41:38 -!- aisa [~aisa@173-10-243-253-Albuquerque.hfc.comcastbusiness.net] has quit [Quit: aisa] 22:41:42 Yeah. 22:41:43 :-) 22:42:00 Or things like close window, play scary sound, lock computer, &c. 22:42:04 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Remote host closed the connection] 22:43:24 nteon [~nteon@204.28.122.186] has joined #scheme 22:56:56 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 23:01:10 Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has joined #scheme 23:04:05 -!- tronador_ [~guille@190.145.89.146] has quit [Quit: tronador_] 23:06:50 -!- Hal9k [~Lernaean@unaffiliated/kusanagi] has quit [] 23:11:08 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 23:12:58 -!- ccorn [~ccorn@j109182.upc-j.chello.nl] has quit [Quit: ccorn] 23:14:47 -!- f8l [~f8l@87-205-239-131.adsl.inetia.pl] has quit [Quit: WeeChat 0.3.4] 23:15:21 -!- Harrold [~quassel@dhcp-143-27.hpsc-students.carleton.ca] has quit [Ping timeout: 260 seconds] 23:25:20 -!- Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has quit [Remote host closed the connection] 23:28:33 Blkt [~user@dynamic-adsl-78-13-255-146.clienti.tiscali.it] has joined #scheme 23:32:13 damg [~damg@p5086F56E.dip.t-dialin.net] has joined #scheme 23:36:02 -!- masm [~masm@bl16-168-147.dsl.telepac.pt] has quit [Ping timeout: 246 seconds] 23:40:44 myu2 [~myu2@x108121.dynamic.ppp.asahi-net.or.jp] has joined #scheme 23:49:21 davazp [~user@201.Red-88-6-204.staticIP.rima-tde.net] has joined #scheme