00:03:00 did you work through the entire book tomodo ? 00:03:04 -!- RomyRomy [~stickycak@pool-74-108-234-244.nycmny.east.verizon.net] has quit [Ping timeout: 245 seconds] 00:04:56 -!- bytbox [~s@129.2.129.229] has quit [Quit: Lost terminal] 00:06:05 I din't do the last chapters because they were too hard 00:07:07 tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-02.NATPOOL.NYU.EDU] has joined #scheme 00:07:27 ah, im still in the first section, just working through 2-3 subsections a day 00:08:42 but id imagine it gets pretty difficult after a while 00:09:00 tomodo: harder, but also more fun 00:09:59 bytbox [~s@129.2.129.229] has joined #scheme 00:11:15 :) 00:12:45 im also working through k&r right now too, need to level up my skills 00:13:18 -!- imsky [~ivan@c-71-194-152-46.hsd1.in.comcast.net] has left #scheme 00:17:39 chromaticwt [~user@71-222-151-95.albq.qwest.net] has joined #scheme 00:18:02 Would it be a terrible idea to try to follow SICP but writing in Common Lisp? 00:18:02 >.> 00:19:22 hold on i googled that before i started 00:19:29 and people said nay 00:19:32 lemme find it 00:19:58 http://stackoverflow.com/questions/1159208/can-i-use-common-lisp-for-sicp-or-is-scheme-the-only-option 00:19:59 http://tinyurl.com/6p7rdwk 00:20:01 read that 00:20:24 also, there is a website of someone who is converting the examples and exercises for clojure, but its still a work in progress 00:20:26 -!- dan64 [~dan64@c-71-206-193-42.hsd1.pa.comcast.net] has quit [Quit: ZNC - http://znc.in] 00:20:42 http://sicpinclojure.com/ 00:21:00 ty 00:21:23 you can, but you need to be mindful of the lack of proper tail recursion 00:21:26 have you guys seen peter norvigs review of SICP 00:21:44 http://www.amazon.com/review/R403HR4VL71K8/ref=cm_cr_rdp_perm 00:25:01 omegacfx: Oh, nice. 00:25:13 dan64 [~dan64@c-71-206-193-42.hsd1.pa.comcast.net] has joined #scheme 00:29:06 soveran [~soveran@186.19.214.247] has joined #scheme 00:34:44 -!- snizzo [~quassel@2-231-99-223.ip206.fastwebnet.it] has quit [Remote host closed the connection] 00:39:33 toekutr [~user@50-0-51-2.dsl.static.sonic.net] has joined #scheme 00:40:03 -!- toekutr [~user@50-0-51-2.dsl.static.sonic.net] has quit [Remote host closed the connection] 00:40:48 toekutr [~user@50-0-51-2.dsl.static.sonic.net] has joined #scheme 00:46:43 -!- toekutr [~user@50-0-51-2.dsl.static.sonic.net] has quit [Remote host closed the connection] 00:58:24 kvda [~kvda@124-169-155-127.dyn.iinet.net.au] has joined #scheme 01:02:28 cdidd [~cdidd@89-178-224-77.broadband.corbina.ru] has joined #scheme 01:14:21 -!- tcleval [~funnyguy@177.19.76.208] has quit [Remote host closed the connection] 01:18:48 toekutr [~user@50-0-51-2.dsl.static.sonic.net] has joined #scheme 01:20:43 -!- dzhus [~sphinx@176.14.94.92] has quit [Remote host closed the connection] 01:24:52 -- examples of "quasiquote-like" `format'-replacement `~format' (macro) for CL by Hexstream 01:25:09 -!- dan64 [~dan64@c-71-206-193-42.hsd1.pa.comcast.net] has quit [Ping timeout: 248 seconds] 01:30:27 dan64 [~dan64@c-71-206-193-42.hsd1.pa.comcast.net] has joined #scheme 01:36:58 bsder [~bsder@cpe-66-75-253-112.san.res.rr.com] has joined #scheme 01:39:02 Really stupid question: Is it possible to dereference a symbol without using eval? 01:40:11 bsder: Usually not. What're you trying to do? 01:41:01 I'm doing a VMish type thing. I'm basically splitting the "bytecode" into functions. 01:41:19 So far so good. I assign the bytecode to a symbol so that I can read it dynamically. 01:41:40 So my "program counter" is (function_name . statement_number) 01:41:53 you possibly want to keep a map from symbols to functions, then ? 01:42:13 Yeah, if I can't dereference the symbols, I'll probably have to do that. 01:42:27 it's probably the sane thing to do, anyway 01:42:28 Well, having that map is vastly superior to using eval. 01:42:41 you could argue eval is worth it here, since it basically amounts to an evaluator 01:42:46 Yes. The moment I typed "eval" I though "No..." 01:43:18 ijp: Eh, at the wrong level. I mean, it sounds like bsder is trying to implement a Scheme-on-Scheme thing. 01:43:38 Strange to not have an ability to dereference a symbol without invoking a full evaluator, though ... 01:43:42 ijp: Thus, it's important to distinguish between the "host" layer and the...uh, "guest" layer. 01:43:52 bsder: not really 01:44:08 symbols are very different from identifiers 01:44:12 bsder: It's because, as I often tell people, "Scheme is not Ruby". Scheme is not designed to have the introspective facilities that Ruby has, for example. 01:45:29 Normally, though, I associate introspection with querying things "about" an object. Not getting the object itself ... 01:45:46 right, you are asking for something about a symbol 01:46:05 cky: Yeah, it's "sort of" a compiler. I really need something for embedded systems that doesn't suck. 01:46:35 I've stared at PICOBIT, and it's the right thing, but a little too restricted. 01:47:07 So, I need to *understand* how the VM is going to work, but I don't want to get bogged down in horribly primitive VM instructions. 01:47:44 Consequently, I didn't want to have to map to a "linear address space" too early. I wanted functions, and I wanted to write them as "scheme" as long as possible. 01:48:05 It just means I have to store these is some other way. Or I just have to eat "eval" for a while. 01:49:10 Either is okay, but I really like to ask before I type "eval". Generally, "eval" is a good sign that I've screwed up somewhere in coding or thinking. 01:49:56 That's a good attitude to have. :-) 02:09:02 amca [~amca@CPE-121-208-82-128.cqzr1.cha.bigpond.net.au] has joined #scheme 02:17:54 -!- SeanTAllen [u4855@gateway/web/irccloud.com/x-dalyzpugiifuymso] has quit [Write error: Broken pipe] 02:22:36 -!- dotemacs [u801@gateway/web/irccloud.com/x-ruzudoafcorrnknp] has quit [Ping timeout: 240 seconds] 02:25:46 atomx` [~user@109.98.98.30] has joined #scheme 02:26:47 -!- atomx` [~user@109.98.98.30] has quit [Remote host closed the connection] 02:28:02 xwl_ [user@nat/nokia/x-lwmvfcycbsprjjvd] has joined #scheme 02:42:58 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 02:57:54 dotemacs [u801@gateway/web/irccloud.com/x-arbyfkjiharddgwr] has joined #scheme 03:08:31 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 03:12:39 -!- amca [~amca@CPE-121-208-82-128.cqzr1.cha.bigpond.net.au] has quit [Quit: Farewell] 03:14:45 SeanTAllen [u4855@gateway/web/irccloud.com/x-xrinssxmymkweltx] has joined #scheme 03:15:36 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 03:23:30 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 03:28:51 datkin [~datkin@cpe-74-73-237-252.nyc.res.rr.com] has joined #scheme 03:32:26 -!- bsder [~bsder@cpe-66-75-253-112.san.res.rr.com] has quit [Quit: bsder] 03:41:39 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 03:41:57 /quit 03:41:57 03:41:59 -!- chromaticwt [~user@71-222-151-95.albq.qwest.net] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 03:47:53 shaunxcode [~chatzilla@c-71-199-38-28.hsd1.ut.comcast.net] has joined #scheme 03:48:40 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 03:48:51 adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has joined #scheme 03:50:38 -!- X-Scale [email@2001:470:1f14:135b::2] has quit [Remote host closed the connection] 03:56:14 -!- bfgun [~b_fin_g@r186-52-152-84.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 244 seconds] 04:00:27 bfgun [~b_fin_g@r186-52-152-84.dialup.adsl.anteldata.net.uy] has joined #scheme 04:01:15 -!- jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Read error: Operation timed out] 04:01:29 homie [~levgue@xdsl-78-35-186-4.netcologne.de] has joined #scheme 04:03:38 -!- shaunxcode [~chatzilla@c-71-199-38-28.hsd1.ut.comcast.net] has quit [Ping timeout: 240 seconds] 04:04:04 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 04:14:42 MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has joined #scheme 04:25:58 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 248 seconds] 04:34:44 -!- MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has quit [Ping timeout: 245 seconds] 04:41:15 hey schemers, I added a variation on the 1.3 solution that wasn't in the scheme wiki, I wanted to make sure I didn't make a stupid error and run it by you guys, it is the last one: http://community.schemewiki.org/?sicp-ex-1.3 04:42:51 i realize my solution probably wasn't the best way either, it just where I went with it initially 04:43:10 why not use the square procedure? 04:43:21 wow these are all terrible 04:43:55 it does look a lot like the third one, except with the operator changed 04:44:01 yes, tomodo they're pretty darn ugly :| 04:45:45 because we only learned how to define the square procedure, i didnt know there was a pre-defined square procedure 04:45:55 also 04:46:02 someone just edit the name of it 04:46:05 edited* 04:46:11 lol, its kind of funny 04:46:33 omegacfx: there isn't a predefined square procedure in my scheme, i thought the text had introduced it, but nm 04:46:56 i am not sure why somebody solving that exercise wouldn't infer that one was wanted, though. 04:47:13 never too late to learn refactoring... 04:47:21 too early* 04:47:32 well, I should have defined a square procedure and then used it 04:47:32 but 04:47:37 for some reason I didnt even think about it 04:47:41 heh :) 04:47:45 I was struggling with the syntax i guess 04:47:51 right, sometimes i just wanna check in a solution and move on :) 04:48:10 honestly the stuff that ends off chapter 1 is a bit repetitive, but i did them anyway 04:48:36 the syntax is so different than what I'm used to, its weird, its similar, but it feels more strict 04:49:21 maybe its cause i had bad programming habits 04:50:46 oh well, next time! 04:51:03 also whoever changed the name of the procedure, lol 04:51:18 (define (if-you-want-to-get-the-sum-of-two-numbers-where-those-two-numbers-are-chosen-by-finding-the-largest-of-two-out-of-three-numbers-and-squaring-them-which-is-multiplying-them-by-itself-then-you-should-input-three-numbers-into-this-function-and-it-will-do-that-for-you x y z) 04:51:37 -!- xwl_ [user@nat/nokia/x-lwmvfcycbsprjjvd] has quit [Read error: Connection reset by peer] 04:52:56 LOL 04:53:42 which solution do you think is the best on that page 04:54:09 i like the first one that uses min 04:54:10 -!- forcer [~forcer@hmbg-5f772b33.pool.mediaWays.net] has quit [Ping timeout: 276 seconds] 04:54:11 jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 05:01:57 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 05:04:30 -!- tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-02.NATPOOL.NYU.EDU] has quit [Ping timeout: 260 seconds] 05:05:12 (destructuring-let ((min med max) (sort args <)) (+ (* med med) (* max max))) ; I thought scheme was about abstraction, not laying out redundant if branches 05:05:19 I forget where I saw it originally but (define (sum-of-squares a b c) (if (<= a b c) (+ (square b) (square c)) (sum-of-squares b c a))) is my faviourite 05:05:59 ijp: very nice 05:06:03 aspect: this is literally one of the first exercises for noobs, and you expect them to know about higher order functions? 05:06:30 and pattern matching (in it's most common forms) is the opposite of abstraction 05:08:10 although your version won't work on (3 2 1) 05:09:07 rudybot: eval (define (sum-of-squares a b c) 05:09:08 (if (<= a b c) (+ (square b) (square c)) (sum-of-squares b c a))) 05:09:08 ijp: error: #:1:0: read: expected a `)' to close `(' 05:09:14 rudybot: eval (define (sum-of-squares a b c) (if (<= a b c) (+ (square b) (square c)) (sum-of-squares b c a))) 05:09:15 ijp: Done. 05:09:21 rudybot: eval (sum-of-squares 3 2 1) 05:09:32 ijp: error: with-limit: out of time 05:09:39 ? 05:09:51 (<= 1 3 2) is false 05:09:57 so it recurses 05:10:05 yes 05:10:16 oh right, brain fart 05:11:08 bah, now it needs to use an uglier condition :( 05:11:41 (define (s-o-s a b c) (+ (square a) (square b) (square c) (- (square (min (list a b c)))))) 05:17:31 aspect, i was struggling with the syntax a bit when I did it so thats part of the reason it was redundant, also what is destructuring-let? 05:17:56 i understood the rest 05:19:14 basic pattern matching on a list 05:20:10 sort args < : sorts it from least to greatest I assume? do you have to put destructuring-let to use that? 05:20:32 sorts the arguments* 05:21:19 yes for the first, no to the second 05:21:40 and just read through the book. It'll reach higher order functions soon enough 05:21:49 okay 05:21:56 i liked that solution a lot 05:22:19 -!- dnolen [~user@cpe-98-14-92-234.nyc.res.rr.com] has quit [Remote host closed the connection] 05:23:53 (sum (map square (take 2 (sort (list a b c))))) 05:24:12 :) 05:24:12 wat 05:24:24 now you're thinking like a apl programmer 05:24:39 tomodo: that would use 2 smallest, right? 05:24:40 for the haskell solution, you need to get rid of those pesky variables... 05:25:22 -!- GoKhlaYeh [~GoKhlaYeh@117.31.80.79.rev.sfr.net] has quit [Ping timeout: 276 seconds] 05:25:47 (compose sum (cut map square <>) (cut take 2 <>) (sort <> >=) list) 05:26:03 thanks for the help btw :) 05:26:37 sum . square <$> take 2 . sort . list 05:26:42 actually (compose sum (cut map square <>) cdr (sort <> <) list) 05:28:06 adu: that still does the two smallest 05:29:54 why do you need them sorted anyways? 05:30:28 the three arguments may be in any order 05:30:34 it was a problem from the beginning of SICP I did that generated discussion 05:30:37 so? addition is commutative 05:31:20 adu: the important part is the picking of the two largest ones 05:31:26 _largest_ 05:31:29 how you pick those two is of course up two you 05:34:10 (foldr1 (+) . take 2 . reverse . sort) 05:34:45 (apply max (map (compose product cdr) (permutations (list a b c)))) 05:36:00 adu: forgot to square, but then, so did I 05:37:57 (apply max (map (compose product cdr) (permutations (map square (list a b c))))) 05:38:26 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Ping timeout: 244 seconds] 05:38:54 well, today I learned that theres quite a few ways to solve that problem lol 05:39:29 -!- adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has quit [Read error: Connection reset by peer] 05:40:05 adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has joined #scheme 05:40:17 crazy solutions are always more fun 05:41:04 -!- adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has quit [Read error: Connection reset by peer] 05:41:36 adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has joined #scheme 05:41:38 not scheme, but http://www.willamette.edu/~fruehr/haskell/evolution.html is a particularly good example of this 05:41:58 I think ijp and I were striving for a similar aesthetic -- describe what the result is, rather than how to get it 05:42:33 I just like making easy problems harder than they are 05:45:01 Is that y even legal? 05:45:14 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 05:45:20 Oh, yes 05:45:24 Sgeo: yes 05:45:37 It's not the traditional y, but it is a valid fixed point combinator 05:45:40 Why have I heard that conventional Y-combinator doesn't type in Haskell? Or is that not the conventional form? 05:45:42 Oh, ok 05:48:39 futilius [~will@99-174-253-193.lightspeed.sndgca.sbcglobal.net] has joined #scheme 05:54:26 -!- cswords_ [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has quit [Quit: Leaving] 05:54:49 cswords [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has joined #scheme 05:55:53 realitygrill_ [~realitygr@76.226.192.49] has joined #scheme 05:57:13 -!- realitygrill [~realitygr@76.226.202.237] has quit [Ping timeout: 276 seconds] 05:57:13 -!- realitygrill_ is now known as realitygrill 05:59:30 -!- tokiya [~tokiya@210.24.42.190] has quit [Read error: Connection reset by peer] 06:01:21 -!- adu [~ajr@pool-72-83-26-98.washdc.fios.verizon.net] has quit [Quit: adu] 06:01:41 tokiya [~tokiya@210.24.42.190] has joined #scheme 06:11:37 gravicappa [~gravicapp@ppp91-77-163-228.pppoe.mtu-net.ru] has joined #scheme 06:12:14 -!- poindontcare [~user@cloudbovina.bovinasancta.com] has quit [Read error: Connection reset by peer] 06:12:48 poindontcare [~user@cloudbovina.bovinasancta.com] has joined #scheme 06:15:02 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 240 seconds] 06:21:19 tuubow [~adityavit@c-69-136-105-164.hsd1.nj.comcast.net] has joined #scheme 06:32:51 -!- masm [~masm@bl18-49-168.dsl.telepac.pt] has quit [Quit: Leaving.] 06:35:58 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 252 seconds] 06:45:32 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 06:49:53 -!- virl [~virl__@85-127-158-77.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 06:50:34 hkBst [~marijn@79.170.210.172] has joined #scheme 06:50:34 -!- hkBst [~marijn@79.170.210.172] has quit [Changing host] 06:50:34 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 06:50:56 -!- ijp [~user@host86-135-223-169.range86-135.btcentralplus.com] has quit [Read error: Connection reset by peer] 06:51:48 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 06:52:34 ijp [~user@host86-135-223-169.range86-135.btcentralplus.com] has joined #scheme 06:53:58 -!- poindontcare [~user@cloudbovina.bovinasancta.com] has quit [Ping timeout: 272 seconds] 06:54:27 -!- kvda [~kvda@124-169-155-127.dyn.iinet.net.au] has quit [Quit: -___-] 06:56:22 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 07:03:33 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 07:05:25 -!- jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Ping timeout: 248 seconds] 07:07:11 poindontcare [~user@cloudbovina.bovinasancta.com] has joined #scheme 07:15:20 -!- djcb [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Read error: Connection reset by peer] 07:17:51 -!- realitygrill [~realitygr@76.226.192.49] has quit [Quit: realitygrill] 07:23:07 -!- EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has quit [Quit: WeeChat 0.3.7-dev] 07:39:46 -!- poindontcare [~user@cloudbovina.bovinasancta.com] has quit [Ping timeout: 252 seconds] 07:46:52 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 07:51:12 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 07:56:51 -!- toekutr [~user@50-0-51-2.dsl.static.sonic.net] has quit [Remote host closed the connection] 08:07:28 forcer [~forcer@hmbg-4d06b284.pool.mediaWays.net] has joined #scheme 08:11:46 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 08:11:46 djcb [djcb@nat/nokia/x-jfsfqlcsfwfttlbk] has joined #scheme 08:15:40 -!- gravicappa [~gravicapp@ppp91-77-163-228.pppoe.mtu-net.ru] has quit [Ping timeout: 276 seconds] 08:16:02 poindontcare [~user@cloudbovina.bovinasancta.com] has joined #scheme 08:17:39 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Read error: Connection reset by peer] 08:17:48 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 08:17:53 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 08:32:38 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 08:39:20 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 08:42:25 gravicappa [~gravicapp@ppp91-77-174-31.pppoe.mtu-net.ru] has joined #scheme 08:45:59 -!- MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has left #scheme 08:46:34 ahinki [~chatzilla@212.99.10.150] has joined #scheme 08:48:08 -!- poindontcare [~user@cloudbovina.bovinasancta.com] has quit [Ping timeout: 240 seconds] 08:58:25 -!- Intensity [BEP58NyB9O@unaffiliated/intensity] has quit [Read error: No route to host] 08:58:56 -!- tomodo [~tomodo@gateway/tor-sasl/tomodo] has quit [Quit: leaving] 09:05:49 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Remote host closed the connection] 09:06:58 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 09:12:28 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 09:13:26 Does anyone have a working link for the ikarus-dev bzr repository? 09:14:38 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Ping timeout: 240 seconds] 09:15:49 hkBst_ [~marijn@gentoo/developer/hkbst] has joined #scheme 09:17:36 amoe_: https://code.launchpad.net/~aghuloum/ikarus/ikarus.dev ? 09:17:56 RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #scheme 09:18:05 amoe_: https://launchpad.net/ikarus is the project entry 09:18:06 -!- RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has quit [Client Quit] 09:18:50 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 09:20:54 ah, thanks C-Keen. For some reason I thought that was broken, but I see the launchpad mirror is working fine 09:21:29 poindontcare [~user@cloudbovina.bovinasancta.com] has joined #scheme 09:21:59 amoe_: that's the place I got it from a couple of months ago 09:22:12 amoe_: the website seems to be gone 09:31:42 -!- hkBst_ [~marijn@gentoo/developer/hkbst] has quit [Remote host closed the connection] 09:32:07 hkBst_ [~marijn@79.170.210.172] has joined #scheme 09:32:07 -!- hkBst_ [~marijn@79.170.210.172] has quit [Changing host] 09:32:07 hkBst_ [~marijn@gentoo/developer/hkbst] has joined #scheme 09:32:15 woonie [~woonie@nusnet-228-27.dynip.nus.edu.sg] has joined #scheme 09:37:07 tokiya_ [~tokiya@210.24.42.190] has joined #scheme 09:37:33 -!- woonie [~woonie@nusnet-228-27.dynip.nus.edu.sg] has quit [Ping timeout: 252 seconds] 09:39:26 -!- tokiya [~tokiya@210.24.42.190] has quit [Read error: Operation timed out] 09:44:57 woonie [~woonie@spnp67057.spnp.nus.edu.sg] has joined #scheme 09:46:48 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 09:47:37 wingo [~wingo@138.pool85-50-113.dynamic.orange.es] has joined #scheme 09:47:55 -!- poindontcare [~user@cloudbovina.bovinasancta.com] has quit [Remote host closed the connection] 09:50:43 dzhus [~sphinx@176.14.94.92] has joined #scheme 09:53:49 -!- woonie [~woonie@spnp67057.spnp.nus.edu.sg] has quit [Ping timeout: 276 seconds] 09:54:37 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 09:57:17 woonie [~woonie@spnp67057.spnp.nus.edu.sg] has joined #scheme 10:00:39 DGASAU [~user@91.218.144.129] has joined #scheme 10:01:35 chromaticwt [~user@71-222-151-95.albq.qwest.net] has joined #scheme 10:37:16 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Quit: Quitte] 10:37:16 -!- bfgun [~b_fin_g@r186-52-152-84.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] 10:37:40 bfgun [~b_fin_g@r186-52-182-235.dialup.adsl.anteldata.net.uy] has joined #scheme 10:48:15 -!- woonie [~woonie@spnp67057.spnp.nus.edu.sg] has quit [Ping timeout: 255 seconds] 10:48:48 Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has joined #scheme 10:52:59 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 10:56:15 -!- tuubow [~adityavit@c-69-136-105-164.hsd1.nj.comcast.net] has quit [Ping timeout: 260 seconds] 10:58:27 -!- homie [~levgue@xdsl-78-35-186-4.netcologne.de] has quit [Read error: Connection reset by peer] 10:59:38 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 10:59:56 homie [~levgue@xdsl-78-35-186-4.netcologne.de] has joined #scheme 11:05:04 dme [~dme@host213-120-144-161.in-addr.btopenworld.com] has joined #scheme 11:10:04 -!- datkin [~datkin@cpe-74-73-237-252.nyc.res.rr.com] has quit [Read error: Connection reset by peer] 11:12:16 datkin [~datkin@cpe-74-73-237-252.nyc.res.rr.com] has joined #scheme 11:18:48 -!- dme [~dme@host213-120-144-161.in-addr.btopenworld.com] has quit [Ping timeout: 260 seconds] 11:38:29 MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has joined #scheme 11:39:19 dme [~dme@host213-120-144-161.in-addr.btopenworld.com] has joined #scheme 11:55:21 ijp` [~user@host86-182-154-199.range86-182.btcentralplus.com] has joined #scheme 11:58:37 -!- ijp [~user@host86-135-223-169.range86-135.btcentralplus.com] has quit [Ping timeout: 276 seconds] 12:12:28 homie` [~levgue@xdsl-78-35-176-108.netcologne.de] has joined #scheme 12:14:29 -!- homie [~levgue@xdsl-78-35-186-4.netcologne.de] has quit [Ping timeout: 252 seconds] 12:21:02 -!- futilius [~will@99-174-253-193.lightspeed.sndgca.sbcglobal.net] has quit [Quit: Leaving] 12:22:13 rostayob [~rostayob@host86-142-220-12.range86-142.btcentralplus.com] has joined #scheme 12:25:39 add^_ [~add^_^@m212-152-8-110.cust.tele2.se] has joined #scheme 12:28:19 cswords_ [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has joined #scheme 12:29:10 -!- sawgij [~sawjig@gateway/tor-sasl/sawjig] has quit [Ping timeout: 276 seconds] 12:31:33 -!- cswords [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has quit [Ping timeout: 260 seconds] 12:34:25 masm [~masm@bl18-49-168.dsl.telepac.pt] has joined #scheme 12:39:48 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 12:42:28 sawgij [~sawjig@gateway/tor-sasl/sawjig] has joined #scheme 12:46:18 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 12:53:52 -!- wingo [~wingo@138.pool85-50-113.dynamic.orange.es] has quit [Ping timeout: 276 seconds] 13:00:47 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 13:07:17 soveran [~soveran@186.19.214.247] has joined #scheme 13:09:49 tupi [~david@139.82.89.24] has joined #scheme 13:10:43 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 13:14:35 lolcow [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 13:14:47 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 13:15:30 -!- pygospa [~Pygosceli@kiel-5f77b015.pool.mediaWays.net] has quit [Disconnected by services] 13:15:40 pygospa [~Pygosceli@kiel-5f77bd6f.pool.mediaWays.net] has joined #scheme 13:17:12 -!- lolcow [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 13:22:52 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 13:24:35 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 13:29:07 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Ping timeout: 265 seconds] 13:33:13 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 13:34:30 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Read error: Connection reset by peer] 13:39:45 dnolen [~user@cpe-98-14-92-234.nyc.res.rr.com] has joined #scheme 13:41:43 virl [~virl__@85-127-158-77.dynamic.xdsl-line.inode.at] has joined #scheme 13:42:46 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 13:43:10 -!- add^_ [~add^_^@m212-152-8-110.cust.tele2.se] has quit [Quit: add^_] 13:50:05 ijp`` [~user@host31-53-168-128.range31-53.btcentralplus.com] has joined #scheme 13:51:50 -!- ijp` [~user@host86-182-154-199.range86-182.btcentralplus.com] has quit [Ping timeout: 260 seconds] 13:53:20 -!- ijp`` [~user@host31-53-168-128.range31-53.btcentralplus.com] has quit [Client Quit] 13:53:57 -!- dnolen [~user@cpe-98-14-92-234.nyc.res.rr.com] has quit [Remote host closed the connection] 13:55:37 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [Ping timeout: 276 seconds] 13:57:16 -!- fds_ is now known as fds 13:57:22 wingo [~wingo@138.pool85-50-113.dynamic.orange.es] has joined #scheme 14:00:33 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 14:03:11 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 255 seconds] 14:04:57 eno [~eno@nslu2-linux/eno] has joined #scheme 14:10:25 -!- rostayob [~rostayob@host86-142-220-12.range86-142.btcentralplus.com] has quit [Quit: WeeChat 0.3.5] 14:10:40 rostayob [~rostayob@host86-142-220-12.range86-142.btcentralplus.com] has joined #scheme 14:11:23 -!- rostayob [~rostayob@host86-142-220-12.range86-142.btcentralplus.com] has quit [Client Quit] 14:12:02 tomodo [~tomodo@gateway/tor-sasl/tomodo] has joined #scheme 14:17:02 sstrickl [~sstrickl@dublin.ccs.neu.edu] has joined #scheme 14:18:24 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 14:19:08 -!- dme [~dme@host213-120-144-161.in-addr.btopenworld.com] has quit [Read error: Operation timed out] 14:19:35 -!- noam_ [~noam@46.120.51.147] has quit [Read error: Connection reset by peer] 14:19:51 noam_ [~noam@46.120.51.147] has joined #scheme 14:21:31 jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 14:24:00 tuubow [~adityavit@c-69-136-105-164.hsd1.nj.comcast.net] has joined #scheme 14:29:40 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 252 seconds] 14:31:18 eno [~eno@nslu2-linux/eno] has joined #scheme 14:33:11 xwl [~user@123.108.223.27] has joined #scheme 14:33:39 add^_ [~add^_^@m212-152-8-110.cust.tele2.se] has joined #scheme 14:39:28 leo2007 [~leo@123.114.36.22] has joined #scheme 14:42:00 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 272 seconds] 14:43:17 cswords__ [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has joined #scheme 14:43:24 eno [~eno@nslu2-linux/eno] has joined #scheme 14:43:41 X-Scale [email@2001:470:1f14:135b::2] has joined #scheme 14:46:53 -!- cswords_ [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has quit [Ping timeout: 260 seconds] 14:48:46 attila_lendvai [~attila_le@87.247.46.139] has joined #scheme 14:48:46 -!- attila_lendvai [~attila_le@87.247.46.139] has quit [Changing host] 14:48:46 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 14:51:17 can anyone give me best ways to loop over an array of w*h elements 14:51:35 index x + w*y represents a board at (x,y) 14:51:49 and I want to check things like, how many 3-in-a-rows there are 14:52:13 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Client Quit] 14:52:42 -!- chromaticwt [~user@71-222-151-95.albq.qwest.net] has quit [Remote host closed the connection] 14:55:41 tomodo: didn't you already implement this? 14:56:09 yes but I think my code was really bad 14:57:03 what's your algorithm? 14:57:19 Idon't really know 14:57:45 uhm... 14:57:56 well what *did* you implement? 14:58:28 -!- eno [~eno@nslu2-linux/eno] has quit [Ping timeout: 272 seconds] 14:59:30 -!- jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Ping timeout: 265 seconds] 14:59:34 eno [~eno@nslu2-linux/eno] has joined #scheme 15:02:17 rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has joined #scheme 15:05:41 I''l show you an algorithm I'm making 15:12:36 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 15:14:01 YokYok [~david@vmailbox.org] has joined #scheme 15:16:25 -!- noam_ [~noam@46.120.51.147] has quit [Ping timeout: 265 seconds] 15:19:48 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 15:21:30 dme [~dme@hotblack-desiato.hh.sledj.net] has joined #scheme 15:22:53 noam [~noam@46.120.51.147] has joined #scheme 15:23:01 dnolen [aa95640a@gateway/web/freenode/ip.170.149.100.10] has joined #scheme 15:23:05 http://pastebin.com/raw.php?i=5e2LCLNN 15:23:08 like this, for example 15:24:12 -!- noam [~noam@46.120.51.147] has quit [Read error: Connection reset by peer] 15:24:27 noam [~noam@46.120.51.147] has joined #scheme 15:27:20 preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 15:27:38 shaunxcode [~chatzilla@c-98-202-35-176.hsd1.ut.comcast.net] has joined #scheme 15:29:03 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 260 seconds] 15:29:22 -!- preflex_ is now known as preflex 15:33:11 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 15:37:07 -!- hkBst_ [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 15:40:16 -!- asumu [~at@2001:470:b:b7:1e6f:65ff:fe23:c3d4] has quit [Ping timeout: 272 seconds] 15:41:35 jewel [~jewel@196-210-134-11.dynamic.isadsl.co.za] has joined #scheme 15:41:50 attila_lendvai1 [~attila_le@87.247.32.96] has joined #scheme 15:41:50 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Disconnected by services] 15:47:17 does match-pattern pattern exist? 15:47:30 http://pastebin.com/raw.php?i=mmJbS3qA 15:47:38 -!- rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has quit [Quit: WeeChat 0.3.5] 15:47:47 or, how can I make it? 15:47:51 it has to be efficient 15:48:24 I just realized this code is wrong :/ 15:48:42 I have to add ?'s to the pattern 15:49:31 what's match-pattern? 15:50:14 have a look at the matchable extension: http://api.call-cc.org/doc/matchable 15:51:20 http://pastebin.com/raw.php?i=J53hRQTv 15:51:28 this is the correct version 15:51:40 -!- ahinki [~chatzilla@212.99.10.150] has quit [Quit: ChatZilla 0.9.88 [Firefox 11.0/20120215222917]] 15:52:29 great 15:52:31 I ican use this 15:52:54 porco [~porco@125.33.82.133] has joined #scheme 15:54:22 rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has joined #scheme 15:59:08 woonie [~woonie@nusnet-253-84.dynip.nus.edu.sg] has joined #scheme 16:00:09 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 16:02:05 this is great it works 16:03:04 :-D 16:03:25 -!- jrslepak [~jrslepak@c-71-233-151-135.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 16:04:03 nice 16:06:31 jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 16:21:17 -!- virl [~virl__@85-127-158-77.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 16:36:42 -!- leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has quit [] 16:40:30 ayberk [~ayberk@88.236.183.176] has joined #scheme 16:45:33 leppie [~lolcow@196-215-4-254.dynamic.isadsl.co.za] has joined #scheme 16:50:00 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 16:53:22 -!- confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has quit [Quit: Lost terminal] 16:58:42 -!- drwho [~drwho@216-122-174-206.gci.net] has quit [Quit: leaving] 17:00:38 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 17:14:52 Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #scheme 17:19:26 -!- sawgij [~sawjig@gateway/tor-sasl/sawjig] has quit [Remote host closed the connection] 17:20:42 sawgij [~sawjig@gateway/tor-sasl/sawjig] has joined #scheme 17:28:38 -!- noam [~noam@46.120.51.147] has quit [Ping timeout: 260 seconds] 17:31:55 -!- djcb [djcb@nat/nokia/x-jfsfqlcsfwfttlbk] has quit [Remote host closed the connection] 17:43:16 -!- attila_lendvai1 [~attila_le@87.247.32.96] has quit [Quit: Leaving.] 17:43:18 noam [~noam@46.120.51.147] has joined #scheme 17:51:05 -!- rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has quit [Quit: WeeChat 0.3.5] 17:56:15 -!- tuubow [~adityavit@c-69-136-105-164.hsd1.nj.comcast.net] has quit [Ping timeout: 260 seconds] 18:00:28 -!- dme [~dme@hotblack-desiato.hh.sledj.net] has quit [Ping timeout: 245 seconds] 18:01:39 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 18:09:38 -!- wingo [~wingo@138.pool85-50-113.dynamic.orange.es] has quit [Ping timeout: 245 seconds] 18:09:52 -!- homie` [~levgue@xdsl-78-35-176-108.netcologne.de] has quit [Read error: Connection reset by peer] 18:11:28 Intensity [KOT6L5A9fK@unaffiliated/intensity] has joined #scheme 18:11:30 homie` [~levgue@xdsl-78-35-176-108.netcologne.de] has joined #scheme 18:15:23 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 18:18:39 attila_lendvai [~attila_le@87.247.63.109] has joined #scheme 18:18:39 -!- attila_lendvai [~attila_le@87.247.63.109] has quit [Changing host] 18:18:39 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 18:24:41 djcb [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 18:29:13 -!- woonie [~woonie@nusnet-253-84.dynip.nus.edu.sg] has quit [Ping timeout: 245 seconds] 18:34:48 -!- porco [~porco@125.33.82.133] has quit [] 18:34:56 rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has joined #scheme 18:38:22 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Ping timeout: 276 seconds] 18:38:50 GoKhlaYeh [~GoKhlaYeh@117.31.80.79.rev.sfr.net] has joined #scheme 18:41:42 asumu [~at@2001:470:b:b7:1e6f:65ff:fe23:c3d4] has joined #scheme 18:46:35 turbofail [~user@c-107-3-149-149.hsd1.ca.comcast.net] has joined #scheme 18:50:32 -!- masm [~masm@bl18-49-168.dsl.telepac.pt] has quit [Quit: Leaving.] 18:51:58 -!- ToxicFrog [~ToxicFrog@24-246-40-169.cable.teksavvy.com] has left #scheme 18:54:53 dekuked [~k@static-98-164-147-69.axsne.net] has joined #scheme 18:55:32 is the point of r7rs-small to target javascript? 18:56:27 any small system, e.g. embedded, i expect. 18:57:56 jimrees_ [~jimrees@ita4fw1.itasoftware.com] has joined #scheme 18:58:24 -!- jimrees_ [~jimrees@ita4fw1.itasoftware.com] has quit [Client Quit] 18:58:43 barryfm [~barryfm@fl-67-232-182-18.dhcp.embarqhsd.net] has joined #scheme 19:02:13 dekuked: The "point" of the small R7RS is to have a language that's similar in scope to R5RS, but modernised. 19:03:32 cky: hmm. I was just kind of surprised though, when I read about the split and I was trying to read more into it. I don't really know scheme, or javascript in any depth really, but after looking at some of the existing scheme to js converters I just assumed that was the primary cause of the decision 19:04:11 No, not at all. 19:04:22 JS doesn't enter into the picture whatsoever, as far as Scheme standardisation goes. 19:04:30 dekuked: Read this: http://www.scheme-reports.org/2009/position-statement.html 19:04:32 +1 19:04:48 dekuked: It explains why there's small and large languages. 19:07:18 cky: ah well I had read something like that a while back. It's still kind of hard for me to understand how it justifies fracturing the language. I mean, what are the real benefits of creating a smaller standard? 19:07:49 I don't mean to troll, I was just kind of dumbfounded. 19:08:29 I mean I just graduated, and I've read a lot about lisp, and most of the things I've read talked about the incessant fragmentation as the primary cause for the lack of popularization. 19:09:06 and by "I've read a lot about lisp" I mean blogs about the history, cause the language is still very confusing and I'm quite a foreigner in that quantifiable area 19:10:58 dekuked: The reality, if you read between the lines, is this: the Scheme community _is_ divided, already, ever since 2007 (if not earlier). 19:11:36 dekuked: R6RS was a very polarising standard. The number of R6RS lovers vs R6RS haters are about even. 19:11:48 dekuked: because practical concerns call for a subset, in some situations (like embedded) -- which is equally worthy of standardisation, rather than being ad-hoc 19:11:51 dekuked: R7RS is an attempt to try to bring the two camps back, to a degree. 19:12:26 qu1j0t3: Yes, but I'd argue that R7RS isn't even about embedded. 19:12:30 *R7RS small 19:13:57 cky: i see. i haven't paid attention lately, just skimmed it a few months ago when it came out. i probably should re-read it before opining. 19:14:36 it seems intuitive to me that a standardised subset is a good thing, however. 19:14:42 ah, thank you for clarifying. I didn't understand that all. 19:15:14 dekuked: Common Lisp is not fragmented. 19:15:19 dekuked: can you clarify your point? 19:15:30 qu1j0t3: I agree that a standardised subset is a good thing, but, the purpose of the subset is to mend the gap between the R5RS ("anti-R6RS") and R6RS camps. 19:15:43 cky: ok 19:15:43 noam_ [~noam@46.120.51.147] has joined #scheme 19:18:06 qu1j0t3: If you read the bottom section of the position statement I linked above, this rationale is clear as day. :-) 19:18:29 qu1j0t3: Granted, the "small" subset does list embedded as a constituent, among many others. 19:18:58 -!- noam [~noam@46.120.51.147] has quit [Ping timeout: 252 seconds] 19:19:50 qu1j0t3: R6RS is a language designed by pragmatists. And for most languages, that's good enough. However, we're talking about Scheme. Scheme has the unusual distinction of having many purists and idealists in its community. That's partly what the split is about. 19:20:36 cky: right-- this would merit graduated standards :) 19:23:01 :-D 19:26:23 elderK [~k@pdpc/supporter/active/elderk] has joined #scheme 19:26:33 -!- elderK is now known as elderK|work 19:26:38 Hey peeps 19:28:55 -!- tupi [~david@139.82.89.24] has quit [Quit: Leaving] 19:32:00 Heya! 19:37:58 -!- homie` [~levgue@xdsl-78-35-176-108.netcologne.de] has quit [Read error: Connection reset by peer] 19:41:27 if I've just got a function that checks if there is a row of 4 from point x,y 19:41:29 -!- noam_ [~noam@46.120.51.147] has quit [Read error: Connection reset by peer] 19:41:47 how should I check if there is a row of 4 anywhere on the board? 19:42:04 noam_ [~noam@46.120.51.147] has joined #scheme 19:42:27 iterate over rows from left to right? Possibly marking off the row of 4s? 19:42:49 but how do I actualy write tyhat in scheme? 19:42:56 chicken scheme 19:43:15 I'll return as soon as I find one 19:43:53 wha't sthe best way to write a fast loop 19:44:05 What's a "fast" loop? 19:44:47 I need to check every square of the board 19:44:56 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Ping timeout: 240 seconds] 19:46:11 "LOOP" (if (check-square x y) (return (cons x y)) (next-iteration) 19:46:14 noam__ [~noam@46.120.51.147] has joined #scheme 19:46:15 something lke that 19:46:28 tomodo: are you sure mapping wouldn't make more sense? 19:46:41 I can't map because it's a vector 19:47:12 okay, named let? 19:47:22 pchrist [~spirit@gentoo/developer/pchrist] has joined #scheme 19:47:31 for this 2D loop 19:47:52 tomodo: You can use foof-loop to loop over a vector. 19:48:20 I don't want to use foof loop 19:48:23 Then, there's SRFI 43, but the author of SRFI 43 recommends everybody use foof-loop instead anyway. 19:48:38 tomodo: named let? 19:48:39 futilius [~will@64.134.239.98] has joined #scheme 19:49:25 -!- noam_ [~noam@46.120.51.147] has quit [Ping timeout: 260 seconds] 19:49:47 tomodo: Which implementation are you using? 19:50:01 chicken scheme 19:50:12 Ah. I was hoping you'd say Racket. Never mind. :-) 19:51:27 tomodo: you can use the vector-utils extension it includes a vector-fold vector-map etc 19:51:37 C-Keen++ 19:51:41 -!- rostayob [~rostayob@dyn1213-10.wlan.ic.ac.uk] has quit [Quit: WeeChat 0.3.5] 19:51:48 -!- samth_away is now known as samth 20:03:26 I need do where it returns the value of the test.. 20:03:31 -!- jewel [~jewel@196-210-134-11.dynamic.isadsl.co.za] has quit [Ping timeout: 276 seconds] 20:04:12 or do with multiple tests 20:04:18 noam_ [~noam@46.120.51.147] has joined #scheme 20:05:59 C-Keen: vector-lib? 20:06:09 it's so hard to stop a loop early in scheme 20:06:26 tomodo: It's not _that_ hard. 20:06:34 It is harder if you don't use continuations, though. 20:07:39 as a simple example 20:07:49 -!- noam__ [~noam@46.120.51.147] has quit [Ping timeout: 255 seconds] 20:07:50 tomodo: oh sorry, vector-lib as mario-goulart said 20:07:57 mario-goulart: too dumb 20:08:01 http://pastebin.com/raw.php?i=pg4GXAx9 20:08:17 it checks the board for a row of four.. if it finds one returns 'black (the winner) 20:08:34 if it gets to the end of the board it returns #f (no winner yet) 20:08:40 C-Keen: should be srfi-43, actually. :-) 20:08:48 what's even worse is I need to do this in 2D 20:08:54 mario-goulart: well who would find it under that name 20:09:15 mario-goulart: I somehow thought that kon has written it, hence the -util extension ;) 20:09:19 tomodo: Yes, that can be done easily with continuations. 20:09:56 tomodo: It's also to do without continuations if you use named let. 20:10:13 tomodo: But if you want to use "do", then continuations are one way to accomplish an early exit. 20:10:22 what's the fastest way 20:10:22 *also easy to do 20:10:34 tomodo: The named let version is faster, if only because continuations are slow in many implementations. 20:10:44 I'll use anything 20:10:52 Okay, lemme paste you a named let version. 20:11:15 what should I use in chicken scheme? 20:13:02 http://paste.lisp.org/display/128032 20:13:11 tomodo: Chicken has `do' and `call/cc' built-in. 20:13:47 mario-goulart: Every decent implementation does too. :-) 20:14:03 cky: indeed, but tomodo asked about chicken. 20:14:08 mario-goulart: But tomodo was asking for which is faster, and, I don't know about Chicken, but most implementations I've heard of would prefer named let over continuations. 20:14:42 (where by "prefer" I mean "is speedier at") 20:14:56 cky: sorry, I read tomodo's question too fast. 20:16:00 Somehow I parsed his question as "what egg should I use in chicken scheme". 20:16:07 I see. :-) 20:20:40 I made it 2D 20:20:56 http://pastebin.com/raw.php?i=AuzSjpEL 20:21:02 this is... really bad 20:21:46 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 20:23:15 CampinSam [~CampinSam@24-176-98-217.dhcp.jcsn.tn.charter.com] has joined #scheme 20:24:33 RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #scheme 20:25:06 tomodo: Is it really bad? It seems reasonable to me. 20:26:02 I've got it a bit better 20:26:14 http://pastebin.com/raw.php?i=hDWrCJFy 20:26:16 -!- gravicappa [~gravicapp@ppp91-77-174-31.pppoe.mtu-net.ru] has quit [Ping timeout: 276 seconds] 20:29:14 Nice. 20:29:28 You can change your cond to an if too, since there's now only two branches left. 20:29:33 But that's up to you. 20:30:12 i.e., (if (gomoku-board-empty? board x y) (loop-y (+ y 1)) 'black) 20:42:37 -!- Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Quit: leaving] 20:43:22 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 255 seconds] 20:45:56 -!- RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has quit [Quit: RomyRomy] 20:55:32 how would you actually select a random element of a list? 20:55:55 I was thinking make a ranumber number from 0 to length then find the nth element (for that number) 20:56:24 when I was testing I just used "car".. always first element 21:00:15 tomodo: sounds like a good plan 21:00:33 tomodo: indexing a list is O(n) of course 21:00:58 chromaticwt [~user@71-222-151-95.albq.qwest.net] has joined #scheme 21:01:54 That said, if you need to index a list a lot, I can do it in O(1). 21:04:57 rostayob [~rostayob@5add3a82.bb.sky.com] has joined #scheme 21:08:43 tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #scheme 21:11:25 langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has joined #scheme 21:15:38 masm [~masm@bl18-49-168.dsl.telepac.pt] has joined #scheme 21:17:50 -!- barryfm [~barryfm@fl-67-232-182-18.dhcp.embarqhsd.net] has left #scheme 21:29:03 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 21:36:38 virl [~virl__@85-127-158-77.dynamic.xdsl-line.inode.at] has joined #scheme 21:39:05 -!- tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 260 seconds] 21:45:26 -!- MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has quit [Read error: Connection reset by peer] 21:46:01 -!- stamourv [~user@ahuntsic.ccs.neu.edu] has quit [Read error: Connection reset by peer] 21:46:15 stamourv [~user@ahuntsic.ccs.neu.edu] has joined #scheme 21:49:00 tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-02.NATPOOL.NYU.EDU] has joined #scheme 22:08:10 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has left #scheme 22:08:15 -!- tuubow [~adityavit@NYUFGA-WLESSAUTHCLIENTS-02.NATPOOL.NYU.EDU] has quit [Ping timeout: 260 seconds] 22:15:50 -!- leo2007 [~leo@123.114.36.22] has quit [Ping timeout: 248 seconds] 22:18:04 -!- sawgij [~sawjig@gateway/tor-sasl/sawjig] has quit [Ping timeout: 276 seconds] 22:21:27 sawgij [~sawjig@gateway/tor-sasl/sawjig] has joined #scheme 22:22:28 -!- add^_ [~add^_^@m212-152-8-110.cust.tele2.se] has quit [Quit: add^_] 22:26:10 -!- dnolen [aa95640a@gateway/web/freenode/ip.170.149.100.10] has quit [Quit: Page closed] 22:27:05 -!- langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:29:38 -!- fbs [fbs@fsf/member/fbs] has quit [Quit: leaving] 22:30:09 homie [~levgue@xdsl-78-35-176-108.netcologne.de] has joined #scheme 22:30:22 fbs [fbs@fsf/member/fbs] has joined #scheme 22:31:24 -!- shaunxcode [~chatzilla@c-98-202-35-176.hsd1.ut.comcast.net] has quit [Ping timeout: 245 seconds] 22:36:57 -!- dekuked [~k@static-98-164-147-69.axsne.net] has quit [Quit: dekuked] 22:37:38 -!- dzhus [~sphinx@176.14.94.92] has quit [Remote host closed the connection] 22:38:36 djcb` [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 22:39:40 bigfg [~b_fin_g@r190-135-63-78.dialup.adsl.anteldata.net.uy] has joined #scheme 22:40:49 -!- djcb [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Ping timeout: 276 seconds] 22:40:51 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Quit: Leaving] 22:43:12 -!- bfgun [~b_fin_g@r186-52-182-235.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 252 seconds] 22:44:21 EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has joined #scheme 22:46:01 -!- sstrickl [~sstrickl@dublin.ccs.neu.edu] has quit [Quit: sstrickl] 22:48:12 -!- EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has quit [Client Quit] 22:52:50 EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has joined #scheme 22:55:20 djcb`` [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 22:56:38 -!- djcb` [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Ping timeout: 240 seconds] 22:58:09 -!- virl [~virl__@85-127-158-77.dynamic.xdsl-line.inode.at] has quit [Remote host closed the connection] 23:05:43 hi 23:05:55 will anyone help me with this code I wrote http://pastebin.com/raw.php?i=ksnaQRbi 23:06:08 I want to rewite it so it's better 23:09:01 -!- EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has quit [Quit: WeeChat 0.3.7-dev] 23:09:36 MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has joined #scheme 23:13:14 -!- ayberk [~ayberk@88.236.183.176] has quit [] 23:16:40 EmmanuelOga [~emmanuel@host155.201-253-134.telecom.net.ar] has joined #scheme 23:19:06 realitygrill [~realitygr@adsl-76-226-121-69.dsl.sfldmi.sbcglobal.net] has joined #scheme 23:23:05 djcb``` [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 23:24:23 airolson [~airolson@CPE00222d55a738-CM00222d55a735.cpe.net.cable.rogers.com] has joined #scheme 23:24:52 -!- djcb`` [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Ping timeout: 260 seconds] 23:30:05 I don't know how to improive is :S 23:30:07 improve it 23:31:52 what do you want to improve? the time it takes to run? 23:32:02 well, that is true 23:32:09 ? 23:32:13 I actually have a modified version of it ALPHA-BETA 23:32:23 which is faster 23:32:34 but if I can improve this code, I can improve that too 23:32:44 it's just the way the program is structured and stuff 23:36:18 riverswain [~avery@67-2-16-222.slkc.qwest.net] has joined #scheme 23:37:40 kudkudyak [~user@94.72.149.10] has joined #scheme 23:46:07 jrslepak [~jrslepak@c-71-233-151-135.hsd1.ma.comcast.net] has joined #scheme 23:57:16 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 252 seconds] 23:59:32 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.]