00:00:58 hehe 00:01:07 Can't blame you though. It's really tricky. 00:02:57 The module is relatively small, doesn't do anything overly weird, stands up to stress tests, yet when used in my main program it segfaults. 00:03:13 sporadically 00:03:26 in another module entirely 00:04:15 Adamant [n=Adamant@c-76-29-188-22.hsd1.ga.comcast.net] has joined #scheme 00:11:19 ...thus disabling sqlite support for plt... 00:21:29 -!- attila_lendvai_ [n=ati@adsl-89-132-7-248.monradsl.monornet.hu] has quit [Read error: 113 (No route to host)] 00:25:12 synthase [n=synthase@68.63.19.212] has joined #scheme 00:25:18 JasonPx [i=Jason@rasengan.rit.edu] has joined #scheme 00:26:48 hey guys, im new to scheme.. and im doing a simple function here.. but when i input (boom 3 1) i get an error. ; http://pastebin.com/d29689863 00:27:25 basically boom is a function that returns a^b 00:29:53 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 00:30:09 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 00:32:29 CaptainMorgan [n=CaptainM@c-75-68-42-94.hsd1.nh.comcast.net] has joined #scheme 00:35:17 -!- meanburrito920_ is now known as found 00:35:55 -!- found is now known as meanburrito920_ 00:36:58 orgy__ [n=ratm_@pD9FFEBED.dip.t-dialin.net] has joined #scheme 00:38:56 -!- meanburrito920_ is now known as gentoo_cow 00:39:25 can somebody tell me what's wrong with this code http://pastebin.com/d29689863 ; the function do a^b 00:39:34 im getting some argument error 00:39:53 (boom 3 1) gives this error: " procedure application: expected procedure, given: 3; arguments were: 0" 00:40:40 -!- gentoo_cow is now known as broccoli 00:41:03 -!- broccoli is now known as your_testicles 00:41:18 Why are you doing (a) if a is a number? 00:41:54 -!- your_testicles is now known as meanburrito920_ 00:42:14 -!- meanburrito920_ [n=John@76-217-6-100.lightspeed.irvnca.sbcglobal.net] has left #scheme 00:42:41 initially there was no () wrapping it 00:42:45 i did it just in case 00:43:01 -!- jlongster [n=user@75.148.111.133] has quit [Read error: 113 (No route to host)] 00:43:04 Old C habits never die... 00:43:15 i never done C 00:43:16 :< 00:44:00 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 54 (Connection reset by peer)] 00:44:06 so can anyone pinpoint what might be wrong? im out of ideas 00:44:26 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 00:44:38 In Scheme, if A is 3. Then (A) is an error. 00:45:41 mejja: ok, even removing the () from (A), gives me the same error 00:46:08 because you did the same thing at (a (- b 1)) 00:47:10 p1dzkl: i want to pass a and b-1 to boom. 00:47:20 (boom a (- b 1)) 00:47:32 right 00:47:46 oooooh 00:48:02 i see now 00:49:35 p1dzkl: ok getting the gist of it 00:49:38 thanks 00:53:05 -!- orgy_ [n=ratm_@pD9FFEBD8.dip.t-dialin.net] has quit [Read error: 101 (Network is unreachable)] 00:56:02 -!- Qaexl [n=Akashakr@c-24-30-97-247.hsd1.ca.comcast.net] has quit [Read error: 104 (Connection reset by peer)] 00:56:59 _Pb [n=Pb@75.139.137.1] has joined #scheme 01:07:31 cads [n=max@c-76-122-89-218.hsd1.ga.comcast.net] has joined #scheme 01:10:28 -!- JasonPx [i=Jason@rasengan.rit.edu] has quit [Read error: 110 (Connection timed out)] 01:13:37 In plt, there's nothing wrong with passing collectable bytes to a C function, if said function explicitly states it's making an internal copy of the data, right? 01:13:37 -!- _Pb [n=Pb@75.139.137.1] has quit [Read error: 104 (Connection reset by peer)] 01:14:51 JasonPx [n=Jason@ipanema.parkpointrit.com] has joined #scheme 01:19:10 -!- hkBst [n=hkBst@gentoo/developer/hkbst] has quit [Read error: 104 (Connection reset by peer)] 01:20:39 _Pb [n=Pb@75.139.137.1] has joined #scheme 01:27:38 jonrafkind [n=jon@c-98-202-86-149.hsd1.ut.comcast.net] has joined #scheme 01:30:41 -!- raikov [n=igr@203.181.243.11] has quit [Remote closed the connection] 01:34:07 -!- cads [n=max@c-76-122-89-218.hsd1.ga.comcast.net] has quit [Read error: 113 (No route to host)] 01:35:58 -!- _Pb [n=Pb@75.139.137.1] has quit ["Leaving"] 01:39:56 -!- ttmrichter_ [n=ttmricht@219.140.250.126] has quit [SendQ exceeded] 01:42:21 sepult_ [n=buggarag@xdsl-87-78-26-19.netcologne.de] has joined #scheme 01:47:48 -!- sepult [n=buggarag@xdsl-87-78-30-70.netcologne.de] has quit [Read error: 104 (Connection reset by peer)] 01:50:02 -!- jao [n=jao@obfw.oblong.net] has quit [Read error: 110 (Connection timed out)] 01:53:44 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 01:54:01 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 01:54:33 -!- mmc [n=mima@cs131216.pp.htv.fi] has quit [Read error: 110 (Connection timed out)] 01:58:19 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 02:02:44 incubot: So what's the best 10cc song? 02:02:48 If really you would want Common Lisp, but have a Scheme fetish, Gauche is probably the best bet. 02:03:24 incubot: I think it might be "I'm not in love" 02:03:27 ahh... I love KDE 02:11:10 what's the proper way of translating this: if ( a==b||a==c) //a,b,c are strings 02:11:18 offby1 [n=user@q-static-138-125.avvanta.com] has joined #scheme 02:11:25 something like (string=? pepper (or "Pimento" "Pepperoncini") seem's wrong 02:11:43 it only recognizes "Pimento" 02:12:44 try evaluating only (or "Pimento" "Pepporoncini") 02:13:26 that might help you understand 02:13:53 returns Pimento.. so i guess i used the or wrong? 02:14:34 or returns the first true value, in this case "Pimento" 02:14:48 kilimanjaro [n=kilimanj@70.116.95.163] has joined #scheme 02:15:24 offby1` [n=user@q-static-138-125.avvanta.com] has joined #scheme 02:15:31 what you want is more like (or (string=? pepper "Pimento") (string=? pepper "Pepperoncini")) 02:15:59 -!- breily [n=breily@173.15.192.254] has quit [] 02:16:54 i thought i might able to condense that 02:16:56 but i guess not. 02:17:09 rudybot__ [n=luser@q-static-138-125.avvanta.com] has joined #scheme 02:18:20 not like that, but you can use (member pepper (list "Pimento" "Pepporoncini")) or maybe the case syntax 02:21: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"] 02:22:37 mejja: obviously 02:23:35 zbigniew: Huh? 02:24:13 p1dzkl: how do i do case with strings? 02:25:48 (case pepper 02:25:48 (("green") "100") // "green" will not be recognize. pepper is the name of the argument being passed in 02:27:29 mejja: the 10cc song, silly 02:28:23 sorry JasonPx, case doesn't work with strings, I was wrong 02:30:39 -!- offby1 [n=user@q-static-138-125.avvanta.com] has quit [Read error: 110 (Connection timed out)] 02:31:05 -!- rudybot_ [n=luser@q-static-138-125.avvanta.com] has quit [Read error: 110 (Connection timed out)] 02:31:28 ok hmm 02:31:48 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 02:31:49 p1dzkl: if i wanna do member and list .. what should i google to learn more about it 02:32:01 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 02:32:16 R5RS 02:34:46 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 02:35:23 -!- offby1` is now known as offby1 02:41:12 bohanlon [n=bohanlon@TUBERIUM.CLUB.CC.CMU.EDU] has joined #scheme 02:43:15 -!- mejja [n=user@c-f6b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 02:53:10 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 54 (Connection reset by peer)] 02:53:17 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 02:54:41 Qaexl [n=Akashakr@c-24-30-97-247.hsd1.ca.comcast.net] has joined #scheme 03:03:56 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Remote closed the connection] 03:05:01 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 03:11:35 ttmrichter_ [n=ttmricht@219.140.250.126] has joined #scheme 03:14:41 -!- kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has quit ["Leaving"] 03:21:11 kniu [n=kniu@OVERLORD.RES.CMU.EDU] has joined #scheme 03:24:26 hadronzoo [n=hadronzo@ppp-70-251-65-79.dsl.rcsntx.swbell.net] has joined #scheme 03:25:27 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 54 (Connection reset by peer)] 03:25:43 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 03:35:01 -!- hadronzoo [n=hadronzo@ppp-70-251-65-79.dsl.rcsntx.swbell.net] has quit [Read error: 60 (Operation timed out)] 03:45:01 -!- sepult_ [n=buggarag@xdsl-87-78-26-19.netcologne.de] has quit [Client Quit] 03:45:05 -!- JasonPx [n=Jason@ipanema.parkpointrit.com] has quit ["Leaving"] 03:54:32 -!- MichaelRaskin_ [n=raskin@gwh-1-177-mytn23k1.ln.rinet.ru] has quit [Remote closed the connection] 03:58:07 sykopomp [n=user@unaffiliated/sykopomp] has joined #scheme 03:58:44 eno__ [n=eno@adsl-70-137-154-250.dsl.snfc21.sbcglobal.net] has joined #scheme 03:59:16 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 104 (Connection reset by peer)] 03:59:27 heya. CL guy here. Looking to give PLT an actual whirl (as opposed to poking at it and gasping at its weirdness). From what I've found so far, Quack seems like something I might feel relatively at home with, since I'm so used to slime+paredit. Any thoughts or recommendations? 04:00:23 JasonPx [n=Jason@ipanema.parkpointrit.com] has joined #scheme 04:02:16 -!- bweaver [n=user@75.148.111.133] has quit [Read error: 113 (No route to host)] 04:02:55 Quack is basically cmuscheme.el with a few additions; that said, I use and like it, in combination with paredit 04:10:04 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 04:10:06 tjafk2 [n=timj@e176223091.adsl.alicedsl.de] has joined #scheme 04:10:18 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 04:13:58 how do i find if an element is in an list? with "member"? 04:14:43 Depends on what type the element is. 04:15:04 also: is it really bad style to just use (let ((foo bar)) ..) instead of (let ([foo bar]) ..)? 04:15:04 dfeuer [n=dfeuer@wikimedia/Dfeuer] has joined #scheme 04:15:52 The second is nonstandard and, many argue, bad style. 04:16:07 Well, I guess it's standard in R6RS now. 04:16:20 If you're into that kind of stuff. 04:18:11 JasonPx: read the following section http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_sec_6.1 04:18:14 -rudybot__:#scheme- http://tinyurl.com/2tsxfk 04:18:44 JasonPx: and consider that member compares using equal?, memv using eqv?, and memq using eq?. 04:19:53 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Nick collision from services.] 04:20:01 sladegen [n=nemo@unaffiliated/sladegen] has joined #scheme 04:20:31 -!- gweiqi [n=greg@69.120.126.163] has left #scheme 04:21:19 zbigniew: im still new to scheme. but is there such thing as a list of strings? 04:21:45 '("foo" "bar" "baz")? 04:22:24 incubot: eval (list "foo" "bar" "baz") 04:22:24 (foo bar baz) 04:22:37 print, eh? 04:22:44 rudybot__: eval (list "foo" "bar" "baz") 04:22:45 zbigniew: your sandbox is ready 04:22:45 zbigniew: ; Value: ("foo" "bar" "baz") 04:27:10 -!- tjafk1 [n=timj@e176215022.adsl.alicedsl.de] has quit [Read error: 110 (Connection timed out)] 04:28:58 -!- eno__ is now known as eno 04:41:05 is there ways to have make a symbol "jason is cool " 04:41:19 so space matters 04:46:09 JasonPx: '|jason is cool| 04:46:16 But don't do that. Seriously. 04:47:53 You can find all sorts of funky symbol notation with the string->symbol function. 04:48:43 raikov [n=igr@203.181.243.11] has joined #scheme 04:49:21 rudybot__: eval (display (format "~a" '|'| )) 04:49:22 synx: your scheme sandbox is ready 04:49:22 synx: ; stdout: "'" 04:50:48 rudybot__: eval (string->symbol "vanilla ice is cool ...?") 04:50:49 zbigniew: ; Value: |vanilla ice is cool ...?| 04:55:24 rudybot__: (symbol? '\\/\|) 04:55:25 synx: eh? Try "rudybot__: help". 04:55:29 hadronzoo [n=hadronzo@ppp-70-251-95-175.dsl.rcsntx.swbell.net] has joined #scheme 04:55:42 rudybot__: eval (symbol? '\\/\|) 04:55:43 synx: ; Value: #t 04:59:33 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 05:00:00 zbigniew: pp would have done the trick, eh? 05:00:27 or even write 05:01:35 dude, you had vanilla ice on the mind? 05:04:26 ice ice baby 05:05:15 incubot: vanilla ice was the crepuscle or daemmerung of evening-landish (abendlaendisch) culture; or, vanilla ice: decadence' prometheus 05:05:15 Error: unbound variable: vanilla 05:05:22 incubot: vanilla ice was the crepuscle or daemmerung of evening-landish [abendlaendisch] culture; or, vanilla ice: decadence' prometheus 05:05:25 also, that's proof-enough that r6rs suppers from terminal decadence; r5rs is a very comfortable print 05:06:06 incubot: last time r6rs suppered at my joint, it was reminiscent of borat's dinner in the south 05:06:09 I think Ali G/Borat is friggin' hilarious. 05:10:10 m801 [n=user@wsip-72-214-25-53.sd.sd.cox.net] has joined #scheme 05:11:45 incubot: exactly; r6rs shat in a bag, and brought a portly prostitute 05:11:48 Yeah! Darwin's a portly 200K! 05:20:00 incubot: vanilla ice: abend 05:20:03 guten abend her Smicht 05:24:07 is ' == ` ? 05:24:41 does r6rs shit in the woods? 05:25:01 answer, no. 05:37:22 heh 05:38:47 zbigniew: http://1.bp.blogspot.com/_Bn49YpkPuho/R1qkk46VGuI/AAAAAAAAAA4/WXjL5irYWpQ/S300/bear.jpg 05:38:50 -rudybot__:#scheme- http://tinyurl.com/cf8vad 05:43:23 hadronzoo_ [n=hadronzo@gateway.publicvpn.net] has joined #scheme 05:51:38 hadronzoo__ [n=hadronzo@ppp-70-251-95-175.dsl.rcsntx.swbell.net] has joined #scheme 05:51:51 -!- hadronzoo [n=hadronzo@ppp-70-251-95-175.dsl.rcsntx.swbell.net] has quit [Read error: 104 (Connection reset by peer)] 05:52:07 indeed 05:58:06 what does cons exactly do? seems like it print outs whatever you add into it.. but it actually doesnt? 05:58:09 http://snipplr.com/view/9002/cons/ 06:02:10 athos [n=philipp@92.250.250.68] has joined #scheme 06:03:48 -!- hadronzoo__ [n=hadronzo@ppp-70-251-95-175.dsl.rcsntx.swbell.net] has quit [] 06:08:21 JasonPx: cons takes two things, and combines them into what they call a "pair", which is one thing. 06:08:59 rudybot__: eval (cons 1 2) 06:08:59 synx: ; Value: (1 . 2) 06:09:12 ok 06:09:18 got that now.. 06:09:49 -!- hadronzoo_ [n=hadronzo@gateway.publicvpn.net] has quit [Read error: 110 (Connection timed out)] 06:10:05 Sometimes they call pairs "cons cells" 06:10:16 The hard part to get is how a 'list' is just a bunch of pairs. 06:10:41 i currently see it as a linked-node 06:10:56 rudybot__: eval (cons 1 (cons 2 (cons 3 4))) 06:10:56 synx: ; Value: (1 2 3 . 4) 06:11:13 One way to model lists is as a binary tree. 06:11:57 rudybot__: eval ( cddr( 3 1 2) ) 06:11:58 JasonPx: your sandbox is ready 06:11:58 JasonPx: error: procedure application: expected procedure, given: 3; arguments were: 1 2 06:12:09 (1 2 3 . 4) isn't a list by the way. But if you use the special value '() as the last member of a pair, it becomes a proper list. 06:12:20 woah 06:12:24 lemme think abuot that one 06:12:45 rudybot__: eval (cons 1 (cons 2 (cons 3 (cons 4 '())))) 06:12:45 synx: ; Value: (1 2 3 4) 06:13:02 geckosenator [n=sean@71.237.94.78] has joined #scheme 06:13:08 The (cons 4 '() ) thing is what does it. '() is the 'last' member of the list. 06:14:36 rudybot__: eval ( cons 1 ( 2 3 4 ) ) 06:14:36 JasonPx: error: procedure application: expected procedure, given: 2; arguments were: 3 4 06:15:36 synx: what im doing wrong here? 06:15:50 One thing you have to remember with scheme is, unlike with C java or python, you put the function inside the (. So in C you would write "function(something,something_else)" but in scheme you would write "(procedure something something-else)" 06:16:06 ok 06:16:12 rudybot__: (eval ( cons 1 ( 2 3 4 ) ) ) 06:16:12 JasonPx: eh? Try "rudybot__: help". 06:16:17 For the most part "(something" means "call the procedure something" 06:16:45 So "( 2 3 4 )" means "Call the procedure 2 on arguments 3 and 4" 06:16:56 Or apply the procedure to the arguments. 06:16:57 2 isn't a procedure though. 06:16:59 o 06:17:13 What you need is 'list' 06:17:22 rudybot__: eval ( cons 1 (list 2 3 4) ) 06:17:22 JasonPx: ; Value: (1 2 3 4) 06:17:24 sweet 06:17:45 rudybot__: eval ( cons 1 (cddr (list 2 3 4) ) ) 06:17:45 JasonPx: ; Value: (1 4) 06:18:04 See how I typed (cons 1 (cons 2 (cons 3 (cons 4 '())))) that was just the verbose way to do it. (list 1 2 3 4) is exactly the same. 06:19:02 It's a little confusing... when you evaluate (list 1 2 3 4) what it outputs is "(1 2 3 4)" not "(list 1 2 3 4)". 06:20:13 npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has joined #scheme 06:20:31 ok so let say i have (1 2 3 . 4) ;it's not a list as you mention... then what is it? 06:20:56 They call it a "dotted list" 06:21:04 -!- raikov [n=igr@203.181.243.11] has quit [Remote closed the connection] 06:21:14 Not many people use it in practice, but it's essential for things like argument lists. 06:22:10 well i've just started scheme 5hours ago. 06:22:22 and wow, this is quite mind boggling 06:22:40 but you have been a big help 06:22:49 Sorry if I'm going too fast. ^.^; 06:23:05 I've been doing this stuff for at least half a year now. 06:23:06 nah your at a right pace.. and most user will ignore me :( 06:24:00 jao [n=jao@cpe-75-84-114-170.socal.res.rr.com] has joined #scheme 06:24:10 You're doing pretty good I'd say. Just be careful not to make assumptions about how you ought to write something. 06:25:31 hmm well i ahve to write a recursive function finding the max # in a list using the basic operations 06:25:43 -!- kniu [n=kniu@OVERLORD.RES.CMU.EDU] has quit [Read error: 110 (Connection timed out)] 06:25:56 so far i think i can use cdr and con to do it.. 06:26:03 kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has joined #scheme 06:31:49 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 104 (Connection reset by peer)] 06:32:43 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 06:32:58 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 06:35:27 -!- npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has quit [] 06:35:41 That shouldn't be too hard. Just make sure you have an end condition. 06:35:47 stop condition. I forget what they call it. Thing where you stop recursing and return. 06:36:10 eno [n=eno@nslu2-linux/eno] has joined #scheme 06:37:30 tyea 06:39:53 incubot: mary poppins is the violent figure of dionysus/prometheus against mr. banks' apollo 06:39:56 Mary Poppins version, in fact. 06:41:17 npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has joined #scheme 06:45:26 elderK [n=zk@222-152-97-109.jetstream.xtra.co.nz] has joined #scheme 06:48:22 ASau` [n=user@host178-230-msk.microtest.ru] has joined #scheme 06:52:19 arcfide: pong 06:54:03 -!- athos [n=philipp@92.250.250.68] has quit ["leaving"] 06:55:04 is there a way to confirm if an argument iis a list or not? 06:55:35 nvm seems like it's "list?" 06:57:38 why do you need that ? 06:58:51 attila_lendvai_ [n=ati@adsl-89-132-7-248.monradsl.monornet.hu] has joined #scheme 07:11:35 -!- ski [n=slj@c-e113e055.1149-1-64736c10.cust.bredbandsbolaget.se] has quit ["Reconnecting"] 07:11:37 ski [n=slj@c-e113e055.1149-1-64736c10.cust.bredbandsbolaget.se] has joined #scheme 07:23:01 Ragnaroek [i=54a67999@gateway/web/ajax/mibbit.com/x-be4d4cacb8e1e466] has joined #scheme 07:29:12 i have to return a list.. is there a way to manipulate the list so it can return false than it's actual content? 07:31:11 Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has joined #scheme 07:33:56 mejja [n=user@c-f6b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #scheme 07:35:11 -!- npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has quit [] 07:35:45 JasonPx : so *what* can return false ? 07:35:53 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 07:36:03 booleans 07:36:33 i don't understand the context 07:36:40 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 07:36:46 could you describe it ? 07:36:55 or maybe you have made a paste with code ? 07:38:39 http://pastebin.com/d742b8516 is what i have to do. line5 is what i'm not sure of 07:39:11 result false.. 07:39:16 Yes. 07:39:34 That's how "map" is implemented. 07:40:25 Either write your function directly or make your lists match. 07:40:58 E.g. prepend one of them with zeros. 07:41:37 what do you mean write function by directly? and prepend with zeroes? 07:42:20 ASau` : if the two lists don't have same length, the result should be the false value 07:42:36 right.. 07:43:28 Glavata [i=debug@suid.rwxr-xr-x.org] has joined #scheme 07:43:43 my function has to be recursive.. and since i will have to return a list of #s if all goes well, then no matter what i have to return a list even if the length of the two list doesnt match 07:44:12 -!- Glavata [i=debug@suid.rwxr-xr-x.org] has left #scheme 07:44:17 so to make my list's result false.. does that mean i kill it somehow? 07:45:54 you *could* start by checking the length of the lists, and if they're not the same, yield false 07:47:52 what's the other option? 07:48:10 because i thought of that before.. but it seems inefficent or lazy 07:48:21 reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 07:51:23 you could let each recursive call yield as a result an indication of either the lists were not the same length, or they were the same length, and in that case also give the answer for the recursive call 07:51:33 consider 07:51:55 (lists-add (list 1 2 3) (lists 10 20 30)) 07:52:09 possibly this will have as a recursive call 07:52:17 (lists-add (list 2 3) (list 20 30)) 07:53:28 so, if you check the result of the recursive call to see if it "succeeded" or not, you could then either make the current call fail, or cons `11' on top of the returned list 07:53:43 JasonPx : i'm not sure if i'm explaining sufficiently clear .. 07:57:11 ski: hmm actually how would i yield false? after one recursion? if we check the length first before any calcuation it will be just returning #f and end of the function 07:57:26 *how would i yield false after one recursion? 07:58:09 well, if you either want to return the false value, or a list, then since they can't be confused with each other, just either return one or the other 08:02:47 mmc [n=mima@cs131216.pp.htv.fi] has joined #scheme 08:04:19 ok 08:05:46 mike [n=m@dslb-088-067-030-216.pools.arcor-ip.net] has joined #scheme 08:06:14 -!- mike is now known as Guest37700 08:08:18 barney [n=bernhard@p549A255F.dip0.t-ipconnect.de] has joined #scheme 08:09:48 repror___ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 08:10:55 -!- reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 113 (No route to host)] 08:18:35 elderK1 [n=zk@219-89-245-86.adsl.xtra.co.nz] has joined #scheme 08:20:26 -!- mmc [n=mima@cs131216.pp.htv.fi] has quit [Read error: 110 (Connection timed out)] 08:30:28 -!- synthase [n=synthase@68.63.19.212] has quit [Read error: 110 (Connection timed out)] 08:36:43 -!- elderK [n=zk@222-152-97-109.jetstream.xtra.co.nz] has quit [Read error: 110 (Connection timed out)] 08:37:27 -!- kilimanjaro [n=kilimanj@70.116.95.163] has quit ["Leaving"] 08:40:33 JasonPx: (null? thing) or (empty? thing) will let you know if you've run out of stuff in your list. Also #f and only #f (cough) is false. 08:40:54 rudybot__: eval (false? #f) 08:40:54 synx: ; Value: #t 08:40:59 rudybot__: eval (false? 0) 08:40:59 synx: ; Value: #f 08:41:35 rudybot__: eval (not #f) 08:41:35 ASau`: your sandbox is ready 08:41:36 ASau`: ; Value: #t 08:41:43 rudybot__: eval (not #t) 08:41:44 ASau`: ; Value: #f 08:41:50 rudybot__: eval (not '()) 08:41:50 ASau`: ; Value: #f 08:41:52 :p 08:41:53 rudybot__: eval (map false? '(0 "" 'false 'wrong -1 23 #\f)) 08:41:53 synx: ; Value: (#f #f #f #f #f #f #f) 08:43:04 rudybot__: eval (describe 'not) 08:43:04 ASau`: error: reference to undefined identifier: describe 08:43:14 That's why scheme sucks. :p 08:43:24 Nshag [i=user@Mix-Orleans-106-2-120.w193-248.abo.wanadoo.fr] has joined #scheme 08:43:28 rudybot__: eval (map null? '((1 2 3) (1 2) (1) ())) 08:43:28 synx: ; Value: (#f #f #f #t) 08:43:35 Why does scheme suck? ._. 08:43:44 mmc [n=mima@cs131216.pp.htv.fi] has joined #scheme 08:43:57 No instrospection. 08:44:08 In particular, no docstrings. 08:44:19 Well, some but, very little it's true. 08:44:46 docstrings are overrated. It's the non-serializability of write that gets me. 08:44:56 rudybot__: eval not 08:44:56 synx: ; Value: # 08:45:49 There, that's the introspection for 'not' :p 08:45:57 rudybot__: eval (procedure-arity not) 08:45:57 synx: ; Value: 1 08:46:39 rudybot__: eval lambda 08:46:39 ASau`: error: eval:1:0: lambda: bad syntax in: lambda 08:46:42 :p 08:47:03 Check what CLISP replies on "(describe 'lambda)" 08:47:33 well, there is expand... 08:47:59 Expand is quite another thing. 08:49:36 plt has good documentation, so I usually use that. They use a javascript search though, not a procedure, to look up documentation. 08:49:42 eval (list 1 2 3 null) 08:49:49 rudybot__:eval (list 1 2 3 null) 08:49:49 JasonPx: ; Value: (1 2 3 ()) 08:50:45 sonPx: ; Value: (1 2 3 .5 ) 08:50:46 -!- leppie [n=lolcow@dsl-243-51-87.telkomadsl.co.za] has quit [Read error: 110 (Connection timed out)] 08:50:48 Ah JasonPx you want list* for that probably. 08:50:49 rudybot__: eval (list* 1 2 3 null) 08:50:49 synx: ; Value: (1 2 3) 08:51:07 rudybot__:eval (list 1 2 3 .4) 08:51:07 JasonPx: ; Value: (1 2 3 0.4) 08:51:57 Perhaps sadly, dot notation can't be used when calling procedures either. You can however use apply. 08:52:21 rudybot__: eval (list 1 2 3 . 4) 08:52:21 synx: error: eval:1:0: application: bad syntax in: (list 1 2 3 . 4) 08:52:23 rudybot__:eval (list 1 2 3 #f) 08:52:23 JasonPx: ; Value: (1 2 3 #f) 08:52:29 rudybot__: eval '(1 2 3 . 4) 08:52:29 synx: ; Value: (1 2 3 . 4) 08:52:53 rudybot__: eval (list* 1 2 3 4) 08:52:53 synx: ; Value: (1 2 3 . 4) 08:53:11 ok 08:55:44 synx: if i were to make this... how would the general outline will be? http://pastebin.com/m6ea6f89d 08:55:55 Stuff like "(1 2 3 . 4)" isn't really scheme, so much as the syntax of "write", which happens to resemble scheme vaguely. 08:56:11 is make-item the name of the function? 08:56:35 make-item is the name that a procedure is bound to. 08:57:44 hotblack23 [n=jh@p5B055766.dip.t-dialin.net] has joined #scheme 08:58:23 ahh ok 09:01:27 synx: hmmm based on the description it seems like my procedure is a encapsulator? 09:02:52 -!- Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has quit [Remote closed the connection] 09:04:00 is it asking more than http://pastebin.com/d4b68316e ? 09:06:53 -!- repror___ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 09:08:05 Well, your procedure has to evaluate to something. 09:08:24 You could do (lambda (id item) (list id item)) 09:08:36 More likely you want something like define-struct. 09:11:43 rudybot__: eval (define make-item (lambda (stuff))) 09:11:48 ejs [n=eugen@nat.ironport.com] has joined #scheme 09:12:26 rudybot__: eval (make-item 42) 09:13:29 hm... 09:13:47 rudybot__: eval (define make-item (lambda (stuff) #f)) 09:13:48 rudybot__: eval (make-item 42) 09:14:14 raikov [n=igr@81.153.145.122.ap.yournet.ne.jp] has joined #scheme 09:14:50 I killed it o.o 09:15:36 xwl_ [n=user@147.243.236.60] has joined #scheme 09:18:55 haha 09:19:17 synx: do i have to make sure the param passed to the procedure is the correct type? 09:25:54 -!- kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has quit [Read error: 110 (Connection timed out)] 09:28:29 -!- offby1 [n=user@q-static-138-125.avvanta.com] has quit [Read error: 113 (No route to host)] 09:29:03 npe [n=npe@36.82-66-87.adsl-dyn.isp.belgacom.be] has joined #scheme 09:29:14 -!- rudybot__ [n=luser@q-static-138-125.avvanta.com] has quit [Read error: 113 (No route to host)] 09:30:03 rudybot__ [n=luser@q-static-138-125.avvanta.com] has joined #scheme 09:45:05 -!- xwl_ [n=user@147.243.236.60] has quit [Remote closed the connection] 09:48:59 -!- 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"] 09:49:55 -!- SharkBrain [n=user@124-197-41-171.callplus.net.nz] has quit [Remote closed the connection] 09:50:09 SharkBrain [n=user@124-197-41-171.callplus.net.nz] has joined #scheme 10:00:10 schmalbe [n=bernhard@p549A255F.dip0.t-ipconnect.de] has joined #scheme 10:04:10 -!- elderK1 [n=zk@219-89-245-86.adsl.xtra.co.nz] has quit [Remote closed the connection] 10:07:42 -!- SharkBrain [n=user@124-197-41-171.callplus.net.nz] has quit [Remote closed the connection] 10:07:52 SharkBrain [n=user@124-197-41-171.callplus.net.nz] has joined #scheme 10:16:08 -!- barney [n=bernhard@p549A255F.dip0.t-ipconnect.de] has quit [Read error: 113 (No route to host)] 10:16:24 -!- SharkBrain [n=user@124-197-41-171.callplus.net.nz] has quit [Remote closed the connection] 10:16:35 SharkBrain [n=user@124-197-41-171.callplus.net.nz] has joined #scheme 10:41:22 rule0 [n=rule0@85.108.196.8] has joined #scheme 10:53:00 npe_ [n=npe@36.82-66-87.adsl-dyn.isp.belgacom.be] has joined #scheme 10:59:59 -!- ejs [n=eugen@nat.ironport.com] has quit [Read error: 110 (Connection timed out)] 11:01:05 -!- npe [n=npe@36.82-66-87.adsl-dyn.isp.belgacom.be] has quit [Success] 11:03:57 -!- npe_ is now known as npe 11:09:51 ecraven [n=nex@140.78.42.103] has joined #scheme 11:12:55 dysinger [n=tim@cpe-75-80-200-182.hawaii.res.rr.com] has joined #scheme 11:13:02 RageOfThou [n=RageOfTh@92.36.145.59] has joined #scheme 11:16:18 -!- RageOfThou [n=RageOfTh@92.36.145.59] has quit [Client Quit] 11:16:26 RageOfThou [n=RageOfTh@92.36.145.59] has joined #scheme 11:19:38 Judofyr [n=Judofyr@c349BBF51.dhcp.bluecom.no] has joined #scheme 11:27:10 deat [n=deat@fac34-8-88-172-174-215.fbx.proxad.net] has joined #scheme 11:27:44 -!- SharkBrain [n=user@124-197-41-171.callplus.net.nz] has quit [Read error: 110 (Connection timed out)] 11:32:16 higepon61 [n=taro@FL1-122-135-165-8.tky.mesh.ad.jp] has joined #scheme 11:40:13 jewel [n=jewel@dsl-247-205-254.telkomadsl.co.za] has joined #scheme 11:41:57 -!- npe [n=npe@36.82-66-87.adsl-dyn.isp.belgacom.be] has quit [Success] 11:42:46 ebzzry [n=ebzzry@124.217.87.242] has joined #scheme 11:43:17 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 11:43:27 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 11:44:13 Is the DrScheme cursor appearance customizable? 11:52:21 -!- deat [n=deat@fac34-8-88-172-174-215.fbx.proxad.net] has quit [] 11:56:49 Mr-Cat [n=Miranda@hermes.lanit.ru] has joined #scheme 12:05:55 hkBst [n=hkBst@gentoo/developer/hkbst] has joined #scheme 12:07:18 Is the DrScheme cursor appearance customizable? 12:08:34 the question is how easy is it to do that ;P 12:09:31 -!- incubot [n=incubot@klutometis.wikitex.org] has quit [lem.freenode.net irc.freenode.net] 12:09:31 -!- Quadrescence [n=quad@unaffiliated/quadrescence] has quit [lem.freenode.net irc.freenode.net] 12:09:31 -!- tizoc [n=user@unaffiliated/tizoc] has quit [lem.freenode.net irc.freenode.net] 12:09:31 -!- dlouhy [n=jdlouhy@pinball.ccs.neu.edu] has quit [lem.freenode.net irc.freenode.net] 12:09:31 -!- inimino [n=inimino@atekomi.inimino.org] has quit [lem.freenode.net irc.freenode.net] 12:09:32 hkBst: I give up 12:09:59 -!- Adrinael [n=adrinael@barrel.rolli.org] has quit [lem.freenode.net irc.freenode.net] 12:09:59 -!- ray [i=ray@2001:41c8:1:54da:0:0:0:1337] has quit [lem.freenode.net irc.freenode.net] 12:09:59 -!- Ragnaroek [i=54a67999@gateway/web/ajax/mibbit.com/x-be4d4cacb8e1e466] has quit [lem.freenode.net irc.freenode.net] 12:09:59 -!- mansour [n=mansour@CPE0014bf895399-CM0014f8c19014.cpe.net.cable.rogers.com] has quit [lem.freenode.net irc.freenode.net] 12:10:03 incubot [n=incubot@klutometis.wikitex.org] has joined #scheme 12:10:03 Quadrescence [n=quad@unaffiliated/quadrescence] has joined #scheme 12:10:03 tizoc [n=user@unaffiliated/tizoc] has joined #scheme 12:10:03 inimino [n=inimino@atekomi.inimino.org] has joined #scheme 12:10:03 dlouhy [n=jdlouhy@pinball.ccs.neu.edu] has joined #scheme 12:10:28 npe [n=npe@cust201-75.dsl.versadsl.be] has joined #scheme 12:10:31 Ragnaroek [i=54a67999@gateway/web/ajax/mibbit.com/x-be4d4cacb8e1e466] has joined #scheme 12:10:31 ray [i=ray@2001:41c8:1:54da:0:0:0:1337] has joined #scheme 12:10:32 Adrinael [n=adrinael@barrel.rolli.org] has joined #scheme 12:10:32 mansour [n=mansour@CPE0014bf895399-CM0014f8c19014.cpe.net.cable.rogers.com] has joined #scheme 12:12:04 hkBst: I wanted to know first if it's relatively possible or not. If yes, then I could ask next how. 12:12:27 -!- Ragnaroek [i=54a67999@gateway/web/ajax/mibbit.com/x-be4d4cacb8e1e466] has quit ["http://www.mibbit.com ajax IRC Client"] 12:13:32 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 12:13:49 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 12:17:13 -!- higepon61 [n=taro@FL1-122-135-165-8.tky.mesh.ad.jp] has quit [Read error: 54 (Connection reset by peer)] 12:18:50 hkBst: I'm one of those people who get headaches when we see blinking text, so having a non-blinking cursor would certainly help. 12:21:32 well, I meant that you can always patch the source to do it 12:21:42 no idea if there is an easier way 12:21:48 hkBst: Ouch 12:23:06 hkBst: Thanks for the pointers. I'll go check if there are other, faster ways, but if the last resort is patching the src, then I'll do it. 12:24:48 kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has joined #scheme 12:40:00 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 12:40:17 errordeveloper [n=errordev@78.86.1.110] has joined #scheme 12:41:13 -!- ecraven [n=nex@140.78.42.103] has quit ["bbl"] 12:44:29 synthase [n=synthase@68.63.19.212] has joined #scheme 12:45:15 npe_ [n=npe@cust201-75.dsl.versadsl.be] has joined #scheme 12:53:39 Edico [n=Edico@unaffiliated/edico] has joined #scheme 12:56:30 alaricsp [n=alaricsp@host86-142-48-240.range86-142.btcentralplus.com] has joined #scheme 12:56:49 puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has joined #scheme 12:57:52 -!- npe [n=npe@cust201-75.dsl.versadsl.be] has quit [Read error: 110 (Connection timed out)] 12:59:56 -!- npe_ [n=npe@cust201-75.dsl.versadsl.be] has quit [] 13:02:22 -!- rule0 [n=rule0@85.108.196.8] has quit ["Leaving"] 13:09:06 ejs [n=eugen@tarelka.tenet.odessa.ua] has joined #scheme 13:11:53 slom [n=slom@pD9EB3A46.dip.t-dialin.net] has joined #scheme 13:15:29 reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 13:20:09 higepon248 [n=taro@FL1-122-135-165-8.tky.mesh.ad.jp] has joined #scheme 13:27:10 offby1 [n=user@q-static-138-125.avvanta.com] has joined #scheme 13:29:47 annodomini [n=lambda@c-75-69-96-104.hsd1.nh.comcast.net] has joined #scheme 13:36:15 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 13:40:50 BW^- [i=Miranda@151.80.71.39] has joined #scheme 13:40:55 what is reactive programming about really, for instance PLT's FrTime (FrScheme?) 13:41:55 ecraven [n=nex@140.78.42.103] has joined #scheme 13:42:25 npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has joined #scheme 13:42:35 -!- ejs [n=eugen@tarelka.tenet.odessa.ua] has quit ["This computer has gone to sleep"] 13:43:09 -!- npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has quit [Connection reset by peer] 13:45:04 neilv [n=user@dsl092-071-029.bos1.dsl.speakeasy.net] has joined #scheme 13:47:46 npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has joined #scheme 13:53:34 -!- alaricsp [n=alaricsp@host86-142-48-240.range86-142.btcentralplus.com] has quit [Read error: 110 (Connection timed out)] 13:55:22 lisppaste: url 13:55:23 To use the lisppaste bot, visit http://paste.lisp.org/new/scheme and enter your paste. 13:56:14 ejs [n=eugen@220-65-179-94.pool.ukrtel.net] has joined #scheme 13:57:08 hkBst pasted "randomwalk.scm" at http://paste.lisp.org/display/78360 13:57:14 -!- ffx` [n=ffx@60-241-74-240.static.tpgi.com.au] has quit [Read error: 104 (Connection reset by peer)] 13:58:35 I'm trying to come up with a way to use macros to be able to program 2- and 3-dimensional versions of above program that calculates average square length for random walks 13:59:48 but my macrofu is still weak :( 14:00:40 If so, why are you wasting time bumming the code? 14:02:04 mejja: well, I was doing some runtime comparisons of this Scheme code vs C++ code 14:02:40 ffx` [n=ffx@60-241-74-240.static.tpgi.com.au] has joined #scheme 14:05:40 if Scheme is too slow for this naive version, then I would have had to use C++, but it turns out that gambit and bigloo are probably fast enough. 14:05:49 -!- ffx` [n=ffx@60-241-74-240.static.tpgi.com.au] has quit [Read error: 54 (Connection reset by peer)] 14:06:14 -!- schmalbe [n=bernhard@p549A255F.dip0.t-ipconnect.de] has quit [Remote closed the connection] 14:06:33 anyway, it seems rather orthogonal to my question 14:10:50 I guess that introducing the (x 0) (y 0) (z 0) bindings means I can't use syntax-rules 14:11:07 -!- npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has quit [] 14:11:14 yes you can 14:12:08 eno__ [n=eno@adsl-70-137-148-74.dsl.snfc21.sbcglobal.net] has joined #scheme 14:12:36 in syntax-rules, you can't decrement a number, but you can remove items from a list, one by one 14:12:41 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 104 (Connection reset by peer)] 14:12:55 annodomini [n=lambda@130.189.179.215] has joined #scheme 14:13:02 and if you can do that, you can introduce a new variable at each step of removing an item from a list 14:13:09 -!- ejs [n=eugen@220-65-179-94.pool.ukrtel.net] has quit ["This computer has gone to sleep"] 14:13:31 (or you can cheat, and have the macro support a certain fixed set of dimensions only) 14:13:41 http://list.cs.brown.edu/pipermail/plt-scheme/2009-April/031902.html 14:14:02 the macro at the bottom of that message incidentally does this to introduce a variable number of bindings 14:14:36 -!- mmc [n=mima@cs131216.pp.htv.fi] has quit [Read error: 110 (Connection timed out)] 14:14:58 -!- eno__ is now known as eno 14:16:22 thanks neilv, I'll try to see if I can understand how your macro works :) 14:17:36 -!- higepon248 [n=taro@FL1-122-135-165-8.tky.mesh.ad.jp] has quit [Remote closed the connection] 14:23:22 npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has joined #scheme 14:33:15 -!- errordeveloper [n=errordev@78.86.1.110] has quit [Read error: 104 (Connection reset by peer)] 14:33:33 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 14:42:55 rule0 [n=rule0@85.103.24.110] has joined #scheme 14:45:24 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 14:45:41 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 14:49:05 sepult [n=buggarag@xdsl-87-78-128-47.netcologne.de] has joined #scheme 14:56:49 -!- puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 14:58:50 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 14:59:38 -!- BW^- [i=Miranda@151.80.71.39] has quit [Read error: 110 (Connection timed out)] 14:59:46 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 15:05:39 -!- reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 104 (Connection reset by peer)] 15:05:41 reprore_ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 15:06:45 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 15:07:10 -!- rudybot__ is now known as rudybot 15:09:13 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 15:13:59 -!- rule0 [n=rule0@85.103.24.110] has quit ["Leaving"] 15:17:26 -!- ASau` [n=user@host178-230-msk.microtest.ru] has quit ["Off!"] 15:19:17 npe_ [n=npe@ip-81-11-228-147.dsl.scarlet.be] has joined #scheme 15:19:23 -!- reprore_ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 15:19:59 p1d annotated #78360 "Coordinate vector, unoptimized" at http://paste.lisp.org/display/78360#1 15:23:34 p1dzkl: hmm, interesting 15:23:50 but is it possible to construct a list of coordinates (like (x1 x2 x3)) from the number of coordinates (3)? 15:28:05 -!- npe_ [n=npe@ip-81-11-228-147.dsl.scarlet.be] has quit [Operation timed out] 15:30:18 arcfide [n=arcfide@adsl-99-137-203-111.dsl.bltnin.sbcglobal.net] has joined #scheme 15:33:22 JasonPx: Yes, but it's usually pretty obvious. 15:34:15 JasonPx: If you don't pass the right values to your procedures they won't work right. 15:35:03 npe_ [n=npe@ip-81-11-228-147.dsl.scarlet.be] has joined #scheme 15:35:31 -!- npe [n=npe@108.192-78-194.adsl-fix.skynet.be] has quit [Read error: 110 (Connection timed out)] 15:35:32 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 54 (Connection reset by peer)] 15:35:49 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 15:42:35 -!- ebzzry [n=ebzzry@124.217.87.242] has quit [Remote closed the connection] 15:48:00 Daemmerung [n=goetter@1133sae.mazama.net] has joined #scheme 15:49:38 reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 15:51:29 -!- sepult [n=buggarag@xdsl-87-78-128-47.netcologne.de] has quit ["leaving"] 15:51:34 -!- JasonPx [n=Jason@ipanema.parkpointrit.com] has quit [Read error: 110 (Connection timed out)] 15:53:56 jlongster [n=user@75.148.111.133] has joined #scheme 15:58:56 -!- synthase [n=synthase@68.63.19.212] has quit [Connection timed out] 15:59:12 synthase [n=synthase@68.63.19.212] has joined #scheme 15:59:18 -!- reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: 60 (Operation timed out)] 16:04:29 sepult [n=buggarag@xdsl-87-78-128-47.netcologne.de] has joined #scheme 16:04:58 -!- AtnNn [n=welcome@modemcable087.62-56-74.mc.videotron.ca] has quit [Remote closed the connection] 16:05:09 AtnNn [n=welcome@modemcable087.62-56-74.mc.videotron.ca] has joined #scheme 16:05:40 reprore_ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 16:09:27 oleg is smarter than me 16:13:02 rule0 [n=rule0@85.103.24.110] has joined #scheme 16:15:04 rmns [n=ramunas@78-61-90-37.static.zebra.lt] has joined #scheme 16:15:16 -!- rmns [n=ramunas@78-61-90-37.static.zebra.lt] has left #scheme 16:16:09 npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has joined #scheme 16:18:19 davazp [n=user@56.Red-79-153-148.dynamicIP.rima-tde.net] has joined #scheme 16:18:25 oleg is smarter than ~a 16:19:20 Daemmerung: Actually, I've heard told from some people that there exists one of Oleg's buddies who is actually as smart as Oleg and can, in addition to this, explain his smartness to other people. Does that make this guy more smart? 16:19:48 Using lists to represent vectors is so archaic. 16:20:01 arcfide: Conference proceedings or GTFO. 16:20:26 Heh. 16:20:27 :-) 16:20:34 It also effectively removes possibility to optimize code in future. 16:21:25 -!- npe_ [n=npe@ip-81-11-228-147.dsl.scarlet.be] has quit [Connection timed out] 16:22:30 -!- jonrafkind [n=jon@c-98-202-86-149.hsd1.ut.comcast.net] has quit [Read error: 110 (Connection timed out)] 16:22:31 mmc [n=mima@cs131216.pp.htv.fi] has joined #scheme 16:23:47 athos [n=philipp@92.250.250.68] has joined #scheme 16:23:48 Where are people using lists to represent vectors, ASau? 16:24:06 -!- Mr-Cat [n=Miranda@hermes.lanit.ru] has quit [Read error: 104 (Connection reset by peer)] 16:25:17 p1d annotated #78360 "Coordinate vector, unoptimized" at http://paste.lisp.org/display/78360#1 16:25:17 p1dzkl: hmm, interesting [19:23] 16:25:17 but is it possible to construct a list of coordinates (like (x1 x2 x3)) from the number of coordinates (3)? 16:26:09 ASau: I'm trying to use neither vectors nor lists, but function arguments, actually. 16:27:38 ASau: but to make syntax-rules work I need to start from a list. 16:27:41 I think 16:28:00 hkBst: What are you doing? 16:28:15 you could have the programmer supply the list as part of the syntax 16:28:52 arcfide: calculating the average squared length of a random walk of length n in D dimensions. (The answer is n.) 16:31:23 hkBst annotated #78360 "`walk' with broken macros" at http://paste.lisp.org/display/78360#2 16:31:54 I can't seem to figure it out :) 16:32:10 bbl, gotta fix dinner 16:32:12 -!- npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has quit [Connection reset by peer] 16:32:21 hkBst: another part where scheme "macros" are underpowered. 16:32:32 -!- Modius_ [n=Modius@99.179.96.75] has quit ["I'm big in Japan"] 16:32:42 ASau: What's the problem? 16:33:00 JasonPx [i=Jason@rasengan.rit.edu] has joined #scheme 16:33:07 npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has joined #scheme 16:33:12 You have to convert vector to list, if you want to use syntax-rules. 16:33:43 ASau: What problem are you trying to solve? 16:33:51 Not since R5, I think. 16:34:07 ASau: Is this that coordinate vector thing above? 16:34:12 arcfide: I'm not trying anything. 16:34:28 I just point that Scheme suggests archaic way to deal with vectors. 16:35:14 R5RS 4.3.2 16:35:15 Sorry, I couldn't find anything for 4.3.2. 16:42:25 -!- synthase [n=synthase@68.63.19.212] has quit [Read error: 113 (No route to host)] 16:43:51 -!- reprore_ [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 16:48:13 jonrafkind [n=jon@crystalis.cs.utah.edu] has joined #scheme 16:51:10 -!- [[mark]] [n=mark@unaffiliated/mark/x-957811] has quit [Read error: 110 (Connection timed out)] 16:53:52 aack 16:54:27 dangit I could swear it was the sqlite that was segfaulting. now I can get segfaults without it. 16:55:54 [[mark]] [n=mark@unaffiliated/mark/x-957811] has joined #scheme 16:56:01 minion: advice for synx 16:56:02 synx: #11913: Gee, I don't know. I wonder what the manual says about that? 16:56:18 I'm out of FFI modules, so what could be causing it... 16:56:41 I hate you minion. 16:56:49 I wish I could hate you bald. 16:56:51 xwl [n=user@114.246.86.214] has joined #scheme 16:58:55 reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 16:59:27 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 17:00:40 synx: Do you have a simple example of something that segfaults? 17:01:43 -!- reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 17:02:24 Unfortunately not. I have been taking things out piece by piece, and everything works beautifully. 17:02:26 -!- npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has quit [Read error: 104 (Connection reset by peer)] 17:02:33 npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has joined #scheme 17:03:04 -!- mansour [n=mansour@CPE0014bf895399-CM0014f8c19014.cpe.net.cable.rogers.com] has quit [Read error: 60 (Operation timed out)] 17:03:50 Until I put it together. 17:06:13 It's sporadic too, so I'm not sure which piece is causing it. 17:06:28 Paste the code or stfu! 17:06:39 Did I get the broken part? Or is it just on a lucky streak? Are there two broken parts? 17:10:56 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Connection timed out] 17:11:10 -!- arcfide [n=arcfide@adsl-99-137-203-111.dsl.bltnin.sbcglobal.net] has quit ["GOne"] 17:12:42 mansour [n=mansour@CPE0014bf895399-CM0014f8c19014.cpe.net.cable.rogers.com] has joined #scheme 17:15:23 jso [n=user@151.159.200.8] has joined #scheme 17:15:52 -!- Guest37700 [n=m@dslb-088-067-030-216.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 17:15:56 exexex [n=chatzill@88.234.121.222] has joined #scheme 17:16:49 What is the meaning of life? Why are we really here? What are the answers to the big...ok 17:17:09 synx pasted "parse.ss" at http://paste.lisp.org/display/78369 17:18:14 I flubbed a little, XXX is a specific parser for "site I frequently collect images from". 17:18:53 synx, I don't mean to be pissy, here, but... (1) wouldn't it make more sense to paste that as an annotation to the previous pastes about parse.ss rather than create a new one? (2) is it so difficult to name it parse-SOMETHING.ss? (I know this one isn't your fault) 17:19:48 Well it's an aggregation of parsers, for various formatted websites... parse-website.ss maybe? 17:20:01 And I haven't made any previous pastes about it, I think? 17:20:11 parse-WHAT-out-of-WHICH-websites.ss ? 17:20:31 You're right, sorry - I was mixing it up with wotsizname's log-parsing thing from a day or two ago. 17:21:03 easy mistake to make, since I gave it a sucky name. 17:21:26 Would "favorites/parse.ss" be clearer? It's the parsing module for my "favorites" sites 17:21:40 Where does it segfault? 17:22:38 During read. 17:23:03 I think at least... "read-one-char(... "peek-char"...)" is the sort of thing the gdb stack trace prints out. 17:23:08 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 17:23:11 Inside read-line?? 17:23:28 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 17:24:49 MichaelRaskin_ [n=raskin@gwh-1-177-mytn23k1.ln.rinet.ru] has joined #scheme 17:25:21 That or read-char. 17:25:25 Or peek-char. 17:25:27 It's difficult to correct a segfault if you don't know precisely where it's segfaulting. You need more context. 17:25:44 foof's html parser does a lot of peeking. 17:26:17 Well let me grab a full stack trace Daemmerung, but I don't know how to divine what scheme procedures it has from that. 17:26:51 My natural inclination would be to suspect something that invokes the FFI. 17:27:10 create:download-image (at a guess), for example. 17:27:32 ...I will as soon as it starts breaking again. I have all the FFI stuff re-enabled now and no segfault so far. xp 17:27:45 Naturally. 17:28:53 I could paste the create.ss module. It uses a libpq module, which uses the FFI. 17:29:15 I dunno, my code has terrible coupling. 17:29:43 -!- davazp [n=user@56.Red-79-153-148.dynamicIP.rima-tde.net] has quit [Read error: 104 (Connection reset by peer)] 17:30:18 I don't know libpq from jack. But that'd be the right place to start looking. If peek-char is segfaulting, then the port it's peeking has a bogus backing data stream. 17:30:44 aha got one 17:32:00 -!- Def [n=joe@71.238.45.45] has quit [Remote closed the connection] 17:32:00 -!- Deformative [n=joe@71.238.45.45] has quit [Read error: 104 (Connection reset by peer)] 17:32:02 synx annotated #78369 "stack trace" at http://paste.lisp.org/display/78369#1 17:32:45 That's what I'd think Daemmerung, but it's just an input port returned directly from tcp-connect. All I can think is it's getting corrupted somehow. 17:33:45 You might notice the distinct lack of /usr/lib/libpq.so in that stack trace. 17:34:06 Deformative [n=joe@71.238.45.45] has joined #scheme 17:34:14 Anyway I removed the libpq FFI stuff, and it still segfaulted on me. 17:34:24 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 17:34:35 Hmmm. 17:34:45 Def [n=joe@71.238.45.45] has joined #scheme 17:35:33 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 17:35:46 wgl [n=wgl@216.145.227.9] has joined #scheme 17:37:30 -!- xwl [n=user@114.246.86.214] has quit [Remote closed the connection] 17:38:10 When I switch fake-create.ss for create.ss I get a stack trace like this: 17:38:11 synx annotated #78369 "nother stack" at http://paste.lisp.org/display/78369#2 17:38:20 mzscheme discussed here? 17:38:32 doesn't look much different to me. 17:38:39 Yeah. 17:38:41 Yes wgl 17:39:05 I'm kind of hamstrung. Looks like my copy of the plt source dates from the last time I used plt in anger. May take a while for me to synch up.... 17:39:54 rule00 [n=rule0@88.243.170.52] has joined #scheme 17:40:30 Fear is the path to the dark side. 17:40:50 -!- subversus [i=elliot@loveturtle.net] has quit [Read error: 113 (No route to host)] 17:41:10 Oh, intercourse Windows. Apparently I must reboot. Seeya. 17:41:15 -!- Daemmerung [n=goetter@1133sae.mazama.net] has quit ["Smoove out."] 17:42:23 New to mzscheme: I am trying to make an executable, say for a hello.ss. mzc requires input to be in a module, but doesn't seem like can put a print, for example, in that file as it complains about finding some non-module stuff there. 17:43:37 pHeze [n=pheze@modemcable062.242-82-70.mc.videotron.ca] has joined #scheme 17:43:41 I should sync up too... looks like a new version is out. 17:44:07 -!- pHeze [n=pheze@modemcable062.242-82-70.mc.videotron.ca] has quit [Client Quit] 17:45:39 wgl: You should probably put the line "#lang scheme" at the top of your source file. 17:45:53 That's plt specific syntax for the expression "(module mumble mumble scheme put "#lang scheme/base" unless you're sure you need more than that 17:46:31 plt has much better behavior when you're working inside a module. 17:47:05 bweaver [n=user@75.148.111.133] has joined #scheme 17:47:21 Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has joined #scheme 17:48:11 -!- jlongster [n=user@75.148.111.133] has quit [Read error: 113 (No route to host)] 17:48:24 -!- [[mark]] [n=mark@unaffiliated/mark/x-957811] has quit [Read error: 110 (Connection timed out)] 17:51:51 Daemmerung [n=goetter@1133sae.mazama.net] has joined #scheme 17:52:32 -!- Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has quit [Remote closed the connection] 17:53:22 -!- rule0 [n=rule0@85.103.24.110] has quit [Connection timed out] 17:54:16 -!- rule00 is now known as rule0 17:56:20 jcowan [n=jcowan@72.14.228.89] has joined #scheme 17:57:04 Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has joined #scheme 17:57:19 saccade_ [n=saccade@65-78-24-47.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 17:57:52 lowlycoder [n=x@unaffiliated/lowlycoder] has joined #scheme 18:01:57 cads [n=max@adsl-152-93-63.asm.bellsouth.net] has joined #scheme 18:02:06 incubot: it turns out that python's "tuple unpacking" is a bastardization of VALUES 18:02:09 that's a rather crude approximation and a bastardization of this argument. Anyways, we can agree to disagree, I don't particularly feel like debating things which I'm not gonna implement anyways 18:02:23 well said 18:02:27 *jcowan* chuckles. 18:02:34 I read "debating" as "debasing" on the first pass. 18:02:59 -!- 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:04:04 puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has joined #scheme 18:04:35 -!- Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has quit [Remote closed the connection] 18:06:01 -!- cads [n=max@adsl-152-93-63.asm.bellsouth.net] has quit [Remote closed the connection] 18:06:06 -!- cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has quit ["The funniest things in my life are truth and absurdity."] 18:06:35 cracki [n=cracki@sglty.kawo2.RWTH-Aachen.DE] has joined #scheme 18:08:50 -!- bsmntbombdood [n=gavin@97-118-114-92.hlrn.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 18:09:13 bsmntbombdood [n=gavin@97-118-114-92.hlrn.qwest.net] has joined #scheme 18:10:14 -!- lowlycoder [n=x@unaffiliated/lowlycoder] has quit [Remote closed the connection] 18:10:34 cads [n=max@adsl-152-93-63.asm.bellsouth.net] has joined #scheme 18:13:05 eno__ [n=eno@adsl-70-137-148-74.dsl.snfc21.sbcglobal.net] has joined #scheme 18:14:45 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 104 (Connection reset by peer)] 18:17:05 -!- rule0 [n=rule0@88.243.170.52] has quit [Read error: 104 (Connection reset by peer)] 18:17:36 -!- eno__ is now known as eno 18:18:18 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Remote closed the connection] 18:18:36 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 18:20:01 tripwyre [n=sathya@117.193.165.43] has joined #scheme 18:23:08 dang but plt takes a long time to install. 18:26:06 i think that compiling the scheme code (which, iirc, happens not until "make install" time) takes longer than the c code 18:28:01 -!- puchacz [n=puchacz@87-194-5-99.bethere.co.uk] has quit [Remote closed the connection] 18:29:36 Yep. 18:30:44 Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has joined #scheme 18:32:42 Jarvellis [n=jarv@dsl-217-155-101-22.zen.co.uk] has joined #scheme 18:34:02 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 18:40:02 jao` [n=jao@obfw.oblong.net] has joined #scheme 18:40:17 neilv: It used to be much shorter, and it got longer and longer as various things improved: a better compiler, more libraries, and more things implemented in Scheme. 18:40:41 The scheme part is now much longer -- and that's only because of these many improvements. 18:41:08 (And BTW, you can run setup-plt with a `-D' flag to avoid building the docs, if you recompile often.) 18:43:07 -!- jao [n=jao@cpe-75-84-114-170.socal.res.rr.com] has quit [Read error: 110 (Connection timed out)] 18:46:05 mike [n=m@dslb-088-067-030-216.pools.arcor-ip.net] has joined #scheme 18:46:08 eli: has there been any talk of moving some of it to planet? 18:46:34 -!- mike is now known as Guest83268 18:47:14 -!- jao` is now known as jao 18:47:17 everything needed by drscheme should be bundled. and i imagine you want to bundle the student language and teachpack stuff just to remove one support problem for new students 18:47:21 -!- Daemmerung [n=goetter@1133sae.mazama.net] has quit [Read error: 104 (Connection reset by peer)] 18:47:33 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 18:47:44 Daemmerung [n=goetter@1133sae.mazama.net] has joined #scheme 18:48:26 hm. i suppose srfi stuff should be bundled too, if only for keeping the syntax simple 18:49:47 though it would be cute to have (require srfi/) first look for bundled stuff and then check planet if not bundled 18:55:33 oh you know... 18:55:53 looking at the plt C source um... 18:56:06 mzscheme/src/port.c line 4772 18:56:12 That's where the segfault happens. 18:56:25 the plt-scheme list is awfully quiet. i wonder if everyone took off for a long weekend 18:56:32 I might note that "unavail" is sometimes passed as a null pointer. 18:56:48 In scheme_peekc_skip... 18:57:19 well, johnny, when it rains, that means jesus is crying because he's sad. it must be something you did. 18:57:52 -!- jcowan [n=jcowan@72.14.228.89] has quit ["Leaving"] 18:59:19 -!- Guest83268 [n=m@dslb-088-067-030-216.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 18:59:44 eli: how do I run setup-plt with a -D flag again? Is there a flag you pass to the Makefile? 19:00:28 i think eli means incremental runs of setup-plt after the initial. you want the documentation to be build at initial install time 19:00:44 -!- mansour [n=mansour@CPE0014bf895399-CM0014f8c19014.cpe.net.cable.rogers.com] has quit [Read error: 113 (No route to host)] 19:00:52 i build all my scheme code using setup-plt 19:01:09 bbl 19:01:09 -!- neilv [n=user@dsl092-071-029.bos1.dsl.speakeasy.net] has quit ["Leaving"] 19:01:21 Yes but 19:06:35 saccade_ [n=saccade@18.188.70.132] has joined #scheme 19:11:27 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has left #scheme 19:11:45 Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has joined #scheme 19:13:53 synx: Thanks for the note. I had to step away to lunch. The module statement has the 'scheme' part in it. So my question boils down to how do I execute anything from there? If I put something outside the module, mzc complains about it. Without just the module def, it builds a nice executable that does nothing. 19:14:43 I've never made executables but... it should run any code in your module, shouldn't it? 19:22:06 synx: Yes, it in fact does. I found a typo. I am trying scheme out to build some lightweight monitoring processes for a cluster. 19:22:23 synx: Thanks for the help 19:23:06 Oh those typoes. 19:23:41 scheme should be fine for monitoring processes. But have you taken a look at monit, wgl? 19:23:45 -!- attila_lendvai_ is now known as attila_lendvai 19:24:31 It's a C application, but rather designed for that sort of thing. Can check sockets and such. Requires a PID file for every process though, so hard to use in some cases. 19:24:54 eno___ [n=eno@adsl-70-137-173-224.dsl.snfc21.sbcglobal.net] has joined #scheme 19:27:28 man installing plt the second time is taking even _longer_ 19:27:48 you'd think you could just... check the timestamps on the files or something. bleah 19:29:52 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 19:30:12 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 19:34:13 sync: No, I haven't. The pid file would be an issue. But I see the page for monit. However, there are some application-specific things that the code would need to do. 19:34:31 synx: Sorry, i typed sync:. 19:35:33 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 110 (Connection timed out)] 19:35:40 agh finally 19:35:46 No problem then wgl, just wanted to make sure you've seen it. 19:37:39 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 104 (Connection reset by peer)] 19:37:49 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 19:38:38 rule0 [n=rule0@85.103.57.97] has joined #scheme 19:46:19 melgray [n=melgray@pool-71-121-210-139.sttlwa.fios.verizon.net] has joined #scheme 19:59:19 error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 20:12:01 well call me jinxed. I think it's a plt bug. A really dumb one. Nothing to do with the FFI at all. 20:15:07 -!- errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 20:15:44 -!- jonrafkind [n=jon@crystalis.cs.utah.edu] has quit [No route to host] 20:15:51 -!- bweaver [n=user@75.148.111.133] has quit [Read error: 113 (No route to host)] 20:16:03 jonrafkind [n=jon@204.99.164.57] has joined #scheme 20:16:41 REPLeffect_ [n=REPLeffe@69.54.115.254] has joined #scheme 20:17:26 minion: chant 20:17:27 MORE ADVANCED 20:19:07 jcowan [n=jcowan@72.14.228.89] has joined #scheme 20:19:26 They're just assigning an integer into what is sometimes a null pointer. 20:19:39 Guess I have to get my email working now. 20:22:40 -!- benny [n=benny@i577A113A.versanet.de] has quit [Read error: 110 (Connection timed out)] 20:37:54 -!- REPLeffect [n=REPLeffe@69.54.115.254] has quit [Read error: 113 (No route to host)] 20:43:37 ejs [n=eugen@237-253-124-91.pool.ukrtel.net] has joined #scheme 20:44:33 synx: If there's a bug, then please construct a piece of code that doesn't use planet and doesn't use the foreign library, and send it. 20:48:39 Line 2772 of port.c looks pretty suspect, eli, in lieu of line 2754. I have only skimmed the code, and haven't ruled out that there may be no paths to that code in which unavail is NULL, though. On the other hand, constructing a program that exhibits that line as a bug is probably harder than reading the surrounding code a little more closely. 20:50:02 -!- Deformati [n=joe@71.238.45.45] has quit [Success] 20:50:34 Deformati [n=joe@71.238.45.45] has joined #scheme 20:51:01 -!- JasonPx [i=Jason@rasengan.rit.edu] has quit ["Leaving"] 20:52:04 allotrope [n=allotrop@simpsons.cs.byu.edu] has joined #scheme 20:52:05 -!- allotrope [n=allotrop@simpsons.cs.byu.edu] has left #scheme 20:54:08 No there's a path where it is NULL, in scheme_peekc_skip 20:54:17 On line 2801 in port.c 20:54:59 I suspect it would only happen when you're doing certain kinds of peeking, such as foof's html parser for instance. 20:55:14 That's a path to do_peekc_skip where unavail is NULL. I mean a path specifically to line 2772 where unavail is NULL, i.e. a path from scheme_peekc_skip to line 2771 where v is zero. 20:56:04 Oh okay, well not sure how to replicate that. I'll try some stress tests on peeks with skips and stuff... 20:56:48 adding an extra NULL check has gotten rid of the segfaults though. 20:57:08 Are the segfaults happening on that line? 20:58:02 Yes. 20:58:29 -!- cads [n=max@adsl-152-93-63.asm.bellsouth.net] has quit [Success] 20:58:36 Oh, well, then clearly there is a path such as I described, and you're all set for a bug report. 20:58:37 And the fact that it says "(nil)" specifically means trying to assign to NULL I think. 21:01:11 There is, but being able to reliably replicate it would be nice... 21:01:32 Are you (both) talking about the file version as it is in svn head now? 21:02:05 (Sorry, I guess you are -- I was looking at like 2722 by mistake.) 21:08:36 synx: OK, I committed the obvious fix -- can you verify that this solves the problem you were running against? 21:09:51 Daemmerung: remember, you posted these hsv<->rgb functions? http://paste.lisp.org/display/76254 - hsv->rgb will fail for chicken 3.4 unless you make `(inexact->exact (floor h)'. :) 21:10:29 Inexact->exact should not exist, IMAO. 21:13:37 there should be explicit conversions to integers or to floating-point numbers 21:13:48 (and also to rationals) 21:16:11 eli: problem is the segfaults were not happening every time. But if by obvious fix you meant adding a "if (unavail)" in there, then yeah I haven't been able to cause it to segfault since. 21:16:21 -!- hkBst [n=hkBst@gentoo/developer/hkbst] has quit [Read error: 104 (Connection reset by peer)] 21:16:56 floor should always return an exact number, that's what I think 21:16:59 -!- ejs [n=eugen@237-253-124-91.pool.ukrtel.net] has quit ["This computer has gone to sleep"] 21:17:39 rudybot: eval (exact? (floor 0.1)) 21:17:41 Mr-Cat: your sandbox is ready 21:17:41 Mr-Cat: ; Value: #f 21:17:55 Chicken 3.4 also yields #f 21:18:12 Unfortunately 21:18:57 only place I ever have to use (inexact->exact) is when I'm using floor. 21:19:01 It's safe to put an integer through inexact->exact. I'm just saying it would be better to have ifloor, iceiling, iround, and itruncate primitives. 21:20:28 wrldpc [n=worldpea@pool-173-48-214-204.bstnma.fios.verizon.net] has joined #scheme 21:23:20 I think, the difference between exact and equal inexact number should be less obvious. I.e. eq? eqv? equal? for chicken will return #f for (floor 0.1) and 0. = is the only function, that takes them as equal. 21:23:40 Chicken 3.4 i mean 21:23:51 rudybot: eval (floor 0.1) 21:23:52 Mr-Cat: ; Value: 0.0 21:23:57 rudybot: eval (= (floor 0.1) 0) 21:23:57 Mr-Cat: ; Value: #t 21:24:03 rudybot: eval (equal? (floor 0.1) 0) 21:24:04 Mr-Cat: ; Value: #f 21:24:07 rudybot: eval (eqv? (floor 0.1) 0) 21:24:08 Mr-Cat: ; Value: #f 21:24:09 rudybot: eval (eq? (floor 0.1) 0) 21:24:10 Mr-Cat: ; Value: #f 21:24:18 -!- jonrafkind [n=jon@204.99.164.57] has quit [Read error: 110 (Connection timed out)] 21:24:24 The same for mzscheme 21:24:33 jonrafkind [n=jon@crystalis.cs.utah.edu] has joined #scheme 21:25:28 -!- jewel [n=jewel@dsl-247-205-254.telkomadsl.co.za] has quit [Read error: 113 (No route to host)] 21:26:01 What comes to `floor', imho, its semantics come from C, where it returns a double. 21:26:30 Some legacy&traditions stuff, imho 21:26:59 But for scheme returning exacts is imho better way 21:27:30 rudybot: eval (eq? 0.0 0) 21:27:31 ecraven: your sandbox is ready 21:27:31 ecraven: ; Value: #f 21:27:47 I think it's very important that those two are not eq? 21:27:48 r5rs also allows this to be #t, right? 21:28:02 It really shouldn't. Does it? 21:28:19 i forgot, i just remember that they are allowed to be eqv? i think 21:28:37 synx: yes, that's the fix I meant. 21:28:41 0.0 isn't necessarily the same memory location as 0 even. They don't behave the same either. 21:28:52 anyway, why don't we have exact floating point numbers :( 21:28:59 rudybot: eval (exact? 0.0) 21:29:00 synx: your scheme sandbox is ready 21:29:01 synx: ; Value: #f 21:29:02 rudybot: eval (exact? 0) 21:29:03 synx: ; Value: #t 21:29:12 See so 0.0 and 0 cannot be eq? 21:29:26 ...we do have exact floating point numbers <_< 21:29:48 rudybot: eval (exact? (/ 1 10)) 21:29:48 synx: ; Value: #t 21:30:09 rudybot: eval (eq? 0.0 0) 21:30:10 proq: your sandbox is ready 21:30:10 proq: ; Value: #f 21:30:26 that's not a floating point number, but a fraction (though this is a valid point) 21:30:28 I should say rational numbers. Floating point is by definition inexact. 21:30:30 -!- Quadrescence [n=quad@unaffiliated/quadrescence] has quit [Remote closed the connection] 21:30:35 The point floats around in the middle of a a fixed, finite precision. 21:31:00 -!- CaptainMorgan [n=CaptainM@c-75-68-42-94.hsd1.nh.comcast.net] has quit [Success] 21:31:11 why is floating point inexact by definition? you could use that repeated fraction thing (have to look up what the english word is) 21:31:41 eli: Well I'll call it fixed for now. Not sure how it manages to end up that way, but no worries if it works. 21:32:01 'continued fraction' it is 21:32:12 ecraven: http://en.wikipedia.org/wiki/Floating_point 21:32:39 Floating point numbers have some amount of "significant digits" 21:32:52 i'll rephrase my question to: why don't we have exact real numbers? 21:32:59 Yes I know I'm lame for quoting wiki. 21:33:11 Quadrescence [n=quad@unaffiliated/quadrescence] has joined #scheme 21:33:18 Fractions are exact real numbers. 21:33:27 Rational numbers to be precise. 21:33:52 Yes, but some real numbers aren't rational, for example the square root of 2 21:34:21 what about all those irrational numbers :) why can't we have some of those as exact numbers? 21:34:27 How, out of curiosity, would you display the exact value of an irrational number. 21:35:32 symbolic computation 21:35:39 -!- eno___ is now known as eno 21:35:39 as a repeated continued fraction for example :) 21:36:14 Yeah, well, most schemes do not have symbolic computation. 21:37:22 yay, breakpoint is starting, http://bptv.untergrund.net/ 21:39:12 what's breakpoint? 21:40:03 a demoparty 21:40:18 reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #scheme 21:40:38 http://en.wikipedia.org/wiki/Demoparty 21:42:35 escraven: Should we then have symbols for all possible irrational numbers? 21:42:46 Mr-Cat: yes 21:42:46 e, pi, sqrt2 what next? 21:42:51 are you adding irrational support/ 21:43:06 I would like it 21:43:14 e and sqrt2 have nice infinite continued fraction representations 21:43:19 use streams to represent the bits 21:43:20 unfortunately pi doesn't 21:43:33 infinite continued fraction? 21:43:47 I don't think any of them do 21:44:09 huh, neat. 21:44:15 e and phi do, phi is [1;1,1,1...] 21:44:21 Mr-Cat: thanks for the correction. Inexactness is contagious, hence the floor of an inexact quantity is also an inexact quantity. 21:44:31 -!- npe [n=npe@ip-81-11-228-147.dsl.scarlet.be] has quit [Connection timed out] 21:44:32 e is [2;1,2,1,1,4,1,1,6...] iirc 21:44:47 wtf are you talking about? 21:44:58 also sqrt2 is [1;2,2,2...] 21:44:58 escraven: Ah, infinite sequences also... Well, I'll better go with inexact floats 21:45:05 http://en.wikipedia.org/wiki/Continued_fraction 21:45:18 of course, i'm just theorizing about exact irrationals 21:45:19 oh 21:45:30 nothing practical or already-implemented here :) 21:45:30 well that's cool 21:45:35 geckosenator: It's a way to represent numbers as successive fractions of fractions... lets certain irrational numbers have a finite representation. 21:45:52 since you can implement other operations like multiplication and addition of irrationals 21:45:55 i just find it strange that we have arbitrary-size integers, but only very small floating-point values 21:46:15 neilv [n=user@dsl092-071-029.bos1.dsl.speakeasy.net] has joined #scheme 21:46:15 we should have big floats 21:46:27 where both exponent and mantissa are bignums 21:46:47 um... 21:46:50 escraven: arbitrary-sized floats are more difficult to iimplement imho 21:47:33 At least, you should be able to control when exact floats is converted to inexact one 21:47:34 arbitrary sized floats aren't much harder than big integers. It's the irrational ones that are hard to represent exactly, either in text format, or as bits. 21:48:04 rudybot: eval (exact? (floor (/ 1 10)) 21:48:04 synx: error: eval:1:0: read: expected a `)' to close `(' 21:48:12 rudybot: eval (exact? (floor (/ 1 10))) 21:48:12 synx: ; Value: #t 21:48:17 i agree with synx, there's no reason not to have bigfloats :) 21:48:29 anyway, too late already, going to bed, good night :) 21:48:37 ok, bb 21:48:43 In plt, fractions are the "big floats" 21:48:53 -!- proq [n=user@unaffiliated/proqesi] has quit [Remote closed the connection] 21:49:01 I think that's true in Chicken too. Not sure about others... 21:49:07 proq [n=user@38.100.211.40] has joined #scheme 21:49:07 They use one big integer to represent the numerator, and one big integer for the denominator. 21:49:32 -!- ecraven [n=nex@140.78.42.103] has quit ["bbl"] 21:50:45 -!- Mr-Cat [n=Mr-Cat@bahirkin1507.static.corbina.ru] has quit ["    (xchat 2.4.5  )"] 21:51:49 geckosen1tor [n=sean@71.237.94.78] has joined #scheme 21:54:01 errordeveloper [n=errordev@78-86-1-110.zone2.bethere.co.uk] has joined #scheme 21:57:11 -!- mmc [n=mima@cs131216.pp.htv.fi] has quit [Read error: 110 (Connection timed out)] 21:59:48 -!- orgy__ [n=ratm_@pD9FFEBED.dip.t-dialin.net] has quit [Remote closed the connection] 22:03:06 -!- reprore [n=reprore@ntkngw372060.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote closed the connection] 22:07:22 -!- geckosenator [n=sean@71.237.94.78] has quit [Read error: 110 (Connection timed out)] 22:09:19 -!- error_developer_ [n=errordev@78-86-1-110.zone2.bethere.co.uk] has quit [Connection timed out] 22:17:09 -!- melgray [n=melgray@pool-71-121-210-139.sttlwa.fios.verizon.net] has quit [] 22:17:48 wrldpc_ [n=worldpea@pool-173-48-214-204.bstnma.fios.verizon.net] has joined #scheme 22:18:41 -!- attila_lendvai [n=ati@adsl-89-132-7-248.monradsl.monornet.hu] has quit [Read error: 110 (Connection timed out)] 22:18:57 attila_lendvai [n=ati@adsl-89-134-0-100.monradsl.monornet.hu] has joined #scheme 22:19:50 -!- exexex [n=chatzill@88.234.121.222] has quit [Remote closed the connection] 22:20:20 -!- annodomini [n=lambda@wikipedia/lambda] has quit [] 22:22:00 subversus [i=elliot@loveturtle.net] has joined #scheme 22:25:23 -!- jcowan [n=jcowan@72.14.228.89] has quit ["Leaving"] 22:25:58 -!- kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has quit [Remote closed the connection] 22:26:12 kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has joined #scheme 22:30:52 -!- wrldpc [n=worldpea@pool-173-48-214-204.bstnma.fios.verizon.net] has quit [Read error: 110 (Connection timed out)] 22:35:35 -!- slom [n=slom@pD9EB3A46.dip.t-dialin.net] has quit [Remote closed the connection] 22:39:35 annodomini [n=lambda@64.30.3.122] has joined #scheme 22:41:58 annodomini_ [n=lambda@64.30.3.122] has joined #scheme 22:41:59 -!- annodomini [n=lambda@wikipedia/lambda] has quit [Read error: 104 (Connection reset by peer)] 22:46:31 -!- RageOfThou [n=RageOfTh@92.36.145.59] has quit ["Leaving"] 22:46:36 RageOfThou [n=RageOfTh@92.36.145.59] has joined #scheme 22:46:38 Lemonator [n=kniu@OVERLORD.RES.CMU.EDU] has joined #scheme 22:48:22 -!- kniu [n=kniu@CMU-284828.WV.CC.CMU.EDU] has quit [Connection timed out] 22:48:24 -!- annodomini_ [n=lambda@wikipedia/lambda] has quit [] 22:52:31 annodomini [n=lambda@64.30.3.122] has joined #scheme 22:56:33 -!- annodomini [n=lambda@wikipedia/lambda] has quit [Read error: 104 (Connection reset by peer)] 23:01:06 jcowan [n=jcowan@72.14.228.89] has joined #scheme 23:01:10 -!- ASau [n=user@193.138.70.52] has quit [Read error: 60 (Operation timed out)] 23:01:31 Does anyone know offhand how to grab the tarballs representing the Chicken 3 eggs? I no longer have Chicken 3 installed. 23:05:49 tmitt [n=seg@216.96.134.230] has joined #scheme 23:07:19 jcowan: try http://www.call-with-current-continuation.org/eggs/xxxxx.egg 23:07:21 -!- sepult [n=buggarag@xdsl-87-78-128-47.netcologne.de] has quit ["Lost terminal"] 23:08:50 zbigniew: thanks 23:09:49 -!- jcowan [n=jcowan@72.14.228.89] has quit ["Leaving"] 23:10:39 sepult [n=buggarag@xdsl-87-78-128-47.netcologne.de] has joined #scheme 23:14:19 MrFahrenheit [n=RageOfTh@92.36.132.175] has joined #scheme 23:14:49 -!- hotblack23 [n=jh@p5B055766.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 23:17:27 mike [n=m@dslb-088-067-024-164.pools.arcor-ip.net] has joined #scheme 23:17:55 -!- mike is now known as Guest20379 23:20:32 -!- j85wilson [n=j85wilso@cpe-75-187-46-126.columbus.res.rr.com] has quit ["Leaving."] 23:25:52 CaptainMorgan [n=CaptainM@c-75-68-42-94.hsd1.nh.comcast.net] has joined #scheme 23:29:49 -!- Edico [n=Edico@unaffiliated/edico] has quit ["Leaving"] 23:30:27 -!- RageOfThou [n=RageOfTh@92.36.145.59] has quit [Read error: 101 (Network is unreachable)] 23:40:21 -!- Guest20379 [n=m@dslb-088-067-024-164.pools.arcor-ip.net] has quit ["This computer has gone to sleep"] 23:41:00 -!- athos [n=philipp@92.250.250.68] has quit ["leaving"] 23:41:15 wrldpc [n=worldpea@pool-173-48-214-204.bstnma.fios.verizon.net] has joined #scheme 23:46:41 -!- wrldpc_ [n=worldpea@pool-173-48-214-204.bstnma.fios.verizon.net] has quit [Read error: 110 (Connection timed out)] 23:48:09 mogunus [n=user@173.9.7.10] has joined #scheme 23:48:44 Does anyone know where I can find a "listings" package (LaTeX) for scheme? I've been googling and it eludes me. 23:52:26 -!- neilv [n=user@dsl092-071-029.bos1.dsl.speakeasy.net] has quit [Read error: 110 (Connection timed out)]