00:02:08 HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has joined #scheme 00:08:16 StephenFalken [email@2001:470:1f14:135b::2] has joined #scheme 00:09:05 LiSP (LISP in Small Pieces) is just one of the most enlightening books on LISP/Scheme I've ever seen. 00:10:17 any particular reason? 00:10:19 I think I tried to read it, gave up, then sold it 00:11:21 It's a dense reading. It takes a lot of time and effort. 00:13:56 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 00:17:34 sbplr [~sbplr@unaffiliated/rasterbar] has joined #scheme 00:18:19 -!- f8l [~f8l@81.219.162.22] has quit [Quit: Happy hacking.] 00:20:02 -!- sbplr [~sbplr@unaffiliated/rasterbar] has quit [Remote host closed the connection] 00:20:21 rasterbar [~rasterbar@unaffiliated/rasterbar] has joined #scheme 00:22:24 nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has joined #scheme 00:35:03 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 00:36:33 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 00:42:12 -!- Adamant [~Adamant@unaffiliated/adamant] has quit [Quit: Adamant] 00:42:43 -!- teurastaja [~Samuel@modemcable198.178-131-66.mc.videotron.ca] has quit [Quit: Ex-Chat] 00:43:31 masm [~masm@bl15-79-18.dsl.telepac.pt] has joined #scheme 00:47:21 StephenFalken: does it culminate in an implementation of scheme? 00:55:11 -!- HG` [~HG@xdsl-188-118-128-254.dip.osnanet.de] has quit [Quit: Leaving.] 00:57:30 scriptha [~sc@ip4da3afe2.direct-adsl.nl] has joined #scheme 01:01:51 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 01:06:04 -!- dnolen [~davidnole@184.152.69.75] has quit [Quit: dnolen] 01:11:49 rien: it builds and analyses 11 different interpreters and 2 different compilers. 01:12:50 well that certainly justifies the $90 price tag :) 01:13:02 but tell us more about why you like the book so much 01:19:24 -!- blueadept2 [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has quit [Quit: Leaving] 01:19:31 -!- scriptha [~sc@ip4da3afe2.direct-adsl.nl] has quit [Remote host closed the connection] 01:19:47 blueadept2 [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has joined #scheme 01:20:40 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 01:21:20 -!- blueadept2 [~blueadept@cpe-24-160-96-254.tampabay.res.rr.com] has quit [Client Quit] 01:21:39 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 01:22:58 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 01:24:20 -!- rgrau [~user@80.31.142.135] has quit [Remote host closed the connection] 01:26:54 Adamant [~Adamant@unaffiliated/adamant] has joined #scheme 01:43:09 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Remote host closed the connection] 01:58:07 -!- valium97582 [~daniel@187.34.54.222] has quit [Ping timeout: 246 seconds] 02:02:34 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 255 seconds] 02:08:32 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 02:44:41 -!- rasterbar [~rasterbar@unaffiliated/rasterbar] has quit [Remote host closed the connection] 02:45:04 -!- dfkjjkfd [~paulh@210-11-ftth.onsnetstudenten.nl] has quit [Quit: Lost terminal] 03:03:51 -!- yx [debian-tor@gateway/tor-sasl/yx] has quit [Ping timeout: 240 seconds] 03:06:26 sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has joined #scheme 03:08:33 yx [debian-tor@gateway/tor-sasl/yx] has joined #scheme 03:10:14 user17 [~user@p5B2A9B55.dip0.t-ipconnect.de] has joined #scheme 03:13:00 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 03:18:51 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 03:19:44 Riastradh, have you considered appending new entries to the tail of blag.txt rather than prepending them to the head of it? 03:20:40 Riastradh, also, have you considered sending it as UTF-8 rather than ISO-8859-1? 03:37:27 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 03:39:28 DrDuck [~duck@216.186.151.63] has joined #scheme 03:51:52 -!- haesbaert [~haesbaert@189.27.173.145.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 246 seconds] 03:52:04 -!- masm [~masm@bl15-79-18.dsl.telepac.pt] has quit [Quit: Leaving.] 03:55:20 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 03:55:51 -!- timj_ [~timj@e176193172.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 03:56:18 kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has joined #scheme 03:58:34 gnomon: I don't know how much the blag is supposed to simulate a blog, but, most blog list most recent first. 03:58:38 *most blogs 03:59:07 gnomon: Also, what's the point of using UTF-8 if all the text will fit into ISO-8859-1? 04:00:16 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Ping timeout: 272 seconds] 04:01:32 -!- kbdvdr [~co1n@210-89-227-75.ap-w02.canvas.ne.jp] has quit [Quit: Leaving] 04:06:27 -!- sanduz2 [~sanduz2@75-149-186-118-Miami.hfc.comcastbusiness.net] has quit [Quit: Leaving] 04:06:32 parolang [~user@c-64-246-121-114.oregonrd-wifi-1261.amplex.net] has joined #scheme 04:06:50 What's the suggested way to work with networks/graphs in scheme? 04:08:45 -!- didi` [~user@unaffiliated/didi/x-1022147] has quit [Ping timeout: 240 seconds] 04:09:46 timj_ [~timj@e176195178.adsl.alicedsl.de] has joined #scheme 04:11:22 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 04:14:49 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 265 seconds] 04:17:26 nilg [~user@77.70.2.229] has joined #scheme 04:22:30 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Ping timeout: 240 seconds] 04:24:11 mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has joined #scheme 04:26:39 -!- mwolfe [~michael@cpe-67-49-72-40.socal.res.rr.com] has quit [Client Quit] 04:35:42 -!- yorick [yorick@gateway/shell/shellium.org/x-wiiamjvfmramarnn] has quit [Remote host closed the connection] 04:36:12 yorick [yorick@gateway/shell/shellium.org/x-fnzxhlmxdfkykkcp] has joined #scheme 04:36:12 patience, kindness, and love 04:38:11 nilg` [~user@77.70.2.229] has joined #scheme 04:39:42 Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has joined #scheme 04:41:18 -!- yorick [yorick@gateway/shell/shellium.org/x-fnzxhlmxdfkykkcp] has quit [Ping timeout: 245 seconds] 04:42:11 yorick [yorick@gateway/shell/shellium.org/x-vtjwnfdctxwuqzyn] has joined #scheme 04:44:21 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 276 seconds] 04:51:41 myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has joined #scheme 04:56:01 -!- snappy [~naveen@armakuni.lastninja.net] has quit [Changing host] 04:56:01 snappy [~naveen@unaffiliated/snappy] has joined #scheme 04:59:26 -!- bgs100 [~ian@unaffiliated/bgs100] has quit [Quit: night] 05:06:38 homie` [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 05:06:40 wbooze` [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 05:08:09 -!- vu3rdd [~vu3rdd@fsf/member/vu3rdd] has quit [Read error: Connection reset by peer] 05:08:25 vu3rdd [~vu3rdd@122.166.88.147] has joined #scheme 05:08:25 -!- vu3rdd [~vu3rdd@122.166.88.147] has quit [Changing host] 05:08:25 vu3rdd [~vu3rdd@fsf/member/vu3rdd] has joined #scheme 05:09:18 -!- homie [~levgue@xdsl-78-35-173-41.netcologne.de] has quit [Ping timeout: 272 seconds] 05:09:50 -!- wbooze [~levgue@xdsl-78-35-173-41.netcologne.de] has quit [Ping timeout: 276 seconds] 05:13:12 annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has joined #scheme 05:13:12 -!- annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has quit [Changing host] 05:13:12 annodomini [~lambda@wikipedia/lambda] has joined #scheme 05:15:06 Kerrick [~Kerrick@71-34-182-176.desm.qwest.net] has joined #scheme 05:25:28 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 05:27:06 -!- githogori_ [~githogori@adsl-66-123-22-146.dsl.snfc21.pacbell.net] has quit [Quit: Leaving] 05:28:46 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 265 seconds] 05:29:35 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 05:31:38 -!- blueadept [~blueadept@unaffiliated/blueadept] has quit [Quit: Leaving] 05:35:08 -!- tupi [~david@186.205.37.15] has quit [Quit: Leaving] 05:38:02 -!- Kerrick [~Kerrick@71-34-182-176.desm.qwest.net] has quit [Ping timeout: 240 seconds] 05:48:47 -!- Azuvix [~Azuvix@174-27-39-176.bois.qwest.net] has quit [Quit: Leaving] 06:03:08 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit: adu] 06:11:27 Prometheus_ [~heyy@CPE0023cdd441d7-CM001947479c3c.cpe.net.cable.rogers.com] has joined #scheme 06:11:52 -!- Prometheus_ is now known as trii 06:12:08 -!- arcfide [1000@c-69-136-0-72.hsd1.in.comcast.net] has left #scheme 06:14:23 hey guys I just learned how to use lambda in Racket and needed help with my completed program 06:14:25 http://paste.lisp.org/display/118924 06:14:40 I use foldr in a way that it calculates the sum 06:14:50 but some structures can have a symbol 06:14:54 causing me a error 06:15:03 any suggestions on how to restructure my code? 06:15:22 the math itself is all correct 06:18:16 hm perhaps I can replace '+' with some lambda function 06:23:38 ThinksInCode [~Joseph_At@c-66-31-219-236.hsd1.ma.comcast.net] has joined #scheme 06:23:50 -!- ThinksInCode [~Joseph_At@c-66-31-219-236.hsd1.ma.comcast.net] has left #scheme 06:24:13 lumixter [~terminato@cpe-70-113-109-95.austin.res.rr.com] has joined #scheme 06:24:38 -!- lumixter [~terminato@cpe-70-113-109-95.austin.res.rr.com] has left #scheme 06:32:00 trii: yes, if you can say what value should be summed when you encounter a symbol. 06:32:15 Why are those symbols there in the first place? 06:32:32 apart of the card game rules 06:32:47 it multiplies score by (m + 1) 06:32:49 Doyou have a map of these symbols to numerical values? 06:32:56 yeah 06:33:11 I tried a different method just now 06:33:16 I didnt replace the + 06:33:20 You can then convert them in the lambda inside the map. 06:33:26 instead I am replacing symbols with 0 06:33:55 (lambda (card) (let ((value (lost-cities-card-value card))) (if (symbol? value) (cdr (assoc value sym-to-num-map)) value))) 06:34:19 or 0, if you want to (lambda (card) (let ((value (lost-cities-card-value card))) (if (symbol? value) 0 value))) 06:34:59 crd? 06:35:02 cdr* 06:35:24 assuming the map is an a-list, which is implied by assoc. 06:36:10 -!- copumpkin [~pumpkin@unaffiliated/pumpkingod] has quit [Quit: Computer has gone to sleep.] 06:37:15 this is for a class, and I don't recognize anything in (cdr (assoc value sym-to-num-map)) lol 06:37:21 so I'll try out the latter suggestion 06:37:40 You said you had a map of the symbols to values. What it is? 06:38:12 If you have such a map, why do you want to use 0 instead of the mapped value for a symbol? 06:39:31 it maps the card's value in place of the symbol 06:39:48 but that value argument also takes a symbol 06:39:50 Your comments say that only the symbol multiply may be used in a value slot. What does it mean to have this symbol? 06:39:58 sorry it maps in place of a structure* 06:40:12 Perhaps you're confused by the double use of the word map. 06:40:35 perhaps. what are the 2 uses then? 06:41:05 There's the scheme function called map, which maps a list into a new list of value computed by the function given in argument, and there's the general notion of map, like a table associating pairs of values. 06:41:39 oh I only knew the definition of the former 06:41:47 For example, you could have the map ((knight . 42) (queen . 24) (jack . 12)) 06:42:09 and you could use (cdr (assoc 'queen '((knight . 42) (queen . 24) (jack . 12)))) --> 24 06:42:49 But now as I said, I see that you may have only the symbol multiply. What does it mean to have this symbol in the value slot of the structure? 06:43:41 it means that the score is multiplied 06:43:53 by the number of 'multiply symbols 06:43:55 in the list 06:43:58 plus 1 06:44:25 ((# of 'multiply) + 1) * score) 06:44:33 Wouldn't it be easier if instead of filtering only once, you splitted the list in two sublists, one containing the cities with multiply and one containing the others? 06:45:54 I dont think it would :S 06:46:08 (let ((mults-nums (split (lambda (card) (equal? (lost-cities-card-value card) 'multiply)) column))) (+ (* (add1 (length (first mults-nums))) (- (foldr + 0 (map lost-cities-card-value (second mults-nums))) deduction)) (card-bonus column))) 06:46:22 can I use cond with lambda ? 06:46:26 inside a lambda 06:46:41 Sure. 06:47:08 (define (f args) body) === (define f (lambda (args) body)) 06:49:57 cool 06:51:41 hey I updated the code 06:51:43 http://paste.lisp.org/display/118924 06:51:57 I'm actually not sure why it errors this time 06:52:08 since I dealt with the symbol conversion to 0 I thought 06:53:42 user18 [~user@p5B2A9CF3.dip0.t-ipconnect.de] has joined #scheme 06:53:51 oh wait.. 06:53:55 just used the stepper :P 06:57:34 heh I'm getting somewhere 06:57:36 -!- user17 [~user@p5B2A9B55.dip0.t-ipconnect.de] has quit [Ping timeout: 276 seconds] 06:57:47 thanks so far btw, pjb 06:59:19 Good. 07:02:56 -!- parolang [~user@c-64-246-121-114.oregonrd-wifi-1261.amplex.net] has quit [Ping timeout: 276 seconds] 07:05:17 -!- nilg [~user@77.70.2.229] has quit [Read error: Operation timed out] 07:05:54 nilg [~user@77.70.2.229] has joined #scheme 07:09:39 http://paste.lisp.org/display/118924#2 07:09:43 that's the finished copy 07:10:01 so is it less code than splitting the lists like you were saying? 07:18:40 perhaps not, but there's something that I don't like in that solution: 1- you're not doing the same test in the two lambdas. 2- once you correct it to make the same test in the two lambda, you might realize that it would be better to make it only once in a split function. 07:20:07 Not doing the same test in both lambda means that it will probably break if ever we add another symbol as valid values. 07:28:08 kenjin2201 [~kenjin@211.177.88.67] has joined #scheme 07:29:09 that is very true 07:29:17 thanks for your input once again 07:29:44 rudybot: (filter (lambda(k) (odd? k)) '(1 2 3 4 5)) 07:29:45 lewis1711: your sandbox is ready 07:29:45 lewis1711: ; Value: (1 3 5) 07:30:04 right, so that function produces a list, right? how would one do something like... 07:30:10 rudybot: (+ (+ (filter (lambda(k) (odd? k)) '(1 2 3 4 5)))) 07:30:10 lewis1711: error: +: expects argument of type ; given (1 3 5) 07:30:18 whoops, just one + 07:30:24 rudybot: (+ (filter (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:30:24 lewis1711: error: +: expects argument of type ; given (1 3 5) 07:30:29 folr 07:30:30 to sum up all the elements of that list 07:30:33 foldr 07:32:43 anything similar to foldr where i don't need an identity element? 07:32:55 (foldr + 0 (filter (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:34:00 (define foldr-without-identity (fun lst) (cond ((null? lst) (error "Cannot work on empty lists")) ((null? (cdr lst)) (car lst)) (else (foldr fun (car lst) (cdr lst))))) 07:34:11 (foldr-without-identity + (filter (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:34:24 lewis1711: there's always. 07:36:12 may end up using that, thx:) but I am sure there must be something built into scheme 07:36:48 Probably not, scheme is rather small. Better search it in libraries. 07:38:08 -!- trii [~heyy@CPE0023cdd441d7-CM001947479c3c.cpe.net.cable.rogers.com] has quit [Ping timeout: 272 seconds] 07:39:05 rudybot: (apply + filter (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:39:06 lewis1711: error: eval:1:50: read: unexpected `)' 07:39:35 (apply + (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:39:47 rudybot: (apply + (lambda(k) (odd? k)) '(1 2 3 4 5))) 07:39:48 lewis1711: error: eval:1:43: read: unexpected `)' 07:39:55 ...today is not my day 07:40:16 rudybot: (apply + (lambda(k) (odd? k)) '(1 2 3 4 5)) 07:40:17 lewis1711: error: +: expects type as 1st argument, given: #; other arguments were: 1 2 3 4 5 07:40:49 rudybot: (apply + (filter odd? '(1 2 3 4 5 6))) 07:40:49 pjb: your sandbox is ready 07:40:49 pjb: ; Value: 9 07:40:51 rudybot: (apply + ((lambda(k) (odd? k)) '(1 2 3 4 5))) 07:40:51 lewis1711: error: odd?: expects argument of type ; given (1 2 3 4 5) 07:40:54 lol 07:40:56 thanks pjb 07:40:59 I'd be here all day:P 07:41:17 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 08:01:20 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 08:12:22 -!- wbooze` [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 08:12:51 -!- homie` [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 08:16:39 homie [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 08:19:19 wbooze [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 08:27:42 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 08:28:47 orion1010 [~process@ppp118-209-182-247.lns20.mel6.internode.on.net] has joined #scheme 08:32:52 qinglingquan [~Zero@123.121.62.0] has joined #scheme 08:39:59 -!- orion1010 [~process@ppp118-209-182-247.lns20.mel6.internode.on.net] has left #scheme 09:37:30 -!- qinglingquan [~Zero@123.121.62.0] has left #scheme 09:38:54 copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has joined #scheme 09:38:54 -!- copumpkin [~pumpkin@209-6-232-56.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com] has quit [Changing host] 09:38:54 copumpkin [~pumpkin@unaffiliated/pumpkingod] has joined #scheme 09:39:45 -!- kenjin2201 [~kenjin@211.177.88.67] has quit [Remote host closed the connection] 09:49:58 rgrau [~user@80.31.142.135] has joined #scheme 10:10:01 -!- nilg` [~user@77.70.2.229] has quit [Remote host closed the connection] 10:19:25 pdponze [~pdponze@144.85.121.191] has joined #scheme 10:57:10 jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has joined #scheme 10:58:25 is it considered "bad style" if you have a function that preforms a lot of local mutation, that isn't visible outside the function? I mean it still ends up being referentially transpareant.. 11:04:20 -!- homie [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 11:07:37 homie [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 11:11:38 gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has joined #scheme 11:15:05 valium97582 [~daniel@187.34.48.136] has joined #scheme 11:16:18 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 11:17:36 lewis1711: depends. This style is often used in Common Lisp, for practical reasons. But with new multi-core processors and parallisim potential, it's might be better if even local mutation was avoided, since that would allow compilers to generate parallel code more easily. 11:17:41 -!- sjamaan [~sjamaan@netbsd/developer/sjamaan] has quit [Ping timeout: 240 seconds] 11:18:08 interesting 11:18:22 I forget that coding at this level of abstraction is a bit different 11:23:23 -!- homie [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 11:25:40 valium97682 [~daniel@187.10.44.16] has joined #scheme 11:26:00 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 11:26:12 managed to avoid it make-list though (may be racket specific) 11:26:26 -!- valium97582 [~daniel@187.34.48.136] has quit [Ping timeout: 240 seconds] 11:29:44 IvarTJ [~ivar@ti0031a380-0099.bb.online.no] has joined #scheme 11:29:59 hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has joined #scheme 11:31:04 -!- DrDuck [~duck@216.186.151.63] has quit [Read error: Operation timed out] 11:35:25 vilsonvieira [~vilson@187.112.204.12] has joined #scheme 11:44:56 f8l [~f8l@81.219.162.22] has joined #scheme 11:48:03 sjamaan [~sjamaan@frohike.xs4all.nl] has joined #scheme 11:48:03 -!- sjamaan [~sjamaan@frohike.xs4all.nl] has quit [Changing host] 11:48:03 sjamaan [~sjamaan@netbsd/developer/sjamaan] has joined #scheme 12:08:09 -!- rgrau [~user@80.31.142.135] has quit [Remote host closed the connection] 12:13:03 -!- gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 12:13:54 femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #scheme 12:19:18 nilg [~user@77.70.2.229] has joined #scheme 12:24:37 -!- pdponze [~pdponze@144.85.121.191] has quit [Quit: pdponze] 12:25:00 pdponze [~pdponze@144.85.121.191] has joined #scheme 12:25:14 -!- pdponze [~pdponze@144.85.121.191] has left #scheme 12:26:13 kenjin2201 [~kenjin@211.177.88.67] has joined #scheme 12:35:09 Seus [~Seus@99.114.191.45] has joined #scheme 12:35:24 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 12:37:48 I reckon I should try Bigloo as my first Scheme implementation. 12:44:25 -!- IvarTJ [~ivar@ti0031a380-0099.bb.online.no] has quit [Quit: leaving] 12:46:54 nilg [~user@77.70.2.229] has joined #scheme 12:58:03 MrFahrenheit [~RageOfTho@users-146-124.vinet.ba] has joined #scheme 12:58:55 tupi [~david@186.205.37.15] has joined #scheme 12:59:30 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 13:02:52 phao [~phao@189.107.164.126] has joined #scheme 13:09:42 gravicappa [~gravicapp@ppp85-141-165-18.pppoe.mtu-net.ru] has joined #scheme 13:10:42 mathk__ [~mathk@194.177.62.44] has joined #scheme 13:14:18 -!- mathk [~mathk@194.177.62.31] has quit [Ping timeout: 246 seconds] 13:14:19 -!- mathk__ is now known as mathk 13:19:00 homie [~levgue@xdsl-78-35-170-201.netcologne.de] has joined #scheme 13:24:27 -!- valium97682 is now known as valium97582 13:31:35 -!- phao [~phao@189.107.164.126] has quit [Quit: Leaving] 13:32:00 phao [~phao@189.107.147.36] has joined #scheme 13:35:26 -!- lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has left #scheme 13:42:44 rgrau [~user@62.Red-88-2-20.staticIP.rima-tde.net] has joined #scheme 13:53:51 -!- jewel [~jewel@196-210-187-98.dynamic.isadsl.co.za] has quit [Ping timeout: 240 seconds] 14:13:27 -!- peterhil` [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has quit [Quit: Must not waste too much time here...] 14:17:44 -!- jensn_ [~ceres@c-83-233-145-103.cust.bredband2.com] has quit [Ping timeout: 250 seconds] 14:20:08 snorble [~snorble@s83-179-14-105.cust.tele2.se] has joined #scheme 14:29:01 -!- phao [~phao@189.107.147.36] has quit [Ping timeout: 240 seconds] 14:30:23 nilg` [~user@77.70.2.229] has joined #scheme 14:32:57 phao [~phao@189.107.177.56] has joined #scheme 14:37:17 -!- hiyuh [~hiyuh@KD124214245222.ppp-bb.dion.ne.jp] has quit [Quit: Leaving.] 14:39:03 pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 14:41:49 pdponze [~pdponze@144.85.121.191] has joined #scheme 14:41:59 -!- pdponze [~pdponze@144.85.121.191] has left #scheme 14:50:44 cky, the fact that most weblogs put content at the top does not change the fact that doing so is counterintuitive and annoying. 14:52:09 cky, one should use utf-8 rather than iso-8859-1 because within the realm of ASCII, both encodings will require precisely the same amount of storage (and in fact be identical except for the header which declares the encoding), but utf-8 offers an enormously larger set of potential characters. It is also less of a pain in the ass. ISO-8859-1 needs to die. 14:55:26 Ah, I see. (Re iso-8859-1 needs to die.) 14:56:02 Re newest-on-top, I've become accustomed to it, honestly, but I'm not religiously for or against it. 14:57:06 newest on top is OK, IMHO, and I am in the top tenth percentile of crusty old farts 15:01:22 jensn [~ceres@c-83-233-144-228.cust.bredband2.com] has joined #scheme 15:02:48 -!- vilsonvieira [~vilson@187.112.204.12] has quit [Quit: Saindo] 15:06:17 -!- pygospa [~pygospa@kiel-5f768b90.pool.mediaWays.net] has quit [Disconnected by services] 15:06:26 pygospa [~pygospa@kiel-4d067c6a.pool.mediaWays.net] has joined #scheme 15:08:40 wisey [~Steven@host86-150-108-29.range86-150.btcentralplus.com] has joined #scheme 15:15:38 -!- valium97582 is now known as dmv 15:17:24 -!- dmv is now known as dmv_ 15:18:26 hrr4 [~hrr4@teleport.nynex.de] has joined #scheme 15:22:14 morphir [oivindbi@lynx.stud.ntnu.no] has joined #scheme 15:23:59 -!- hrr4 [~hrr4@teleport.nynex.de] has left #scheme 15:25:14 -!- timj_ is now known as timj 15:41:57 annodomini [~lambda@wikipedia/lambda] has joined #scheme 15:48:39 -!- jensn [~ceres@c-83-233-144-228.cust.bredband2.com] has quit [Ping timeout: 240 seconds] 15:52:50 -!- phao [~phao@189.107.177.56] has quit [Quit: Leaving] 16:09:35 Riastradh [debian-tor@fsf/member/riastradh] has joined #scheme 16:10:40 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 16:10:55 grettke [~grettke@cpe-65-30-30-255.wi.res.rr.com] has joined #scheme 16:12:22 masm [~masm@bl15-79-18.dsl.telepac.pt] has joined #scheme 16:15:39 phao [~phao@189.107.177.56] has joined #scheme 16:17:18 -!- grettke [~grettke@cpe-65-30-30-255.wi.res.rr.com] has quit [] 16:21:33 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 246 seconds] 16:21:54 -!- pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 272 seconds] 16:28:54 pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 16:28:57 pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has joined #scheme 16:30:58 -!- wisey [~Steven@host86-150-108-29.range86-150.btcentralplus.com] has quit [Quit: Leaving] 16:42:15 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 260 seconds] 16:44:59 -!- user18 [~user@p5B2A9CF3.dip0.t-ipconnect.de] has quit [Quit: Leaving] 16:45:15 user17 [~user@p5B2A9CF3.dip0.t-ipconnect.de] has joined #scheme 16:55:00 -!- StephenFalken [email@2001:470:1f14:135b::2] has quit [Remote host closed the connection] 17:01:08 -!- pdelgallego_ [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Read error: Operation timed out] 17:03:22 -!- pdelgallego [~pdelgalle@1385159852.dhcp.dbnet.dk] has quit [Ping timeout: 255 seconds] 17:05:02 choas [~lars@p5792C550.dip.t-dialin.net] has joined #scheme 17:09:58 -!- vu3rdd [~vu3rdd@fsf/member/vu3rdd] has quit [Remote host closed the connection] 17:21:47 mwolfe [~michael@adsl-68-126-248-132.dsl.irvnca.pacbell.net] has joined #scheme 17:25:15 -!- nilg` [~user@77.70.2.229] has quit [Remote host closed the connection] 17:25:45 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 17:28:03 annodomini [~lambda@wikipedia/lambda] has joined #scheme 17:38:14 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 17:40:02 -!- kenjin2201 [~kenjin@211.177.88.67] has quit [Remote host closed the connection] 17:42:57 -!- wbooze [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Read error: Operation timed out] 17:43:08 homie` [~levgue@xdsl-78-35-147-195.netcologne.de] has joined #scheme 17:43:12 wbooze` [~levgue@xdsl-78-35-147-195.netcologne.de] has joined #scheme 17:46:18 -!- homie [~levgue@xdsl-78-35-170-201.netcologne.de] has quit [Ping timeout: 276 seconds] 17:48:27 hey 17:48:30 what is '3? 17:48:35 a number, but also a symbol? 17:48:43 -!- wbooze` [~levgue@xdsl-78-35-147-195.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 17:49:02 -!- homie` [~levgue@xdsl-78-35-147-195.netcologne.de] has quit [Remote host closed the connection] 17:49:06 oh... it's not a symbol 17:49:33 No, only a number. :-P 17:49:45 it's a list whose first element is "quote", and whose second is the number 3. 17:50:01 That. 17:50:04 it's an applicaiton then! 17:50:06 (quote 3) 17:50:16 if quote is a procedure, which I'm not sure it is... 17:50:19 It's not. 17:50:23 nilg [~user@77.70.2.229] has joined #scheme 17:50:32 It's a special form. 17:50:38 *offby1* nods gravely 17:50:44 yeah, it's what I thought 17:50:46 scheme has a few of those, just to keep you guessing. 17:51:01 homie [~levgue@xdsl-78-35-147-195.netcologne.de] has joined #scheme 17:53:06 wbooze [~levgue@xdsl-78-35-147-195.netcologne.de] has joined #scheme 17:54:56 timepilot [~timepilot@66.71.230.247] has joined #scheme 18:05:42 heiz [~heiz@95-55-117-80.dynamic.avangarddsl.ru] has joined #scheme 18:09:15 kenjin2201 [~kenjin@211.177.88.67] has joined #scheme 18:17:55 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 18:28:07 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 18:37:17 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 18:37:42 dnolen [~davidnole@184.152.69.75] has joined #scheme 18:38:42 bgs100 [~ian@unaffiliated/bgs100] has joined #scheme 18:44:38 -!- heiz [~heiz@95-55-117-80.dynamic.avangarddsl.ru] has quit [Quit:     (xchat 2.4.5  )] 18:57:27 blueadept [~blueadept@unaffiliated/blueadept] has joined #scheme 19:31:52 -!- masm [~masm@bl15-79-18.dsl.telepac.pt] has quit [Ping timeout: 255 seconds] 19:33:21 -!- Intensity [6ndHX9dVt7@unaffiliated/intensity] has quit [Quit: Intensity] 19:52:32 -!- myu2 [~myu2@v077103.dynamic.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 19:54:47 davazp [~user@15.Red-83-57-38.dynamicIP.rima-tde.net] has joined #scheme 19:55:41 Intensity [bEIq5iMIzn@unaffiliated/intensity] has joined #scheme 19:58:46 annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has joined #scheme 19:58:46 -!- annodomini [~lambda@c-65-96-220-241.hsd1.ma.comcast.net] has quit [Changing host] 19:58:46 annodomini [~lambda@wikipedia/lambda] has joined #scheme 20:00:48 schmir [~schmir@p54A90259.dip0.t-ipconnect.de] has joined #scheme 20:06:10 femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #scheme 20:16:56 parolang [~user@c-64-246-121-114.oregonrd-wifi-1261.amplex.net] has joined #scheme 20:18:32 -!- nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has quit [Ping timeout: 276 seconds] 20:19:51 -!- schmir [~schmir@p54A90259.dip0.t-ipconnect.de] has quit [Ping timeout: 240 seconds] 20:29:53 peterhil [~peterhil@a91-153-127-82.elisa-laajakaista.fi] has joined #scheme 20:30:36 rasterbar [~rasterbar@unaffiliated/rasterbar] has joined #scheme 20:44:22 is there a built in function to replace items that are characters in a list? 20:46:45 Seus: can you give an example? 20:46:51 rudybot: (list #\a #\b #\c) 20:46:52 *offby1: your scheme sandbox is ready 20:46:52 *offby1: ; Value: (#\a #\b #\c) 20:46:56 rudybot: (list #\a #\b #\c 1 2 3) 20:46:56 *offby1: ; Value: (#\a #\b #\c 1 2 3) 20:47:12 rudybot: (map (lambda (thing) (if (character? thing) (character->number thing))) (list #\a #\b #\c 1 2 3)) 20:47:13 *offby1: error: eval:1:21: if: bad syntax (must have an "else" expression) in: (if (character? thing) (character->number thing)) 20:47:21 rudybot: (map (lambda (thing) (if (character? thing) (character->number thing)) thing) (list #\a #\b #\c 1 2 3)) 20:47:21 *offby1: error: eval:1:21: if: bad syntax (must have an "else" expression) in: (if (character? thing) (character->number thing)) 20:47:24 *sigh* 20:47:31 like say i have a list: '(1 2 #\c) 20:47:45 is there a built in function to replace #\c only? 20:48:32 kinda 20:48:41 rudybot: (map (lambda (thing) (if (char? thing) (char->integer thing) thing)) (list #\a #\b #\c 1 2 3)) 20:48:41 *offby1: ; Value: (97 98 99 1 2 3) 20:48:45 is that what you want? 20:48:57 otherwise i'll just use recursion and car to pop them off check to see if its a char and replace it 20:49:12 I suspect that the way I did it is about as simple as it's going to get. 20:49:51 yeah 20:49:53 i believe so 20:49:58 yeah map is what'll do it 20:50:03 thanks a ton 20:52:11 kuribas [~user@d54C2AD5B.access.telenet.be] has joined #scheme 20:53:53 BW^- [~Miranda@92.81.215.25] has joined #scheme 20:53:54 any library for solving partial differential equations? heavy such 20:56:06 wingo [~wingo@90.164.198.39] has joined #scheme 20:57:18 -!- mwolfe [~michael@adsl-68-126-248-132.dsl.irvnca.pacbell.net] has quit [Remote host closed the connection] 20:57:49 -!- parolang [~user@c-64-246-121-114.oregonrd-wifi-1261.amplex.net] has quit [Ping timeout: 255 seconds] 21:01:04 BW^-, there is a good deal of code in scmutils for evolving partial differential equations. (I don't think it will help you find closed form solutions to them, but that's not very useful anyway.) 21:03:43 heya Riastradh 21:03:53 Hi. 21:04:00 congrats on that tarsnap bug catch! looked like fun 21:04:37 Thanks. Do you use Tarsnap, or did you just happen to hear about it from LWN or something? 21:05:35 riastradh: what url does scmutils have? where in it do you think these routines are, roughly? 21:05:37 just heard about it from lwn, and my guilty indulgence, news.yc 21:06:42 BW^-: http://groups.csail.mit.edu/mac/users/gjs/6946/linux-install.htm 21:08:47 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 21:10:53 riastradh: thank you very much, this seems like a very extensive library it's even of a general value to know of 21:10:57 if you know of any more such let me know :) 21:11:59 well i suppose the world is full of them. 21:12:00 thank you! 21:19:03 Teapot [~teapot@gateway/shell/bshellz.net/x-hxzrfrxmvtlhffjl] has joined #scheme 21:20:09 Sveklo [~sveklo@unaffiliated/sveklo] has joined #scheme 21:20:17 -!- Sveklo [~sveklo@unaffiliated/sveklo] has quit [Remote host closed the connection] 21:20:22 Sveklo [~sveklo@unaffiliated/sveklo] has joined #scheme 21:25:28 nego [~nego@c-76-16-30-244.hsd1.il.comcast.net] has joined #scheme 21:25:38 -!- nilg [~user@77.70.2.229] has quit [Remote host closed the connection] 21:26:39 -!- parcs [~patrick@ool-45741d7d.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 21:28:10 parcs [~patrick@ool-45741d7d.dyn.optonline.net] has joined #scheme 21:32:14 -!- dmv_ [~daniel@187.10.44.16] has quit [Ping timeout: 272 seconds] 21:32:43 dmv_ [~daniel@187.10.44.16] has joined #scheme 21:34:58 -!- Sveklo [~sveklo@unaffiliated/sveklo] has quit [Remote host closed the connection] 21:40:14 parolang [~user@c-64-246-121-114.oregonrd-wifi-1261.amplex.net] has joined #scheme 21:45:30 beetlejooce [~androirc@216.sub-174-253-148.myvzw.com] has joined #scheme 21:47:15 seamus-android [~alistair@cpc1-brig7-0-0-cust565.3-3.cable.virginmedia.com] has joined #scheme 21:52:14 -!- beetlejooce [~androirc@216.sub-174-253-148.myvzw.com] has quit [Quit: AndroIRC] 21:57:25 mejja [~user@c-b4b5e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #scheme 21:57:59 Prometheus_ [~heyy@CPE00119554b94c-CM00222d55a275.cpe.net.cable.rogers.com] has joined #scheme 21:58:39 hi 21:58:46 I have a list of 5 structures 21:58:53 each structure takes two arguments 21:59:20 how would I map a list of 5 structures with on argument changed to the original list using lambda? 21:59:35 one* 21:59:59 Can you ask the question a little more abstractly, or leave out a few more details? 22:01:07 I need to map (listof card) to (listof card) 22:01:35 well it's a different structure but yeah 22:01:52 card takes suit and value, I need the same suit but a new value on the outputted list 22:03:49 -!- BW^- [~Miranda@92.81.215.25] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 22:06:43 Prometheus_, (map (lambda (card1) (.. do something to make a new card)) list-of-cards) 22:07:13 -!- leppie [~lolcow@196-215-83-125.dynamic.isadsl.co.za] has quit [Ping timeout: 255 seconds] 22:07:37 hm 22:07:48 yeah I have that at the moment 22:07:52 leppie [~lolcow@196-215-83-125.dynamic.isadsl.co.za] has joined #scheme 22:07:58 -!- kenjin2201 [~kenjin@211.177.88.67] has quit [Remote host closed the connection] 22:08:04 but the changing argument 22:08:11 has to be different for each structure 22:08:22 i.e. value goes up by one 22:08:50 except it's symbol not number 22:09:38 Prometheus_: You can write a function for that. 22:09:39 e.g., 22:10:16 rudybot: (define (next-suit suit) (case suit ((spade) 'club) ((club) 'diamond) ((diamond) 'heart) ((heart) 'no-trump))) 22:10:16 cky: your racket sandbox is ready 22:10:17 cky: Done. 22:10:22 rudybot: (next-suit 'spade) 22:10:22 cky: ; Value: club 22:10:29 rudybot: (next-suit (next-suit 'spade)) 22:10:29 cky: ; Value: diamond 22:11:16 (Bonus for anyone who recognises which card game that particular suit order comes from. ;-P) 22:13:17 alrighty 22:14:17 it's pretty different iny mcase though 22:14:23 can I show you the exact question? 22:14:29 in my case* 22:15:19 -!- wingo [~wingo@90.164.198.39] has quit [Ping timeout: 255 seconds] 22:15:39 -!- choas [~lars@p5792C550.dip.t-dialin.net] has quit [Quit: leaving] 22:16:47 haha I was typing what my logic was when that gave me an idea xD 22:16:54 Nice. 22:23:50 .oO(bridge would be S, H, D, C) 22:24:11 -!- Nisstyre is now known as Julius1 22:24:12 or actually, C D H S NT 22:24:21 is there another game with "no-trump"? 22:24:23 beetlejooce [~androirc@216.sub-174-253-148.myvzw.com] has joined #scheme 22:24:38 coincidentally, Mrs Offby1 is putting our bidding boxes on eBay as we speak 22:25:28 offby1: Yes, there is. 22:25:31 -!- Julius1 is now known as Nisstyre 22:25:32 lol @ MRs Offby1 22:26:22 offby1: Hint: lowest bid is 6S, worth 40 points. Highest bid is 10NT, worth 520 points. 22:26:48 -!- beetlejooce [~androirc@216.sub-174-253-148.myvzw.com] has quit [Client Quit] 22:26:50 offby1: There are also bids of misere/nullo, worth 250, and open misere, worth 500. :-) 22:27:31 it was easy to guess, because you mentioned the game earlier in connection to mensa 22:27:42 sloyd: Hehehehehe. :-) 22:29:04 sloyd: I also realised belatedly that just Googling for "open misere" will give the answer away. :-P 22:29:57 -!- timepilot [~timepilot@66.71.230.247] has quit [Quit: timepilot] 22:31:02 (Trivia: The proper pronunciation of "misere" rhymes with "there". But I've heard people pronounce it rhyming with "sincere".) 22:31:12 sounds miserable 22:31:17 Yes. :-P 22:33:28 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 22:34:56 Prometheus__ [~heyy@CPE0023cdd441d7-CM001947479c3c.cpe.net.cable.rogers.com] has joined #scheme 22:35:46 -!- kuribas [~user@d54C2AD5B.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:38:40 -!- Prometheus_ [~heyy@CPE00119554b94c-CM00222d55a275.cpe.net.cable.rogers.com] has quit [Ping timeout: 260 seconds] 22:46:16 DrDuck [~duck@216.186.151.63] has joined #scheme 22:55:06 . 22:55:20 hey mejja ;) 23:07:04 -!- phao [~phao@189.107.177.56] has quit [Ping timeout: 255 seconds] 23:17:53 -!- mejja [~user@c-b4b5e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014]] 23:17:56 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Ping timeout: 276 seconds] 23:22:58 phao [~phao@189.107.230.9] has joined #scheme 23:23:26 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Read error: Connection reset by peer] 23:23:35 didi [~user@scorpion.tdkom.psi.br] has joined #scheme 23:23:36 -!- didi [~user@scorpion.tdkom.psi.br] has quit [Changing host] 23:23:36 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 23:24:21 -!- phao [~phao@189.107.230.9] has quit [Client Quit] 23:27:29 phao [~phao@189.107.230.9] has joined #scheme 23:28:03 -!- kniu [~kniu@DOHOHO.RES.CMU.EDU] has quit [Read error: Operation timed out] 23:28:18 kniu [~kniu@DOHOHO.RES.CMU.EDU] has joined #scheme 23:30:41 -!- Seus [~Seus@99.114.191.45] has quit [Quit: Seus] 23:31:07 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 23:38:52 lewis1711 [~lewis@125-239-255-244.jetstream.xtra.co.nz] has joined #scheme 23:45:53 erjiang [~erjiang@7.80.244.66.jest.smithvilledigital.net] has joined #scheme