00:06:56 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 00:29:59 -!- samth is now known as samth_away 00:31:13 -!- Quadrescence [~quad@unaffiliated/quadrescence] has quit [Quit: Leaving] 00:32:25 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 00:49:56 -!- tupi [~david@139.82.89.24] has quit [Quit: Leaving] 01:08:48 jrslepak [~jrslepak@c-71-233-148-123.hsd1.ma.comcast.net] has joined #scheme 01:12:09 -!- wingo [~wingo@c-174-62-76-134.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 01:13:55 -!- leppie [~lolcow@196-210-143-218.dynamic.isadsl.co.za] has quit [Ping timeout: 264 seconds] 01:17:56 leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has joined #scheme 01:25:30 -!- confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 01:26:56 confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has joined #scheme 01:29:55 -!- ssbr_ [~ssbr@python/site-packages/ssbr] has quit [Ping timeout: 265 seconds] 01:35:37 -!- dgs_ [~dgs@203-97-51-73.dsl.clear.net.nz] has quit [Quit: Leaving] 01:38:57 -!- confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 01:38:58 -!- kvda [~kvda@202.58.240.18] has quit [Quit: x__x] 01:40:20 confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has joined #scheme 01:42:15 -!- CarterL1 [~Carter@adsl-75-13-226-26.dsl.spfdmo.sbcglobal.net] has quit [Read error: Connection reset by peer] 01:43:12 CarterL [~Carter@adsl-75-13-226-26.dsl.spfdmo.sbcglobal.net] has joined #scheme 01:44:05 -!- gabot [~eli@winooski.ccs.neu.edu] has quit [Ping timeout: 252 seconds] 01:44:50 -!- jao [~user@pdpc/supporter/professional/jao] has quit [Remote host closed the connection] 01:57:41 -!- masm [~masm@bl17-201-211.dsl.telepac.pt] has quit [Quit: Leaving.] 01:57:49 -!- leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has quit [Ping timeout: 246 seconds] 01:58:36 virl [~virl__@85-127-156-45.dynamic.xdsl-line.inode.at] has joined #scheme 02:02:37 leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has joined #scheme 02:04:19 -!- bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has quit [Ping timeout: 276 seconds] 02:06:34 -!- ASau` [~user@128-72-117-212.broadband.corbina.ru] has quit [Remote host closed the connection] 02:07:05 ASau` [~user@128-72-117-212.broadband.corbina.ru] has joined #scheme 02:13:35 -!- leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has quit [Ping timeout: 250 seconds] 02:18:23 leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has joined #scheme 02:22:36 Fare [~Fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has joined #scheme 02:24:57 -!- leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has quit [Ping timeout: 252 seconds] 02:25:44 -!- bfgun [~b_fin_g@r186-50-201-218.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 265 seconds] 02:27:01 -!- acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has quit [Ping timeout: 250 seconds] 02:29:11 -!- futilius [~futilius_@ip72-220-161-181.sd.sd.cox.net] has quit [Quit: Leaving] 02:29:15 acarrico [~acarrico@pppoe-68-142-57-27.gmavt.net] has joined #scheme 02:29:24 leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has joined #scheme 02:30:38 -!- CarterL [~Carter@adsl-75-13-226-26.dsl.spfdmo.sbcglobal.net] has left #scheme 02:32:04 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 02:35:58 -!- X-Scale [name@2001:470:1f14:135b::2] has quit [Remote host closed the connection] 02:40:45 -!- leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has quit [Ping timeout: 260 seconds] 02:45:23 leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has joined #scheme 02:47:31 realitygrill [~realitygr@adsl-76-226-129-107.dsl.sfldmi.sbcglobal.net] has joined #scheme 02:49:59 -!- leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has quit [Ping timeout: 250 seconds] 02:51:17 -!- turbofail [~user@c-24-5-89-172.hsd1.ca.comcast.net] has quit [Ping timeout: 250 seconds] 02:54:11 leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has joined #scheme 02:58:55 -!- leppie [~lolcow@196-210-179-126.dynamic.isadsl.co.za] has quit [Ping timeout: 276 seconds] 03:02:59 leppie [~lolcow@196.215.142.236] has joined #scheme 03:11:36 -!- leppie [~lolcow@196.215.142.236] has quit [Ping timeout: 252 seconds] 03:15:07 -!- homie` [~levgue@xdsl-87-79-195-211.netcologne.de] has quit [Read error: Connection reset by peer] 03:16:41 homie` [~levgue@xdsl-87-79-195-211.netcologne.de] has joined #scheme 03:16:54 leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has joined #scheme 03:18:23 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Read error: Connection reset by peer] 03:19:52 didi [~user@unaffiliated/didi/x-1022147] has joined #scheme 03:20:59 -!- MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has quit [Ping timeout: 245 seconds] 03:31:54 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 03:32:11 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Quit: WeeChat 0.3.7] 03:34:15 lolcow [~lolcow@196.215.142.236] has joined #scheme 03:35:22 foof: you missed the point :) 03:35:29 rudybot: (string->number "0x10") 03:35:30 lolcow: your sandbox is ready 03:35:30 lolcow: ; Value: #f 03:35:34 ;p 03:35:49 -!- leppie [~lolcow@196-210-234-188.dynamic.isadsl.co.za] has quit [Ping timeout: 260 seconds] 03:36:01 -!- lolcow is now known as leppie 03:38:10 kvda [~kvda@202.58.240.18] has joined #scheme 03:43:56 adu [~ajr@pool-71-241-252-15.washdc.fios.verizon.net] has joined #scheme 03:47:39 -!- MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has left #scheme 03:50:16 foof: I also misinterpreted R6RS's stance on this, hence my confusion. 03:52:30 -!- homie` [~levgue@xdsl-87-79-195-211.netcologne.de] has quit [Ping timeout: 265 seconds] 03:55:05 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 04:05:18 rudybot: (string->number "#x10") 04:05:19 cky: your sandbox is ready 04:05:19 cky: ; Value: 16 04:05:25 leppie: ^^--- 04:06:04 leppie: Oh wait, I think you made the same point earlier. 04:09:32 rudybot: (string->number "#x10" 2) 04:09:32 adu: your sandbox is ready 04:09:33 adu: ; Value: 16 04:18:47 MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has joined #scheme 04:36:27 chrissbx [~chrissbx@c-24-128-170-41.hsd1.ma.comcast.net] has joined #scheme 04:37:00 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 04:37:10 FreeArtMan [~fam@213.175.106.134] has joined #scheme 04:41:15 -!- estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Remote host closed the connection] 04:56:50 -!- Fare [~Fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 246 seconds] 04:58:18 t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has joined #scheme 05:01:23 -!- forcer [~forcer@hmbg-4d06f423.pool.mediaWays.net] has quit [Ping timeout: 246 seconds] 05:10:32 Quadrescence [~quad@unaffiliated/quadrescence] has joined #scheme 05:15:22 quiet 05:15:50 *crickets* 05:27:02 replore_ [~replore@203.152.213.161.static.zoot.jp] has joined #scheme 05:30:01 rudybot: (log 16 2) 05:30:01 adu: error: log: expects 1 argument, given 2: 16 2 05:31:44 Flatlander [~tomppa@b27.kiulu.jyu.fi] has joined #scheme 05:32:08 -!- edw [~user@li246-89.members.linode.com] has quit [Ping timeout: 240 seconds] 05:32:19 rudybot: (define (logb n b) (/ (log n) (log b))) 05:32:20 cky: Done. 05:32:24 rudybot: (logb 16 2) 05:32:24 cky: ; Value: 4.0 05:32:27 adu: ^^--- 05:33:49 cdidd [~cdidd@128-72-247-227.broadband.corbina.ru] has joined #scheme 05:38:06 -!- kvda [~kvda@202.58.240.18] has quit [Quit: x__x] 05:40:34 is R7RS-large going to have named parameters and hashtables? 05:46:10 I can imagine an insane amount of bikeshedding around hashtables, just because it's impossible to satisfy both SRFI 69 and R6RS hash tables. 05:51:05 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 05:53:29 attila_lendvai [~attila_le@87.247.12.90] has joined #scheme 05:53:29 -!- attila_lendvai [~attila_le@87.247.12.90] has quit [Changing host] 05:53:29 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 05:54:39 cky: other than the extra - are they fundamentally different? 06:16:38 -!- chrissbx [~chrissbx@c-24-128-170-41.hsd1.ma.comcast.net] has quit [Ping timeout: 246 seconds] 06:23:38 turbofail [~user@99-121-57-65.lightspeed.sntcca.sbcglobal.net] has joined #scheme 06:24:45 -!- mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has quit [Ping timeout: 244 seconds] 06:26:56 forcer [~forcer@hmbg-5f7647f2.pool.mediaWays.net] has joined #scheme 06:26:59 gravicappa [~gravicapp@ppp91-77-176-196.pppoe.mtu-net.ru] has joined #scheme 06:29:04 -!- t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has quit [] 06:45:42 -!- adu [~ajr@pool-71-241-252-15.washdc.fios.verizon.net] has quit [Quit: adu] 06:47:15 mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has joined #scheme 06:48:29 -!- realitygrill [~realitygr@adsl-76-226-129-107.dsl.sfldmi.sbcglobal.net] has quit [Quit: Computer has gone to sleep] 06:53:48 -!- jonrafkind [~jon@jonr5.dsl.xmission.com] has quit [Ping timeout: 252 seconds] 07:06:06 -!- FreeArtMan [~fam@213.175.106.134] has quit [Remote host closed the connection] 07:10:53 -!- jlongster [~user@pool-96-253-85-90.rcmdva.fios.verizon.net] has quit [Ping timeout: 246 seconds] 07:20:53 -!- MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has quit [Ping timeout: 245 seconds] 07:26:34 -!- rageous [~Adium@65-128-192-112.mpls.qwest.net] has quit [Ping timeout: 260 seconds] 07:32:38 -!- Flatlander [~tomppa@b27.kiulu.jyu.fi] has quit [Quit: Leaving] 07:35:02 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 07:35:48 peterhil` [~peterhil@gatekeeper.brainalliance.com] has joined #scheme 07:43:47 t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has joined #scheme 07:43:50 jhemann_ [Jason@156-56-193-239.ssl-vpn.indiana.edu] has joined #scheme 07:45:12 ;[ 07:47:13 -!- jhemann [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has quit [Ping timeout: 250 seconds] 07:50:21 -!- didi [~user@unaffiliated/didi/x-1022147] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 08:05:05 -!- SHODAN [~shozan@c-b3b5e253.011-86-73746f30.cust.bredbandsbolaget.se] has quit [Ping timeout: 260 seconds] 08:05:22 tomodo [~tomodo@gateway/tor-sasl/tomodo] has joined #scheme 08:07:01 -!- sawjig [~sawjig@gateway/tor-sasl/sawjig] has quit [Ping timeout: 276 seconds] 08:09:51 MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has joined #scheme 08:13:15 -!- cdidd [~cdidd@128-72-247-227.broadband.corbina.ru] has quit [Remote host closed the connection] 08:19:35 pumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 08:19:39 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Read error: Connection reset by peer] 08:19:43 -!- pumpkin is now known as copumpkin 08:30:24 is anyone interested in help me writing one scheme function for $20 ? please msg me in private 08:30:32 Lol. 08:30:52 Given my usual hourly rate, I'm not going to code something for $20. 08:31:05 It's either so trivial that it's free, or else it's worth a lot more than that. 08:31:17 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 248 seconds] 08:31:21 probably trivial ;[ 08:31:38 Well, then maybe I can code it for free. You never know. 08:37:02 Skola [~Skola@89.184.179.185] has joined #scheme 08:39:09 keenbug [~daniel@p4FE38F15.dip.t-dialin.net] has joined #scheme 08:40:42 08:39:27 Portability, in Scheme? Surely you jest. 08:40:45 08:39:39 Portable Scheme is an oxymoron. 08:41:53 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Read error: Connection reset by peer] 08:48:37 -!- tomodo [~tomodo@gateway/tor-sasl/tomodo] has quit [Quit: Lost terminal] 08:49:39 tomodo [~tomodo@gateway/tor-sasl/tomodo] has joined #scheme 08:52:22 chemuduguntar [~ravi@118-93-78-231.dsl.dyn.ihug.co.nz] has joined #scheme 08:57:13 -!- tokiya_ [~tokiya@210.24.42.190] has quit [Remote host closed the connection] 09:03:32 -!- virl [~virl__@85-127-156-45.dynamic.xdsl-line.inode.at] has quit [Read error: Connection reset by peer] 09:13:04 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 245 seconds] 09:20:07 cky: Why is that? 09:20:54 -!- wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has quit [Quit: Lost terminal] 09:21:00 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 09:21:26 Arafangion`: My point is that, to write portable Scheme, you have to go to the lowest common denominator, and you can't do anything actually useful without reimplementing everything yourself. 09:21:32 wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has joined #scheme 09:21:54 Arafangion`: I'd much rather target a specific Scheme implementation, like Racket, Guile, or Chicken, and use the functionality that comes with the implementation I chose to its maximum. 09:21:55 cky: That makes it infeasible for applications, but what about libraries? 09:22:14 Arafangion`: I've written libraries that are implementation-specific, too. 09:22:29 Arafangion`: For example, I recently ported SRFI 41's reference implementation to Guile, using a truckload of Guile-specific stuff. 09:22:43 Soon, I'll port that to Racket, to take advantage of Racket-specific functionality. 09:23:29 -!- turbofail [~user@99-121-57-65.lightspeed.sntcca.sbcglobal.net] has quit [Ping timeout: 260 seconds] 09:23:32 I consider maximising the use of a platform's facilities to be more important than portability, especially when it comes to Scheme. 09:23:33 cky: At least the scheme implementations themselves can be very portable(?) 09:23:42 Eh? 09:24:20 cky: In other words, it shouldn't be difficult to make that Racket implementation work on windows, linux, mac os x, perhaps even the Android? 09:25:21 cky: I'm a wannabe scheme programmer, I must warn you. :( 09:25:32 (Which is to say, I like, scheme, and want to program in it, but I don't (yet)) 09:26:59 Arafangion`: That isn't what portability means when people talk about portable Scheme programs. 09:27:14 Arafangion`: What people usually mean is that a Scheme program runs correctly on many different Scheme implementations. 09:27:33 For example, a program that works unmodified in Racket, Chez, Larceny, Chicken, SISC, etc. would qualify as portable. 09:28:17 I see that kind of portability as a fool's dream. 09:28:26 Yes, I'm aware fo that - it's almost a uniquely scheme view of portability, it seems. 09:28:28 At least given the current state of Scheme implementations. 09:28:31 And I find that very interesting. 09:31:23 I mean, consider python. People frequently try to make their python programs portable on any implementation... But those implementations are only valid if they behave the same as the standard python. 09:31:43 And yet, my python programs frequently only work on a specific version of that standard python. 09:33:23 kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has joined #scheme 09:33:35 Languages like Python, Perl (5 and below), and Ruby all have the same problem. They're specified by a reference implementation, rather than having a real specification. 09:34:34 The problem with that is that non-reference implementations are strongly pressured to overfit the reference implementation, i.e., implement all the bugs and misfeatures that the reference implementation happens to have. 09:34:58 Yep, but at the same time, I wonder if that's really a practical problem. 09:35:06 Python implementations seem to be allowed to vary. 09:35:48 For example, IronPython has some differences in string handling (so I'm told), and programmers are being taught not to rely on the supposedly deterministic destruction afforded by reference counting in CPython. 09:35:52 It is. For example, JRuby has its own implementation of quicksort, despite that Java has a built-in merge sort, so that Array#sort has identical behaviour to the reference implementation (including instability of sort, etc.). 09:36:25 cky: That's wacked! Java's sorting is probably superior to Ruby's sort. :( 09:36:45 That's one example of the "overfitting" I mentioned. 09:36:59 *Arafangion`* pats timsort. 09:37:18 That's a _clear_ example, indeed. 09:37:32 tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has joined #scheme 09:37:37 Some programmers probably prefer that, though. 09:38:16 I think Java and C# fall into that same category, as well, and claim it's an advantage. 09:49:23 -!- replore_ [~replore@203.152.213.161.static.zoot.jp] has quit [Remote host closed the connection] 09:50:13 Well, yes and no. In theory, both Java and C# have proper specifications. 09:50:47 For example, there are completely independent implementations of the Java platform as well as .NET, such as Apache Harmony and Mono, respectively. 09:52:30 replore_ [~replore@203.152.213.161.static.zoot.jp] has joined #scheme 09:52:57 Yes, yet people look down on mono because it doesn't have, for example, a completely 100% implemented winforms or WPF implementation. 09:53:10 So in practice, people seem to be expecting an exact API similarity as well. 09:53:49 -!- replore_ [~replore@203.152.213.161.static.zoot.jp] has quit [Remote host closed the connection] 09:54:43 Yeah. 10:00:03 add^_ [~add^_^@m83-185-142-102.cust.tele2.se] has joined #scheme 10:01:19 can you give me an example how do I use variables in scheme, for example (- 5 6) how do I assign the result to my own variable? 10:01:43 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 245 seconds] 10:02:50 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 10:03:30 noam [~noam@37.142.141.69] has joined #scheme 10:03:42 t0lkman: depends on what scope you want. at the top-level you can do something like (define foo (- 5 6)) 10:04:06 -!- noam__ [~noam@37.142.141.69] has quit [Ping timeout: 252 seconds] 10:04:43 t0lkman: for lexically scoped bindings, you could do something like (let ((foo (- 5 6))) ...) 10:05:50 thanks 10:07:17 t0lkman: to reassign, (set! foo (- 5 6)) ;; but you might want to avoid mutation in general 10:09:00 t0lkman: a more functional style could be to compute some value and pass it via the stack to another function. in the new function, that value will be bound to a lexically scoped parameter 10:09:13 depends how you want to factor your code 10:10:01 masm [~masm@bl17-201-211.dsl.telepac.pt] has joined #scheme 10:13:18 -!- Skola [~Skola@89.184.179.185] has quit [Quit: Changing server] 10:18:11 -!- chemuduguntar [~ravi@118-93-78-231.dsl.dyn.ihug.co.nz] has quit [Remote host closed the connection] 10:22:41 iffsid [~user@c-98-222-193-118.hsd1.in.comcast.net] has joined #scheme 10:22:41 arcfide [~arcfide@c-98-223-204-153.hsd1.in.comcast.net] has joined #scheme 10:23:29 -!- kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has quit [Ping timeout: 245 seconds] 10:31:37 -!- iffsid [~user@c-98-222-193-118.hsd1.in.comcast.net] has left #scheme 10:32:53 is there anyway to rewrite this function http://pastebin.com/fjGcGq1v without using "member" built-in function? 10:37:16 Yes. 10:38:08 I didn't even need to look at the page to say that, because member isn't magically built-in, it's definable in Scheme. 10:45:47 -!- DGASAU [~user@91.218.144.129] has quit [Remote host closed the connection] 10:45:48 t0lkman: what do you mean? 10:46:18 t0lkman: this algorithm may be slow 10:46:29 you could write a faster method of removing duplicates 10:46:48 of course that doesn't matter since your list is length 8 10:47:44 yes , i don't care about speed 10:48:37 what do you caer about? 10:48:52 don;t use any built-in function 10:48:55 like 'member' 10:49:05 ok 10:49:14 just write it from scratch them 10:49:22 think of a simple method to remove duplicates 10:49:50 any ideas? 10:49:54 Just think about what member does and code that. 10:50:39 I found member's logic 10:51:01 but I am not allowed to use second user defined function 10:58:34 visar [~visar@77.29.156.49] has joined #scheme 11:01:42 Hm, that seems like a silly restriction. I'm not immediately sure how I'd do it without using another define (or letrec :-P). 11:02:23 Maybe I'm probably missing something though... 11:05:06 -!- t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 11:05:22 t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has joined #scheme 11:05:50 DGASAU [~user@91.218.144.129] has joined #scheme 11:17:28 the algorithm is O(n^2) 11:17:30 you can't write it as a single loop over the list, that is O(n) 11:18:25 it's not possible to improve upon O(n^2) if you only have an equality test (since you have to test every element against every other) 11:18:42 if you have an ordering you can compute this faster (by sorting the list first) 11:25:24 dzhus [~sphinx@176.14.94.92] has joined #scheme 11:31:39 and`` [~hdsufhe3@ti0035a380-dhcp0788.bb.online.no] has joined #scheme 11:35:10 gavino [~g@pool-108-13-218-184.lsanca.fios.verizon.net] has joined #scheme 11:41:35 But, you could do it with call/cc and backtracking or something, right?: -) 11:42:38 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Ping timeout: 240 seconds] 11:42:56 attila_lendvai [~attila_le@176.222.150.6] has joined #scheme 11:43:01 -!- attila_lendvai [~attila_le@176.222.150.6] has quit [Changing host] 11:43:01 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 11:53:39 -!- visar [~visar@77.29.156.49] has quit [Ping timeout: 265 seconds] 12:09:19 -!- gavino [~g@pool-108-13-218-184.lsanca.fios.verizon.net] has quit [Remote host closed the connection] 12:12:28 -!- gravicappa [~gravicapp@ppp91-77-176-196.pppoe.mtu-net.ru] has quit [Ping timeout: 244 seconds] 12:15:03 -!- t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 12:15:16 t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has joined #scheme 12:21:41 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 12:22:08 -!- jrslepak [~jrslepak@c-71-233-148-123.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 12:23:38 -!- tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has quit [Ping timeout: 240 seconds] 12:35:04 kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has joined #scheme 12:37:29 attila_lendvai [~attila_le@176.222.158.66] has joined #scheme 12:37:29 -!- attila_lendvai [~attila_le@176.222.158.66] has quit [Changing host] 12:37:30 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 12:39:07 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 264 seconds] 12:46:06 -!- ecraven [~nex@www.nexoid.at] has quit [Quit: brb] 12:49:18 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 12:50:13 -!- MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has left #scheme 12:53:40 ecraven [~nex@www.nexoid.at] has joined #scheme 12:58:57 tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has joined #scheme 13:03:00 soveran [~soveran@186.19.214.247] has joined #scheme 13:05:14 ngz [~user@198.111.193.77.rev.sfr.net] has joined #scheme 13:08:13 Radium_ [~carbon@117.203.12.168] has joined #scheme 13:08:17 -!- Radium [~carbon@117.203.17.99] has quit [Ping timeout: 252 seconds] 13:10:44 -!- tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has quit [Ping timeout: 252 seconds] 13:12:56 cky: the little point was that Scheme does not kindly to C based syntax aka "0x10" ;p 13:13:37 damn it feels good to be a Scheme grammar nazi 13:14:27 -!- arcfide [~arcfide@c-98-223-204-153.hsd1.in.comcast.net] has quit [Quit: Leaving] 13:14:46 -!- leppie [~lolcow@196.215.142.236] has quit [] 13:16:37 leppie [~lolcow@196.215.142.236] has joined #scheme 13:18:55 -!- t0lkman [~Talkman@c-67-170-223-126.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 13:19:39 -!- leppie [~lolcow@196.215.142.236] has quit [Client Quit] 13:22:38 leppie [~lolcow@196.215.142.236] has joined #scheme 13:23:11 sawjig [~sawjig@gateway/tor-sasl/sawjig] has joined #scheme 13:26:59 -!- Nshag [user@chl45-1-88-123-84-8.fbx.proxad.net] has quit [Quit: Quitte] 13:30:09 visar [~visar@77.29.125.105] has joined #scheme 13:32:09 ahinki [~chatzilla@212.99.10.150] has joined #scheme 13:35:04 FreeArtMan [~fam@213.175.106.134] has joined #scheme 13:35:32 realitygrill [~realitygr@76.226.198.91] has joined #scheme 13:36:15 yamanu [~yamanu@cpe-212-18-40-64.static.amis.net] has joined #scheme 13:36:42 -!- yamanu [~yamanu@cpe-212-18-40-64.static.amis.net] has left #scheme 13:47:38 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 13:50:12 MrFahrenheit [~RageOfTho@users-55-233.vinet.ba] has joined #scheme 13:54:10 gravicappa [~gravicapp@ppp91-77-176-196.pppoe.mtu-net.ru] has joined #scheme 13:58:04 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 13:58:31 -!- and`` [~hdsufhe3@ti0035a380-dhcp0788.bb.online.no] has quit [Remote host closed the connection] 14:01:56 mark_weaver [~user@209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #scheme 14:07:50 -!- confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has quit [Quit: Lost terminal] 14:21:54 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 14:28:43 chupish [182c5af4@gateway/web/freenode/ip.24.44.90.244] has joined #scheme 14:31:20 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 14:38:13 -!- kk` [~kk@unaffiliated/kk/x-5380134] has quit [Ping timeout: 248 seconds] 14:39:57 Radium [~carbon@117.203.9.127] has joined #scheme 14:40:09 -!- Radium_ [~carbon@117.203.12.168] has quit [Ping timeout: 250 seconds] 14:49:19 -!- ahinki [~chatzilla@212.99.10.150] has quit [Ping timeout: 245 seconds] 14:49:46 ahinki [~chatzilla@212.99.10.150] has joined #scheme 14:51:07 stis [~stis@1-1-1-39a.veo.vs.bostream.se] has joined #scheme 14:51:20 -!- ahinki [~chatzilla@212.99.10.150] has quit [Client Quit] 14:55:01 -!- kpal [~kpal@janus-nat-128-240-225-120.ncl.ac.uk] has quit [Read error: Connection reset by peer] 15:02:39 -!- samth_away is now known as samth 15:06:48 Fare [~Fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has joined #scheme 15:10:03 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 15:11:43 cdidd [~cdidd@37-144-56-245.broadband.corbina.ru] has joined #scheme 15:26:07 omg we have a celebrity in here (offby1) http://stackoverflow.com/questions/1395053/why-does-git-branch-t-fail-with-not-tracking-ambiguous-information#comment4706135_1856506 15:26:07 http://tinyurl.com/75geefj 15:42:25 -!- wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has quit [Ping timeout: 246 seconds] 15:49:08 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Quit: leaving] 15:49:46 dnolen [aa95640a@gateway/web/freenode/ip.170.149.100.10] has joined #scheme 15:50:43 _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has joined #scheme 15:51:43 -!- visar [~visar@77.29.125.105] has quit [Ping timeout: 265 seconds] 15:58:58 -!- fhd [~fhd@vserver2179.vserver-on.de] has quit [Ping timeout: 265 seconds] 15:59:39 fhd [~fhd@vserver2179.vserver-on.de] has joined #scheme 16:00:28 -!- peterhil` [~peterhil@gatekeeper.brainalliance.com] has quit [Ping timeout: 245 seconds] 16:01:43 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 16:04:54 -!- hypnocat [~hypnocat@unaffiliated/hypnocat] has left #scheme 16:08:27 wtetzner [~wtetzner@c-24-218-217-69.hsd1.ma.comcast.net] has joined #scheme 16:12:15 antithesis [~antithesi@81.71.110.7] has joined #scheme 16:35:57 attila_lendvai [~attila_le@176.222.158.66] has joined #scheme 16:35:58 -!- attila_lendvai [~attila_le@176.222.158.66] has quit [Changing host] 16:35:58 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #scheme 16:40:52 Kucuq [b206c308@gateway/web/freenode/ip.178.6.195.8] has joined #scheme 16:43:11 I'm new to scheme. Is it possible to write a macro so that \hello is equivanlent to "hello"? like 'hello is like (quote hello)? 16:43:53 -!- realitygrill [~realitygr@76.226.198.91] has quit [Quit: Computer has gone to sleep] 16:43:53 Yes, it is possible. 16:46:54 I don't think it's possible in standard scheme without writing a new reader, but of course it can done with a particular scheme implementation. 16:47:42 Ah, yes, of course. You can write a macro (\ hello) --> "hello"; perhaps you have to type \\ to name it \. 16:47:56 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 16:48:21 pjb: \ is not a valid identifier character in the R5RS. 16:48:49 pjb: I guess you missunderstood me. I wanted an alternative syntax for "...". hello was just an example 16:49:42 Yes. I missunderstood you. In standard r5rs there's no provision for reader macros. As mark_weaver said, you would have to write a new reader. 16:51:59 ok, thank you 16:52:46 just sed the input! 16:52:59 sed the walrus 16:53:18 Kucuq: An alternative to writing a new reader is to modify your existing reader via e.g. set-read-syntax!, set-sharp-read-syntax!, &c., if you're using Chicken. 16:53:45 jonrafkind [~jon@crystalis.cs.utah.edu] has joined #scheme 16:54:00 yep, i'm with chicken 16:55:01 tupi [~david@139.82.89.24] has joined #scheme 16:56:27 I'm with stupid -------> 16:59:57 Kucuq: In that case: . 17:05:04 Kucuq: I did something similar so that I could write Scheme that looked like LaTeX. 17:06:26 klutometis: Freak. 17:06:49 I saw cl that looked (and worked) like prolog. It was horrible. Man, i hate prolog. 17:06:59 klutometis: and using Perl as the intermediatary language? 17:07:34 Kucuq: learn to like it, it's great. 17:09:31 Kucuq: how do you feel about SQL? 17:11:07 leppie: Heh; I was trying to coerce LaTeX into something like SXML, so I could do list-like transformations of LaTeX documents. 17:11:17 It had a purpose, I think; wasn't merely sado-masochistic. 17:11:30 SQL is ok. 17:12:08 By "like SXML," I mean sLaTeX; or, "LaTeX in S-expressions." slatex seems to have been taken, however, by someone doing the opposite. 17:13:06 -!- REPLeffect [~REPLeffec@69.54.115.254] has quit [Quit: bye] 17:13:25 wingo [~wingo@50-0-91-176.dsl.dynamic.sonic.net] has joined #scheme 17:13:35 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 252 seconds] 17:15:25 -!- ngz [~user@198.111.193.77.rev.sfr.net] has quit [Ping timeout: 252 seconds] 17:18:01 bfig [~b_fin_g@r186-50-188-254.dialup.adsl.anteldata.net.uy] has joined #scheme 17:23:27 jao [~user@160.Red-81-39-169.dynamicIP.rima-tde.net] has joined #scheme 17:23:41 -!- jao [~user@160.Red-81-39-169.dynamicIP.rima-tde.net] has quit [Changing host] 17:23:41 jao [~user@pdpc/supporter/professional/jao] has joined #scheme 17:27:31 -!- pygospa [~Pygosceli@kiel-4dbede22.pool.mediaWays.net] has quit [Disconnected by services] 17:27:42 pygospa [~Pygosceli@kiel-d9bfd4c2.pool.mediaWays.net] has joined #scheme 17:27:49 jewel [~jewel@196-215-16-219.dynamic.isadsl.co.za] has joined #scheme 17:29:11 ngz [~user@198.111.193.77.rev.sfr.net] has joined #scheme 17:29:42 gavino [~ddcgavins@pool-108-13-218-184.lsanca.fios.verizon.net] has joined #scheme 17:29:54 -!- gavino [~ddcgavins@pool-108-13-218-184.lsanca.fios.verizon.net] has left #scheme 17:33:24 REPLeffect [~REPLeffec@69.54.115.254] has joined #scheme 17:33:29 and the crowd goes wild \o/ \o/ \o/ \o/ 17:34:42 MichaelRaskin [~MichaelRa@3ad50e34.broker.freenet6.net] has joined #scheme 17:42:26 -!- REPLeffect [~REPLeffec@69.54.115.254] has quit [Quit: bye] 17:50:13 ssbr_ [~ssbr@python/site-packages/ssbr] has joined #scheme 17:50:13 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 272 seconds] 17:52:55 -!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 264 seconds] 17:53:31 REPLeffect [~REPLeffec@69.54.115.254] has joined #scheme 17:54:24 klutometis: could you use something like Scribble's reader? http://docs.racket-lang.org/scribble/reader.html 17:54:42 you could even attempt to redefine the @ character & then define some custom handlers... 17:54:57 might be more work than necessary, though that was the first thing I thought of. 17:55:24 turbofail [~user@c-24-5-89-172.hsd1.ca.comcast.net] has joined #scheme 18:05:25 cyphase [~cyphase@unaffiliated/cyphase] has joined #scheme 18:05:49 mmalorni [~mmalorni@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:08:01 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 18:08:35 What does the & funtion in scheme? is it like $ in haskell? 18:08:41 kudkudyak [~user@94.72.150.209] has joined #scheme 18:08:49 Kucuq: I've never seen & used in Scheme. 18:09:02 gabot [~eli@winooski.ccs.neu.edu] has joined #scheme 18:09:03 Kucuq: I have seen it used plenty in Clojure, though, which is used for rest arguments. 18:09:54 estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 18:10:10 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Remote host closed the connection] 18:10:20 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:10:36 antithesis_ [~antithesi@81.71.110.7] has joined #scheme 18:10:41 http://paste.lisp.org/+2RH4 18:10:50 -!- antithesis_ [~antithesi@81.71.110.7] has quit [Remote host closed the connection] 18:11:05 it chicken... i have no clue what it does 18:11:09 it's 18:11:56 mmmalorni [~mmmalorni@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:12:00 OMG. That is definitely some DSL I've never seen. 18:12:12 -!- FreeArtMan [~fam@213.175.106.134] has quit [Quit: Out of this 3D] 18:12:13 Is that a synatx for monads? 18:12:15 No. 18:12:26 It's a syntax defined by whatever's defining your define-page and

