00:00:01 if i return l1 00:00:06 hellues you are returning (cons l1 l2) where you should return l1 00:00:45 hellues is english your first language? 00:01:31 hellues annotated #69219 with "sum" at http://paste.lisp.org/display/69219#2 00:01:43 xz, look at here 00:01:53 no Turkish langguage 00:02:06 hellues you removed a ). you need the ). 00:02:27 where 00:02:34 after l1 00:02:39 yes 00:02:56 ohh 00:04:02 why it doesnt giive paranthesis mmistake muhah 00:04:44 i ask one more question 00:04:56 can i do that with higer order function 00:05:26 it will wok for same length list also different length list 00:06:34 I have no idea what you mean by "higer order function" 00:06:55 higher order 00:07:00 I still don't know what you mean 00:07:01 i mean map foldr accumulate 00:07:19 map is a higher order function 00:07:21 why isn't your sum a higher order function? 00:07:23 sicp said that 00:08:00 someone want me to do with map foldr accumulate and so on 00:08:07 default schemme function 00:08:20 "higher order" does not mean "default scheme" 00:08:33 to make your sum higher order, take an extra argument, op, and use op instead of + 00:09:02 okey 00:09:08 i know that 00:09:27 but my teacher want me to do with map foldr etc... 00:09:43 I don't think any "default scheme" list functions work on lists of differing lengths, but that shouldn't matter - once you write your own function it should be on the same standing as a "default scheme" function (as long as you have a good compiler) 00:10:19 you are right 00:10:31 wish my teacher assistant can see that 00:10:32 .D 00:11:14 yeah 00:11:17 stop 00:11:18 i found 00:12:17 -!- CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has quit ["Leaving"] 00:18:55 CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has joined #scheme 00:19:28 -!- rdd [n=rdd@c83-250-142-219.bredband.comhem.se] has quit [Read error: 54 (Connection reset by peer)] 00:22:50 hellues annotated #69219 with "sum" at http://paste.lisp.org/display/69219#3 00:23:00 xz, this is good 00:23:03 ? 00:24:18 vorpal [n=rhunter@pdpc/supporter/student/vorpal] has joined #scheme 00:26:34 hellues I meant to do this: (define map* (lambda (f l1 l2) (cond ...))) and then you can (define sum (lambda (l1 l2) (map* + l1 l2))) 00:27:24 hmm 00:27:26 i see 00:48:15 -!- hellues [n=hellues@85.102.164.37] has quit [Remote closed the connection] 00:49:36 jcowan_ [n=jcowan@cpe-74-68-154-18.nyc.res.rr.com] has joined #scheme 00:51:01 -!- jcowan [n=jcowan@72.14.228.89] has quit [Read error: 104 (Connection reset by peer)] 00:51:10 -!- jcowan_ is now known as jcowan 01:02:18 kilimanjaro: I do not have to do too much persuading for them to use Scheme, because I usually take clients that just want results. 01:05:34 crazy! 01:05:40 geckosenator [n=sean@c-24-8-193-190.hsd1.co.comcast.net] has joined #scheme 01:06:54 -!- geckosenator [n=sean@c-24-8-193-190.hsd1.co.comcast.net] has quit [Client Quit] 01:23:51 raikov [n=igr@81.153.145.122.ap.yournet.ne.jp] has joined #scheme 01:34:55 -!- wy [n=wy@c-67-176-146-7.hsd1.in.comcast.net] has quit ["Leaving"] 01:44:29 -!- tizoc [n=user@r190-135-35-21.dialup.adsl.anteldata.net.uy] has quit [Read error: 104 (Connection reset by peer)] 01:44:37 tizoc_ [n=user@r190-135-4-68.dialup.adsl.anteldata.net.uy] has joined #scheme 01:50:07 -!- jcowan [n=jcowan@cpe-74-68-154-18.nyc.res.rr.com] has quit [Remote closed the connection] 01:53:42 wy [n=wy@c-67-176-146-7.hsd1.in.comcast.net] has joined #scheme 01:55:25 underspecified_ [n=eric@softbank220043052011.bbtec.net] has joined #scheme 01:56:01 -!- underspecified [n=eric@softbank220043052011.bbtec.net] has quit [Read error: 104 (Connection reset by peer)] 02:01:13 -!- underspecified_ [n=eric@softbank220043052011.bbtec.net] has quit [] 02:07:54 underspecified [n=eric@softbank220043052011.bbtec.net] has joined #scheme 02:11:23 -!- Nshag [i=user@99.a2c-250-158.astra2connect.com] has quit ["Quitte"] 02:12:48 proqesi [n=user@unaffiliated/proqesi] has joined #scheme 02:14:34 airbrush [i=airbrush@216-237-193-157-access.northstate.net] has joined #scheme 02:15:08 -!- npe [i=npe@66.112.249.18] has quit [] 02:22:14 Bah! Robots are annoying. 02:22:19 Stinkin' bytecodes. 02:22:52 robots are stealin' my luggage 02:24:37 -!- mejja [n=user@c-7d2472d5.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Read error: 104 (Connection reset by peer)] 02:25:17 really? 02:25:35 hehe, that wuz a Steve Martin quote 02:26:51 -!- tizoc_ is now known as tizoc 02:27:22 It's like those comedians have a different joke for _everything_ 02:28:02 He is a lil strange 02:28:34 apparently he's a good dude though, I've heard stories of him doing nice things for people 02:29:32 I've heard stories of him making tons of money by -- get this -- performing in movies. 02:29:34 The swine 02:30:01 beckheng [n=chatzill@218.20.188.141] has joined #scheme 02:30:28 he did'nt show any pearls 02:31:01 r0bby [n=wakawaka@guifications/user/r0bby] has joined #scheme 02:37:45 -!- offby1 [n=user@q-static-138-125.avvanta.com] has quit ["boing"] 02:48:23 offby1 [n=user@q-static-138-125.avvanta.com] has joined #scheme 02:56:09 cgo [n=cgoellne@adsl-065-007-140-208.sip.asm.bellsouth.net] has joined #scheme 03:02:56 elmex_ [n=elmex@e180066201.adsl.alicedsl.de] has joined #scheme 03:04:19 -!- CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has quit [Remote closed the connection] 03:08:11 -!- wastrel [n=wastrel@nylug/member/wastrel] has quit ["bye now"] 03:12:51 Ral_ [n=q@adsl-99-163-106-208.dsl.hstntx.sbcglobal.net] has joined #scheme 03:16:50 -!- airbrush [i=airbrush@216-237-193-157-access.northstate.net] has left #scheme 03:17:29 -!- elmex [n=elmex@e180065103.adsl.alicedsl.de] has quit [Read error: 110 (Connection timed out)] 03:17:31 -!- elmex_ is now known as elmex 03:21:37 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 03:27:47 r2q2 [n=user@c-71-228-37-14.hsd1.il.comcast.net] has joined #scheme 03:27:55 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 03:32:06 wastrel [n=wastrel@nylug/member/wastrel] has joined #scheme 03:37:46 -!- boyscared [n=bm3719@c-69-143-195-98.hsd1.va.comcast.net] has quit ["leaving"] 03:48:28 offby1: why is typed scheme "not scheme"? 03:52:32 eli, can you provide assistance with my lang/reader question? :) 03:56:28 jonrafkind: yes: don't write your reader that way. 03:56:40 ok, problem solved 03:56:41 jonrafkind: use syntax/module-reader. 03:57:04 That already does a whole bunch of delicate stuff that you are very likely to trip on. 03:57:37 ok, I looked at syntax/module-reader before and tried to emulate it 03:57:41 but I guess I did a bad job 03:57:45 r2q2` [n=user@c-71-228-37-14.hsd1.il.comcast.net] has joined #scheme 04:00:29 Why do you want to emulate it instead of using it? 04:01:17 Also, I think that your code has a different problem too: you're returning #'(...stuff...) which means that you're getting syntax values with an existing lexical context. 04:01:51 yes 04:01:55 That's generally a bad idea. You should (almost?) always return context-less syntaxes -- stuff like (datum->syntax #f ...s-exp... ...location...) 04:02:00 im using this for my ruby language, which is already parsed 04:02:45 I don't know what your ruby language is, but what I said is still true. 04:02:56 you know what ruby is 04:03:00 elmex_ [n=elmex@e180067008.adsl.alicedsl.de] has joined #scheme 04:03:13 im parsing ruby, converting it to scheme, and evaluating it 04:03:18 I don't know what *your* ruby language is, or what "already parsed" means, but what I said is still true. 04:03:26 ok 04:04:13 When you write #'(begin ...) you introduce a syntax that comes from the reader module. But the semantics of the reader module should not be related to the semantics of the code it reads. 04:04:58 For example, if your language has it's own meaning for #'begin, then you won't get that. (It can be hard to avoid this in some cases, but it's the right thing to do.) 04:05:04 -!- wy [n=wy@c-67-176-146-7.hsd1.in.comcast.net] has quit ["Leaving"] 04:05:19 -!- Ral_ [n=q@adsl-99-163-106-208.dsl.hstntx.sbcglobal.net] has quit [] 04:05:19 and all this can be accomplished by leaving out lexical-content information? 04:05:46 so should I do (datum->syntax #f #'(begin ...) #f) ? 04:06:27 Yes, and no. 04:06:45 You should do (datum->syntax #f '(begin ...) ) 04:07:02 because `datum->syntax' will leave existing syntaxes as is. 04:07:48 well, (let ((x #'(begin ...)) (datum->syntax #f x x)) 04:08:01 Same problem. 04:08:32 Do *not* use #'whatever -- that is a syntax value with a lexical context that is coming from the reader module. 04:09:31 ok so what should I use then 04:09:59 (datum->syntax #f '(begin ...) ), as I said above. 04:10:09 what is 04:10:13 (If you have to.) 04:10:16 I wrote x and you said it was worng 04:10:22 tjafk2 [n=timj@e176202216.adsl.alicedsl.de] has joined #scheme 04:10:29 Some location information for those expressions. 04:10:38 yes, isnt that what x is? 04:10:47 you can pass a syntax object for location information 04:10:54 CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has joined #scheme 04:11:16 If there is a syntax error in that code, do you *want* me to see the reader module as the source of that error? 04:12:09 well.. technically since I hardcoded the syntax in the reader itself, probably 04:12:16 but if the code comes from the users's module then no 04:12:33 What you said doesn't make sense. 04:12:47 -!- r2q2 [n=user@c-71-228-37-14.hsd1.il.comcast.net] has quit [Read error: 110 (Connection timed out)] 04:13:01 the reader always returns the #'(begin ...) expression, so if there was an error in that code you should look at the reader for the error 04:13:17 regardless of what the user's module has in it 04:13:47 Conceptually speaking, the reader should not be involved in all of this. Never. 04:14:05 It's only job is to read the input file, and produce some syntax values of stuff from that file. 04:14:10 -!- elmex [n=elmex@e180066201.adsl.alicedsl.de] has quit [Read error: 104 (Connection reset by peer)] 04:14:11 -!- elmex_ is now known as elmex 04:14:12 and then module-begin does the rest? 04:14:36 If it translates some input expression to (begin blah), then the source of that result should be my expression that resulted in the (begin blah). 04:14:43 right 04:14:54 It is eventually me who wrote that `begin', even if I don't know about it. 04:15:38 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 04:16:16 so I have a parser that returns an s-expression. my reader should invoke the parser and return the s-expression, then #%module-begin should translate that s-expression in whatever way I see fit, right? 04:16:57 I don't know what "#%module-begin should translate" means. 04:17:22 ok well the parser returns an s-expression which is not scheme code. i need to translate the s-expr to scheme. how should I do this 04:18:03 Instead of more vagueosity, how about an example? 04:18:35 ok, just a sec 04:18:48 (A small one, please.) 04:18:54 no, it wont be small 04:18:59 (A small one, please.) 04:19:05 your choices are large or vague 04:19:11 (A small one, please.) 04:20:26 -!- arcfide [n=arcfide@adsl-99-14-208-195.dsl.bltnin.sbcglobal.net] has quit ["Bedtime."] 04:21:05 jon pasted "jon" at http://paste.lisp.org/display/69224 04:21:20 ok thats just the reader and the translator 04:21:43 -!- araujo [n=araujo@gentoo/developer/araujo] has quit ["Leaving"] 04:21:50 Huh? I wanted an example. You're not seriously expect me to read all *that*? 04:21:55 an example of what 04:22:12 i gave an example on the mailing list 04:22:14 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 04:22:15 saccade__ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 04:22:43 An example of "stuff that I write in the ruby file", and "stuff that it parses/read-as". 04:23:06 oh the ruby before and the s-expr after? 04:23:14 Yes. 04:23:19 well actually I'm not doing the s-expr yet, I have my own ast in structs 04:23:31 but I think I will move to s-expr's 04:23:44 I can show you the result of the transformation step though 04:24:01 Your own AST is not going to help you make the result run in plt. 04:24:17 I can translate my own ast to scheme, that is what the translate module is doing, ruby->scheme 04:24:46 Does it take ruby code and produce s-expressions? 04:25:25 yes. parser :: file -> ast. translator :: ast -> s-expr 04:25:51 OK, in that case I don't care about your AST, only about the end result (the parser function). 04:26:09 Does your parser function produce actual s-expressions, or does it produce syntax values? 04:26:11 the end result is the s-expr, the translator 04:26:14 -!- tjafk1 [n=timj@e176209228.adsl.alicedsl.de] has quit [Read error: 110 (Connection timed out)] 04:26:17 the parser produces ast's! 04:26:30 *eli* sighs 04:26:32 -!- r2q2` [n=user@c-71-228-37-14.hsd1.il.comcast.net] has quit [Remote closed the connection] 04:26:36 you mean the reader 04:27:03 The parser is the above function. I don't care what you're calling "the parser", as far as I'm concerned the reader *is* the parser. 04:27:13 ok, yes it produces syntax values 04:27:35 OK. Do these syntax values have proper source information? 04:27:38 yes 04:28:08 So each bit of ruby code is translated to some syntax value, with a source information that points at the original ruby code? 04:28:14 yes 04:28:43 OK, good. Now -- where is that #'(begin ...) coming from? 04:29:24 well in my real ruby example I get an 'foo is not bound' when the resulting s-expr is somethieng like (begin (define foo 1) foo) 04:29:29 so I was using #'(begin ...) as an example 04:29:50 its only two lines, ill paste it 04:29:59 Is (begin (define foo 1) foo) an example for the result of some ruby code? 04:30:22 YES 04:30:24 sorry, yes 04:30:36 here is the real code, syntax->datum'ized. 04:30:38 (begin (define foo (lambda (#:block g2512 x . g2511) (begin 1))) (apply foo #:block #f (append (list 2) (quote ())))) 04:30:54 So, it should definitely *not* be #'(begin (define foo 1) foo). 04:31:29 It should instead be (datum->syntax #f '(begin (define foo 1) foo) ) 04:31:45 yes, but just to get it to run why does the location informatino matter 04:31:55 im just trying to deal with the 'foo is unbound' issue 04:32:07 It doesn't. You can just use #f, and get a crappy result. 04:32:15 fine. now how do I get foo to be bound 04:32:41 But in any case you should use (datum->syntax #f '(begin (define foo 1) foo) ) for any you want -- crappy is still better than buggy. 04:33:02 Modius [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has joined #scheme 04:33:02 ok 04:33:55 If you have a (begin (define foo 1) foo) result, then you still don't get anything to bind -- that depends on the meaning of `begin' and `define' -- and that's (usually) determined by the module language of the module that you read. 04:34:27 In your case, it's probably going to be some `ruby' module, that provides bindings for `begin' and `define' similar to those in scheme/base. 04:34:50 right, ill probably just re-export most of scheme/base 04:35:06 right now im using scheme as the base language 04:35:36 So that should work like you expect, but it's even crappier than I thought... 04:36:07 whats bad about it 04:36:21 The thing is that you should make the reader do the minimum job possible, then do the hard work in macros (where it's easier to deal with complexity). 04:36:36 is that macro #%module-begin ? 04:36:42 No. 04:37:03 For example, assuming that that thing is the result of reading `foo = 1', I would just read that as something like (assign foo 1). 04:37:19 Then use a module language that defines `assign' as the macro that does what you want to do. 04:37:24 oh ok, that makes sense 04:37:32 #%module-begin has nothing to do with all this. 04:37:43 ok, chongkai is using #%module-begin to do his translation from sml to scheme 04:38:13 The thing is that macros make things much easier to deal with -- for example, you can define `assign' as a simple macro that expands to (begin (define foo 1) foo) 04:38:24 -!- proqesi [n=user@unaffiliated/proqesi] has quit [Read error: 110 (Connection timed out)] 04:38:32 yes, well things will be somewhat complex because I have to move syntax around 04:38:37 scopign in ruby is kind of dumb 04:38:43 If Chongkai is using #%module-begin to do translations, then I suspect his code is also bad in this department. 04:39:17 jon pasted "jon" at http://paste.lisp.org/display/69225 04:39:25 ok so whats wrong with that reader 04:39:27 There are cases where you want to do stuff in `#%module-begin' but they're relatively rare -- things like changing the fundamental scope of Scheme expressions, when you want to change the layout for some alternative scope. 04:39:39 when I execute x.ss which uses that reader for its #lang, mzscheme just loops and eats up all available memory 04:40:42 *eli* sighs again, a long one this time 04:41:08 You're still using #'(begin ...) 04:41:28 yes 04:41:45 And that's still not kosher. 04:42:29 it might not be perfect, but I dont understand why it doesnt at least run 04:42:54 are you telling me source location is *essential* for it to work? 04:44:05 hm, the reader seems to be in an infinite loop 04:44:49 kryptos23_ [n=kryptos@59.92.67.19] has joined #scheme 04:46:23 -!- raikov [n=igr@81.153.145.122.ap.yournet.ne.jp] has quit [Remote closed the connection] 04:46:59 jonrafkind: sorry, I had to yell at the neighbors. 04:47:14 You have several problems. 04:47:19 dont take your frustrations with me out on them! 04:47:22 What, are they trying to parse Ruby too?? 04:47:42 No, they're stading outside the door and talking really loud... 04:48:22 oh read has to return eof at some point.. 04:48:29 Anyway, the first problem is that the `syntax/module-reader' thing expects you to provide expression readers, so it calls your reader over an over again, thinking that the input file is really big. 04:49:03 There is a `#:whole-body-readers?' option, which tells it that the reader is going to return a list of expressions for the whole file. 04:49:04 ok ill hack it up to return eof 04:49:42 (BTW, I don't see why that hacking is necessary -- it makes me think that you still have a problem in your approach.) 04:50:03 module-reader will keep reading until it sees eof 04:50:09 eli annotated #69225 with "fixed first problem" at http://paste.lisp.org/display/69225#1 04:50:16 (if (eof-object? v) (reverse a) (loop (cons v a)) 04:50:26 since im not returning eof it just keeps looping 04:50:37 See above. 04:50:58 In any case, try the code that I just pasted. 04:51:10 oh I see, whole just calls read once 04:51:22 *eli* goes to proceed with shouting. 04:51:44 now I need a main.ss file 04:52:11 x.ss:1:0: module: no #%module-begin binding in the module's language in: (module x mk module x scheme (begin (define q 1) (+ q 2))) 04:55:20 jonrafkind: Right, do you see the problem now? 04:55:24 tizoc_ [n=user@r190-135-22-147.dialup.adsl.anteldata.net.uy] has joined #scheme 04:55:42 if you mean that #%module-begin isnt exported by someone then I suppose so 04:55:51 but doesn't scheme export #%module-begin? im not sure how that works 04:56:31 so main.ss of the mk collection has to export #%module-begin 04:56:55 Modius_ [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has joined #scheme 04:57:18 doing that gives me lang/reader.ss:17:7: module: bad syntax in: module 04:57:53 jonrafkind: No! The problem now is the same thing I've been telling you about from the start. 04:58:03 spell it out for me 04:58:13 Replace #' with ' . 04:58:16 ok 04:58:37 same thing 04:58:43 I also had to export #%app 04:59:51 Well, I just used scheme/base. 05:00:02 for main.ss ? 05:00:11 oh instead of mk 05:00:52 jon annotated #69225 with "jon" at http://paste.lisp.org/display/69225#2 05:02:17 oh in your annotation you dont return (module ...), why is that? 05:02:57 oh I guess because thats what module-reader does for you 05:03:14 -!- kryptos23 [n=kryptos@freenet/developer/kryptos] has quit [Connection timed out] 05:05:12 eli, ok now it works, but I thought I was supposed to return syntax objects, not quoted forms 05:06:17 facetious [n=facetiou@66.92.130.200] has joined #scheme 05:06:44 oh wait sorry.. the quoted form is converted to a syntax object with datum->syntax. 05:06:49 im losing it.. I need some food 05:09:21 -!- facetious [n=facetiou@66.92.130.200] has quit [Read error: 104 (Connection reset by peer)] 05:09:44 -!- benny [n=benny@i577A05A7.versanet.de] has quit [Connection timed out] 05:10:03 facetious [n=facetiou@66.92.130.200] has joined #scheme 05:14:42 kryptos23__ [n=kryptos@59.92.67.19] has joined #scheme 05:14:46 -!- Modius [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has quit [Read error: 110 (Connection timed out)] 05:15:16 -!- kryptos23__ is now known as kryptos23 05:15:33 -!- tizoc [n=user@r190-135-4-68.dialup.adsl.anteldata.net.uy] has quit [Read error: 110 (Connection timed out)] 05:17:52 -!- facetious [n=facetiou@66.92.130.200] has quit ["Bye"] 05:19:38 -!- kryptos23_ [n=kryptos@59.92.67.19] has quit [Read error: 60 (Operation timed out)] 05:27:00 tripwyre [n=tripwyre@117.193.166.54] has joined #scheme 05:27:32 -!- tjafk2 [n=timj@e176202216.adsl.alicedsl.de] has quit [Read error: 110 (Connection timed out)] 05:28:04 tjafk2 [n=timj@e176205190.adsl.alicedsl.de] has joined #scheme 05:28:39 -!- tripwyre [n=tripwyre@117.193.166.54] has quit [Client Quit] 05:34:13 -!- travis|away is now known as travisbemann 05:36:35 -!- travisbemann is now known as travis|brb 05:40:33 jgracin [n=jgracin@82.193.208.195] has joined #scheme 05:41:25 -!- appletizer [i=user@82-33-193-228.cable.ubr04.hawk.blueyonder.co.uk] has quit [Connection timed out] 05:41:35 jonrafkind: you *are* supposed to return syntax objects -- but only ones without lexical context. 05:41:46 yes, I got it 05:42:12 For example, the meaning of your `begin' should be determined by the language module that it uses, not by the reader. 05:42:17 right 05:42:41 And sorry for the delay -- I had to go out and get all Israeli on them. 05:42:47 you blew them up? 05:42:54 Almost. 05:43:02 I went inside and blew myself up. 05:43:09 ok good work 05:43:10 Daemmerung [n=goetter@1133sae.mazama.net] has joined #scheme 05:43:38 Well, it was good in that the party disassembled almost immediately. 05:43:47 kryptos23__ [n=kryptos@59.92.67.19] has joined #scheme 05:44:25 (I can be intimidating when I want to, as you know...) 05:44:43 I dont think you can be not intimidating 05:44:52 :) 05:44:57 eli: just the man I was hoping to find in #scheme on a Sattidy night. 05:45:33 In this case, it was intentional: it should be clear now that every time they want to run a party they should consider whether they want to get the "neighbor from hell" effect... 05:45:38 Daemmerung: yes? 05:46:20 My corporate lords and masters have decreed that they don't want to see "PLT Scheme Inc." on the thingy that I am lovingly crafting for them. Looks like the easiest way for me to change icon and version information on my thingy is to hack a custom mred.exe, then have setup use that. Opinion? 05:46:49 Where do they see the "PLT Scheme Inc" message? 05:47:00 It's in the version information. 05:47:29 Some shells show that information when you hover over the app icon in the shell. (Vista and Win7 explorer, e.g.) 05:47:31 Ah, well... The icon is easy to fix, let me look for an example. 05:48:01 I tried the straightforward hack-the-icon-in-the-final-exe approach. Unfortunately that stripped off all the bytecode of my app. 05:48:45 I can always build a custom mred.exe with my icon and suitably random COPYRIGHT REALLYBIGCO.COM 2008 info, so there is a fallback. 05:52:40 So, for the icon, there are two examples -- collects/help/installer.ss builds the `plt-help' executable. 05:53:04 The `build-aux-from-path' call is adding a bunch of stuff to the alist that customize the application. 05:53:40 If you run it, you'll get ((icns . #) (ico . #) (creator . "H!D!")) 05:53:54 The `ico' is used for the Windows icon, and the other two are for OSX. 05:54:56 Another place where you can see it used more indirectly is in collects/slideshow/info.ss -- it specifies "start.ss" as the file to run, and that searches for files with that name and the appropriate suffixes, like "start.ico". 05:56:28 Daemmerung: as for the copyright string, I think that a better approach would be to just regexp-replace the string with something else. 05:56:54 It does have the minor problem of not being able to provide a longer string, but REALLYBIGCO.COM is shorted... 05:57:01 s/shorted/shorter/ 05:57:31 eli: Thank you. 05:58:07 BTW, you probably will want to look in the file for other things that might pop up. 05:58:51 Me, I see nothing wrong with having the PLT icon on this thing, but they're sensitive about the strangest things. 05:58:56 For example, there is the manifest which specifies things like name="Org.PLT-Scheme.MrEd" and MrEd - Graphical PLT Scheme. 05:59:36 Out of curiosity -- is it "Scheme" that bugs them or just the fact that there is "something else" there? 06:00:19 That is, if it said something like "Python 2.5 (r25:51908, Nov 6 2007, 15:55:44)", would they also want it removed? 06:00:19 I don't really know. I know that "Lisp" bugs them enough already... I think that they just want REALLYBIGCO there most of all. 06:00:57 -!- kryptos23 [n=kryptos@59.92.67.19] has quit [Read error: 110 (Connection timed out)] 06:01:09 As in, when I report a problem with the REALLYBIGCO platform, the first suspicion is "can you repro it in Cxx" (with "God's Own Language" implied though not explicitly stated) 06:01:38 Heh... 06:02:24 Alternatively, you can explain that Scheme != Lisp... Hygienic macros and all that. 06:02:35 That's a sure way to get some serious twitching. 06:02:42 When this is over, I'm going to feed my marketer a lot of Scotch and find out what's what. I'm working for a marketing organization. They tend to operate by sense of smell a lot. Lisp is strange and scary and not what their own devs use, so it's suspect. 06:03:59 For now, though - they want a drop tomorrow at 1pm. (Two weeks before their original deadline, but never mind that.) So I've got to get cracking. 06:03:59 FWIW, I think that "strange and scary" is usually better than having some guy "know" it -- usually its someone who had a course 10,000 years ago, and is absolutely convinced that it's that academic toy thing that has no place in the real world. 06:04:57 I hope you enjoy yourself... 06:05:23 I'll be here for a while more, if you have any non-NDA, non-GL, non-Windows-events questions... 06:05:28 Huh. Just finished recovering from the last all-nighter I pulled for these guys. I am too old for this shit. 06:07:04 I'm all too familiar with all-nighters... (Now working on 4.1.2.) 06:07:37 You're on the right coast, right? 2am local time? Oy. 06:07:48 Yeah. 06:31:07 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 06:33:25 appletizer [i=user@82-33-193-228.cable.ubr04.hawk.blueyonder.co.uk] has joined #scheme 06:36:09 Adamant [n=Adamant@c-98-244-152-196.hsd1.ga.comcast.net] has joined #scheme 06:42:58 GrayShade [i=GrayShad@79.117.186.162] has joined #scheme 06:50:50 benny [n=benny@i577A0237.versanet.de] has joined #scheme 06:53:15 -!- saccade__ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 07:12:22 can I use ellipsis for something like this? 07:13:00 ... 07:13:10 sorry :) http://paste.lisp.org/display/69227 07:15:14 that will probably complain 07:15:48 instead of this: http://paste.lisp.org/display/69227#1 07:17:03 ok 07:17:21 add a begin around the 1st one 07:17:34 then add the ... around that 07:17:47 it works, thanks 07:17:47 :) 07:17:55 unless you want it nested? 07:19:07 now for the other ugly macro.. :) 07:19:23 they all ugly when they start :) 07:29:02 I've broken it :) 07:43:26 hotblack23 [n=jh@p5B055A23.dip.t-dialin.net] has joined #scheme 07:48:22 benny` [n=benny@i577A0237.versanet.de] has joined #scheme 07:49:05 -!- benny [n=benny@i577A0237.versanet.de] has quit [Read error: 104 (Connection reset by peer)] 08:07:53 do you see any obviouos mistakes in this one? http://paste.lisp.org/display/69227#2 08:08:28 Modius__ [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has joined #scheme 08:11:31 well it accepts it, and (define-gate foo 10 #f) executes without issue 08:12:06 I'm still getting "expand: unbound identifier in module" 08:13:28 on the elements of 'inputs' 08:14:30 jewel [n=jewel@dsl-242-166-102.telkomadsl.co.za] has joined #scheme 08:14:57 kryptos23___ [n=kryptos@59.92.67.19] has joined #scheme 08:15:28 -!- kryptos23___ is now known as kryptos23 08:16:02 maybe it's because of the expansion contexts? 08:16:27 aha 08:16:53 the symbol that's bound to input doesn't exist in the context of define-gate-first 08:17:03 dont wrap that get-signal in syntax 08:17:15 just quote it 08:17:22 expand: unbound identifier in module (transformer environment) in: get-signal 08:17:24 oh 08:17:55 well, it's still complaining about input 08:19:26 what is the whole error 08:19:39 "expand: unbound identifier in module in: a" 08:19:58 with "(xor-gate (a b) c)" 08:20:20 and "(define-gate xor-gate 1 compute-xor)" 08:20:26 these ones being in the same file 08:20:56 so, is a defined? 08:20:58 yes 08:21:23 in the place where xor-gate is called, but not where it is defined 08:22:16 that probably why 08:22:30 (syntax id) <-- whats that? 08:22:42 I replaced that with (syntax (input ...)) 08:23:16 replace it with (syntax define-gate-first) rather 08:23:33 same 08:23:35 that might not work 08:23:42 I have an older version (before splitting define-gate and define-gate-first) which worked 08:23:57 why are you doing a syntax conversion? 08:24:14 the (syntax->datum (syntax (input ...))) part? 08:24:19 yes 08:24:40 at first I tried writing (input ...) directly, but it didn't compile 08:25:17 because input can only appear enclosed by syntax 08:25:17 use that with-syntax construct i gave you last night 08:26:09 im know there is a difference between (input ...) and (input . inputs) 08:26:53 like this? (let ((x (with-syntax (((i ...) (map (lambda (x) #`(get-signal #,x)) #'(input ...))))))) 08:26:54 -!- Modius_ [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has quit [Read error: 110 (Connection timed out)] 08:27:08 no 08:27:14 you dont need the let 08:27:33 just put (i ...) where you do unsyntax x 08:29:13 (with-syntax (((i ...) (map (lambda (y) #`(get-signal #,y)) #'(input ...))))) (quasisyntax (define-gate-aux f delay (input ...) (i ...) out))) ? 08:29:27 yeah 08:29:41 the quasisyntax can be changed to just syntax too 08:29:43 where should I put the quasisyntax expression? as the last argument to with-syntax ? 08:29:56 dont need quasisyntax :) 08:30:39 with-syntax is very handy 08:31:19 where do I put (define-gate-aux ..? 08:31:36 in side it 08:31:47 prefixed with (syntax .. 08:31:51 -!- kryptos23__ [n=kryptos@59.92.67.19] has quit [Read error: 110 (Connection timed out)] 08:32:11 you probably dont even need it, i am looking at the code some more 08:32:30 http://paste.lisp.org/display/69227#3 08:34:40 it says that the map gets a syntax object as an argument (instead of a list) 08:35:05 thats weird 08:35:41 #'(input ...) should create a list with the syntax 08:39:58 -!- vorpal [n=rhunter@pdpc/supporter/student/vorpal] has quit ["The incensed priests...continued to raise their voices, vituperating each other in bad Latin"] 08:41:46 http://paste.lisp.org/display/69227#4 08:42:07 wow, that looks much better :D 08:42:22 :) it does 08:42:42 and it even works :) 08:42:45 ha! 08:42:46 thanks 08:42:50 np 08:43:13 the big problem was with the escaped ... 08:44:09 well the problem that they were not escaped 08:45:08 do you think that I can easily change (_ f delay (inputs ...) out) to (_ f delay inputs ... out) ? 08:45:15 and in the other places 08:47:26 Iskr [n=i@host84-83-dynamic.54-82-r.retail.telecomitalia.it] has joined #scheme 08:47:46 it should be ok 08:48:37 but you will probably need to move it to syntax-case later to make sure all the inputs are sane 08:48:57 just the main macro 08:53:01 -!- Iskr [n=i@host84-83-dynamic.54-82-r.retail.telecomitalia.it] has left #scheme 08:58:01 I changed it to http://paste.lisp.org/display/69227#5 08:58:53 schmalbe [n=bernhard@p549A2BE3.dip0.t-ipconnect.de] has joined #scheme 09:02:20 fschwidom [n=fschwido@dslb-088-068-119-139.pools.arcor-ip.net] has joined #scheme 09:05:00 Kirill [n=user@bas8-kitchener06-1279289958.dsl.bell.ca] has joined #scheme 09:05:13 hi! is it possible to implement "apply" in Scheme? 09:05:59 no, it has apply already 09:06:05 :) 09:06:15 =P you know what I mean.. 09:07:06 any ideas? 09:07:29 mmm 09:08:30 nothing but really ugly visions comes to mind! 09:09:57 i can think of a macro, but not a function 09:10:23 okay 09:11:01 i think apply is rather lowlevel normally 09:16:06 araujo [n=araujo@gentoo/developer/araujo] has joined #scheme 09:18:27 -!- Kirill [n=user@bas8-kitchener06-1279289958.dsl.bell.ca] has left #scheme 09:25:04 mr_ank [n=ank@220-244-42-72.static.tpgi.com.au] has joined #scheme 09:29:46 leppie: thanks a lot 09:30:49 hml [n=x@unaffiliated/hml] has joined #scheme 09:34:52 -!- hml [n=x@unaffiliated/hml] has quit [Client Quit] 09:34:56 hml [n=x@unaffiliated/hml] has joined #scheme 09:41:30 kryptos23___ [n=kryptos@59.92.66.223] has joined #scheme 09:42:21 rdd [n=user@c83-250-142-219.bredband.comhem.se] has joined #scheme 09:43:06 user_ [n=user@p5492438C.dip.t-dialin.net] has joined #scheme 09:53:35 elias` [n=me@unaffiliated/elias/x-342423] has joined #scheme 09:57:28 -!- kryptos23 [n=kryptos@59.92.67.19] has quit [Connection timed out] 10:02:22 mike [n=mike@dslb-088-066-239-059.pools.arcor-ip.net] has joined #scheme 10:07:51 -!- hml [n=x@unaffiliated/hml] has quit ["Lost terminal"] 10:08:47 vasa [n=vasa@mm-37-88-84-93.dynamic.pppoe.mgts.by] has joined #scheme 10:11:03 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 10:11:47 -!- mike [n=mike@dslb-088-066-239-059.pools.arcor-ip.net] has quit ["Leaving"] 10:11:50 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 60 (Operation timed out)] 10:15:40 -!- dnm [n=dnm@c-68-49-46-251.hsd1.va.comcast.net] has quit [Read error: 110 (Connection timed out)] 10:21:52 attila_lendvai [n=ati@business-89-132-61-222.business.broadband.hu] has joined #scheme 10:28:33 can someone explain me what the ^ and @ postfixes in names mean? 10:31:43 Leonidas, to what names are you referring? 10:32:33 the units stuff? 10:32:48 regex? 10:34:00 gnomon: I mean these: http://docs.plt-scheme.org/web-server/web-server-unit_ss.html 10:34:37 leppie: I know regexp, @ as no special meaning there :) 10:34:38 ok not regex :) 10:34:50 still trying to open my eyes 10:35:03 thats probably something with units 10:36:32 does r6rs come with a replacement for modules / units? 10:37:15 libraries it seems does that 10:37:24 it looks very similar 10:37:41 http://docs.plt-scheme.org/reference/creatingunits.html 10:39:44 http://srfi.schemers.org/srfi-83/srfi-83.html this looks pretty much like modules 10:40:23 if that's what was approved for r6rs 10:41:25 that is probably the precursor, it has changed slighty 10:41:32 oh 10:44:59 -!- beckheng [n=chatzill@218.20.188.141] has quit ["ChatZilla 0.9.83 [Firefox 3.0.3/2008092417]"] 10:48:00 -!- GrayShade [i=GrayShad@79.117.186.162] has quit [] 10:56:34 -!- kryptos23___ [n=kryptos@59.92.66.223] has quit [Read error: 104 (Connection reset by peer)] 11:01:54 hkBst [n=hkBst@gentoo/developer/hkbst] has joined #scheme 11:10:22 hellues [n=hellues@88.235.212.77] has joined #scheme 11:22:21 -!- elias` [n=me@unaffiliated/elias/x-342423] has quit [Read error: 110 (Connection timed out)] 11:23:21 foof [n=user@dn157-046.naist.jp] has joined #scheme 11:23:24 elias` [n=me@unaffiliated/elias/x-342423] has joined #scheme 11:26:36 -!- attila_lendvai [n=ati@business-89-132-61-222.business.broadband.hu] has quit [Read error: 60 (Operation timed out)] 11:28:21 -!- borism [n=boris@195-50-199-184-dsl.krw.estpak.ee] has quit [Client Quit] 11:30:43 besiria [n=user@ppp083212086151.dsl.uom.gr] has joined #scheme 11:38:25 tizoc [n=user@r190-135-33-131.dialup.adsl.anteldata.net.uy] has joined #scheme 11:45:17 -!- MichaelRaskin_ [n=raskin@gwh-1-177-mytn23k1.ln.rinet.ru] has left #scheme 11:52:11 hey 11:52:31 do you suggest any web page that tells how to define polynom in scheme 11:53:26 -!- araujo [n=araujo@gentoo/developer/araujo] has quit [Remote closed the connection] 11:55:18 -!- tizoc_ [n=user@r190-135-22-147.dialup.adsl.anteldata.net.uy] has quit [Read error: 110 (Connection timed out)] 11:59:19 .oO( polynom? ) 11:59:28 araujo [n=araujo@gentoo/developer/araujo] has joined #scheme 11:59:31 *foof* nom nom nom nom nom... 11:59:56 MichaelRaskin_ [n=raskin@gwh-1-177-mytn23k1.ln.rinet.ru] has joined #scheme 12:00:23 mike [n=mike@dslb-088-066-239-046.pools.arcor-ip.net] has joined #scheme 12:00:33 *ski* mo' nom 12:01:25 polynom 12:01:33 3x'2+2x+1 12:01:36 is a polynom 12:01:37 :D 12:02:27 Didn't we discuss the polynom yesterdy? 12:02:38 Or did I dream that one up? 12:03:28 schme: yes, but that was a triv problem 12:04:22 Ok. So what is the new problem= 12:04:29 i am doing polynomial multiplication 12:04:50 i am searching an address tha tells polynomials definition basicly 12:05:09 (define-struct poly (coeff expond)) 12:05:09 Oh. 12:05:13 blah blah.. 12:05:24 Well you can define it in a number of ways I suppose. 12:05:52 tizoc_ [n=user@r190-135-41-127.dialup.adsl.anteldata.net.uy] has joined #scheme 12:05:53 actually 12:06:06 i have some problem 12:06:32 because polynomail multiplication is different than polynomial summation or polynomial x a constant 12:06:43 because you have to sum exponent 12:07:04 ok. 12:07:13 i must use (define-struct poly (coeff expond)) 12:07:16 right ? 12:07:31 i mean i have to use some pair 12:07:59 Sure. 12:08:11 hmm 12:08:21 but actually i dont know how to use this 12:08:34 I'd just go with conses or something. 12:08:35 so i am searching for an address that tells polynomial 12:08:40 i wonna understand 12:08:52 i am searching on google i cant find 12:09:01 what is conses 12:09:15 (2 . 2) 12:09:27 You could use that to represent 2x^2 12:09:57 *foof* prefers to use it to represent 2y^2 12:10:05 HEATHEN! 12:10:28 how can i define pair 12:10:48 i guess (cons 2(cons 2 null)) not work 12:10:58 ?? 12:11:01 (cons 2 2) 12:11:05 yhara [n=yhara@84.215.12.221.megaegg.ne.jp] has joined #scheme 12:11:16 hmm 12:11:21 so 12:11:28 while writing multiplication 12:11:39 how can i make seperate operation 12:11:44 we have 2.2 12:11:54 first is multiplied 12:12:02 second one is summued 12:12:13 i mean 12:12:14 -!- schmalbe [n=bernhard@p549A2BE3.dip0.t-ipconnect.de] has quit [Remote closed the connection] 12:12:25 2x^2+3x+1 2x+1 12:12:51 you do 2*2 and 1+1 12:12:58 2x*3x 12:13:05 oh 12:13:06 6x^2 12:13:13 you mean how to get 3 and 4 out of (3 . 4) 12:13:24 it is possible with (con 2 2) 12:13:30 it is possible with (con 2 .2) 12:13:33 yeah 12:13:44 3 and 4 joins the operation seperately 12:14:05 car and cdr should work, no? 12:14:34 (cdr (cons 3 4)) => 4 12:14:43 (car (cons 3 4)) => 3 12:14:53 hmm 12:15:10 Seriously though, you ought to be aware of conses, and car and cdr :) 12:15:33 I'm certain that they are covered by most introductionary scheme books. 12:15:41 hmm 12:15:44 you said 12:16:31 Well it seems I need to head away for a bit. Good luck there anyway :) 12:16:37 let say 12:16:55 we have 2x^4+3x^3+2x^2+x+1 12:17:03 how can i write this with cons 12:17:11 hmm 12:17:15 last question 12:17:16 :D 12:22:27 -!- tizoc [n=user@r190-135-33-131.dialup.adsl.anteldata.net.uy] has quit [Read error: 110 (Connection timed out)] 12:23:21 hellues: Learn to implement REVERSE, MAP and FIND first. 12:23:56 i know map,reverse 12:24:03 what FIND 12:24:42 Have you implemented them by yourself, or looked up the definitions? 12:25:17 no 12:25:22 i define myself 12:25:29 sorry implement 12:25:42 first of i look than understand than implement myself 12:27:42 foof, pls give an address for polynomial definition,sum,multiply etc. 12:30:41 1600 Pennsylvania Ave. 12:33:18 whats what 12:33:51 we have 2x^4+3x^3+2x^2+x+1 12:34:02 foof, how can you define with conses 12:38:50 I dunno, ask one of the smart people here. 12:38:56 minion: advice for hellues 12:38:57 hellues: #11940: You said `It doesn't work'. The next violation will be punished by death. 12:39:00 :D 12:39:17 muahaha 12:41:07 borism [n=boris@195-50-199-184-dsl.krw.estpak.ee] has joined #scheme 12:54:35 hellues: How aboot '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0)) 12:55:22 list of list 12:55:48 You can represent it in any way you want though. 12:56:02 yess 12:56:16 just a second 12:56:48 but 12:56:59 i did it in drscheme 12:57:11 ((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0)) 12:57:26 sorry 12:57:31 (define l '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) 12:57:44 how can i take 2 or 4 from (2.4) 12:58:02 you kno wpolynomial multiplication 12:58:10 sum exponent 12:58:11 Yes. 12:58:18 multiply coefficent 12:58:29 Well, that's one way to do it. 12:58:41 Though the last question was your last question, so you're on your own now. 12:58:42 (car l) result (2.4) normally 12:58:46 Best of luck there, mate! 12:58:56 :d 12:59:29 you say just that pls 12:59:36 But you're quite right. (car l) => (2.4) 12:59:43 (define l '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) 12:59:51 how can i take 2 from (2.4) 13:00:05 I told you that already though. 13:00:14 hmm 13:00:23 Well actually I told you how to take 3 from (3 . 4). But it's much the same. 13:00:24 (car (car l)) works 13:00:38 Oh that's cool. 13:00:42 (car (car l)) works 13:00:42 Why does that work anyway? 13:00:51 What's car? What's cons? 13:00:56 it gives 2 13:00:57 I'm confused here. I need a nap, me thinks. 13:01:04 Yah. 13:01:06 Why though? 13:01:34 i guess (car(car 2)) car of list of list 13:01:47 i am not sure because i am newbie 13:01:57 but thats good way 13:01:58 :D 13:02:30 what? 13:02:35 i guess i will use flat map instead of map 13:02:36 (car 2) is invalid. (caar 2) is invalid. 13:02:56 BW^-, we have 13:02:59 (car (car (list (list 'HI)))) 13:03:01 is valid 13:03:25 (define l '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) and (car (car l)) gives 2 13:03:38 ah sure 13:03:52 (car (car X)) == (caar x) 13:04:20 > (car (car (list (list l)))) 13:04:20 ((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0)) 13:04:38 gives whole list i have got 13:07:39 hmm 13:10:54 BW^-: not in R6RS 13:11:39 foof: not? 13:11:51 what there? 13:12:03 (car (car X)) == (caar x) 13:12:22 yes? 13:12:29 Is not true in R6RS. 13:12:38 ok, what's up there? 13:13:08 *foof* waits for BW^- to spot the bug 13:13:16 lalalalala. 13:13:18 cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has joined #scheme 13:13:28 oh, X and x. case sensitivity. 13:13:33 wha'? is duncanm here ... ? 13:13:36 someone said "lalalalala" 13:13:38 *offby1* glares at BW^- 13:13:42 you're trying to confuse me. 13:13:45 -!- user_ [n=user@p5492438C.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 13:13:53 is it about case sensitivity? 13:14:04 of course == is not a scheme operator. it's php. 13:14:14 regarding case sensitivity: don't ask, don't tell. 13:14:17 -!- travis|brb is now known as travis|away 13:14:40 lisppaste, url 13:14:40 To use the lisppaste bot, visit http://paste.lisp.org/new/scheme and enter your paste. 13:14:45 BW^-: yeah, case sensitivity :) 13:14:55 k 13:15:29 hellues pasted "sum poly" at http://paste.lisp.org/display/69233 13:15:42 i wrote this code but i have a problem 13:16:01 i return list a pair (x.y) 13:16:09 but it return (x) 13:16:29 how can i print out list as pair (x.y) 13:19:40 ? 13:20:03 You want it to do what what? 13:20:25 What result do you want from sum-version3 ? 13:25:40 i tell 13:25:42 okey 13:26:00 i have (define l1 '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) 13:26:01 (define l2 '((5 . 4) (1 . 3) (2 . 2) (6 . 1) (4 . 0))) 13:26:52 and i want sume3 to do return list like (7.4 4.3 4.2 7.1 5ç.0) 13:26:58 something like that 13:27:29 -!- besiria [n=user@ppp083212086151.dsl.uom.gr] has quit [Read error: 104 (Connection reset by peer)] 13:27:29 i can be ((7.4) (4.3) (4.2) (7.1) (5.0)) 13:27:41 but i return (7 4 4 7 5) 13:28:51 schme, do you understand what i mean 13:29:09 Ok. 13:30:12 hmm i guess you understand me . 13:30:13 d 13:30:25 I guess you need the cdr then. 13:30:29 http://paste.lisp.org/display/69233 it is mypaste 13:30:41 hmm 13:30:41 -!- vasa [n=vasa@mm-37-88-84-93.dynamic.pppoe.mgts.by] has quit ["I am not vasya, i am vasa"] 13:31:22 besiria [n=user@ppp083212086151.dsl.uom.gr] has joined #scheme 13:31:40 -!- cracki_ [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has quit [Read error: 110 (Connection timed out)] 13:32:06 actually do (cons (f (cons or append (caar l1) (cdr l1) (cons or append (caar l2))(cdr l2) (map*-version2 f (cdr l1) (cdr l2)) 13:32:14 The cdr? You can't handle the cdr! 13:32:14 i try that one but it doesnt work 13:32:21 actually it is normal :D 13:32:39 hmm 13:32:43 offby1, 13:32:57 can you look at my paste 13:33:08 vasa [n=vasa@mm-37-88-84-93.dynamic.pppoe.mgts.by] has joined #scheme 13:34:09 it must return as pair (x.y) but it return (x) 13:34:20 it return (7 4 4 7 5) 13:34:51 i want (7.4 4.3 4.2 7.1 5.0) 13:35:17 I think you want ((7 . 4) (4 . 3) ...) 13:35:38 yeah 13:35:43 like that :D 13:36:40 So just cons up the sum of the cars and the cdr, before recursing. 13:37:10 no 13:37:19 you dont sum cddr 13:37:46 No I meant: 13:37:47 just sum caar than return (caar cadr) 13:37:55 cons up 1) the sum of the cars, and 2) the cdr 13:38:03 yeah 13:38:05 i guess 13:39:27 how can i do this 13:41:13 With cons and car and cdr :) 13:41:35 hahahah 13:41:50 you mean (cons caar cadr) 13:41:58 just a scon 13:42:01 second 13:47:11 Well the sum of the cars anyway. 13:47:14 Now I need to go shave it seems. 13:47:23 All these pubes are getting the wife angry. 13:48:15 hellues pasted "sum poly" at http://paste.lisp.org/display/69234 13:48:34 schme, i do that things but that doesnt work that gives mistake 13:48:44 i am newbie i ask all question sorry 13:48:54 but i am newbie :D 13:50:54 -!- mike [n=mike@dslb-088-066-239-046.pools.arcor-ip.net] has quit ["Leaving"] 13:51:58 hellues pasted "sum poly" at http://paste.lisp.org/display/69235 13:52:33 schme, can you look my paste 13:59:36 GreyLensman [n=ray@c-76-108-235-51.hsd1.fl.comcast.net] has joined #scheme 13:59:47 how would you describe eval? 13:59:54 1) apply macros 2) interpret ? 14:00:28 eval is step 2, innit? 14:00:34 1 is pre-eval 14:00:54 read, expand , eval 14:02:49 step 3: profit 14:03:16 yeah! 14:04:17 offby1: you mean step 4 14:12:56 -!- tizoc_ is now known as tizoc 14:14:12 Nshag [i=user@99.a2c-250-158.astra2connect.com] has joined #scheme 14:23:31 a-s [n=user@92.80.114.119] has joined #scheme 14:24:40 yhara_ [n=yhara@241.198.12.221.megaegg.ne.jp] has joined #scheme 14:25:17 -!- yhara [n=yhara@84.215.12.221.megaegg.ne.jp] has quit [Read error: 110 (Connection timed out)] 14:26:55 are there someone who helps me :D 14:29:07 hellues pasted "sum poly" at http://paste.lisp.org/display/69236 14:31:52 LeCamarade [n=LeCamara@41.222.7.35] has joined #scheme 14:32:05 noone there ? :D 14:33:47 Hi. 14:34:39 hi 14:34:48 LeCamarade, can i ask a question to you :D 14:35:46 Yes. 14:35:48 :o) 14:35:55 :D 14:36:11 http://paste.lisp.org/display/69236 can you llook my paste 14:36:23 annodomini [n=lambda@c-75-69-95-99.hsd1.nh.comcast.net] has joined #scheme 14:36:29 i write a function that consumes two list of llist and sum 14:36:36 two list 14:36:49 but just suum element of cadr 14:36:58 but i print out its sume as a pair 14:37:09 but i doesnt print as a pair 14:38:04 will you look my code :D 14:38:32 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 14:38:54 So what's up with the (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) ...) ? 14:39:21 I'm checking the code ... 14:39:21 Had wandered off. :o) 14:39:43 hmm 14:39:43 :D 14:39:47 mistake 14:39:49 schme, 14:40:05 hellues: What do you want to do again? 14:40:11 To print all the CARs of l1 and l2 as pairs? 14:40:38 no 14:40:56 (7 4 4 7 5) my function`s output 14:40:57 hellues: What do you want to do? 14:41:05 but i have pair 14:41:31 so i want to print out (7.4)(4.3)(4.2)(7.1)(5.0) 14:42:20 What's in l1 and what's in l2? 14:42:38 l2 = '(4 3 2 1 0) 14:42:43 ? 14:42:46 no 14:42:59 define l1 '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) 14:42:59 (define l2 '((5 . 4) (1 . 3) (2 . 2) (6 . 1) (4 . 0))) 14:43:06 and sum l1 l2 14:43:10 Ah! 14:43:30 than result is ((7.4) (4.3)....) 14:43:54 So what about that (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) ...) I hear so much about? 14:44:37 wait 14:47:12 (map (lambda (a b) (cons (+ (car a)(car b)) (cdr a))) l1 l2) 14:47:14 hellues pasted "sum poly" at http://paste.lisp.org/display/69237 14:47:17 hellues: I think you have the wrong return value. When I write what I think you want, I get '((7 . 8) (4 . 6)). 14:47:22 schme, 14:47:26 you mean this 14:47:38 but it gave mistake can you look at it 14:47:54 hmm 14:48:01 what must my return value 14:48:13 (cons caar l1 cadr l1) 14:48:16 like that 14:49:19 Well 4 isn't a function, so that's a problem it turns out. 14:50:20 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 14:51:48 what is 4 14:55:13 hellues: Oh. I forgot about you. 14:55:19 -!- BW^- [i=Miranda@94.191.155.171.bredband.tre.se] has quit [Read error: 60 (Operation timed out)] 14:55:30 Okay, lemme paste my function, and then we can go over it. 14:55:44 Okay? 14:56:43 ? 14:56:58 eli: can you please explain me what the ^ @ postfixes mean? 14:57:11 LeCamarade, 14:57:20 i can find any solution 14:57:22 http://paste.lisp.org/display/69238 14:57:45 I pasted a new one, sorry. 14:57:51 Have you seen it? 14:58:45 LeCamarade, 14:58:51 it return () 14:58:56 sum-all function 14:59:06 and also i have two list of list 14:59:17 Ah, you have list of list. 14:59:18 (define l1 '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) 14:59:33 LeCamarade: That's not what he wants. :) 14:59:41 You may want to use the funcs in SRFI-1, but I think you should first build it here. 14:59:56 LeCamarade: He wants (+ (car l1) (car l1)) and the cdr :) 15:00:06 hellues: So all I should change is mae it a list of lists? 15:00:10 Oh. 15:00:14 schme: Thanks. :o) 15:00:51 '((1 . 2) (2 . 1)) and '((2 . 2) (2 . 1)) => '((3 . 2) (4 . 1)) 15:00:59 it yes 15:01:07 i want this absolutely :D 15:01:29 then use exactly what i gave you 15:01:30 So the cdrs will be the same in all cases? 15:01:32 i try lots of thnig 15:01:32 :D 15:01:37 yes 15:01:42 So the cdrs will be the same in all cases? 15:01:45 because in polynomial summation 15:01:51 Ah. 15:01:55 you dont sum second number 15:02:02 in a list of list 15:02:11 i try to write polynomial summation 15:02:25 and than return as polinomial 15:02:31 i mean 74 4 7 5 15:03:28 7x^4 + 4x^3 + 4x^2 + 7x + 5 ===> ((7.4) (4.3) (4.2) (7.1) (5.0)) 15:03:53 (define (sum l1 l2)(map (lambda (a b) (cons (+ (car a)(car b)) (cdr a))) l1 l2)) 15:04:18 i have list of list 15:04:20 :D 15:04:30 (car l) gives two number 15:07:39 -!- bpt [n=bpt@cpe-071-070-209-067.nc.res.rr.com] has quit [Read error: 110 (Connection timed out)] 15:07:57 i guess there is no solution 15:08:14 Yes. That's it. There is no solution. 15:08:36 :D 15:08:42 rudybot: eval (let fun ((l1 '((1 . 2) (2 . 1))) (l2 '((2 . 2) (2 . 1)))) (if (null? l1) '() (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) (fun (cdr l1) (cdr l2))))) 15:08:42 xz: ; Value: ((3 . 2) (4 . 1)) 15:09:19 :D 15:09:33 it's a ridiculous problem 15:09:38 you're meant to assume all the cdrs are the same 15:09:47 and ignore them 15:09:59 yeah 15:10:01 exactly 15:10:12 cdrs is exponent of 15:10:15 polynom 15:10:20 car coefficent 15:10:26 my assumption is that 15:10:54 xz: There is no solution though, so it's a bad problem. 15:11:14 schme what's wrong with my solution? 15:11:32 xz: Well it's the same solution I gave like 30 minutes ago and it apperently didn't work. 15:11:39 xz: So I guess there is no solution. 15:11:40 schme oh okay 15:11:49 :) 15:12:01 schme he seems happy with it now though... 15:12:03 (7.4) 15:12:09 Cools. 15:12:13 7---> coeff 4--> exponent 15:12:15 That's excellent. 15:12:23 no 15:12:28 i am not happy 15:12:31 i am trying 15:12:32 :D 15:12:45 That's great :) 15:12:59 i ask in here 15:13:06 i try something in drscheme 15:13:15 but i am newbie in drscheme 15:13:21 its very easy in java in c 15:13:31 but its hard to write program in drscheme 15:13:48 so i am sorry i ask lots of question 15:13:54 but there is nothing i can do 15:14:00 so pls help me 15:14:01 :D 15:14:30 I hear good things about the (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) ...) 15:15:56 hellues: Seriously though. You have two working functions to chose from. There's leppie's pretty one, and the other one. 15:16:04 hellues: yeah, it takes a bit to get comfortable with it when you're used to java/c. 15:16:42 actually 15:16:51 i dont understand drscheme is hard 15:17:02 or functional programming is harder than oop 15:17:38 Eating with a fork is harder than eating with chopsticks. 15:17:46 schme, 15:17:54 (cons (+ (caar l1) (caar l2)) (sum-version3 (cdr l1) (cdr l2)))))) 15:18:00 you said 15:18:23 (cons (+ (caar l1) (caar l2)) (cdar l1) (sum-version3 (cdr l1) (cdr l2)))))) 15:18:25 ? 15:18:36 No. 15:18:50 You can't cons 3 things. 15:18:51 hmm 15:18:56 yes 15:19:01 i know 15:19:02 But yer close ;) 15:19:26 i thought 15:19:41 You just need to add a (cons ......) ....) 15:19:49 and put the right stuff in the right place. 15:19:55 hmm 15:20:03 i do (cons ( + (caar l1) (caar l1)) (cons cadr l1 ccadr l2)... 15:20:08 well with the correct number of parens anyway :) 15:20:14 i thought that 15:20:26 that will possible not work 15:20:34 that works 15:20:36 ? 15:20:46 Not to get what you want. 15:21:12 There's that (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) ...) one could try though. 15:21:34 facetious [n=facetiou@66.92.130.200] has joined #scheme 15:23:07 -!- facetious [n=facetiou@66.92.130.200] has quit [Read error: 54 (Connection reset by peer)] 15:23:44 facetious [n=facetiou@66.92.130.200] has joined #scheme 15:24:06 i dont understand can you write moe clearly schme 15:24:23 Nope. 15:24:42 I honestly can not. 15:24:48 gigabytes [n=gigabyte@host222-239-dynamic.15-87-r.retail.telecomitalia.it] has joined #scheme 15:25:22 -!- papermachine [n=ahoman@61.152.106.169] has quit [Remote closed the connection] 15:25:36 -!- facetious [n=facetiou@66.92.130.200] has quit [Client Quit] 15:25:49 facetious [n=facetiou@66.92.130.200] has joined #scheme 15:26:21 papermachine [n=ahoman@61.152.106.169] has joined #scheme 15:26:51 facetious_ [n=facetiou@66.92.130.200] has joined #scheme 15:27:03 -!- facetious_ [n=facetiou@66.92.130.200] has quit [Remote closed the connection] 15:27:21 facetious_ [n=facetiou@66.92.130.200] has joined #scheme 15:27:37 -!- facetious [n=facetiou@66.92.130.200] has quit [Client Quit] 15:27:37 -!- facetious_ [n=facetiou@66.92.130.200] has quit [Remote closed the connection] 15:28:50 hellues pasted "sum poly" at http://paste.lisp.org/display/69240 15:29:02 it gave () 15:29:10 why it gave null pff :// 15:30:15 -!- papermachine [n=ahoman@61.152.106.169] has quit [Client Quit] 15:31:38 bpt [n=bpt@cpe-071-070-209-067.nc.res.rr.com] has joined #scheme 15:32:20 pls help me out :D 15:32:31 -!- Nshag [i=user@99.a2c-250-158.astra2connect.com] has quit ["Quitte"] 15:34:16 Nshag [i=user@Mix-Orleans-106-1-12.w193-248.abo.wanadoo.fr] has joined #scheme 15:34:17 hellues: I think you should look at what xz did. 15:36:16 papermachine [n=ahoman@61.152.106.169] has joined #scheme 15:37:23 -!- hellues [n=hellues@88.235.212.77] has quit [Read error: 60 (Operation timed out)] 15:45:25 hellues pasted "sum poly" at http://paste.lisp.org/display/69241 15:45:44 hellues [n=hellues@88.235.232.6] has joined #scheme 15:46:03 hey i have different question 15:46:13 http://paste.lisp.org/display/69241 15:46:30 i expexct the output #t #t #t #t 15:46:53 i mean go to last element of the list two list 15:47:10 and check the cdar l1 cdar l if equal return true else return false 15:53:06 -!- LeCamarade [n=LeCamara@41.222.7.35] has quit [Read error: 110 (Connection timed out)] 15:54:08 -!- besiria [n=user@ppp083212086151.dsl.uom.gr] has quit [Remote closed the connection] 16:06:31 Modius_ [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has joined #scheme 16:10:20 schme_ [n=marcus@c83-254-190-108.bredband.comhem.se] has joined #scheme 16:12:33 hellues: Why do you expect the output #t #t #t #t ? 16:12:36 -!- gigabytes [n=gigabyte@host222-239-dynamic.15-87-r.retail.telecomitalia.it] has quit [] 16:13:24 -!- schme [n=marcus@c83-254-190-108.bredband.comhem.se] has quit [Read error: 60 (Operation timed out)] 16:14:22 Or did someone already fix it? 16:17:31 hellues_ [n=hellues@78.183.204.237] has joined #scheme 16:17:47 -!- hellues [n=hellues@88.235.232.6] has quit [Nick collision from services.] 16:17:59 -!- hellues_ is now known as hellues 16:18:21 no need to recursive sorry 16:18:58 offby1, are you there ? Can i ask a question to you ? 16:22:09 -!- yhara_ is now known as yhara_aw 16:24:02 -!- Modius__ [n=Modius@ppp-70-244-122-30.dsl.austtx.swbell.net] has quit [Connection timed out] 16:36:19 -!- jewel [n=jewel@dsl-242-166-102.telkomadsl.co.za] has quit [Read error: 113 (No route to host)] 16:40:03 -!- hellues [n=hellues@78.183.204.237] has quit [Read error: 110 (Connection timed out)] 16:40:28 hellues [n=hellues@88.235.225.162] has joined #scheme 16:42:04 -!- hellues [n=hellues@88.235.225.162] has quit [Client Quit] 16:42:23 hellues [n=hellues@88.235.225.162] has joined #scheme 16:42:27 hey 16:42:31 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 16:42:32 anyone there :d 16:42:42 -!- yhara_aw [n=yhara@241.198.12.221.megaegg.ne.jp] has quit [Read error: 110 (Connection timed out)] 16:42:51 gigabytes [n=gigabyte@host244-235-dynamic.4-87-r.retail.telecomitalia.it] has joined #scheme 16:43:05 Nope. 16:44:18 Riastradh, can i ask a question 16:44:46 hello 16:45:13 I have to write a function that returns how many occurrences of a substring are contained in a larger string 16:45:34 I'm not used to functional programming 16:45:35 any hint? 16:46:22 boyermoore 16:46:23 gigabytes: Go over the string and for each time you find a matching substring you count it. 16:46:30 ;) 16:46:49 schme_: yes ihhi 16:46:56 schme_: but I have to do it recursively 16:47:01 that's the point 16:47:41 if I was with an imperative language I could do it with a while loop but in scheme I have to write a recursive function and I don't know how XD 16:48:39 gigabytes: I think there are some good info on things like that in the /topic 16:48:49 hellues pasted "sum poly" at http://paste.lisp.org/display/69243 16:49:05 schme_: I think yes 16:49:05 -!- hellues [n=hellues@88.235.225.162] has quit [Nick collision from services.] 16:49:24 I just hoped someone here could give me a quickier hint XD 16:49:25 hellues [n=hellues@88.235.212.178] has joined #scheme 16:49:29 http://paste.lisp.org/display/69243 16:49:34 hey i have a function 16:49:36 gigabytes: Great! So just read those sites and yer all set :) 16:49:47 :D:D:D 16:49:53 i will be siilent 16:49:53 :D 16:50:20 schme_, pls help i cant find a way 16:50:20 :D 16:50:44 hellues: Other than the two solutions xz and leppie gave you? 16:50:56 no work 16:51:06 Of course they work. 16:51:25 i swar i try that 16:51:29 gigabytes: There is no quicker way. 16:51:36 that is not what i want 16:51:41 hellues: Ok. Then your scheme is broken, sorry. 16:51:55 schme_: The dark side of the force is quicker sometimes :P 16:52:07 Ya but it leads to crap movies and evilness. 16:52:12 last time we try,after this time i wont bother you 16:52:42 rudybot: eval (let fun ((l1 '((1 . 2) (2 . 1))) (l2 '((2 . 2) (2 . 1)))) (if (null? l1) '() (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) (fun (cdr l1) (cdr l2)))) 16:52:44 schme_: error: eval:1:0: read: expected a `)' to close `(' 16:52:45 no? 16:52:49 oh 16:52:51 rudybot: eval (let fun ((l1 '((1 . 2) (2 . 1))) (l2 '((2 . 2) (2 . 1)))) (if (null? l1) '() (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) (fun (cdr l1) (cdr l2))))) 16:52:51 schme_: ; Value: ((3 . 2) (4 . 1)) 16:52:53 :D 16:52:57 Is that not it? 16:53:28 schme_: lol 16:53:55 uh 16:53:56 the bot? 16:54:03 rudybot: eval (+ 5 2) 16:54:04 gigabytes: ; Value: 7 16:54:08 COOOL 16:54:09 :P 16:55:16 I'd pay for a bot like this in the #C channel :P 16:55:47 rudybot: eval (map (lambda (a b) (cons (+ (car a)(car b)) (cdr a))) '((3 . 2) (4 . 1)) '((3 . 2) (1 . 1))) 16:55:47 schme_: ; Value: ((6 . 2) (5 . 1)) 16:56:02 -!- hellues [n=hellues@88.235.212.178] has quit [Read error: 60 (Operation timed out)] 16:56:06 hellues: Seems both work just fine. Unless I misunderstood what you wanted. 16:56:28 gigabytes: I'm sure whoever wrote rudybot will be glad to take your money and have it join #c 16:57:01 schme_: yes but he have to write a bot like that for the C language not for scheme ihih :D 16:57:53 gigabytes: So what's yer problem with recursion anyway? 16:58:23 yay it stopped raining. 16:58:26 I'm off. 17:01:39 schme_: the problem is the whole function 17:01:45 offby1 pasted "gigabytes' homework: number of substring occurrences" at http://paste.lisp.org/display/69244 17:02:04 Tankado [n=baaa@bzq-79-178-230-149.red.bezeqint.net] has joined #scheme 17:02:10 offby1: O.O 17:03:10 <0-0> 17:03:13 thanks 17:03:16 what is addl? 17:03:25 just (define (add1 x) (+ 1 x)) 17:04:03 -!- Nshag [i=user@Mix-Orleans-106-1-12.w193-248.abo.wanadoo.fr] has quit [Read error: 110 (Connection timed out)] 17:04:48 pfo_ [n=pfo@chello084114049188.14.vie.surfer.at] has joined #scheme 17:05:03 oh 17:05:41 oh 17:05:41 oh 17:05:45 good 17:05:47 I've understood 17:05:50 the example 17:05:54 offby1: thanks :D 17:06:41 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 17:06:45 -!- pfo [n=pfo@chello084114049188.14.vie.surfer.at] has quit [Read error: 60 (Operation timed out)] 17:06:46 Nshag [i=user@Mix-Orleans-106-4-196.w193-248.abo.wanadoo.fr] has joined #scheme 17:07:04 offby1 annotated #69244 with "better" at http://paste.lisp.org/display/69244#1 17:07:49 -!- Hentaixp [n=Techsalv@about/windows/staff/HentaiXP] has quit [Connection timed out] 17:08:12 hellues [n=hellues@85.96.87.105] has joined #scheme 17:09:30 offby1 annotated #69244 with "add this test" at http://paste.lisp.org/display/69244#2 17:11:08 offby1: thank you very much 17:11:20 -!- tizoc [n=user@r190-135-41-127.dialup.adsl.anteldata.net.uy] has quit [Read error: 104 (Connection reset by peer)] 17:11:20 don't expect it to be a regular thing :) 17:11:27 I know 17:11:50 ported scheme to the iPhone yet? 17:11:52 *offby1* whistles innocently 17:11:54 I've been thinking about it for a week before to come here to ask 17:12:13 offby1: not yet X 17:12:14 XD 17:13:28 sigh... 17:13:43 bye bye :D 17:14:03 chandler: weight of the world bearing down on you? 17:14:10 -!- gigabytes [n=gigabyte@host244-235-dynamic.4-87-r.retail.telecomitalia.it] has quit [] 17:14:35 vorpal [n=rhunter@pdpc/supporter/student/vorpal] has joined #scheme 17:18:34 tizoc [n=user@r190-135-0-30.dialup.adsl.anteldata.net.uy] has joined #scheme 17:19:32 -!- duncanm [n=duncan@a-chinaman.com] has quit [Remote closed the connection] 17:19:37 offby1, 17:19:45 can i ask a question to you ? 17:20:17 http://paste.lisp.org/display/69246 17:20:24 can you look at that ? 17:21:03 tizoc_ [n=user@r190-135-6-11.dialup.adsl.anteldata.net.uy] has joined #scheme 17:21:55 -!- tizoc [n=user@r190-135-0-30.dialup.adsl.anteldata.net.uy] has quit [Nick collision from services.] 17:22:00 -!- tizoc_ is now known as tizoc 17:25:46 -!- hellues [n=hellues@85.96.87.105] has quit [Read error: 60 (Operation timed out)] 17:26:56 hellues [n=hellues@78.183.193.190] has joined #scheme 17:26:58 sorry 17:27:08 my connection lost 17:27:20 offby1, are you there ? I wonna ask question 17:27:28 http://paste.lisp.org/display/69246 can you look at that 17:27:38 i cannot find how i can fix it 17:28:45 ewelker [n=edwelker@pool-96-240-132-251.washdc.fios.verizon.net] has joined #scheme 17:29:10 #join python 17:29:20 python 17:29:25 :D 17:29:26 woops :) 17:29:59 ewelker, can i ask a question to you ? If you have time 17:30:31 sure 17:30:36 okey 17:30:38 thank you 17:31:09 http://paste.lisp.org/display/69246 can you look at that ? How can ii fix it ? i cannot fix it :/ 17:32:05 what are you tring to do? 17:32:11 hmm, my scheme is a little rusty, but let me take a look. 17:32:25 rudybot: eval (let fun ((l1 '((2 . 4) (3 . 3) (2 . 2) (1 . 1) (1 . 0))) (l2 '((2 . 5) (5 . 4) (1 . 3) (2 . 2) (6 . 1) (4 . 0)))) (cond ((null? l1) '()) ((> (cdar l1) (cdar l2)) (cons (car l1) (fun (cdr l1) l2))) ((> (cdar l2) (cdar l1)) (cons (car l2) (fun l1 (cdr l2)))) (else (cons (cons (+ (caar l1) (caar l2)) (cdar l1)) (fun (cdr l1) (cdr l2)))))) 17:32:25 xz: ; Value: ((2 . 5) (7 . 4) (4 . 3) (4 . 2) (7 . 1) (5 . 0)) 17:33:00 I wrote that in one shot... 17:33:47 hellues ^^ 17:34:07 hellues: You are being annoying. Don't ask anybody who happens to say anything if they will help you. If nobody is helping you, it is because nobody wants to help you - probably because you have been asking basic questions for months without any visible indication of learning. 17:34:24 hellues I hope you're actually learning something from all these answers... it doesn't appear to be the case. 17:34:39 chandler months? 17:35:00 xz: I'm pretty sure it's been months. 17:35:15 chandler that's awful. 17:35:34 well I only just got here 17:35:43 What is he tring to do ? 17:35:50 Tankado homework, I reckon 17:36:58 hellues you should read the little schemer and learn recursion yourself 17:37:09 hellues it is a great skill to have 17:38:14 i understand mistake i dont find the reason 17:38:27 yes xz you can be sure 17:39:14 so 17:39:24 i ask nothing anymore okey 17:39:26 i am sorry 17:40:19 so if you open drscheme-newbie 17:40:29 its better for trying to learn drscheme 17:41:02 hellues do you understand how my fun works? 17:42:50 yes 17:42:58 but i dont understand the mistake 17:43:13 cadr l is a number 17:43:25 >: expects type as 2nd argument, given: (0.5); other arguments were: 5 17:44:19 (0.5) is not a number 17:45:40 right my brain is cofused sorry 17:46:38 pff 17:47:06 heh 17:48:53 look i just try to learn drscheme because functional programmin and drscheme is attractive to me 17:49:07 if i bother one of us i am coming here 17:49:20 because if i came here, i ask beggining question 17:49:25 because i am beginner 17:49:54 I know you dont say come here but i have to learn 17:50:33 hellues you need to READ a book like The Little Schemer or SICP or HtDP 17:50:44 hellues then you can ask questions here to supplement your learning from the book 17:51:47 xz: There are many styles of learning. Some people learn by reading, some through visual means, and still others learn by pestering other people. 17:52:20 chandler fair enough. 17:52:41 :) 17:53:07 xz, i dont know the reason of that http://paste.lisp.org/display/69250 look at adress pls 17:53:48 hellues rewrite it and make sure you understand why you're typing everything you type 17:54:57 xz, i am sorry to tell this.I will almost cry 17:55:40 OK, that's enough of this. 17:55:44 -!- ChanServ has set mode +o chandler 17:55:47 -!- chandler has set mode +b %hellues!*@* 17:55:49 -!- chandler has set mode -o chandler 17:56:01 lol 17:56:22 ooo what's that? blocked? 17:56:30 a ban 17:56:31 He can hear us, but we can't hear him. 17:56:33 he cant speak 17:56:35 ah okay 17:56:40 It means `nothing to see here; move along now'. 17:58:35 It would be far-fetched of me even to imagine that anyone here might use pkgsrc and be willing to test a work in progress, wouldn't it? 17:58:52 totally outta this world, dude 18:14:40 allnmymi` [n=user@CPE0018f859bed2-CM00195edcdfbc.cpe.net.cable.rogers.com] has joined #scheme 18:17:16 So #scheme is always this fun? 18:21:33 sometimes it's even more fun, if that's possible. 18:21:37 hard to imagine, I know 18:27:19 :) 18:28:02 kaaah [n=karim@joondalup.davromaniak.eu] has joined #scheme 18:28:07 hi 18:28:29 i'm looking for a scheme implementation to extend a program 18:28:37 do you have any suggestions ? 18:28:51 -!- Kusanagi [n=Motoko@unaffiliated/kusanagi] has quit [] 18:30:16 supposedly guile's whole purpose in life is to act as an extension language 18:30:23 but on the other hand people here seem to hate it 18:30:38 there are probably better choices, but I've never done it, so I don't have any real advice 18:30:40 i've already tried it 18:30:45 for some reason "chicken" comes to mind 18:30:47 and it's buggy 18:31:39 google says Elk 18:31:53 kaaah: try Gauche. 18:32:00 trouble with Elk is: nobody here uses it (that I know of) 18:32:07 there's something to be said for sticking close to the herd 18:32:16 synthase [n=synthase@68.63.20.12] has joined #scheme 18:32:22 kaaah: whatever chandler says 18:32:30 -!- ewelker [n=edwelker@pool-96-240-132-251.washdc.fios.verizon.net] has quit [] 18:33:32 -!- synthasee [n=synthase@68.63.20.12] has quit [Read error: 110 (Connection timed out)] 18:33:52 -!- GreyLensman [n=ray@c-76-108-235-51.hsd1.fl.comcast.net] has left #scheme 18:35:58 GoNoGo [n=GoNoGo@cro34-3-82-236-93-215.fbx.proxad.net] has joined #scheme 18:36:41 afton [n=chatzill@S01060013464ba86b.vc.shawcable.net] has joined #scheme 18:37:09 -!- Adamant [n=Adamant@unaffiliated/adamant] has quit [] 18:37:27 -!- hellues [n=hellues@78.183.193.190] has quit [Read error: 110 (Connection timed out)] 18:38:34 Kusanagi [n=Motoko@unaffiliated/kusanagi] has joined #scheme 18:39:58 chandler: I can't find documentation about extending programs with gauche 18:42:51 hellues [n=hellues@78.185.138.48] has joined #scheme 18:47:30 kaaah: I don't think there's a document, but the header files are commented. 18:48:23 ok 18:50:40 -!- CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has quit [Read error: 104 (Connection reset by peer)] 18:52:23 Has anyone tried SigScheme? 18:53:32 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 18:54:08 Oh, fixnum-only. Nevermind. 18:54:52 :) 18:54:56 my feeling too 18:56:25 jon pasted "jon" at http://paste.lisp.org/display/69256 18:56:47 can anyone figure out whats wrong with do-args in that? 18:57:00 if I remove the ellipses on (args fargs ...) then it works 18:59:10 missing paren? 18:59:21 no.. that would be a syntax error 18:59:30 chandler, hardly worth calling `Scheme'. Their `CWCC' is setjmp. The macro system appears highly confused. 18:59:31 bad syntax means syntax-case didn't match the pattern 19:00:06 but why doesn't the error message balance? 19:00:25 huh 19:00:36 oh hm.. 19:00:36 Riastradh: Heh. I see that now; I was initially misled because they purported to implement R5RS. 19:00:46 maybe I just didnt copy/paste all of it 19:01:05 is there more after the block? 19:01:05 yea there should be one more parens on the end of the error, it just didnt paste 19:01:08 okay 19:01:16 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 19:01:27 there is some subtle difference between the syntax i'm matching and what I give as an example beneath that 19:01:41 but as far as I can tell they are identicial 19:05:41 hm, but my example works when taken alone 19:07:14 I don't know. Maybe try inlining do-args and see if that makes a difference. 19:11:06 besiria [n=user@ppp083212086151.dsl.uom.gr] has joined #scheme 19:11:18 it's bad syntax 19:14:55 hmm 19:15:07 i think i have run into an issue like this before 19:16:49 for some reason Function-arglist is not free-identifier=? with the other one 19:17:12 oh with the first example? 19:17:40 shouldnt do-args just be a procedure? 19:17:54 it is a procedure 19:18:27 im not familiar with define-for-syntax 19:18:28 kuribas [i=kristof@d54C43E38.access.telenet.be] has joined #scheme 19:18:50 it defines a procedure that you can use inside a define-syntax 19:18:56 phases and all that 19:19:00 ahh ok 19:19:11 gigabytes [n=gigabyte@host244-235-dynamic.4-87-r.retail.telecomitalia.it] has joined #scheme 19:19:26 well I seem required to add Function-arglist to the literal datum's to match 19:19:39 so it shouldn't be free-identifier='ing Function-arglist 19:20:39 literals are compared with free-identifier=? 19:21:02 oh 19:22:11 try removing that from the literals, then compare the 1st arg with eq? 'Function-arglist 19:22:40 ok 19:22:44 you could also define Function-arglist above both the macros, maybe 19:22:58 huh? 19:23:12 Function-arglist can't be a macro itself because its not used in an expression context 19:23:21 just define it as anything 19:23:25 oh ok 19:24:01 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 19:25:17 -!- synthase [n=synthase@68.63.20.12] has quit [No route to host] 19:25:23 https://bugs.launchpad.net/ikarus/+bug/248476 19:26:06 so maybe I should change some other literal datums, like args or rest ? 19:26:43 hm, no that didnt fix it 19:27:04 -!- allnmymi` [n=user@CPE0018f859bed2-CM00195edcdfbc.cpe.net.cable.rogers.com] has quit [Operation timed out] 19:27:40 -!- hellues [n=hellues@78.185.138.48] has left #scheme 19:27:44 hellues [n=hellues@78.185.138.48] has joined #scheme 19:28:11 -!- hellues [n=hellues@78.185.138.48] has left #scheme 19:28:15 hellues [n=hellues@78.185.138.48] has joined #scheme 19:30:45 chandler, lisppaste is sending out bogus ISO 8601 date strings, with a mixture of the basic and extended formats. 19:30:57 ...on the XML-RPC interface. 19:31:09 I don't know whether this is lisppaste's fault or S-XML-RPC's fault, but it's making a strict parser choke. 19:31:21 It's S-XML-RPC's fault, no doubt. 19:32:12 Yep... UNIVERSAL-TIME->ISO8601 in s-xml-rpc/src/xml-rpc.lisp is broken. 19:32:14 Argh. 19:32:40 Oops. 19:32:43 No, XML-RPC is broken. ARGH. 19:33:01 Well, that's a surprise :-) 19:33:04 leppie, ahh that was it! rest somehow wasn't free-identifier= 19:33:10 I changed it to foobar and it worked 19:33:42 Actually, the XML-RPC specification doesn't even say what the format really is. 19:33:50 It gives a *single* example, and that's all it says about the date elements. 19:34:43 jonrafkind: cool 19:34:57 that seems like a bug though 19:35:06 is rest defined somewhere? 19:35:06 i mean.. its incredibly frustrating to figure out 19:35:16 not in my code.. maybe somewhere in the system 19:35:49 at least in R6RS you will get a syntax error if that happens :) 19:36:13 thats a step up from "error! abort!" 19:36:29 terminate? 19:36:56 and stay resident 19:37:16 well if I printf what rest is it says its unbound 19:38:15 and (rest) ? 19:38:55 still unbound 19:39:27 maybe its inside 'define-for-syntax' 19:39:42 i was printing inside define-for-syntax 19:40:09 attila_lendvai [n=ati@business-89-132-61-222.business.broadband.hu] has joined #scheme 19:40:35 weird 19:50:08 Axioplase [n=Pied@dino12.iro.umontreal.ca] has joined #scheme 19:50:10 -!- Axioplase [n=Pied@dino12.iro.umontreal.ca] has quit [Client Quit] 19:51:21 -!- Axioplase_ is now known as Axioplase 19:57:27 -!- afton [n=chatzill@S01060013464ba86b.vc.shawcable.net] has quit [Read error: 110 (Connection timed out)] 19:59:44 -!- Kusanagi [n=Motoko@unaffiliated/kusanagi] has quit [] 20:02:09 Kusanagi [n=Motoko@unaffiliated/kusanagi] has joined #scheme 20:09:49 -!- besiria [n=user@ppp083212086151.dsl.uom.gr] has quit [Remote closed the connection] 20:14:23 johnnowak [n=johnnowa@207-38-171-48.c3-0.wsd-ubr1.qens-wsd.ny.cable.rcn.com] has joined #scheme 20:26:44 rmns [n=ramunas@88.222.137.30] has joined #scheme 20:30:56 -!- bpt [n=bpt@cpe-071-070-209-067.nc.res.rr.com] has quit [Read error: 104 (Connection reset by peer)] 20:31:53 jewel [n=jewel@dsl-242-166-102.telkomadsl.co.za] has joined #scheme 20:33:32 -!- pjdelport [n=pjd@ampere.divmod.com] has quit [Remote closed the connection] 20:34:46 pjdelport [n=pjd@dsl-243-1-136.telkomadsl.co.za] has joined #scheme 20:36:57 -!- gigabytes [n=gigabyte@host244-235-dynamic.4-87-r.retail.telecomitalia.it] has quit [] 20:45:36 -!- jgracin [n=jgracin@82.193.208.195] has quit [Remote closed the connection] 20:45:49 bpt [n=bpt@cpe-071-070-209-067.nc.res.rr.com] has joined #scheme 20:46:21 duncanm [n=duncan@a-chinaman.com] has joined #scheme 20:46:47 dum de dum, la la la 20:46:54 offby1: you got your wsh 20:46:58 wish 20:47:03 -!- Axioplase [n=Pied@trex.iro.umontreal.ca] has quit ["brb"] 20:47:11 offby1: my linode restarted 2 hrs ago, for whatever reason 20:47:12 Axioplase [n=Pied@trex.iro.umontreal.ca] has joined #scheme 20:48:40 -!- Axioplase is now known as Axioplase_ 20:48:46 salut salut! 20:48:59 salut ! 21:03:25 duncanm: but did rudybot say "hi" or anything when you joined?! 21:03:28 he did not!! 21:03:36 -!- vasa [n=vasa@mm-37-88-84-93.dynamic.pppoe.mgts.by] has quit ["I am not vasya, i am vasa"] 21:03:39 he's s'posed to :-( 21:06:01 sorry 21:06:16 offby1: did rudybot get rebooted too (because of linode) 21:06:17 ? 21:06:58 oh! 21:07:04 didn't think to check. 21:07:07 rudybot: uptime 21:07:07 offby1: I've been up for one week; this tcp/ip connection has been up for one week 21:07:10 grr 21:08:46 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 21:13:28 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 21:13:42 synthasee [n=synthase@68.63.20.12] has joined #scheme 21:13:46 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 21:20:04 offby1: i see that you're in git, are you using it now? 21:20:24 #@git 21:20:24 #git 21:26:40 -!- vorpal [n=rhunter@pdpc/supporter/student/vorpal] has quit ["The incensed priests...continued to raise their voices, vituperating each other in bad Latin"] 21:26:58 ya 21:27:00 lovin' it too 21:27:03 rudybot: source 21:27:03 offby1: http://rudybot.ath.cx:1234 21:27:05 vorpal [n=rhunter@pdpc/supporter/student/vorpal] has joined #scheme 21:27:06 oh 21:27:20 well, anyway, I copied the bot's source to github, like all the cool kids 21:27:53 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 21:29:52 offby1: i've been using git too, but lately, i have started to need to program on Windows 21:30:01 offby1: and git's support on windows is still very basic 21:30:14 offby1: so i set up my own mercurial server too - their windows integration is very good 21:30:56 well, now, as far as I know, git works fine on Windows -- if you're willing to use Cygwin. 21:31:08 Msysgit, though, keeps baffling me. 21:32:42 -!- jonrafkind [n=jon@c-98-202-86-149.hsd1.ut.comcast.net] has quit [Read error: 110 (Connection timed out)] 21:33:57 jonrafkind [n=jon@c-67-186-250-110.hsd1.co.comcast.net] has joined #scheme 21:44:38 eli, ping 21:47:09 whoosh 21:52:25 -!- puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has quit ["Konversation terminated!"] 21:59:18 lukeparrish [n=opera@74-36-210-33.dr01.hmdl.id.frontiernet.net] has joined #scheme 22:04:58 -!- Tankado [n=baaa@bzq-79-178-230-149.red.bezeqint.net] has quit [] 22:06:44 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 22:06:45 bombshelter13 [n=bombshel@209-161-224-239.dsl.look.ca] has joined #scheme 22:06:54 -!- GoNoGo [n=GoNoGo@cro34-3-82-236-93-215.fbx.proxad.net] has quit ["ChatZilla 0.9.83 [Firefox 3.0.3/2008092417]"] 22:10:10 CaptainMorgan [n=CaptainM@c-24-61-150-59.hsd1.ma.comcast.net] has joined #scheme 22:14:22 offby1: working on that silly thing got me thinking about refactoring 22:15:20 hmm, maybe the redshank mode has something for lifting expressions into lambdas in the local scope 22:18:49 http://www.foldr.org/~michaelw/emacs/redshank/ 22:19:35 offby1` [n=user@q-static-138-125.avvanta.com] has joined #scheme 22:20:37 -!- hellues [n=hellues@78.185.138.48] has quit [Client Quit] 22:24:52 Adamant [n=Adamant@c-98-244-152-196.hsd1.ga.comcast.net] has joined #scheme 22:26:37 npe [n=npe@66.112.249.148] has joined #scheme 22:26:52 -!- offby1 [n=user@q-static-138-125.avvanta.com] has quit [Nick collision from services.] 22:26:54 -!- offby1` is now known as offby1 22:31:49 jonrafkind: dong 22:32:10 eli, I reworked my program like we talked about but check syntax isnt drawing lines 22:32:22 I dont provide line/column, just position/span. is that enough? 22:32:46 Probably not. 22:32:54 chongkai claimed it was.. 22:32:59 But that's just a guess. 22:33:37 eli: Why did I say Typed Scheme wasn't Scheme? I dunno. I guess I assumed there was something non-standard about it 22:34:35 offby1: I forgot about the question... 22:35:10 offby1: In any case, it is trying pretty hard to adapt to plain scheme idioms, so it's not really that different from just scheme 22:35:19 (except for the types, of course) 22:37:57 -!- Nshag [i=user@Mix-Orleans-106-4-196.w193-248.abo.wanadoo.fr] has quit [Remote closed the connection] 22:38:46 Nshag [i=user@Mix-Orleans-106-4-196.w193-248.abo.wanadoo.fr] has joined #scheme 22:43:35 -!- saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit ["This computer has gone to sleep"] 22:44:59 eno [n=eno@nslu2-linux/eno] has joined #scheme 22:47:12 lelf [n=lelf@217.118.90.125] has joined #scheme 22:54:50 -!- jewel [n=jewel@dsl-242-166-102.telkomadsl.co.za] has quit [Read error: 113 (No route to host)] 22:54:57 jon_ [n=jon@wireless30.wireless.utah.edu] has joined #scheme 22:57:14 AshyIsMe [n=User@b415.adsl.ecomtel.com.au] has joined #scheme 22:57:18 -!- jonrafkind [n=jon@c-67-186-250-110.hsd1.co.comcast.net] has quit [Read error: 110 (Connection timed out)] 23:03:16 eli: ping 23:04:38 -!- fschwidom [n=fschwido@dslb-088-068-119-139.pools.arcor-ip.net] has quit [Remote closed the connection] 23:08:36 -!- jon_ is now known as jonrafkind 23:09:01 -!- elmex [n=elmex@e180067008.adsl.alicedsl.de] has quit [Remote closed the connection] 23:10:57 -!- vorpal [n=rhunter@pdpc/supporter/student/vorpal] has quit ["The incensed priests...continued to raise their voices, vituperating each other in bad Latin"] 23:20:09 Axioplase [n=Pied@APuteaux-155-1-100-164.w90-44.abo.wanadoo.fr] has joined #scheme 23:32:07 -!- hiyuh [n=hiyuh@KD125054017176.ppp-bb.dion.ne.jp] has quit ["|_ e /\ \/ i |/| G"] 23:34:49 -!- lelf [n=lelf@217.118.90.125] has quit ["used jmIrc"] 23:36:52 -!- attila_lendvai [n=ati@business-89-132-61-222.business.broadband.hu] has quit ["..."] 23:38:14 Lambda3 [n=daniel@66-189-171-179.dhcp.trlk.ca.charter.com] has joined #scheme 23:38:33 -!- Lambda3 [n=daniel@66-189-171-179.dhcp.trlk.ca.charter.com] has left #scheme 23:48:30 samth [n=samth@punge.ccs.neu.edu] has joined #scheme 23:48:51 -!- hotblack23 [n=jh@p5B055A23.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 23:49:07 -!- hkBst [n=hkBst@gentoo/developer/hkbst] has quit [Remote closed the connection] 23:49:20 -!- samth_away [n=samth@punge.ccs.neu.edu] has quit [Read error: 104 (Connection reset by peer)] 23:52:36 -!- bombshelter13 [n=bombshel@209-161-224-239.dsl.look.ca] has quit [] 23:54:28 GreyLensman [n=ray@c-76-108-235-51.hsd1.fl.comcast.net] has joined #scheme 23:54:43 -!- GreyLensman [n=ray@c-76-108-235-51.hsd1.fl.comcast.net] has left #scheme 23:58:06 Lambda3 [n=daniel@66-189-171-179.dhcp.trlk.ca.charter.com] has joined #scheme 23:58:23 -!- Lambda3 [n=daniel@66-189-171-179.dhcp.trlk.ca.charter.com] has left #scheme