00:02:04 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 00:03:35 -!- estevocastro [estevocast@nat/hackerschool.com/x-kwgwuclhvthvlfzq] has quit [Remote host closed the connection] 00:03:36 dnolen [~user@p72-0-226-118-static.acedsl.com] has joined #scheme 00:04:28 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 00:06:00 Anyone read this? Long but entertaining: . 00:08:29 I enjoyed it at first but it wore me out. 00:11:09 Is there any regression analysis library doing polynomial regression in Scheme? 00:11:31 (Once again, "Scheme" is quite a bad search term in Google.) 00:22:49 it is. but pity the Go people. 00:23:10 heh:) 00:23:13 maybe google fudges the index for that one 00:23:28 ijp: aha, i am a sucker for conspiracies 00:23:56 ijp: it appears unfounded however. 00:24:10 I don't genuinely believe that; just thought I'd put it out there :) 00:24:23 ijp: i know. it needed to be investigated. for 5 seconds. 00:24:40 -!- Axioplase_ [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has quit [Read error: Connection reset by peer] 00:24:41 langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has joined #scheme 00:24:46 Axioplase_ [~Axioplase@fortigate.kb.ecei.tohoku.ac.jp] has joined #scheme 00:31:55 -!- wbooze` [~levgue@xdsl-78-35-165-25.netcologne.de] has quit [Ping timeout: 244 seconds] 00:34:41 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 00:38:07 -!- antithesis [~antithesi@81.71.110.7] has quit [Quit: yes leaving] 00:39:41 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 00:45:16 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 276 seconds] 00:47:20 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Quit: leaving] 00:47:21 replore [~replore@203.152.213.161.static.zoot.jp] has joined #scheme 00:49:22 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 00:49:35 -!- chrissbx [~chrissbx@nomad.ccs.neu.edu] has left #scheme 00:50:40 realitygrill [~realitygr@d14-69-169-157.try.wideopenwest.com] has joined #scheme 00:51:22 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Client Quit] 00:54:47 -!- miql [~miql@ip98-165-228-225.ph.ph.cox.net] has quit [Ping timeout: 272 seconds] 00:57:40 tonyg [~tonyg@173-203-78-111.static.cloud-ips.com] has joined #scheme 00:58:11 rotty: re Kali Scheme: what's the status these days? Is there a github or similar repo I can track? 00:59:51 rotty: (I'm contacting you per the contents of http://community.schemewiki.org/?kali-scheme-revival :-) ) 01:00:08 rotty: the kali-1.2.1 tarball is no longer available from tripod.com - do you (or anyone else here) have a copy? 01:04:23 woonie [~woonie@nusnet-75-104.dynip.nus.edu.sg] has joined #scheme 01:13:01 -!- langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has quit [Ping timeout: 260 seconds] 01:15:34 Does anyone have a copy of Kali Scheme newer than 0.52.2? 01:15:57 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has left #scheme 01:20:06 *crickets* 01:20:19 offby1: :-) 01:20:42 ok so the kali-1.2.1 tarball looks like it's gone entirely unless someone has a dusty copy on a floppy disk somewhere or something 01:20:55 i have taken this opportunity to grab the 0.52.2 tarball while I can (!) 01:21:15 i've created github.com/tonyg/kali-scheme as an archive and potential base for exploration 01:22:01 rudybot: what do you make of kali scheme? 01:22:01 ijp: rolls a joint with some great Kali and hands it to tali713, "Fire it up!" 01:22:14 *ijp* slaps rudybot 01:22:47 *shrug* 01:22:55 what can you do? He's a handful, now that he's grown 01:23:36 #emacs has been a bad influence on him 01:25:13 lol 01:26:09 gabot: don't you make the same mistakes as rudybot 01:26:10 *gabot* is confused 01:30:15 -!- snizzo [~Claudio@host57-1-dynamic.24-79-r.retail.telecomitalia.it] has quit [Remote host closed the connection] 01:31:43 acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has joined #scheme 01:31:47 gabot pretty much by definition makes the same mistakes as rudybot 01:31:47 offby1: I'll have the chicken, please. 01:32:08 for all I know, eli has been surreptitiously merging rudybot changes 01:32:12 gabot: source 01:32:12 offby1: Do *you* know where your sources are? 01:32:17 *offby1* glances around nervously. 01:32:19 gabot: version 01:32:19 offby1: I didn't get that. 01:32:23 *sigh* 01:32:34 yes, but I suspect eli is a stricter parent 01:32:46 hive-min1 [~hivemind@173.227.197.58] has joined #scheme 01:34:02 -!- Myk267 [~myk@adsl-71-149-249-146.dsl.mtry01.sbcglobal.net] has quit [Ping timeout: 252 seconds] 01:34:30 BW^- [~Miranda@82.77.104.252] has joined #scheme 01:35:31 -!- hive-mind [~hivemind@unaffiliated/contempt] has quit [Ping timeout: 264 seconds] 01:35:45 -!- confab [~confab@public-nat2.arc.losrios.edu] has quit [Quit: Lost terminal] 01:37:10 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 01:38:08 -!- woonie [~woonie@nusnet-75-104.dynip.nus.edu.sg] has quit [Ping timeout: 246 seconds] 01:39:05 -!- dous_ [~dous@unaffiliated/dous] has quit [Remote host closed the connection] 01:43:38 -!- turbofail [~user@c-24-5-89-172.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 01:45:43 -!- fbs [fbs@fsf/member/fbs] has quit [Ping timeout: 276 seconds] 01:47:39 -!- wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has quit [Ping timeout: 245 seconds] 01:50:41 fbs [fbs@fsf/member/fbs] has joined #scheme 01:50:51 langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has joined #scheme 01:54:16 Myk267 [~myk@71.149.249.146] has joined #scheme 01:59:29 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Quit: WeeChat 0.3.7] 02:02:09 -!- acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has quit [Quit: Leaving.] 02:05:05 -!- dnolen [~user@p72-0-226-118-static.acedsl.com] has quit [Ping timeout: 272 seconds] 02:11:44 -!- ijp [~user@host86-151-72-82.range86-151.btcentralplus.com] has quit [Ping timeout: 246 seconds] 02:19:31 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 276 seconds] 02:20:55 -!- realitygrill [~realitygr@d14-69-169-157.try.wideopenwest.com] has quit [Quit: Computer has gone to sleep] 02:22:31 -!- BW^- [~Miranda@82.77.104.252] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 02:26:40 jhemann_ [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has joined #scheme 02:42:36 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 02:44:37 leo2007 [~leo@221.223.80.99] has joined #scheme 02:45:15 -!- replore [~replore@203.152.213.161.static.zoot.jp] has quit [Remote host closed the connection] 02:48:06 I was wondering about this: I can't seem to find a way. 02:48:29 -!- noam_ [~noam@37.142.141.69] has quit [Read error: Connection reset by peer] 02:48:38 noam_ [~noam@37.142.141.69] has joined #scheme 02:49:07 didi: Oh, an Euler problem? 02:49:16 asumu: Yes. Second, actually. 02:49:36 offby1: I intended to add rudybot-isms, but then thought that there's no point in making them compete. 02:50:01 didi: I find it easiest to do these style of problems using infinite lists and higher-order functions. 02:50:10 unless we let them have sex and mutate. 02:50:14 (though that's not necessarily efficient) 02:50:18 We could breed a race of überbots! 02:50:25 asumu: I <3 both. But I was wondering about `do'. 02:51:03 asumu: I was trying to add `next2' and `next3' to hold the previous computations, but nothing works. 02:51:17 -!- ssbr_ [~ssbr@python/site-packages/ssbr] has quit [Ping timeout: 246 seconds] 02:52:01 simathur [~simathur@192.100.106.9] has joined #scheme 02:55:14 gabot: slap all bots 02:55:14 *gabot* slaps ccl-logbot and rudybot 02:55:24 gabot: version 02:55:25 eli: Feh. You just assume that all bots have versions? I'm offended. 02:55:35 didi: you have to supply an expression that steps the loop variables or set! them in the body. 02:55:39 gabot: slap yourself 02:55:39 *gabot* slaps yourself 02:56:21 didi: BTW, if you have other looping macros in your Scheme they're probably better. 02:58:14 asumu: Don't you like `do'? 02:58:51 didi: I usually use Racket, so I much prefer its `for` macros. 03:00:39 asumu: I see. I'm not familiar with `for'. 03:01:14 rudybot: (for (list 1 2 3) displayln) 03:01:14 *offby1: error: #:1:6: for: bad sequence binding clause at: list in: (for (list 1 2 3) displayln) 03:01:24 oops, I'm thinking "for-each" 03:01:35 rudybot: (for ([x (list 1 2 3)]) (displayln x)) 03:01:35 *offby1: ; stdout: "1\n2\n3\n" 03:02:00 I use Racket, but I refuse to use []. 03:02:08 rudybot: (for ([x (list 1 2 3)][y (list 'a 'b 'c)]) (printf "~a ~a~%" x y)) 03:02:09 *offby1: ; stdout: "1 a\n2 b\n3 c\n" 03:02:25 didi: Nobody's perfect. The first step is admitting you have a problem. 03:02:25 I don't always use Racket, but when I do -- I use [] 03:02:51 (But they're not needed for `for' loops, or for anything else.) 03:02:55 eli: Sure. Someone should talk to Racket. 03:02:56 That's so interesting 03:03:06 -!- CampinSam [~CampinSam@24-176-98-217.dhcp.jcsn.tn.charter.com] has quit [Quit: leaving] 03:03:21 realitygrill [~realitygr@76.226.208.26] has joined #scheme 03:03:36 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 03:06:57 Hum, this `for' in a sequence cries for a lazy list. 03:08:48 asumu: How would you do without `set!'? 03:09:47 some (all?) of racket's "sequences" (the things you feed into 'for' and friends) are indeed lazy 03:09:55 can't think of a demo offhand. 03:10:35 offby1: Even your `(list 1 2 3)'? 03:11:55 if that's lazy, I wouldn't know how to demonstrate. 03:12:15 I suppose I could a) have a list of side-effect-ful expressions; b) tell the loop to bail out early 03:12:34 rudybot: (in-range 1000000000000) 03:12:35 eli: your sandbox is ready 03:12:35 eli: ; Value: # 03:12:39 Like that. 03:13:12 eli: That I understand. 03:13:17 heh 03:13:27 offby1: I lied to me! 03:13:32 s'ok 03:13:32 you, even. 03:13:43 rudybot: You understand me. 03:13:43 didi: Yeah, I understand address space fragmentation. I thought chandler was referring to pax's inability to map segments with low base addresses on 32-bit platforms. 03:20:21 -!- langmartin [~user@host-68-169-155-216.WISOLT2.epbfi.com] has quit [Ping timeout: 244 seconds] 03:33:23 arcfide [~arcfide@c-98-223-204-153.hsd1.in.comcast.net] has joined #scheme 03:36:34 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has left #scheme 03:40:46 -!- Myk267 [~myk@71.149.249.146] has quit [Quit: Myk267] 03:41:41 -!- leo2007 [~leo@221.223.80.99] has quit [Quit: rcirc on GNU Emacs 24.0.95.1] 03:43:08 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 03:52:11 -!- MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has quit [Ping timeout: 246 seconds] 03:56:10 kvda_ [~kvda@202.58.240.18] has joined #scheme 03:56:14 -!- kvda_ is now known as kvda 04:01:59 -!- jao [~user@pdpc/supporter/professional/jao] has quit [Ping timeout: 246 seconds] 04:06:36 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 04:09:12 tomodo [~tomodo@gateway/tor-sasl/tomodo] has joined #scheme 04:10:17 -!- realitygrill [~realitygr@76.226.208.26] has quit [Ping timeout: 265 seconds] 04:11:30 realitygrill [~realitygr@76.226.206.181] has joined #scheme 04:18:43 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 04:25:29 -!- kvda [~kvda@202.58.240.18] has quit [Quit: x__x] 04:25:43 kvda [~kvda@202.58.240.18] has joined #scheme 04:31:40 wingo [~wingo@c-174-62-76-134.hsd1.ca.comcast.net] has joined #scheme 04:37:24 ThePawnBreak121 [Cristi@94.177.108.25] has joined #scheme 04:40:13 cdidd [~cdidd@37-144-199-190.broadband.corbina.ru] has joined #scheme 04:45:13 -!- realitygrill [~realitygr@76.226.206.181] has quit [Ping timeout: 246 seconds] 04:47:08 realitygrill [~realitygr@adsl-69-212-229-121.dsl.sfldmi.sbcglobal.net] has joined #scheme 04:50:17 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 246 seconds] 04:52:02 -!- forcer [~forcer@hmbg-5f77d1b6.pool.mediaWays.net] has quit [Ping timeout: 246 seconds] 04:55:32 -!- stepnem [~stepnem@176.119.broadband10.iol.cz] has quit [Ping timeout: 246 seconds] 04:55:34 -!- kudkudyak [~user@94.72.150.209] has quit [Ping timeout: 245 seconds] 04:56:20 RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #scheme 04:57:48 stepnem [~stepnem@176.119.broadband10.iol.cz] has joined #scheme 05:02:10 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 05:08:25 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 252 seconds] 05:19:43 -!- jrslepak [~jrslepak@c-71-233-148-123.hsd1.ma.comcast.net] has quit [Quit: What happened to Systems A through E?] 05:22:45 how do you do a syntax rewrite for non-functions ? ie, i'm thinking about Qi's pattern matching 05:25:00 what does "syntax rewrite for non-functions" mean 05:25:03 you mean how do you invoke a macro outside of the (f x) form? 05:25:47 yes 05:26:20 Qi uses pattern matching like a case form, but (if i understand correctly) is usable after a define 05:27:01 ie, (define somefun 1 -> 'a 2 -> 'b) 05:29:48 and that would be equivalent to (define somefun (lambda (cnd) (cond ((eq? cnd 1) 'a ) ((eq? cnd 2) 'b)))) 05:32:33 meaning 1-> 'a 2 -> 'b turns into that? 05:32:36 or its special in define 05:33:00 -!- RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has quit [Quit: RomyRomy] 05:37:12 wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has joined #scheme 05:46:03 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 244 seconds] 05:49:58 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Read error: Connection reset by peer] 06:03:50 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 06:04:21 confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has joined #scheme 06:04:25 -!- confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 06:08:36 attila_lendvai [~attila_le@87.247.57.232] has joined #scheme 06:08:37 -!- attila_lendvai [~attila_le@87.247.57.232] has quit [Changing host] 06:08:37 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 06:10:28 This is just beautiful . The code is not mine, unfortunately. 06:13:50 forcer [~forcer@hmbg-4d06f423.pool.mediaWays.net] has joined #scheme 06:16:45 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 06:18:51 confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has joined #scheme 06:23:03 gravicappa [~gravicapp@ppp91-77-180-19.pppoe.mtu-net.ru] has joined #scheme 06:25:19 -!- namidark [~joshrende@c-98-230-1-143.hsd1.fl.comcast.net] has quit [Ping timeout: 244 seconds] 06:25:29 visar [~visar@77.29.51.37] has joined #scheme 06:25:39 -!- kvda [~kvda@202.58.240.18] has quit [Quit: x__x] 06:26:21 -!- visar [~visar@77.29.51.37] has left #scheme 06:34:37 -!- leppie [~lolcow@196-210-148-21.dynamic.isadsl.co.za] has quit [Ping timeout: 244 seconds] 06:40:14 leppie [~lolcow@196.209.233.14] has joined #scheme 06:41:08 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 240 seconds] 06:42:57 homie`` [~levgue@xdsl-87-79-193-51.netcologne.de] has joined #scheme 06:44:13 didi, why is that beautiful? 06:44:18 offby1: Yeah; the article was encyclopedic. 06:45:22 -!- homie` [~levgue@xdsl-78-35-165-25.netcologne.de] has quit [Ping timeout: 276 seconds] 06:45:33 bfig: I think it's a beautiful way to solve the problem. Both by the use of mathematics and `do' with recursion. 06:45:41 didi, it is a painfully horrible iteration scheme 06:45:48 bfig: I disagree. 06:45:52 didi: Although it's probably O(ouch). 06:46:01 it is as inefficient as it gets 06:46:10 I don't think so. 06:46:17 literally i can't think of a more inefficient way without writing garbage code all over the place 06:46:25 bfig: Bah. 06:46:29 -!- yosafbridge [~yosafbrid@li125-242.members.linode.com] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 06:46:31 Is it based on the sieve of Eratosthenes, or something? 06:46:40 klutometis: I don't think so. 06:46:43 klutometis, it is based on *suck* 06:46:57 bfig: maybe you didn't understand it. 06:47:09 didi, i understood it too well regrettably 06:47:17 namidark [~joshrende@c-98-230-1-143.hsd1.fl.comcast.net] has joined #scheme 06:47:22 bfig: Well, I'm curious to see your solution. 06:48:04 ohh god i'm such an asshole i'll actually program it 06:48:17 Nice. 06:49:05 yosafbridge [~yosafbrid@li125-242.members.linode.com] has joined #scheme 06:49:05 -!- realitygrill [~realitygr@adsl-69-212-229-121.dsl.sfldmi.sbcglobal.net] has quit [Quit: Computer has gone to sleep] 06:50:41 -!- wingo [~wingo@c-174-62-76-134.hsd1.ca.comcast.net] has quit [Ping timeout: 246 seconds] 06:51:44 jewel [~jewel@196-209-224-188.dynamic.isadsl.co.za] has joined #scheme 06:54:15 -!- leppie [~lolcow@196.209.233.14] has quit [Ping timeout: 260 seconds] 06:56:47 hkBst [~marijn@79.170.210.172] has joined #scheme 06:56:47 -!- hkBst [~marijn@79.170.210.172] has quit [Changing host] 06:56:47 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 06:58:59 didi, http://paste.call-cc.org/paste?id=4afbb2196df8c971aedceb8323ced4c62fb9092f 06:59:22 that executes orders of magnitude faster 06:59:32 leppie [~lolcow@196.209.233.14] has joined #scheme 06:59:34 "orders of magnitude"? 06:59:36 (for small problems you won't notice but let there be two huge prime numbers...) 06:59:46 Let's test that hypothesis. 07:00:00 ok, you don't know how to program. take my word for it: it is much better than the code you presented before 07:00:09 Pfff. 07:00:16 Let's test it, shall we? 07:00:58 lost interest already 07:01:21 I'm not testing for you. 07:02:30 nothing wrong with some performance testing... 07:03:18 also (< ``you don't know how to program'' ``learning how to program'') 07:04:18 OK. Tested. 07:04:20 -!- jewel [~jewel@196-209-224-188.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 07:04:26 "orders of magnitude"? 07:04:27 Pffff 07:04:29 False. 07:04:35 Although, congratulations. 07:04:45 Your implementation is indeed faster. 07:04:45 hkBst, check his previous comments. "i disagree", "you didn't understand it". my heuristic admits a 75% of trolling 07:04:48 Thank you for your code. 07:05:03 ohh no! i've been stolen 07:05:03 bfig: That's the best you can do? 07:05:08 please somebody call the code police 07:05:10 ? 07:06:12 i can do better but it's not worth the effort and you either are trolling and don't care what i have to show or you barely grasp programming and you won't understand a complicated example 07:06:12 bfig: Who said I'm stealing your code? 07:06:20 ... 07:06:22 Oh my... 07:07:23 Irony, insults, rage... 07:07:40 All for something I think is pretty. 07:16:25 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 07:23:22 And, just to note, "faggy" is a very pejorative and homophobic term. 07:24:04 Radium [~carbon@117.203.4.108] has joined #scheme 07:30:19 -!- leppie [~lolcow@196.209.233.14] has quit [Ping timeout: 252 seconds] 07:34:56 leppie [~lolcow@196-210-148-21.dynamic.isadsl.co.za] has joined #scheme 07:39:25 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 07:44:02 First of all, dudes, there's no reason to test any even number above 2; so increment by two. 07:44:12 In fact, there's no reason to test any non-primes; use a primes table. 07:44:47 You only need a table of ~6500 primes to exhaust 16-bit unsigned integers. 07:45:11 This (+ 1 iter) thing is bullshit. 07:45:48 http://en.wikipedia.org/wiki/Trial_division is what's going on here, I think. 07:46:16 klutometis: Nice. Thank you. 07:48:48 didi: NP; use the sieve of eratosthenes () to generate some primes; save them; iterate through these instead of doing (+ x 1); and you'll have a relatively stout algorithm. 07:48:59 (As stout as can be, possibly, for this class of solution.) 07:49:13 Then, when you're ready, implement this: . 07:49:19 You'll surely receive a Nobel prize. 07:49:32 klutometis: Did you see the implementation of the sieve in SICP using streams? It's beautiful. 07:49:44 didi: Yeah; I heard angels. 07:49:50 peterhil` [~peterhil@gatekeeper.brainalliance.com] has joined #scheme 07:49:51 :^) 07:50:07 told you it was a troll 07:50:16 couldn't keep it in his pants 07:50:27 *didi* *yawn* 07:50:45 bfig: Go away. You're not even original. 07:51:55 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Quit: Changing server] 07:56:56 ahinki [~chatzilla@212.99.10.150] has joined #scheme 08:08:39 -!- jlongster [~user@pool-96-253-85-90.rcmdva.fios.verizon.net] has quit [Ping timeout: 244 seconds] 08:09:36 klutometis: Although "Trial division" is very interesting, I don't think the original algorithm is using it. At least, not literally, as there is no prior calculations for the prime numbers. 08:10:41 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 260 seconds] 08:18:59 -!- arcfide [~arcfide@c-98-223-204-153.hsd1.in.comcast.net] has quit [Quit: Leaving] 08:19:47 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Read error: Connection reset by peer] 08:19:51 pumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 08:20:47 -!- Radium [~carbon@117.203.4.108] has quit [] 08:22:10 didi: The prior calculation is an optimization; you can continue to do the comparatively pessimal increment-by-one, but you should at least increment by two starting from three. 08:22:22 (That is, if you don't use a prime number table.) 08:22:37 The optimal and pessimal versions still fall under trial division. 08:23:14 klutometis: I see. 08:24:34 didi: Notice, in the Python version, that they divide n by p if (zero? (mod n p)); that's the bit of insight that your code shows, too. 08:25:38 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 08:25:41 futilius [~futilius_@user-0c9h82b.cable.mindspring.com] has joined #scheme 08:26:33 They generated the primes up to P(n/2 + 1), though, for testing; that should be sufficient to factor the number. 08:26:58 Do this off-line, though, if you can. 08:27:55 You may, however, be maximizing for beauty and not efficiency; I still think you can implement this and not affect the aesthetics of your code. 08:28:04 It will be the more beautiful for being efficient, I think. 08:29:47 klutometis: Great. I will. Thank you. 08:33:01 didi: Paste it if you do. 08:33:58 ASau` [~user@128-72-117-212.broadband.corbina.ru] has joined #scheme 08:38:23 -!- ASau [~user@128-72-150-112.broadband.corbina.ru] has quit [Ping timeout: 272 seconds] 08:41:07 antithesis [~antithesi@81.71.110.7] has joined #scheme 08:49:55 -!- DGASAU [~user@91.218.144.129] has quit [Remote host closed the connection] 08:50:14 DGASAU` [~user@91.218.144.129] has joined #scheme 08:52:37 -!- bfig [~b_fin_g@r186-53-131-32.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] 08:53:11 bfig [~b_fin_g@r186-53-148-185.dialup.adsl.anteldata.net.uy] has joined #scheme 08:54:49 keenbug [~daniel@p4FDB6F8D.dip.t-dialin.net] has joined #scheme 09:05:34 masm [~masm@bl17-201-211.dsl.telepac.pt] has joined #scheme 09:15:08 -!- gravicappa [~gravicapp@ppp91-77-180-19.pppoe.mtu-net.ru] has quit [Ping timeout: 272 seconds] 09:20:23 -!- homie`` [~levgue@xdsl-87-79-193-51.netcologne.de] has quit [Remote host closed the connection] 09:23:12 replore [~replore@203.152.213.161.static.zoot.jp] has joined #scheme 09:31:19 homie [~levgue@xdsl-87-79-193-51.netcologne.de] has joined #scheme 09:32:29 gravicappa [~gravicapp@ppp91-77-180-201.pppoe.mtu-net.ru] has joined #scheme 09:33:29 does r6rs include a function that replaces a substring inside a string by pattern? (i.e. (REPLACE "xa" "he" "xallo") -> "hello") 09:34:19 -!- replore [~replore@203.152.213.161.static.zoot.jp] has quit [Remote host closed the connection] 09:39:36 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 09:43:43 -!- homie [~levgue@xdsl-87-79-193-51.netcologne.de] has quit [Read error: Connection reset by peer] 09:45:19 homie [~levgue@xdsl-87-79-193-51.netcologne.de] has joined #scheme 09:45:38 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 09:45:49 -!- homie [~levgue@xdsl-87-79-193-51.netcologne.de] has quit [Read error: Connection reset by peer] 09:54:07 homie [~levgue@xdsl-87-79-193-51.netcologne.de] has joined #scheme 10:00:12 Is the least awkward way to convert a char to string (make-string 1 )? There's some kind of char->integer, number->string thing; but that seems even worse. 10:01:40 That sounds reasonable. 10:02:35 I don't know any other implementations, but in my implementation a char is in fact a special kind of string; any library function taking a string is also happy with a chat. 10:02:36 char 10:11:51 that is not true for most other implementations 10:12:54 Then your implementation is not a r5rs: http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-6.html#%_sec_3.2 10:12:54 http://tinyurl.com/69m4y9 10:18:09 klutometis: i think (string ) is the easiest way 10:18:57 Arafangion` [~Arafangio@220-244-108-23.static.tpgi.com.au] has joined #scheme 10:20:02 -!- gravicappa [~gravicapp@ppp91-77-180-201.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 10:20:39 -!- homie [~levgue@xdsl-87-79-193-51.netcologne.de] has quit [Remote host closed the connection] 10:21:09 (number->string (char->integer )) would give you a string with the ASCII code (or UTF-8 or something similar) in decimal 10:21:11 pjb: My types are distinct. 10:21:18 string? and char? both return #t on one and #f on the other. 10:21:32 pjb: I'm simply pointing out what happens if I pass a char _value_ into a function defined to operate on strings. 10:21:41 R5 says nothing about what should happen there. It is undefined. 10:21:54 Meaning: my implementation's behaviour of treating said char as a one-character string, is not out of spec. 10:23:06 For example: I don't believe that R5 specifically forbids (eqv? (string->number #\5) 5) ==> #t 10:23:09 LeoNerd: ok. I thought you meant the idea of not having characters, but only strings of length 1. 10:23:13 Oooh.. nono 10:23:59 Infact I have (string? \#A) ==> #f but (string-length \#A) ==> 1 10:24:07 LeoNerd: Yes, you can have extensions like that. 10:24:25 It's not so much an extension as just a fortunate quirk of implementation :) 10:24:41 But in a standard program, I'd write (string-length (string #\A)) 10:24:48 Oh indeed 10:38:09 -!- ahinki [~chatzilla@212.99.10.150] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120403211507]] 10:38:43 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 276 seconds] 10:39:12 add^_ [~add^_^@m90-141-49-231.cust.tele2.se] has joined #scheme 10:40:19 homie [~levgue@xdsl-87-79-193-51.netcologne.de] has joined #scheme 10:46:07 -!- bfig [~b_fin_g@r186-53-148-185.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 252 seconds] 10:56:37 snizzo [~Claudio@iglu.cc.uniud.it] has joined #scheme 11:16:43 -!- snizzo [~Claudio@iglu.cc.uniud.it] has quit [Ping timeout: 245 seconds] 11:17:03 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Read error: Connection reset by peer] 11:41:14 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has left #scheme 11:51:24 RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #scheme 11:58:21 -!- dgs [~dgs@203-97-51-73.dsl.clear.net.nz] has quit [Ping timeout: 252 seconds] 12:02:47 -!- RomyRomy [~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has quit [Quit: RomyRomy] 12:09:16 -!- pumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 265 seconds] 12:09:46 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 12:10:22 -!- ThePawnBreak121 [Cristi@94.177.108.25] has quit [Ping timeout: 276 seconds] 12:13:46 ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has joined #scheme 12:24:34 ecraven: R6RS does not include such a function, no 12:34:10 -!- futilius [~futilius_@user-0c9h82b.cable.mindspring.com] has quit [Read error: Connection reset by peer] 12:36:46 -!- cswords [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has quit [Read error: Connection reset by peer] 12:36:54 jrslepak [~jrslepak@c-71-233-148-123.hsd1.ma.comcast.net] has joined #scheme 12:37:00 cswords [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has joined #scheme 12:41:25 -!- DGASAU` [~user@91.218.144.129] has quit [Read error: No route to host] 12:43:38 weinholt [weinholt@debian/emeritus/weinholt] has joined #scheme 12:47:28 leo2007 [~leo@123.114.43.79] has joined #scheme 12:52:24 ijp: why not :) isn't something like this obviously needed? 12:53:00 well, even srfi 13 doesn't have this kind of string replacement 12:53:42 you also haven't specified what you mean by a "pattern", regular expressions? 12:53:51 futilius [~futilius_@user-0c9h82b.cable.mindspring.com] has joined #scheme 12:54:00 i'd be happy about a plain pattern, no interpolation at all 12:54:18 most usefuls schemes have a regex library 12:55:37 ThePawnBreak [Cristi@94.177.108.25] has joined #scheme 13:02:41 soveran [~soveran@186.19.214.247] has joined #scheme 13:26:14 MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has joined #scheme 13:27:56 tupi [~david@139.82.89.24] has joined #scheme 13:31:42 ecraven: I miss that procedure too. 13:37:10 ahinki [~chatzilla@212.99.10.150] has joined #scheme 13:44:24 bfig [~b_fin_g@r186-50-186-162.dialup.adsl.anteldata.net.uy] has joined #scheme 13:49:43 dzhus [~sphinx@176.14.94.92] has joined #scheme 13:50:06 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 13:56:21 string-replace and string-index-of is handy procedures 14:02:33 -!- dzhus [~sphinx@176.14.94.92] has quit [Read error: Connection reset by peer] 14:04:30 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Read error: Connection reset by peer] 14:07:00 dzhus [~sphinx@176.14.94.92] has joined #scheme 14:10:28 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 14:15:35 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 14:18:56 -!- karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has quit [Remote host closed the connection] 14:21:10 -!- leppie [~lolcow@196-210-148-21.dynamic.isadsl.co.za] has quit [Ping timeout: 244 seconds] 14:22:00 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 14:23:05 leppie [~lolcow@196-210-143-218.dynamic.isadsl.co.za] has joined #scheme 14:23:59 dnolen [~user@cpe-98-14-92-234.nyc.res.rr.com] has joined #scheme 14:25:29 snizzo [~Claudio@iglu.cc.uniud.it] has joined #scheme 14:29:12 karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 14:31:47 rageous [~Adium@65-128-192-112.mpls.qwest.net] has joined #scheme 14:32:58 copumpkin [~copumpkin@17.45.135.69] has joined #scheme 14:33:06 -!- copumpkin [~copumpkin@17.45.135.69] has quit [Changing host] 14:33:06 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 14:36:11 -!- jrslepak [~jrslepak@c-71-233-148-123.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 14:49:01 dous [~dous@unaffiliated/dous] has joined #scheme 14:50:28 -!- snizzo [~Claudio@iglu.cc.uniud.it] has quit [Read error: Connection reset by peer] 14:55:40 Radium [~carbon@117.203.17.99] has joined #scheme 14:58:13 -!- ahinki [~chatzilla@212.99.10.150] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120403211507]] 15:05:53 jlongster [~user@pool-96-253-85-90.rcmdva.fios.verizon.net] has joined #scheme 15:06:36 mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has joined #scheme 15:09:44 X-Scale [name@2001:470:1f14:135b::2] has joined #scheme 15:10:46 -!- futilius [~futilius_@user-0c9h82b.cable.mindspring.com] has quit [Ping timeout: 244 seconds] 15:12:21 tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has joined #scheme 15:15:58 -!- dnolen [~user@cpe-98-14-92-234.nyc.res.rr.com] has quit [Read error: Operation timed out] 15:27:29 eeenn [84e376ca@gateway/web/freenode/ip.132.227.118.202] has joined #scheme 15:27:51 hi, how can i tell scheme to evaluate (in float/double) something like (/ 1 2) 15:28:04 my interpreter is sending me 1/2 instead of 0.5 (the desired result) 15:30:24 (exact->inexact (/ 1 2)) should work 15:30:52 kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has joined #scheme 15:31:20 But the result is 1/2 15:31:27 Perhaps you wanted it to format that result as a decimal? 15:33:45 rudybot: (/ 1.0 2) 15:33:46 ijp: your r5rs sandbox is ready 15:33:46 ijp: ; Value: 0.5 15:34:36 inexactness is contagious, so as long as you have at least one inexact number, it will propagate 15:34:53 explicit coercion, as suggested by ecraven, is fine too 15:36:35 gravicappa [~gravicapp@ppp91-77-180-201.pppoe.mtu-net.ru] has joined #scheme 15:36:56 realitygrill [~realitygr@adsl-69-212-229-121.dsl.sfldmi.sbcglobal.net] has joined #scheme 15:38:49 -!- dous [~dous@unaffiliated/dous] has quit [Ping timeout: 265 seconds] 15:41:38 -!- ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has quit [Ping timeout: 246 seconds] 15:43:06 -!- samth_away is now known as samth 15:46:47 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 15:46:53 DGASAU [~user@91.218.144.129] has joined #scheme 15:47:01 ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has joined #scheme 15:48:03 -!- tomodo [~tomodo@gateway/tor-sasl/tomodo] has quit [Remote host closed the connection] 15:52:17 soveran [~soveran@186.19.214.247] has joined #scheme 15:52:28 -!- levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has quit [Read error: Connection reset by peer] 15:52:47 levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has joined #scheme 15:55:07 ThePawnBreak121 [Cristi@94.177.108.25] has joined #scheme 15:56:24 -!- ThePawnBreak [Cristi@94.177.108.25] has quit [Ping timeout: 260 seconds] 15:57:45 djcb [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 16:00:09 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 16:02:00 -!- jcowan [~John@mail.digitalkingdom.org] has quit [Ping timeout: 260 seconds] 16:02:08 djcb` [~user@a88-114-95-13.elisa-laajakaista.fi] has joined #scheme 16:03:32 -!- djcb [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Ping timeout: 252 seconds] 16:07:30 -!- kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has quit [Remote host closed the connection] 16:09:13 wingo [~wingo@173-8-133-100-SFBA.hfc.comcastbusiness.net] has joined #scheme 16:11:34 -!- eeenn [84e376ca@gateway/web/freenode/ip.132.227.118.202] has quit [Quit: Page closed] 16:17:08 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 245 seconds] 16:19:25 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 16:20:16 jewel [~jewel@196-209-224-188.dynamic.isadsl.co.za] has joined #scheme 16:45:22 -!- Radium [~carbon@117.203.17.99] has quit [] 16:47:53 -!- karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has quit [Remote host closed the connection] 16:58:06 karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 17:03:23 -!- peterhil` [~peterhil@gatekeeper.brainalliance.com] has quit [Ping timeout: 245 seconds] 17:07:00 MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has joined #scheme 17:10:08 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 17:12:30 Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #scheme 17:12:36 -!- Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Client Quit] 17:14:16 mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 17:14:48 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 17:15:57 ssbr_ [~ssbr@python/site-packages/ssbr] has joined #scheme 17:18:42 -!- realitygrill [~realitygr@adsl-69-212-229-121.dsl.sfldmi.sbcglobal.net] has quit [Ping timeout: 252 seconds] 17:20:30 realitygrill [~realitygr@adsl-76-226-108-165.dsl.sfldmi.sbcglobal.net] has joined #scheme 17:30:43 -!- jhemann_ [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has quit [Ping timeout: 264 seconds] 17:31:01 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 246 seconds] 17:32:40 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 17:34:29 turbofail [~user@c-24-5-89-172.hsd1.ca.comcast.net] has joined #scheme 17:36:35 Radium [~carbon@117.203.17.99] has joined #scheme 17:37:46 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 252 seconds] 17:37:58 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 17:38:08 16SAA0LHV [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has joined #scheme 17:38:09 5EXAAOKNK [~Jason@99.137.201.46] has joined #scheme 17:38:09 66MAAB6FL [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has joined #scheme 17:39:57 -!- 16SAA0LHV [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has quit [Client Quit] 17:40:00 -!- 5EXAAOKNK [~Jason@99.137.201.46] has quit [Client Quit] 17:42:27 noam__ [~noam@37.142.141.69] has joined #scheme 17:44:27 -!- noam_ [~noam@37.142.141.69] has quit [Read error: Connection reset by peer] 17:49:01 FreeArtMan [~fam@213.175.106.134] has joined #scheme 17:49:44 -!- ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has quit [Ping timeout: 246 seconds] 17:52:50 ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has joined #scheme 17:55:19 brcrth [~user@unaffiliated/brcrth] has joined #scheme 17:56:34 -!- brcrth [~user@unaffiliated/brcrth] has quit [Client Quit] 17:58:37 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 18:05:29 -!- ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has quit [Ping timeout: 246 seconds] 18:12:11 cky: has this ever been enforced upon you? http://stackoverflow.com/a/100540/15541 18:13:02 ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has joined #scheme 18:17:21 -!- hive-min1 [~hivemind@173.227.197.58] has quit [Ping timeout: 265 seconds] 18:18:04 hive-mind [~hivemind@unaffiliated/contempt] has joined #scheme 18:20:56 that's a 404 or the moral equivalent 18:21:21 he should be able to see that, with his rep, and it was his answer :) 18:21:41 "Very important to me is the ability to pursue my own coding projects, on my own time and on my own equipment, without fear of the company trying to own it. Without this ability, I'd feel that my creativity is severely curtailed." 18:21:42 sstrickl [~sstrickl@dublin.ccs.neu.edu] has joined #scheme 18:22:48 pity so many good questions have been deleted on StackOverflow, they really need to go into some archive 18:29:39 -!- 66MAAB6FL [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has quit [Ping timeout: 265 seconds] 18:30:24 haha, just like wikipedia. "Any sufficiently large and useful community will devolve into internecine warfare and deletionism." 18:30:32 QUora too 18:40:55 rudybot: (string->number "#x10" 8) 18:40:55 leppie: your sandbox is ready 18:40:55 leppie: ; Value: 16 18:41:33 hmmm, why not just stick to what R6RS specifies? 18:42:04 or maybe I misinterpreted it 18:43:04 I think I did! ;p 18:44:52 toekutr [~user@50-0-51-2.dsl.static.sonic.net] has joined #scheme 18:50:06 jao [~user@160.Red-81-39-169.dynamicIP.rima-tde.net] has joined #scheme 18:50:18 -!- jao [~user@160.Red-81-39-169.dynamicIP.rima-tde.net] has quit [Changing host] 18:50:18 jao [~user@pdpc/supporter/professional/jao] has joined #scheme 18:55:15 -!- kaiku [mokou@i.orz.fi] has quit [Ping timeout: 272 seconds] 18:55:22 kaiku [mokou@i.orz.fi] has joined #scheme 18:55:29 homie` [~levgue@xdsl-87-79-195-211.netcologne.de] has joined #scheme 18:57:28 -!- homie [~levgue@xdsl-87-79-193-51.netcologne.de] has quit [Ping timeout: 246 seconds] 18:59:36 -!- toekutr [~user@50-0-51-2.dsl.static.sonic.net] has quit [Read error: Connection reset by peer] 19:04:11 acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has joined #scheme 19:20:34 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 19:20:51 jhemann [~Jason@140-182-225-222.dhcp-bl.indiana.edu] has joined #scheme 19:22:15 estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 19:23:24 -!- FreeArtMan [~fam@213.175.106.134] has quit [Remote host closed the connection] 19:32:19 amgarchIn9 [~amgarchin@p4FD619ED.dip0.t-ipconnect.de] has joined #scheme 19:32:43 Hi! How do you transpose list of lists? 19:34:06 rudybot: (map list '((a b c) (d e f) (g h i))) 19:34:06 ijp: ; Value: {{{a b c}} {{d e f}} {{g h i}}} 19:34:16 rudybot: (apply map list '((a b c) (d e f) (g h i))) 19:34:16 ijp: ; Value: {{a d g} {b e h} {c f i}} 19:34:20 there we are :) 19:34:38 (assuming all lists are the same length) 19:36:02 ok, (apply map list spreadsheet). Somebody told me already about (apply map + data) trick. Need to learn that. 19:37:02 thanks! 19:39:01 -!- leo2007 [~leo@123.114.43.79] has quit [Ping timeout: 248 seconds] 19:40:41 -!- acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has quit [Ping timeout: 246 seconds] 19:40:58 boy, I didn't even understand the question. 19:41:33 offby1: I just answered it, never said I understood it :) 19:42:40 offby1: you have to know what's a transpose, and how list of lists (of the same length) may be used to represent matrices. 19:42:56 usually poorly 19:43:11 unless all your matrix operations are batch, I guess 19:43:35 pjb: that's correct. 19:43:52 to me "transpose" vaguely means something like "interchange" or "swap" 19:45:16 -!- sstrickl [~sstrickl@dublin.ccs.neu.edu] has quit [Quit: sstrickl] 19:46:49 offby1: that's correct. swap the indices. That's how you do it in O(1): (define (transpose m) (lambda (m i j) (m j i))) 19:47:05 (m i j) == ((transpose m) j i) 19:47:48 one m shadows the other, no? 19:48:04 Yes. 19:48:39 If you implement matrices with lists of lists, wrap them in a (define (mwrap lol) (lambda (i j) (list-ref (list-ref i) j))). 19:48:57 soveran [~soveran@186.19.214.247] has joined #scheme 19:49:19 rudybot: (define (transpose m) (lambda (m i j) (m j i))) 19:49:19 pjb: your sandbox is ready 19:49:20 pjb: Done. 19:49:41 -!- jhemann [~Jason@140-182-225-222.dhcp-bl.indiana.edu] has quit [Ping timeout: 248 seconds] 19:49:43 rudybot: (define (mwrap lol) (lambda (i j) (list-ref (list-ref i) j))) 19:49:43 pjb: Done. 19:49:45 rudybot: ((transpose (mwrap '((1 2) (3 4)))) 0 1) 19:49:46 pjb: error: #: expects 3 arguments, given 2: 0 1 19:50:20 rudybot: (define (transpose m) (lambda (i j) (m j i))) 19:50:20 pjb: Done. 19:50:22 rudybot: ((transpose (mwrap '((1 2) (3 4)))) 0 1) 19:50:22 pjb: error: list-ref: expects 2 arguments, given 1: 1 19:50:27 pjb: the one list-ref misses 19:50:32 rudybot: (define (mwrap lol) (lambda (i j) (list-ref (list-ref lol i) j))) 19:50:33 pjb: Done. 19:50:34 yeah, wanted to say that 19:50:35 rudybot: ((transpose (mwrap '((1 2) (3 4)))) 0 1) 19:50:35 pjb: ; Value: 3 19:50:37 there. 19:51:17 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 248 seconds] 19:53:45 dgs_ [~dgs@203-97-51-73.dsl.clear.net.nz] has joined #scheme 19:55:48 acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has joined #scheme 19:59:40 -!- wingo [~wingo@173-8-133-100-SFBA.hfc.comcastbusiness.net] has quit [Ping timeout: 252 seconds] 20:03:20 bowski [8672b3e0@gateway/web/freenode/ip.134.114.179.224] has joined #scheme 20:04:10 chrissbx [~chrissbx@nomad.ccs.neu.edu] has joined #scheme 20:05:26 -!- antithesis [~antithesi@81.71.110.7] has quit [Quit: yes leaving] 20:06:49 -!- ThePawnBreak121 [Cristi@94.177.108.25] has quit [Ping timeout: 276 seconds] 20:07:17 -!- jewel [~jewel@196-209-224-188.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 20:08:18 -!- djcb` [~user@a88-114-95-13.elisa-laajakaista.fi] has quit [Remote host closed the connection] 20:09:37 -!- ASau` [~user@128-72-117-212.broadband.corbina.ru] has quit [Remote host closed the connection] 20:10:27 ASau` [~user@128-72-117-212.broadband.corbina.ru] has joined #scheme 20:24:43 jhemann [~Jason@extfw.bloomington.in.gov] has joined #scheme 20:25:12 -!- chrissbx [~chrissbx@nomad.ccs.neu.edu] has quit [Ping timeout: 272 seconds] 20:28:46 CarterL [~Carter@75.33.216.245] has joined #scheme 20:29:19 should I use racket or plt scheme when going through SICP? 20:29:45 racket is the new name of plt scheme 20:29:48 so.. racket 20:29:55 antithesis [~antithesi@81.71.110.7] has joined #scheme 20:29:58 ok cool 20:30:16 thanks much! 20:31:38 CarterL: There is an SICP package on PLaneT you should look into 20:31:54 oh ya? 20:32:22 CarterL: http://planet.racket-lang.org/display.ss?package=sicp.plt&owner=neil 20:32:54 cool 20:33:04 There are some aspects of Racket that don't follow what Scheme was in 1996 20:33:11 thanks much, i'm watching the videos now, i'm on 1b hehe 20:33:15 So that package papers over the changes. 20:34:15 i went through the codecademy programming stuff for javascript, but never really felt like i knew what it was like to be a programmer. my friend who's a programmer for a living suggested i go through SICP 20:39:29 -!- ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has quit [Ping timeout: 246 seconds] 20:40:25 CarterL1 [~Carter@adsl-75-13-226-26.dsl.spfdmo.sbcglobal.net] has joined #scheme 20:43:03 -!- CarterL [~Carter@75.33.216.245] has quit [Ping timeout: 265 seconds] 20:43:48 choas [~lars@p5795C6B4.dip.t-dialin.net] has joined #scheme 20:46:19 -!- realitygrill [~realitygr@adsl-76-226-108-165.dsl.sfldmi.sbcglobal.net] has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/] 20:47:23 chrissbx [~chrissbx@129.10.174.37] has joined #scheme 20:47:51 CarterL1: I think SICP is an interesting resource for learning computer science and data abstraction, but I'd also suggest HtDP if you want to learn "how to program". 20:49:26 asumu: ok 20:49:43 so they would both serve me well as a steping stone 20:50:52 it's to bad that the codecademy guys don't learn from how HtDP and SICP teach 20:51:20 yeah SICP is useful and I recommend it -- BUT it won't teach you what it's like to be a programmer. 20:51:33 it'll instead teach you stuff that's very important for programmers to know -- subtle difference 20:51:42 yes 20:51:56 i don't want to know just the syntax of a language 20:52:13 i want to know why i'm using it and how i can combine things to make other things 20:52:51 so i can take what's in my head as an idea and make it reality 20:53:11 sure sure 20:53:16 CarterL1: sicp tells you why, yes. It explains the fundamentals. 20:53:49 cool, thanks much! 20:54:16 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 276 seconds] 20:55:52 -!- chrissbx [~chrissbx@129.10.174.37] has quit [Ping timeout: 265 seconds] 20:59:41 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 21:03:07 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 264 seconds] 21:08:29 -!- cdidd [~cdidd@37-144-199-190.broadband.corbina.ru] has quit [Remote host closed the connection] 21:18:32 visar [~visar@77.29.55.242] has joined #scheme 21:19:46 -!- estevocastro is now known as estevo|afk 21:20:26 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has left #scheme 21:20:29 bfgun [~b_fin_g@r186-50-201-218.dialup.adsl.anteldata.net.uy] has joined #scheme 21:23:42 -!- bfig [~b_fin_g@r186-50-186-162.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 250 seconds] 21:24:30 wingo [~wingo@c-174-62-76-134.hsd1.ca.comcast.net] has joined #scheme 21:26:44 ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has joined #scheme 21:34:09 -!- visar [~visar@77.29.55.242] has left #scheme 21:35:09 -!- keenbug [~daniel@p4FDB6F8D.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 21:35:48 bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has joined #scheme 21:37:09 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has left #scheme 21:43:55 futilius [~futilius_@ip72-220-161-181.sd.sd.cox.net] has joined #scheme 21:47:19 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 21:53:56 jrslepak [~jrslepak@nomad.ccs.neu.edu] has joined #scheme 21:57:13 -!- add^_ [~add^_^@m90-141-49-231.cust.tele2.se] has quit [Quit: add^_] 22:11:51 leppie: I'm currently working for a California company. As mentioned in a comment to that post, Californian employers are obliged to not try to claim stuff that is done outside of work time, outside of work equipment, and unrelated to the business of the company. 22:12:42 -!- estevo|afk [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac] 22:12:45 leppie: In any case, I have explained to my employer that I do work on other open-source projects, and have signed contributor agreements to some of them (whereby any work I do on those projects will have copyrights suitably assigned to the project's copyright holders). 22:12:53 es [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 22:13:00 leppie: This is all understood and okay. 22:17:36 -!- gravicappa [~gravicapp@ppp91-77-180-201.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 22:19:21 However, when I wrote that post, I wasn't working at the time, so I was speaking from a "well, if a job tried to put a clause saying 'all your code are belong to us, even stuff done in own time/own equipment', I'd have to line out that clause" kind of place. 22:20:23 offby1: As leppie has mentioned, on SO, most everything is soft-deleted; users with 10k rep or more can see soft-deleted items. 22:20:46 There is only one known case of a hard-deleted post. 22:22:00 -!- jrslepak [~jrslepak@nomad.ccs.neu.edu] has quit [Quit: This computer has gone to sleep] 22:25:19 what was this post? 22:25:34 pic of urmom 22:29:06 Ur-Mom? the progenitor of mom's everywhere? 22:30:31 turbofail: It's the boat-programming post. 22:30:42 turbofail: If you're an SO regular, you know exactly which post I'm talking about. 22:30:56 i'm not and i don't 22:31:42 turbofail: hahaha 22:31:57 *qu1j0t3* isn't and doesn't either 22:33:06 Okay, lemme link you to some context. 22:33:23 Or, more simply, just Google "boat programming". 22:33:26 lol 22:33:35 *qu1j0t3* isn't sure this is something he needs to know about 22:33:45 Hahaha. 22:37:19 this seems a lot more innocuous then i was hoping 22:39:48 turbofail: It's not really controversial, except that Jeff got punked and he didn't appreciate it. 22:40:16 his jimmies were rustled? 22:40:39 -!- choas [~lars@p5795C6B4.dip.t-dialin.net] has quit [Ping timeout: 260 seconds] 22:41:44 Hehehehe. 22:49:39 *offby1* lacks context 22:49:46 was I part of this discussion? I don't remember it 22:50:25 offby1: You were asking about leppie's comment to me about the whole "working on personal projects and not have it belong to the company" thread. 22:50:44 *offby1* makes the "in one ear and out the other" gesture 22:50:59 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 245 seconds] 22:51:01 that's because there is no univerally-recognized "my brain is like a sieve" gesture. 22:51:15 -!- bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has quit [Read error: Operation timed out] 22:51:36 bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has joined #scheme 22:51:49 ah. now I know why I'm drawing a blank: the relevant page from SO never loaded for me. 22:51:59 -!- dzhus [~sphinx@176.14.94.92] has quit [Remote host closed the connection] 22:53:55 offby1: Right. 22:54:06 offby1: And I was explaining that if you had 10k+ rep, it would. ;-) 22:54:31 -!- tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has quit [Ping timeout: 276 seconds] 22:56:25 guess I need to earn more rep, then 22:56:30 or buy some on the black market. 22:57:05 or cut some out of an unsuspecting tourist 22:57:27 I'd have to disinfect it before using it though 22:58:26 -!- antithesis [~antithesi@81.71.110.7] has quit [Quit: yes leaving] 23:06:07 -!- jhemann [~Jason@extfw.bloomington.in.gov] has quit [Ping timeout: 264 seconds] 23:16:34 -!- bowski [8672b3e0@gateway/web/freenode/ip.134.114.179.224] has quit [Quit: Page closed] 23:20:39 -!- karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has quit [Remote host closed the connection] 23:26:59 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 23:27:05 jhemann [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has joined #scheme 23:28:53 -!- ijp [~user@host109-154-212-218.range109-154.btcentralplus.com] has quit [Ping timeout: 246 seconds] 23:30:53 karswell [~coat@93-97-29-243.zone5.bethere.co.uk] has joined #scheme 23:31:07 -!- es [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Remote host closed the connection] 23:31:22 estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 23:37:58 -!- amgarchIn9 [~amgarchin@p4FD619ED.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 23:39:02 kvda [~kvda@202.58.240.18] has joined #scheme 23:51:27 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Quit: leaving] 23:54:27 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 252 seconds] 23:58:17 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Ping timeout: 246 seconds]