. 18:12:35 kinda orm-ey framework-ey 18:12:38 Oh wait. 18:12:40 Kucuq: what is the rest of your stack 18:12:47 & is the result of $db-row-obj. 18:12:50 Duh. 18:13:10 So if you replaced all the & with foo, that'd work too. 18:13:26 Ouch. I was confused. 18:13:40 I know, right. 18:13:41 They should call it "result" in a doc... 18:13:44 Yeah. 18:14:46 mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has joined #scheme 18:15:12 kuribas [~user@d54C43316.access.telenet.be] has joined #scheme 18:26:23 -!- tomodo [~tomodo@gateway/tor-sasl/tomodo] has quit [Remote host closed the connection] 18:26:36 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Remote host closed the connection] 18:31:38 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:32:14 amgarchIn9 [~amgarchin@p4FD6181E.dip0.t-ipconnect.de] has joined #scheme 18:34:46 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Read error: Connection reset by peer] 18:34:55 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:35:12 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Remote host closed the connection] 18:36:16 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:39:58 gavino [~ddcgavins@pool-108-13-218-184.lsanca.fios.verizon.net] has joined #scheme 18:40:39 -!- gavino [~ddcgavins@pool-108-13-218-184.lsanca.fios.verizon.net] has left #scheme 18:41:40 can i map multipe parameters? like (map (lambda (a b c) (+ a b c)) (list (list 1 2 3) (list 5 6 7)) ) should be (6 18) 18:45:06 rudybot: (map + '(1 5) '(2 6) '(3 7)) 18:45:06 cky: ; Value: (6 18) 18:45:23 is there any scheme library to generate uuids? 18:48:52 gcartier: for Racket, yes http://planet.racket-lang.org/display.ss?package=uuid-v4.plt&owner=zitterbewegung 18:49:00 http://tinyurl.com/6r5o57g 18:49:00 (I don't know of a portable impl. off the top of my head) 18:49:32 Looks like Chicken too http://wiki.call-cc.org/eggref/4/uuid-lib 18:51:11 visar [~visar@77.29.125.105] has joined #scheme 18:51:18 thanks 18:51:58 rudybot (map + '( 1 2 3) '( 5 6 7)) 18:52:10 rudybot: (map + '( 1 2 3) '( 5 6 7)) 18:52:11 Kucuq: your sandbox is ready 18:52:11 Kucuq: ; Value: (6 8 10) 18:53:30 rudybot: (apply map + (map list '(1 2 3) '(5 6 7))) 18:53:30 leppie: your sandbox is ready 18:53:30 leppie: ; Value: (6 18) 18:53:57 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Remote host closed the connection] 18:55:30 gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has joined #scheme 18:56:17 chturne [~chturne@host86-136-158-113.range86-136.btcentralplus.com] has joined #scheme 18:59:22 No, this is not what i'm looking for. I'm looking for something like this: 19:00:42 http://paste.lisp.org/+2RH7 19:02:01 and what is wrong with that? 19:02:09 wollw [~davidsher@75-101-85-170.dsl.dynamic.sonic.net] has joined #scheme 19:02:14 rudybot: (map (lambda (x) (apply + x)) '((1 2 3) (5 6 7))) 19:02:14 leppie: ; Value: (6 18) 19:05:28 that it looks a kind of ugly if + is a lambda. I was just wondering if there was a standart function for this 19:06:35 adu [~ajr@pool-71-241-252-15.washdc.fios.verizon.net] has joined #scheme 19:08:15 Kucuq, I suppose it would "look nicer" if you defined an auxiliary function, SUM, and mapped that over the list. 19:09:10 -!- gabot [~eli@winooski.ccs.neu.edu] has quit [Remote host closed the connection] 19:09:34 gabot [~eli@winooski.ccs.neu.edu] has joined #scheme 19:11:11 -!- gravicappa [~gravicapp@ppp91-77-176-196.pppoe.mtu-net.ru] has quit [Ping timeout: 246 seconds] 19:12:01 What chturne said. 19:12:06 rudybot: (define (sum x) (apply + x)) 19:12:07 cky: Done. 19:12:14 rudybot: (map sum '((1 2 3) (5 6 7))) 19:12:14 cky: ; Value: (6 18) 19:13:01 -!- visar [~visar@77.29.125.105] has left #scheme 19:14:41 bipt [~bpt@nom19190a.nomadic.ncsu.edu] has joined #scheme 19:18:47 confab [~confab@public-nat1.scc.losrios.edu] has joined #scheme 19:19:50 gravicappa [~gravicapp@ppp91-77-182-163.pppoe.mtu-net.ru] has joined #scheme 19:21:18 -!- estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Ping timeout: 245 seconds] 19:22:12 es [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 19:23:00 how do you do you form "outer products" of two lists? Say you would need all pairs (define (outer cons cars cdrs) ...) 19:23:03 estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has joined #scheme 19:25:19 kk` [~kk@unaffiliated/kk/x-5380134] has joined #scheme 19:26:04 or more general (outer n-ary-func list1 ... listn) 19:27:00 -!- es [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Ping timeout: 250 seconds] 19:27:09 amgarchIn9: I always found that to be surprisingly tricky. 19:30:26 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 19:30:28 amgarchIn9: here's a racket-specific way to do it 19:30:30 rudybot: (for*/list ([num (list 1 2 3)][letter (list 'a 'b 'c)]) (cons num letter)) 19:30:30 *offby1: your sandbox is ready 19:30:31 *offby1: ; Value: ((1 . a) (1 . b) (1 . c) (2 . a) (2 . b) (2 . c) (3 . a) (3 . b) (3 . c)) 19:33:53 tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has joined #scheme 19:34:47 mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has joined #scheme 19:35:59 tom_i [~thomasing@ingserv.demon.co.uk] has joined #scheme 19:41:20 yes, that is what I mean by "outer". I did that manually for binary func, and didnt like the solution. 19:43:08 -!- gravicappa [~gravicapp@ppp91-77-182-163.pppoe.mtu-net.ru] has quit [Ping timeout: 240 seconds] 19:46:19 snizzo [~Claudio@net-188-216-136-62.cust.dsl.vodafone.it] has joined #scheme 19:47:45 modulo concatenation, actually: (define (outer f as bs) (map (lambda (a) (map (lambda (b) (f a b)) bs)) as)). Anything more readable? 19:48:21 jhemann__ [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has joined #scheme 19:48:38 amgarchIn9, you need to pick all elements of all lists 19:49:15 -!- bipt [~bpt@nom19190a.nomadic.ncsu.edu] has quit [Read error: Connection reset by peer] 19:51:54 that is the counterpart of nested loops in imperative code. So it must be common. 19:52:08 (define (outer lst . rest) (if (null? rest) lst (map (concat-before lst) (outer rest))) 19:52:08 -!- jhemann_ [Jason@156-56-193-239.ssl-vpn.indiana.edu] has quit [Ping timeout: 240 seconds] 19:53:23 (define (outer lst . rest) (if (null? rest) lst (concatenate (map (concat-before lst) (outer rest)))) 19:55:00 (define (concat-before lst) (lambda (somelist) (map (lambda (node) (cons node somelist)) lst))) 19:55:27 homie [~levgue@xdsl-78-35-174-200.netcologne.de] has joined #scheme 19:55:49 -!- snizzo [~Claudio@net-188-216-136-62.cust.dsl.vodafone.it] has quit [Ping timeout: 260 seconds] 19:55:51 that will give you the outer product, so (define (outer-apply f . rest) (apply f (outer rest))) 19:56:21 amgarchIn9, reasonable? 20:02:28 looks scary. But I am a noob. That is also what list comprehensions seem to be for in other places. 20:07:53 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Ping timeout: 246 seconds] 20:08:07 ijp [~user@host86-182-156-174.range86-182.btcentralplus.com] has joined #scheme 20:10:41 -!- tom_i [~thomasing@ingserv.demon.co.uk] has quit [Ping timeout: 252 seconds] 20:12:00 offby1: why not just (map cons nums letters) ? 20:13:14 amgarchIn9: (map cons cars cdrs) 20:14:29 thats the "inner" product, outer is "each with each" 20:15:10 amgarchIn9: oh, sorry 20:16:03 (map (lambda (a) (map (lambda (d) (cons a d)) cdrs)) cars) 20:16:52 though srfi-42 provides more general list comprehensions, which may be nicer for this. 20:17:22 *amgarchIn9* reading 20:20:05 -!- adu [~ajr@pool-71-241-252-15.washdc.fios.verizon.net] has quit [Quit: adu] 20:21:00 in that last 'map' expression, the first 'map' should actually be 'append-map', but yeah, srfi-42 will probably be more to your liking. 20:21:50 yet another option is foof-loop, though imho stfi-42 is more in the spirit of scheme, fwiw. 20:22:13 amgarchIn9: cartesian product? 20:26:30 Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #scheme 20:26:33 -!- Skola [~bas@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Client Quit] 20:27:58 "cartesian" is somewhat too overloaded a word. But yes, people call it that way too. 20:31:20 cross join? ;p 20:34:56 -!- jhemann__ [~Jason@adsl-99-137-201-46.dsl.bltnin.sbcglobal.net] has quit [Ping timeout: 265 seconds] 20:35:18 leppie: quite :) 20:35:49 -!- confab [~confab@public-nat1.scc.losrios.edu] has quit [Quit: Lost terminal] 20:40:06 mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has joined #scheme 20:41:32 f8l [~f8l@77-255-7-152.adsl.inetia.pl] has joined #scheme 20:50:59 I want to code a blog. Could somebody tell me if i should use a named let or a fold to display all the posts? (or a do)? 20:51:52 probably a do 20:52:16 actually a fold since you are returning some html 20:53:44 #chicken told me to use let. but i think I'll go with fold 20:54:26 wait, you're programming a blog and you're not sure about this? 20:55:07 how have you solved the other million things related to servers/html? 20:55:25 you could use a named let but it doesnt really matter 20:55:35 No. I don't think that's a problem since #scheme gives different answers than #chicken. It seems thats obvious 20:56:03 jonrafkind: what about map? 20:56:32 s/obivious/not obvious/ 20:56:42 oh boy lets enumerate every possible way to aggregate a set of results. 3 down, only 23942834 to go? 20:56:47 jonrafkind: just curious 20:57:02 qu1j0t3: I was thinkt about a fold of a map of a query 20:57:08 thinking 20:57:22 jonrafkind: i suppose you're right, fold makes more sense. 20:57:39 jonrafkind: it's that kind of day when even that is more interesting than $WORK 20:59:57 lol 21:00:00 -!- homie [~levgue@xdsl-78-35-174-200.netcologne.de] has quit [Ping timeout: 252 seconds] 21:00:08 -!- gcartier [~gcartier@modemcable026.84-70-69.static.videotron.ca] has quit [Remote host closed the connection] 21:02:33 jhemann__ [~Jason@99.137.201.46] has joined #scheme 21:08:40 -!- cdidd [~cdidd@37-144-56-245.broadband.corbina.ru] has quit [Read error: Operation timed out] 21:08:40 -!- add^_ [~add^_^@m83-185-142-102.cust.tele2.se] has quit [Read error: Operation timed out] 21:09:21 add^_ [~add^_^@m83-185-142-102.cust.tele2.se] has joined #scheme 21:10:19 cdidd [~cdidd@37-144-56-245.broadband.corbina.ru] has joined #scheme 21:23:50 -!- Fare [~Fare@173-9-65-97-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 246 seconds] 21:24:33 bfgun [~b_fin_g@r186-50-161-172.dialup.adsl.anteldata.net.uy] has joined #scheme 21:24:34 does anybody know something about design patterns for functional gui code (in scheme)? 21:24:53 -!- ijp [~user@host86-182-156-174.range86-182.btcentralplus.com] has quit [Ping timeout: 246 seconds] 21:25:35 pothos_ [~pothos@114-36-237-8.dynamic.hinet.net] has joined #scheme 21:25:51 -!- pothos [~pothos@114-36-245-126.dynamic.hinet.net] has quit [Ping timeout: 252 seconds] 21:25:57 -!- pothos_ is now known as pothos 21:26:33 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 21:27:08 lcc [~user@unaffiliated/lcc] has joined #scheme 21:27:56 -!- bfig [~b_fin_g@r186-50-188-254.dialup.adsl.anteldata.net.uy] has quit [Ping timeout: 252 seconds] 21:30:19 -!- jhemann__ [~Jason@99.137.201.46] has quit [Ping timeout: 246 seconds] 21:31:42 -!- mmalorni [~mmalorni@modemcable026.84-70-69.static.videotron.ca] has quit [] 21:39:59 jhemann [Jason@140-182-226-85.dhcp-bl.indiana.edu] has joined #scheme 21:40:38 -!- amgarchIn9 [~amgarchin@p4FD6181E.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 21:42:21 -!- tomobrien [~tomobrien@host-92-2-79-163.as43234.net] has quit [Ping timeout: 244 seconds] 21:50:22 -!- antithesis [~antithesi@81.71.110.7] has quit [Remote host closed the connection] 21:51:34 -!- add^_ [~add^_^@m83-185-142-102.cust.tele2.se] has quit [Quit: add^_] 21:55:21 -!- stis [~stis@1-1-1-39a.veo.vs.bostream.se] has left #scheme 21:56:26 homie [~levgue@xdsl-78-35-174-200.netcologne.de] has joined #scheme 21:57:14 -!- mmmalorni [~mmmalorni@modemcable026.84-70-69.static.videotron.ca] has quit [Ping timeout: 245 seconds] 22:04:20 jrslepak [~jrslepak@nomad.ccs.neu.edu] has joined #scheme 22:04:21 cswords_ [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has joined #scheme 22:06:04 -!- lcc [~user@unaffiliated/lcc] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 22:07:23 pinged [~joe@86-46-141-57-dynamic.b-ras1.rtd.sligo.eircom.net] has joined #scheme 22:07:29 -!- homie [~levgue@xdsl-78-35-174-200.netcologne.de] has quit [Read error: Connection reset by peer] 22:07:55 -!- cswords [~cswords@c-98-223-234-80.hsd1.in.comcast.net] has quit [Ping timeout: 264 seconds] 22:18:15 eni [~eni@gob75-5-82-230-88-217.fbx.proxad.net] has joined #scheme 22:19:06 homie [~levgue@xdsl-78-35-174-200.netcologne.de] has joined #scheme 22:21:35 -!- f8l [~f8l@77-255-7-152.adsl.inetia.pl] has quit [Quit: WeeChat 0.3.7] 22:27:05 toekutr [~user@50-0-51-2.dsl.static.sonic.net] has joined #scheme 22:30:44 Fare [~Fare@216.239.55.82] has joined #scheme 22:40:50 -!- _schulte_ [~eschulte@c-174-56-50-60.hsd1.nm.comcast.net] has quit [Ping timeout: 246 seconds] 22:42:32 snizzo [~Claudio@net-188-216-136-62.cust.dsl.vodafone.it] has joined #scheme 22:47:06 -!- dnolen [aa95640a@gateway/web/freenode/ip.170.149.100.10] has quit [Quit: Page closed] 22:49:56 -!- Fare [~Fare@216.239.55.82] has quit [Ping timeout: 246 seconds] 22:50:29 -!- snizzo [~Claudio@net-188-216-136-62.cust.dsl.vodafone.it] has quit [Ping timeout: 248 seconds] 22:54:36 -!- Kucuq [b206c308@gateway/web/freenode/ip.178.6.195.8] has quit [Ping timeout: 245 seconds] 22:54:54 -!- estevocastro [~estevocas@cpe-74-72-192-178.nyc.res.rr.com] has quit [Remote host closed the connection] 22:56:17 -!- masm [~masm@bl17-201-211.dsl.telepac.pt] has quit [Quit: Leaving.] 22:58:38 jhemann_ [~Jason@140-182-209-139.dhcp-bl.indiana.edu] has joined #scheme 22:59:04 -!- Arafangion` [~Arafangio@220-244-108-23.static.tpgi.com.au] has quit [Read error: Connection reset by peer] 23:00:05 -!- jhemann [Jason@140-182-226-85.dhcp-bl.indiana.edu] has quit [Ping timeout: 252 seconds] 23:03:39 -!- jhemann_ [~Jason@140-182-209-139.dhcp-bl.indiana.edu] has quit [Ping timeout: 260 seconds] 23:04:22 snits [~snits@75-167-15-187.phnx.qwest.net] has joined #scheme 23:10:12 confab [~confab@c-71-193-9-153.hsd1.ca.comcast.net] has joined #scheme 23:10:53 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Quit: Computer has gone to sleep.] 23:11:03 -!- jonrafkind [~jon@crystalis.cs.utah.edu] has quit [Ping timeout: 265 seconds] 23:12:53 -!- eni [~eni@gob75-5-82-230-88-217.fbx.proxad.net] has quit [Quit: Leaving] 23:26:41 -!- chupish [182c5af4@gateway/web/freenode/ip.24.44.90.244] has quit [Ping timeout: 245 seconds] 23:30:45 -!- dzhus [~sphinx@176.14.94.92] has quit [Remote host closed the connection] 23:33:39 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 23:37:58 -!- keenbug [~daniel@p4FE38F15.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 23:40:07 -!- soveran [~soveran@186.19.214.247] has quit [Remote host closed the connection] 23:42:21 -!- ngz [~user@198.111.193.77.rev.sfr.net] has quit [Ping timeout: 272 seconds] 23:48:57 -!- dan64 [~dan64@dannyadam.com] has quit [Quit: ZNC - http://znc.in] 23:50:22 jonrafkind [~jon@jonr5.dsl.xmission.com] has joined #scheme 23:50:53 dan64 [~dan64@dannyadam.com] has joined #scheme 23:54:04 -!- mmc1 [~michal@178-85-63-71.dynamic.upc.nl] has quit [Remote host closed the connection] 23:56:04 -!- kuribas [~user@d54C43316.access.telenet.be] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]