2014-11-17T00:00:01Z offby1: rudybot: (map (integer-transformation-appearing-as-randomizing 10 16 7 9) '(10 11 12 13 14 15 16)) 2014-11-17T00:00:01Z rudybot: *offby1: ; Value: '(10 10 10 10 10 10 10) 2014-11-17T00:00:05Z offby1: BW^-: you LIE 2014-11-17T00:00:21Z offby1: or, rather, you tell the truth 2014-11-17T00:00:24Z offby1: one or the other 2014-11-17T00:00:51Z BW^-: heh 2014-11-17T00:01:43Z BW^-: MichaelRaskin,fizzie: do you have any suggestion about how alter the algorithm so that |random-seed:prime| can be > |numbers-in-interval| ? 2014-11-17T00:01:57Z BW^-: MichaelRaskin,fizzie: I mean, |numbers-in-interval| is frequently not so big (say 10^6), while the world is full of big prime numbers :) 2014-11-17T00:02:58Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 5 7 9) '(0 1 2 3 4 5)) 2014-11-17T00:02:59Z rudybot: BW^-: your sandbox is ready 2014-11-17T00:02:59Z rudybot: BW^-: error: integer-transformation-appearing-as-randomizing: undefined; cannot reference an identifier before its definition in module: 'program 2014-11-17T00:03:07Z BW^-: rudybot: (define (integer-transformation-appearing-as-randomizing interval-start interval-end random-seed:prime random-seed:integer) (let* ((numbers-in-interval (- interval-end interval-start -1))) (lambda (integer-value-to-transform) (+ interval-start (modulo (* random-seed:prime (+ integer-value-to-transform random-seed:integer)) numbers-in-interval))))) 2014-11-17T00:03:07Z rudybot: BW^-: Done. 2014-11-17T00:03:17Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 5 7 9) '(0 1 2 3 4 5)) 2014-11-17T00:03:18Z rudybot: BW^-: ; Value: '(3 4 5 0 1 2) 2014-11-17T00:03:23Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 6 7 9) '(0 1 2 3 4 5 6)) 2014-11-17T00:03:23Z rudybot: BW^-: ; Value: '(0 0 0 0 0 0 0) 2014-11-17T00:03:31Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 7 7 9) '(0 1 2 3 4 5 6 7)) 2014-11-17T00:03:32Z rudybot: BW^-: ; Value: '(7 6 5 4 3 2 1 0) 2014-11-17T00:04:13Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 5 2 9) '(0 1 2 3 4 5)) 2014-11-17T00:04:13Z rudybot: BW^-: ; Value: '(0 2 4 0 2 4) 2014-11-17T00:04:28Z BW^-: rudybot: (map (integer-transformation-appearing-as-randomizing 0 5 1 9) '(0 1 2 3 4 5)) 2014-11-17T00:04:28Z rudybot: BW^-: ; Value: '(3 4 5 0 1 2) 2014-11-17T00:05:02Z BW^-: ouch, with 2 as |random-seed:prime| it didn't even transform to all integer sin the interval 2014-11-17T00:05:11Z fizzie: Yes, because 2 is not coprime with 6. 2014-11-17T00:05:18Z BW^-: ah 2014-11-17T00:05:40Z BW^-: fizzie: so |random-seed:prime| must be a *coprime* with |numbers-in-interval| *always*? 2014-11-17T00:06:06Z BW^-: fizzie: so the issue here was not whether |random-seed:prime| was < = > |numbers-in-interval|, but whether it was a coprime with it or not? 2014-11-17T00:07:04Z BW^-: ..and the prime must also be > 1 of course 2014-11-17T00:07:08Z fizzie: Well, it's both. If p > l, then it's p mod l that needs to be coprime with l, since that's effectively the value of p that's relevant. 2014-11-17T00:07:23Z therabidmachine left #scheme 2014-11-17T00:07:50Z BW^-: fizzie: wait, so then, what is a complete definition of the requirement of what value |random-seed:prime| must be? 2014-11-17T00:09:31Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T00:09:45Z fizzie: Regarding only the "generates all numbers" criterion, you could go with "p > 0, p < l, p is coprime to l". Or alternatively, if you prefer, "p > 0, p mod l is coprime to l". You might have to add more criteria for the "looks random" aspect. 2014-11-17T00:10:23Z BW^-: mhm 2014-11-17T00:10:46Z fizzie: If you pick a prime p < l, then it's coprime with l iff p doesn't divide l. (Because the only >1 divisor of p is p.) 2014-11-17T00:10:58Z BW^-: fizzie: in the latter cae, p must be > 1 anyhow, right? i mean, beause for p mod l to be coprime with l , then p would always be > 1 anyhow right? 2014-11-17T00:12:46Z BW^-: fizzie: ah understood your definition here. 2014-11-17T00:13:21Z BW^-: fizzie: do you have any coprime checker and coprime generator function? :D 2014-11-17T00:13:30Z BW^-: (is-coprime-with? 2 7) => #f 2014-11-17T00:14:22Z BW^-: (generate-coprime-to to-what-integer max-int) e.g. (generate-coprime-to 7 10000) => 1234 or sth 2014-11-17T00:15:23Z fizzie: I don't, but as mentioned, if you stick to primes smaller than l, the coprime check is just whether p divides l. 2014-11-17T00:16:02Z BW^-: fizzie: aha, as in (not (integer? (/ l p))) => is-coprime? 2014-11-17T00:17:53Z fizzie: Possibly written as (not (zero? (modulo l p))). 2014-11-17T00:18:24Z BW^-: mhm 2014-11-17T00:18:38Z fizzie: (The reasoning being that a prime like 7 is coprime with everything else except 7, 14, 21, 28, ...) 2014-11-17T00:19:26Z BW^-: mhm 2014-11-17T00:20:08Z BW^-: fizzie: ok very well, then we have nailed what |random-seed:prime| needs to be presuming it's < |numbers-in-interval|. 2014-11-17T00:20:43Z BW^-: fizzie: and the only thing to nail it for |random-seed:prime|:s > |numbers-in-interval| would be a coprime checker / generator. :) 2014-11-17T00:21:12Z BW^-: fizzie: ok thanks for clarifying :)) 2014-11-17T00:21:38Z BW^-: how cool that this algorithm actually existed, i was intuitively sure it would last years, but had no clue exactly how it would look, at all 2014-11-17T00:24:08Z fizzie: I believe it's been used for "dissolve"-style graphics effects. Though I'm sure there are alternatives. 2014-11-17T00:24:34Z BW^-: mhm. 2014-11-17T00:25:51Z fizzie: And it's quite possible you can say something general about p mod l and l even for a prime p > l, too, I'm just not vouching on that. 2014-11-17T00:27:16Z BW^-: fizzie: the larger the prime, the better randomization, right? 2014-11-17T00:27:49Z fizzie: Not really, since what matters is the size of p mod l. 2014-11-17T00:28:44Z BW^-: fizzle: you mean l mod p ? 2014-11-17T00:29:05Z BW^-: fizzle: in my test case here, l mod p is 9 - how does this affect the quality of randomization? 2014-11-17T00:29:06Z fizzie: No matter how big your p is, if p = 1 (mod l) you get ..., 1, 2, 3, ... and if p = l-1 (mod l) you get ..., 3, 2, 1, ... 2014-11-17T00:29:46Z BW^-: fizzie: you mean, if l mod p = 1 or -1 then randomization is crap 2014-11-17T00:30:29Z fizzie: Yes. And in general, you get the exact same sequence if you replace p with (p mod l). 2014-11-17T00:31:04Z BW^-: aha 2014-11-17T00:31:25Z BW^-: fizzie: so the complete definition for if a particular p is a "good" coprime to l, is to check that l mod p is *neither* of -1 , 0 and 1 . 2014-11-17T00:31:41Z BW^-: if it satisfies that criteria, then it's a good coprime 2014-11-17T00:31:57Z BW^-: fizzie: correct? 2014-11-17T00:32:49Z fizzie: p mod l, not l mod p. And "good" is subjective. You might not like 2 or -2 either. The value is directly the gap between two consecutive numbers. 2014-11-17T00:34:31Z fizzie: For p = 2 (mod l), you'll get ..., 1, 3, 5, 7, ..., 2, 4, 6, 8, ... which is certainly *better*, but whether it's *good* is debatable. 2014-11-17T00:34:32Z BW^-: fizzie: wait, we already said that p must be < l already, so why do you bother about p mod l anyhow now? 2014-11-17T00:35:21Z fizzie: Just for generality. If you stick to p < l, you can drop the "mod l" part from all I've said lately. 2014-11-17T00:36:22Z BW^-: mhm 2014-11-17T00:36:37Z BW^-: fizzie: for the "divisble" part of the coprime check though, it's still l mod p right? 2014-11-17T00:36:44Z BW^-: i.e. (not (zero? (modulo l p))) 2014-11-17T00:37:02Z fizzie: Right. 2014-11-17T00:37:46Z BW^-: (y) 2014-11-17T00:44:05Z maddrmike joined #scheme 2014-11-17T00:44:45Z BW^-: fizzie,MichaelRaskin: ok thanks a lot for sharing this insight :) so the point of complete perfection to this "implementation" would be a coprime generator for p:s > l , anyhow now we talked p:s < l and this was intellectual excercise so perfect now 2014-11-17T00:44:48Z BW^-: thanks again. :) 2014-11-17T00:48:08Z fizzie: I wouldn't be surprised if there were "better" PRNGs that are you can construct to give a particular cycle, for the record. 2014-11-17T00:50:04Z fizzie: (And depending on context, if you're actually going to generate the full sequence, rounding up to next power of two and then just skipping the overly large values might be feasible. The "dissolve" algorithm in Graphics Gems does that for a LFSR.) 2014-11-17T00:50:14Z fizzie: (I see this was kind of already discussed way up there.) 2014-11-17T00:50:38Z BW^-: mhm 2014-11-17T00:50:54Z BW^-: ah right, |pseudorandom-integer-transformation| is a better name for this alg 2014-11-17T00:53:58Z BW^-: fizzie: right, this one is nice though because it requires no state (or compensation for state using a reiterative loop that could need to iterate over the whole interval of input values) 2014-11-17T00:55:48Z gnomon_ is now known as gnomon 2014-11-17T01:04:16Z BitPuffin quit (Ping timeout: 265 seconds) 2014-11-17T01:04:29Z BW^-: gtg 2014-11-17T01:06:27Z BW^- left #scheme 2014-11-17T01:11:49Z vanila quit (Quit: Leaving) 2014-11-17T01:14:59Z Turaiel joined #scheme 2014-11-17T01:16:54Z derek_c joined #scheme 2014-11-17T01:17:33Z Turaiel: I've got a quick question regarding differences between Racket and R5RS with cdr. I'm trying to take the cdr of a list, but DrRacket says that it's expecting an mpair instead of '(). Any idea why this is? 2014-11-17T01:22:01Z Riastradh: Neither one allows CDR of the empty list. 2014-11-17T01:24:44Z Turaiel: I was reading something on Stack Overflow about getting the last element of a list in scheme. It was suggested to recurse through the list and check for cdr returning null 2014-11-17T01:25:04Z Riastradh: Returning, sure -- but you can't pass it null. 2014-11-17T01:25:55Z Turaiel: Oh, I see, right 2014-11-17T01:26:02Z Turaiel: It returns null if you pass it a one element list 2014-11-17T01:26:22Z Riastradh: Yes. 2014-11-17T01:26:26Z Turaiel: I must have an issue with my logic then 2014-11-17T01:32:13Z Turaiel: Yep! I screwed up my cond statement. Thanks! 2014-11-17T01:49:27Z Vutral quit (Ping timeout: 245 seconds) 2014-11-17T01:49:36Z guampa joined #scheme 2014-11-17T01:54:13Z Turaiel left #scheme 2014-11-17T01:56:17Z jeapostrophe quit (Ping timeout: 240 seconds) 2014-11-17T01:59:28Z oleo__ joined #scheme 2014-11-17T02:00:08Z oleo is now known as Guest52034 2014-11-17T02:00:47Z Guest52034 quit (Ping timeout: 255 seconds) 2014-11-17T02:03:03Z xyh quit (Remote host closed the connection) 2014-11-17T02:03:07Z Vutral joined #scheme 2014-11-17T02:15:11Z tobik quit (Ping timeout: 255 seconds) 2014-11-17T02:17:24Z tobik joined #scheme 2014-11-17T02:28:49Z jenia joined #scheme 2014-11-17T02:29:18Z adu joined #scheme 2014-11-17T02:29:29Z jenia: hello. how can I load a file into the REPL? I'm using racket 2014-11-17T02:29:51Z jenia: ah no. im using guile 2014-11-17T02:30:22Z adu: hey 2014-11-17T02:30:47Z frkout_ joined #scheme 2014-11-17T02:31:14Z adu: what do you mean load file? 2014-11-17T02:31:30Z adu: a scheme file? a csv file? a text file? 2014-11-17T02:32:45Z mrowe_away is now known as mrowe 2014-11-17T02:34:12Z frkout quit (Ping timeout: 250 seconds) 2014-11-17T02:34:12Z jenia: adu, if I save a session as a text file, can I reload it later to continue from the point where I left off? 2014-11-17T02:34:31Z adu: (load) 2014-11-17T02:37:16Z jenia: adu, thanks. just one more question: how do I correctly save a session? When I saved the buffer literally, the file line was `GNU Guile 2.0.11`. You can imagine that scheme didnt like that ;) 2014-11-17T02:37:34Z jenia: the first line in the file was* 2014-11-17T02:38:10Z adu: well 2014-11-17T02:38:18Z adu: I don't know what you mean by "session" 2014-11-17T02:38:50Z jenia: adu, the repl session 2014-11-17T02:39:17Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T02:39:20Z adu: but there's a unix tool that might help 2014-11-17T02:39:21Z adu: http://linux.die.net/man/1/script 2014-11-17T02:39:43Z adu: jenia: I don't know of any scheme that records the repl 2014-11-17T02:42:56Z adu: what I would recommend is a 2-window solution, one window to edit your script, and one window to run it 2014-11-17T02:45:45Z adu quit (Quit: adu) 2014-11-17T02:46:52Z ijp: there was an optional procedure for this in r5rs called transcript-on 2014-11-17T02:47:39Z ijp: I don't even know if guile has it 2014-11-17T02:47:45Z offby1: flame-on 2014-11-17T02:53:16Z oldskirt quit (Ping timeout: 250 seconds) 2014-11-17T02:54:11Z oldskirt joined #scheme 2014-11-17T03:07:57Z phipes joined #scheme 2014-11-17T03:08:37Z jumblerg joined #scheme 2014-11-17T03:09:06Z jumblerg quit (Client Quit) 2014-11-17T03:11:52Z frkout_ quit (Read error: Connection reset by peer) 2014-11-17T03:12:18Z frkout joined #scheme 2014-11-17T03:27:19Z phipes quit (Quit: Textual IRC Client: www.textualapp.com) 2014-11-17T03:36:07Z hiyosi joined #scheme 2014-11-17T03:37:18Z altphi joined #scheme 2014-11-17T03:37:25Z mrowe is now known as mrowe_away 2014-11-17T03:39:40Z Turaiel joined #scheme 2014-11-17T03:40:41Z Turaiel: A couple more questions: where can I find a decent Scheme reference? Secondly, running (eval '(display "test")) says that there are not enough arguments. Is there something I am missing? 2014-11-17T03:41:21Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-17T03:42:39Z amgarchIn9 quit (Ping timeout: 272 seconds) 2014-11-17T03:49:13Z serhart: Turaiel: which scheme? 2014-11-17T03:52:04Z cjh`: Turaiel: as for a reference I usually use the rnrs documents, http://groups.csail.mit.edu/mac/ftpdir/scheme-reports/r5rs.ps and http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf linked to from bottom of http://scheme-reports.org/ 2014-11-17T03:55:55Z Turaiel: R5RS, serhart 2014-11-17T03:55:59Z Turaiel: Sorry, I ran off for a sec 2014-11-17T03:57:28Z Turaiel: It's also changing it to meval 2014-11-17T03:57:53Z cjh`: Turaiel: which scheme implementation is giving you that error? 2014-11-17T03:58:01Z serhart: i know guile's eval expects a module as a second param 2014-11-17T03:58:15Z Turaiel: The R5RS that's part of DrRacket 2014-11-17T04:00:37Z Turaiel: I'd use apply, but unfortunately using car on my expression list quotes the expression 2014-11-17T04:01:02Z Turaiel: eval is probably contextually better 2014-11-17T04:01:59Z serhart: http://docs.racket-lang.org/r5rs/r5rs-std/r5rs-Z-H-9.html?q=eval#%25_idx_600 2014-11-17T04:02:00Z rudybot: http://tinyurl.com/ld5hwek 2014-11-17T04:02:05Z serhart: looks like it wants an environment 2014-11-17T04:02:09Z cjh`: (eval '(display "test") (scheme-report-environment 5)) # works in r5rs drracket 2014-11-17T04:02:14Z cjh`: Turaiel: ^^ 2014-11-17T04:02:30Z cjh`: Turaiel: see page 35 of http://groups.csail.mit.edu/mac/ftpdir/scheme-reports/r5rs.ps 2014-11-17T04:03:28Z Turaiel: I actually cannot view PostScript files 2014-11-17T04:09:59Z phipes joined #scheme 2014-11-17T04:10:09Z henrytill quit (Quit: leaving) 2014-11-17T04:12:22Z _5kg quit (Ping timeout: 240 seconds) 2014-11-17T04:14:27Z davexunit quit (Quit: Later) 2014-11-17T04:16:09Z Rodya_ quit (Quit: Ex-Chat) 2014-11-17T04:20:21Z altphi quit 2014-11-17T04:22:22Z Turaiel: That works, thanks. Can you explain what that namespace is? 2014-11-17T04:25:13Z daviid joined #scheme 2014-11-17T04:34:54Z adu joined #scheme 2014-11-17T04:42:13Z zacts joined #scheme 2014-11-17T04:44:50Z vinleod joined #scheme 2014-11-17T04:50:05Z jlongster joined #scheme 2014-11-17T04:51:08Z MichaelRaskin: BW^-: In your example, prime turned out to be _equal_ to the count of numbers 2014-11-17T04:51:13Z MichaelRaskin: And that _is_ a problem 2014-11-17T04:51:24Z MichaelRaskin quit (Quit: MichaelRaskin) 2014-11-17T04:55:58Z mrowe_away is now known as mrowe 2014-11-17T04:57:26Z _5kg joined #scheme 2014-11-17T05:10:08Z _5kg quit (Ping timeout: 264 seconds) 2014-11-17T05:13:43Z mdibound quit (Quit: Be back later ...) 2014-11-17T05:14:19Z mdibound joined #scheme 2014-11-17T05:14:25Z jenia quit (Remote host closed the connection) 2014-11-17T05:24:56Z hiyosi joined #scheme 2014-11-17T05:30:06Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-17T05:35:06Z mdibound quit (Quit: Be back later ...) 2014-11-17T05:35:42Z mdibound joined #scheme 2014-11-17T05:39:07Z mdibound quit (Read error: Connection reset by peer) 2014-11-17T05:39:30Z mdibound joined #scheme 2014-11-17T05:40:41Z araujo quit (Quit: Leaving) 2014-11-17T05:41:05Z mdibound quit (Read error: Connection reset by peer) 2014-11-17T05:41:29Z mdibound joined #scheme 2014-11-17T05:47:05Z _5kg joined #scheme 2014-11-17T05:54:00Z alezost joined #scheme 2014-11-17T05:54:26Z Turaiel left #scheme 2014-11-17T06:04:38Z mrowe is now known as mrowe_away 2014-11-17T06:06:14Z circ-user-etfiX joined #scheme 2014-11-17T06:06:25Z ethycol quit (Ping timeout: 272 seconds) 2014-11-17T06:07:03Z theseb quit (Quit: Leaving) 2014-11-17T06:23:41Z Gyps joined #scheme 2014-11-17T06:29:52Z circ-user-etfiX quit (Ping timeout: 240 seconds) 2014-11-17T06:33:09Z adu quit (Quit: adu) 2014-11-17T06:36:25Z thegerm joined #scheme 2014-11-17T06:42:00Z thegerm quit (Quit: Leaving) 2014-11-17T06:43:21Z thegerm joined #scheme 2014-11-17T06:46:01Z jaaqo joined #scheme 2014-11-17T06:49:11Z alexey joined #scheme 2014-11-17T06:51:37Z alexey quit (Remote host closed the connection) 2014-11-17T06:51:55Z kazimir42 quit (Remote host closed the connection) 2014-11-17T06:58:09Z oleo__ quit (Quit: Verlassend) 2014-11-17T07:02:20Z _5kg quit (Ping timeout: 264 seconds) 2014-11-17T07:13:45Z hiyosi joined #scheme 2014-11-17T07:19:08Z BitPuffin joined #scheme 2014-11-17T07:19:24Z jlongster quit (Ping timeout: 258 seconds) 2014-11-17T07:19:58Z hiyosi quit (Ping timeout: 244 seconds) 2014-11-17T07:23:14Z oldskirt_ joined #scheme 2014-11-17T07:24:17Z oldskirt quit (Ping timeout: 240 seconds) 2014-11-17T07:32:49Z daviid quit (Ping timeout: 258 seconds) 2014-11-17T07:40:00Z MichaelRaskin joined #scheme 2014-11-17T07:41:01Z oldskirt_ is now known as oldskirt 2014-11-17T07:45:50Z _5kg joined #scheme 2014-11-17T07:45:52Z BitPuffin quit (Ping timeout: 255 seconds) 2014-11-17T07:48:49Z cataska joined #scheme 2014-11-17T07:49:43Z civodul joined #scheme 2014-11-17T07:56:59Z thegerm quit (Quit: Leaving) 2014-11-17T08:02:56Z frkout_ joined #scheme 2014-11-17T08:04:30Z BitPuffin joined #scheme 2014-11-17T08:06:34Z frkout quit (Ping timeout: 255 seconds) 2014-11-17T08:07:30Z germ13 quit (Read error: Connection reset by peer) 2014-11-17T08:08:54Z derek_c quit (Ping timeout: 255 seconds) 2014-11-17T08:13:46Z ventonegro joined #scheme 2014-11-17T08:15:44Z przl joined #scheme 2014-11-17T08:23:46Z robot-beethoven joined #scheme 2014-11-17T08:27:18Z alexey joined #scheme 2014-11-17T08:27:20Z BitPuffin quit (Ping timeout: 255 seconds) 2014-11-17T08:30:16Z mdibound quit (Quit: Be back later ...) 2014-11-17T08:30:49Z mdibound joined #scheme 2014-11-17T08:30:52Z girrig quit (Ping timeout: 255 seconds) 2014-11-17T08:32:18Z mdibound_ joined #scheme 2014-11-17T08:32:40Z mdibound quit (Read error: Connection reset by peer) 2014-11-17T08:36:16Z kilimanjaro is now known as FLOSSMASTER 2014-11-17T08:50:20Z frkout_ quit (Remote host closed the connection) 2014-11-17T08:50:46Z frkout joined #scheme 2014-11-17T08:51:08Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T08:52:40Z FLOSSMASTER is now known as kilimanjaro 2014-11-17T09:02:31Z Riastrad1 joined #scheme 2014-11-17T09:03:00Z Riastradh quit (Remote host closed the connection) 2014-11-17T09:04:16Z hiyosi joined #scheme 2014-11-17T09:04:56Z mdibound_ joined #scheme 2014-11-17T09:06:47Z germ13 joined #scheme 2014-11-17T09:08:57Z redeemed joined #scheme 2014-11-17T09:09:17Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T09:11:32Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T09:14:38Z _5kg quit (Ping timeout: 256 seconds) 2014-11-17T09:16:36Z mdibound_ joined #scheme 2014-11-17T09:17:54Z xyh joined #scheme 2014-11-17T09:18:41Z germ13 quit (Quit: Leaving) 2014-11-17T09:20:49Z przl_ joined #scheme 2014-11-17T09:23:37Z przl quit (Ping timeout: 245 seconds) 2014-11-17T09:25:58Z germ13 joined #scheme 2014-11-17T09:26:12Z germ13 quit (Read error: Connection reset by peer) 2014-11-17T09:27:31Z germ13 joined #scheme 2014-11-17T09:28:22Z germ13 quit (Client Quit) 2014-11-17T09:28:46Z germ13 joined #scheme 2014-11-17T09:35:40Z ijp quit (Quit: This ijp has ended peacefully) 2014-11-17T09:43:02Z phipes quit (Quit: Textual IRC Client: www.textualapp.com) 2014-11-17T09:43:32Z germ13 quit (Ping timeout: 258 seconds) 2014-11-17T09:48:47Z przl_ quit (Ping timeout: 255 seconds) 2014-11-17T09:50:58Z Gyps quit (Remote host closed the connection) 2014-11-17T09:55:13Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T09:58:31Z _5kg joined #scheme 2014-11-17T10:22:05Z gravicappa joined #scheme 2014-11-17T10:25:46Z przl joined #scheme 2014-11-17T10:40:06Z hiroakip joined #scheme 2014-11-17T10:43:44Z hiroakip quit (Remote host closed the connection) 2014-11-17T10:45:25Z hiroakip joined #scheme 2014-11-17T10:53:49Z hiyosi joined #scheme 2014-11-17T10:59:01Z hiyosi quit (Ping timeout: 272 seconds) 2014-11-17T11:02:38Z xyh quit (Ping timeout: 265 seconds) 2014-11-17T11:31:22Z hiroakip quit (Remote host closed the connection) 2014-11-17T11:32:26Z foo` joined #scheme 2014-11-17T11:33:43Z foo` quit (Client Quit) 2014-11-17T11:34:01Z hiroakip joined #scheme 2014-11-17T11:35:49Z jaaqo` joined #scheme 2014-11-17T11:39:06Z hiroakip quit (Remote host closed the connection) 2014-11-17T11:47:53Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-11-17T11:49:06Z hiroakip joined #scheme 2014-11-17T12:00:29Z alexey quit (Remote host closed the connection) 2014-11-17T12:23:53Z jumblerg joined #scheme 2014-11-17T12:23:58Z przl quit (Ping timeout: 250 seconds) 2014-11-17T12:30:57Z jaaqo` quit (Remote host closed the connection) 2014-11-17T12:33:56Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T12:36:44Z pnkfelix joined #scheme 2014-11-17T12:42:36Z hiyosi joined #scheme 2014-11-17T12:43:20Z jumblerg joined #scheme 2014-11-17T12:43:24Z jusss joined #scheme 2014-11-17T12:47:37Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T12:50:55Z przl joined #scheme 2014-11-17T12:55:44Z przl quit (Ping timeout: 264 seconds) 2014-11-17T12:56:51Z MichaelRaskin quit (Quit: MichaelRaskin) 2014-11-17T13:01:57Z atomx joined #scheme 2014-11-17T13:04:09Z girrig joined #scheme 2014-11-17T13:04:18Z cdidd joined #scheme 2014-11-17T13:07:08Z cmatei quit (Ping timeout: 264 seconds) 2014-11-17T13:18:52Z cmatei joined #scheme 2014-11-17T13:27:24Z przl joined #scheme 2014-11-17T13:39:56Z hiyosi joined #scheme 2014-11-17T13:43:31Z taylanub quit (Disconnected by services) 2014-11-17T13:44:20Z taylanub joined #scheme 2014-11-17T13:47:27Z psy_ quit (Ping timeout: 265 seconds) 2014-11-17T13:50:25Z jeapostrophe joined #scheme 2014-11-17T13:51:37Z araujo joined #scheme 2014-11-17T14:03:33Z germ13 joined #scheme 2014-11-17T14:09:47Z germ13 quit (Ping timeout: 255 seconds) 2014-11-17T14:13:05Z leppie quit (Ping timeout: 264 seconds) 2014-11-17T14:13:25Z davexunit joined #scheme 2014-11-17T14:18:32Z jaaqo quit (Remote host closed the connection) 2014-11-17T14:18:39Z leppie joined #scheme 2014-11-17T14:19:09Z psy_ joined #scheme 2014-11-17T14:27:54Z mmc joined #scheme 2014-11-17T14:31:40Z gravicappa quit (Remote host closed the connection) 2014-11-17T14:33:37Z mmc quit (Ping timeout: 240 seconds) 2014-11-17T14:33:58Z Riastrad1 is now known as Riastradh 2014-11-17T14:37:26Z jaaqo joined #scheme 2014-11-17T14:44:18Z b4283 joined #scheme 2014-11-17T14:52:22Z Vutral quit (Ping timeout: 245 seconds) 2014-11-17T14:52:36Z daviid joined #scheme 2014-11-17T14:58:58Z oleo joined #scheme 2014-11-17T15:00:31Z b4283 quit (Quit: Konversation terminated!) 2014-11-17T15:01:32Z mmc joined #scheme 2014-11-17T15:04:38Z oleo quit (Excess Flood) 2014-11-17T15:04:39Z henrytill joined #scheme 2014-11-17T15:05:29Z agumonkey quit (Ping timeout: 244 seconds) 2014-11-17T15:05:32Z oleo joined #scheme 2014-11-17T15:06:59Z xyh joined #scheme 2014-11-17T15:07:08Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-11-17T15:07:15Z agumonkey joined #scheme 2014-11-17T15:08:05Z ijp joined #scheme 2014-11-17T15:11:29Z jaaqo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T15:12:53Z jaaqo joined #scheme 2014-11-17T15:18:05Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T15:18:37Z mdibound_ joined #scheme 2014-11-17T15:23:45Z mdibound_ quit (Ping timeout: 272 seconds) 2014-11-17T15:28:24Z rszeno joined #scheme 2014-11-17T15:33:30Z xyh quit (Remote host closed the connection) 2014-11-17T15:34:30Z jeapostrophe joined #scheme 2014-11-17T15:34:30Z jeapostrophe quit (Changing host) 2014-11-17T15:34:30Z jeapostrophe joined #scheme 2014-11-17T15:36:37Z jkraemer joined #scheme 2014-11-17T15:38:02Z jusss quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T15:42:47Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-17T15:48:51Z vanila joined #scheme 2014-11-17T15:49:50Z psy_ quit (Remote host closed the connection) 2014-11-17T15:51:24Z stepnem joined #scheme 2014-11-17T15:51:58Z ffs quit (Quit: Nach fünf Sekunden machte es klick und das ganze Universum war bei ihm in der Kiste.) 2014-11-17T15:53:13Z przl quit (Ping timeout: 255 seconds) 2014-11-17T15:54:06Z przl joined #scheme 2014-11-17T16:04:21Z gravicappa joined #scheme 2014-11-17T16:05:29Z alexey joined #scheme 2014-11-17T16:08:08Z joast quit (Quit: Leaving.) 2014-11-17T16:08:55Z xyh joined #scheme 2014-11-17T16:12:27Z oleo quit (Quit: Verlassend) 2014-11-17T16:14:31Z circ-user-etfiX joined #scheme 2014-11-17T16:17:58Z oleo joined #scheme 2014-11-17T16:18:47Z redeemed quit (Quit: q) 2014-11-17T16:19:11Z mdibound_ joined #scheme 2014-11-17T16:20:13Z theseb joined #scheme 2014-11-17T16:23:17Z atomx quit (Ping timeout: 272 seconds) 2014-11-17T16:23:55Z mdibound_ quit (Ping timeout: 272 seconds) 2014-11-17T16:30:55Z jlongster joined #scheme 2014-11-17T16:32:38Z alexey quit (Remote host closed the connection) 2014-11-17T16:33:19Z circ-user-etfiX quit (Ping timeout: 244 seconds) 2014-11-17T16:37:14Z alexey joined #scheme 2014-11-17T16:42:01Z Riastradh joined #scheme 2014-11-17T16:42:52Z joast joined #scheme 2014-11-17T16:42:58Z psy_ joined #scheme 2014-11-17T16:45:37Z alexey quit (Read error: Connection reset by peer) 2014-11-17T16:47:10Z alexey joined #scheme 2014-11-17T16:52:46Z xyh quit (Remote host closed the connection) 2014-11-17T16:52:48Z stamourv` is now known as stamourv 2014-11-17T16:52:56Z stamourv quit (Changing host) 2014-11-17T16:52:56Z stamourv joined #scheme 2014-11-17T16:53:53Z alexey quit (Ping timeout: 264 seconds) 2014-11-17T16:55:22Z altphi joined #scheme 2014-11-17T16:55:46Z alexey joined #scheme 2014-11-17T17:02:05Z alexey quit (Remote host closed the connection) 2014-11-17T17:02:50Z przl quit (Ping timeout: 258 seconds) 2014-11-17T17:05:04Z civodul quit (Remote host closed the connection) 2014-11-17T17:05:12Z theseb quit (Remote host closed the connection) 2014-11-17T17:11:23Z circ-user-etfiX joined #scheme 2014-11-17T17:11:39Z mark_weaver quit (Ping timeout: 258 seconds) 2014-11-17T17:11:57Z adu joined #scheme 2014-11-17T17:15:31Z altphi quit 2014-11-17T17:15:53Z altphi joined #scheme 2014-11-17T17:19:55Z mdibound_ joined #scheme 2014-11-17T17:23:04Z Riastradh quit (Remote host closed the connection) 2014-11-17T17:24:34Z mdibound_ quit (Ping timeout: 255 seconds) 2014-11-17T17:24:45Z mmc quit (Quit: Leaving.) 2014-11-17T17:27:23Z atomx joined #scheme 2014-11-17T17:32:21Z rszeno quit (Ping timeout: 258 seconds) 2014-11-17T17:32:41Z circ-user-etfiX quit (Ping timeout: 265 seconds) 2014-11-17T17:34:19Z Riastradh joined #scheme 2014-11-17T17:36:35Z xyh joined #scheme 2014-11-17T17:37:23Z hiroakip quit (Ping timeout: 272 seconds) 2014-11-17T17:37:27Z germ13 joined #scheme 2014-11-17T17:41:06Z mdibound_ joined #scheme 2014-11-17T17:42:30Z hiroakip joined #scheme 2014-11-17T17:46:17Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-17T17:47:35Z ventonegro quit (Remote host closed the connection) 2014-11-17T17:48:13Z Riastradh joined #scheme 2014-11-17T17:48:13Z rszeno joined #scheme 2014-11-17T17:48:38Z pnkfelix quit (Ping timeout: 265 seconds) 2014-11-17T17:59:50Z ffs joined #scheme 2014-11-17T18:03:37Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-17T18:09:14Z MichaelRaskin joined #scheme 2014-11-17T18:12:11Z xyh quit (Remote host closed the connection) 2014-11-17T18:22:03Z theseb joined #scheme 2014-11-17T18:25:26Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-11-17T18:26:41Z circ-user-etfiX joined #scheme 2014-11-17T18:27:16Z jeapostrophe joined #scheme 2014-11-17T18:28:19Z adu quit (Quit: adu) 2014-11-17T18:34:29Z przl joined #scheme 2014-11-17T18:38:05Z rszeno quit (Quit: Leaving.) 2014-11-17T18:44:24Z theseb quit (Quit: Leaving) 2014-11-17T18:44:46Z oldskirt_ joined #scheme 2014-11-17T18:46:22Z theseb joined #scheme 2014-11-17T18:46:29Z jaaqo quit (Remote host closed the connection) 2014-11-17T18:46:51Z theseb quit (Client Quit) 2014-11-17T18:48:15Z oldskirt quit (Ping timeout: 258 seconds) 2014-11-17T18:48:17Z hiroakip quit (Ping timeout: 240 seconds) 2014-11-17T18:48:31Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T18:59:37Z hiyosi joined #scheme 2014-11-17T19:05:26Z derek_c joined #scheme 2014-11-17T19:05:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T19:06:07Z fantazo joined #scheme 2014-11-17T19:13:24Z sheilong joined #scheme 2014-11-17T19:14:30Z gabnet joined #scheme 2014-11-17T19:14:42Z alexey joined #scheme 2014-11-17T19:15:00Z gabnet left #scheme 2014-11-17T19:17:41Z mrowe_away is now known as mrowe 2014-11-17T19:21:32Z derek_c quit (Ping timeout: 256 seconds) 2014-11-17T19:23:00Z jumblerg joined #scheme 2014-11-17T19:25:52Z alexey quit (Remote host closed the connection) 2014-11-17T19:27:16Z mrowe is now known as mrowe_away 2014-11-17T19:27:42Z amgarchIn9 joined #scheme 2014-11-17T19:31:26Z khisanth_ joined #scheme 2014-11-17T19:31:44Z Khisanth quit (Ping timeout: 264 seconds) 2014-11-17T19:31:54Z khisanth_ is now known as Guest38330 2014-11-17T19:36:53Z alexey joined #scheme 2014-11-17T19:40:12Z Vutral joined #scheme 2014-11-17T19:44:47Z Vutral quit (Ping timeout: 244 seconds) 2014-11-17T19:51:47Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T19:55:33Z mark_weaver joined #scheme 2014-11-17T19:56:55Z hypermagic: btw guys, if somebody is interested what is not being mass produced : http://en.wikipedia.org/wiki/AMULET_microprocessor this is an asynchronous cpu that consumes microwatts in idle. 2014-11-17T19:58:06Z circ-user-etfiX quit (Ping timeout: 250 seconds) 2014-11-17T19:58:32Z Vutral joined #scheme 2014-11-17T19:59:53Z circ-user-etfiX joined #scheme 2014-11-17T19:59:56Z mmc joined #scheme 2014-11-17T20:06:17Z circ-user-etfiX quit (Ping timeout: 240 seconds) 2014-11-17T20:13:37Z bjz quit (Read error: Connection reset by peer) 2014-11-17T20:13:56Z bjz joined #scheme 2014-11-17T20:20:27Z civodul joined #scheme 2014-11-17T20:28:11Z xyh joined #scheme 2014-11-17T20:30:02Z fantazo quit (Quit: Verlassend) 2014-11-17T20:31:51Z xyh: I think the interface of call/cc is designed that way, only because the designer is too ashamed to reveal a global variable (global variable) which is named cc. then (call/cc f) == (f cc) or (f (cc)) 2014-11-17T20:32:28Z xyh: there are a family of functions named as "call-with-***" ... 2014-11-17T20:32:47Z vanila: xyh ,yeah, good point 2014-11-17T20:33:00Z vanila: call/cc has low quality compared to SHIFT/RESET 2014-11-17T20:33:58Z ijp: (cc) is a much less useful interface than you'd think 2014-11-17T20:34:06Z xyh: ijp: why? 2014-11-17T20:34:38Z xyh: ijp: the order of eval ? 2014-11-17T20:35:29Z ijp: suppose you do (let ((foo (cc))) blah), then blah basically always needs conditional behaviour depending on whether or not foo is a continuation 2014-11-17T20:36:29Z ijp: in a weird way, you never actually get the current continuation that way, because it stops being the continuation once you get it 2014-11-17T20:37:17Z ijp: anyway, play around with it a while, you'll see what I mean 2014-11-17T20:38:11Z ijp: but the call-with-foo design isn't about global variables, but about introducing new binding forms 2014-11-17T20:38:22Z kongtomorrow joined #scheme 2014-11-17T20:38:41Z alexey quit (Remote host closed the connection) 2014-11-17T20:39:08Z ijp: it doesn't really matter whether you have call/cc or let/cc, but the first one feels "purer" because it is a function rather than a macro 2014-11-17T20:39:48Z LeoNerd: Oooh... let/cc? 2014-11-17T20:40:13Z ijp: (let/cc k b) == (call/cc (lambda (k) b)) 2014-11-17T20:40:40Z developernotes joined #scheme 2014-11-17T20:41:54Z turbofail: that said all call/cc is good for in general is for making puzzle-code 2014-11-17T20:42:20Z turbofail: not that there's anything wrong with puzzles 2014-11-17T20:42:35Z vanila: its hard to find use 2014-11-17T20:43:07Z turbofail: there is some value in making your brain hurt, as long as it's not used in production code 2014-11-17T20:44:06Z ijp: production code has plenty of ways of making your brain hurt anyway 2014-11-17T20:44:42Z xyh: ijp: (let ((foo (cc))) ) == ((lambda (foo) ) (cc)) == (call/cc (lambda (foo) )) 2014-11-17T20:44:59Z turbofail: sure. the only thing worse than using call/cc is watching somebody effectively emulate it with a pile of switch statements and state variables 2014-11-17T20:45:48Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T20:46:21Z mdibound_ joined #scheme 2014-11-17T20:46:37Z turbofail: (something i actually sort of encountered btw) 2014-11-17T20:46:52Z jeapostrophe quit (Ping timeout: 240 seconds) 2014-11-17T20:46:58Z ijp: xyh: I am well aware of that 2014-11-17T20:47:34Z turbofail: that equivalence isn't quite right 2014-11-17T20:47:35Z ijp: actually that last one doesn't look riht 2014-11-17T20:47:55Z ijp: ((lambda (foo) ) (cc)) == ((lambda (foo) ) (call/cc (lambda (x) x))) 2014-11-17T20:48:11Z xyh: sorry 2014-11-17T20:48:19Z kongtomorrow quit 2014-11-17T20:48:22Z ijp double checks his call/cc free theorem 2014-11-17T20:48:46Z turbofail: yeah so any call to foo within will then reexecute all of blah with foo bound to something else 2014-11-17T20:49:00Z turbofail: which is the problem that ijp was getting at 2014-11-17T20:50:10Z hiyosi joined #scheme 2014-11-17T20:50:22Z turbofail: basically, you need better limits on where the continuation is captured to make it actually sensible to use 2014-11-17T20:50:24Z ijp: (f (call/cc g)) = (call/cc (lambda (k) (f (g (compose k f))))) is the call/cc free theorem 2014-11-17T20:50:55Z mdibound_ quit (Ping timeout: 258 seconds) 2014-11-17T20:51:31Z sheilong quit (Quit: Konversation terminated!) 2014-11-17T20:52:10Z ijp: which gives (call/cc (lambda (k) (let ((foo (lambda (x) (k (let ((foo x)) ))))) ))) unless I messed something up 2014-11-17T20:52:26Z ijp: (which is likely) 2014-11-17T20:52:38Z xyh: see above, my imaginary axiom is (call/cc f) == (f (cc)) , so ((lambda (foo) ) (cc)) == (call/cc (lambda (foo) )) == ((lambda (foo) ) (lambda (x) x)) 2014-11-17T20:53:22Z amgarchIn9 quit (Ping timeout: 240 seconds) 2014-11-17T20:53:43Z xyh: sorry, not the 2nd == ... 2014-11-17T20:53:47Z ijp: you can't really have that equivalance 2014-11-17T20:53:53Z turbofail: such a thing could only ever work if (cc) worked in a really weird manner 2014-11-17T20:54:15Z ijp: because (cc) would need to somehow remove the "call to f" from its continuation 2014-11-17T20:54:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T20:55:09Z jumblerg joined #scheme 2014-11-17T20:55:57Z xyh: (call/cc f) == (f (cc)) so, (cc) can never be uesd alone, it can only be arg of a function. 2014-11-17T20:56:21Z vanila: @xyh did you know about CPS semantics? 2014-11-17T20:56:44Z ijp: in general, unless you wanted to provide other operators that acted on your representation of continuations (removing "frames", etc) I don't think there is any value in immediately returning a current continuation as a function 2014-11-17T20:56:53Z xyh: vanila: I tkink I do, (but maybe I am wrong 2014-11-17T20:57:08Z vanila: http://lpaste.net/114458 2014-11-17T20:57:12Z vanila: example 2014-11-17T20:57:16Z ijp: but try implementing it 2014-11-17T20:57:34Z vanila: line 36 is CPS semantics for call-wth-curent-continuations 2014-11-17T20:57:51Z ijp: vanila: if that is supposed to be unlambda, make sure you handle "d" properly from the beginning 2014-11-17T20:58:04Z turbofail: well (cc) certainly couldn't be callable like a normal scheme procedure 2014-11-17T20:58:14Z turbofail: it'd probably require compiler support to detect a call to it and then do weird shit 2014-11-17T20:58:25Z xyh: turbofail: call/cc is not normal too 2014-11-17T20:58:33Z vanila: call/cc is normal! 2014-11-17T20:58:33Z xyh: is it ? 2014-11-17T20:58:34Z ijp: xyh: false 2014-11-17T20:58:37Z xyh: ok! 2014-11-17T20:58:40Z xyh: my bad 2014-11-17T20:58:41Z vanila: (lambda (cont) 2014-11-17T20:58:41Z vanila: (cont (lambda (k f) (f k (lambda (k0 v) (k v)))))))) 2014-11-17T20:58:41Z turbofail: call/cc is a normal procedure 2014-11-17T20:58:42Z vanila: that's all 2014-11-17T20:58:43Z ijp: turbofail: well, the calling restriction immediately suggests it can't be a regular function, it would need a delimiter 2014-11-17T20:58:52Z vanila: in CPS semantics 2014-11-17T20:59:07Z turbofail: you can't implement calll/cc of course, but it can be called like a normal procedure 2014-11-17T20:59:52Z ijp: vanila: nvm, it doesn't handle "d" 2014-11-17T21:04:18Z Riastradh: Python quiz! x is a list. n is a nonnegative integer at most the length of x. What does del x[-n:] do? 2014-11-17T21:04:20Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T21:04:20Z amgarchIn9 joined #scheme 2014-11-17T21:04:44Z turbofail: do we get to call a lifeline? 2014-11-17T21:05:13Z turbofail: slice semantics were one of those things i could never remember when i used python 2014-11-17T21:05:21Z MichaelRaskin: It should delete last n elements. Let me guess, it deletes first…n-th-to-last? 2014-11-17T21:05:31Z ijp: Riastradh: well, I want to say "deletes the last n", but if that was the case, you won't have asked, so I'm guessing, it deletes less than that 2014-11-17T21:05:45Z taylanub: I think it deletes all? 2014-11-17T21:05:48Z Riastradh: You folks are close. It sometimes deletes the last n elements of x. 2014-11-17T21:05:54Z Riastradh: But not always! 2014-11-17T21:05:58Z taylanub: wow 2014-11-17T21:06:07Z xyh: I haven't write scheme code for very long :P really miss it. if (cc) will always be use with "let" then it just is "letcc", and "letcc" is a better interface rigth ? maybe (call/cc f) == (f (cc)) can help to explain things when you teach someone about call/cc. 2014-11-17T21:06:10Z Guest38330 quit (Quit: Leaving) 2014-11-17T21:06:26Z Khisanth joined #scheme 2014-11-17T21:06:33Z Riastradh: xyh: (f (cc)) is practically never actually what you want. 2014-11-17T21:06:34Z taylanub: (oh, I thought of n = length(x) for whatever reason) 2014-11-17T21:06:49Z Riastradh: taylanub: 0 <= n <= len(x) 2014-11-17T21:07:16Z taylanub: Riastradh: ITYM 0 < n ...? 2014-11-17T21:07:27Z Riastradh: No, I mean 0 <= n <= len(x). 2014-11-17T21:07:30Z bjz quit (Ping timeout: 256 seconds) 2014-11-17T21:07:39Z taylanub: oh sorry, "nonnegative" (brain doesn't want to work today) 2014-11-17T21:07:50Z taylanub: well for 0 I'd guess it empties it? 2014-11-17T21:08:06Z ijp: ah, there we go 2014-11-17T21:08:30Z ijp: the problem will be with -len(x) 2014-11-17T21:08:42Z taylanub: or raises out-of-bounds because -0 would be the element after -1 i.e. the last :P 2014-11-17T21:08:43Z ijp: which...errors? 2014-11-17T21:08:53Z xyh: vanila: I am watching the video "90-min-scc" (again) , I see you have a version of 90-min-scc in your repo, have you modified some of it to make it works ?? 2014-11-17T21:09:00Z taylanub: ijp: isn't -len(x) the first element? 2014-11-17T21:09:01Z Riastradh: n = len(x) is fine. 2014-11-17T21:09:03Z ijp: taylanub: -0 = 0, so it deletes the whole length 2014-11-17T21:09:21Z Riastradh: For n = 0, taylanub is correct that it actually empties the entire list instead of deleting zero elements from it. 2014-11-17T21:09:35Z vanila: xyh, i think its just an archve - not sure the code will work, but can be read 2014-11-17T21:09:48Z vanila: xyh, the video is not very good - but the slides are - do you have the slides? 2014-11-17T21:09:57Z ijp: Riastradh: hmm, yeah, mental offby1 error 2014-11-17T21:10:03Z xyh: vanila: yes I have. and the code words. 2014-11-17T21:10:08Z vanila: ok :) 2014-11-17T21:10:28Z taylanub: ijp: you highlighted offby1 :P 2014-11-17T21:10:40Z mdibound_ joined #scheme 2014-11-17T21:11:56Z gravicappa quit (Remote host closed the connection) 2014-11-17T21:17:28Z derek_c joined #scheme 2014-11-17T21:17:52Z xyh: vanila: why you call this lambda "CPS semantics" ? do you mean "denotational-semantics" ? :: (lambda (cont) (cont (lambda (k f) (f k (lambda (k0 v) (k v)))))) 2014-11-17T21:18:15Z fantazo joined #scheme 2014-11-17T21:18:20Z xyh: or it is just the function which implement CPS ? 2014-11-17T21:19:12Z vanila: xyh, the normal semantics is identity => (lambda (i) i) 2014-11-17T21:19:23Z vanila: but CPS semantics is identity => (lambda (k i) (k i)) 2014-11-17T21:19:32Z vanila: every lambda takes a continuation and passes its results into it 2014-11-17T21:20:01Z vanila: another exmape, k ==> (lambda (x) (lambda (y) x)) but CPS semantics k ==> (lambda (k x) (k (lambda (c y) (c x)))) 2014-11-17T21:20:22Z vanila: call-with-current-continuation doesn't have semantics in terms of pure lambda calculus 2014-11-17T21:20:26Z vanila: but it does have CPS semantics 2014-11-17T21:20:42Z vanila: so you can translate lambda calculus + CWCC into pure lambda calculus using CPS semantics 2014-11-17T21:22:20Z jeapostrophe joined #scheme 2014-11-17T21:22:40Z xyh: vanila: a semantics is a homomorphic ? 2014-11-17T21:23:05Z vanila: i dont really know 2014-11-17T21:23:14Z vanila: i guess so 2014-11-17T21:23:53Z xyh: maybe. in the sense of "math homomorphic between two math structure". 2014-11-17T21:25:19Z xyh likes old Bourbaki terms 2014-11-17T21:26:24Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T21:26:40Z ijp: a semantics is "just" a function that gives the "meaning" of a form 2014-11-17T21:26:50Z mdibound_ joined #scheme 2014-11-17T21:26:57Z oleo quit (Read error: Connection reset by peer) 2014-11-17T21:27:16Z ijp: i.e. an interpreter 2014-11-17T21:28:06Z xyh: ijp: maybe I just have my way of understanding things :P (some times wrong) 2014-11-17T21:33:05Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T21:33:22Z xyh: vanila: if every lambda takes that argument, then that argument should be used as a global variable right ? haskell do not allowed mutable global variable, so when haskell really needs a global variable it pass it through function's local arguments right ? 2014-11-17T21:33:26Z mrowe_away is now known as mrowe 2014-11-17T21:33:32Z mdibound_ joined #scheme 2014-11-17T21:33:52Z vanila: xyh, there' sno global variables in this 2014-11-17T21:33:59Z Vutral quit (Excess Flood) 2014-11-17T21:34:15Z vanila: just parameters 2014-11-17T21:37:55Z mdibound_ quit (Ping timeout: 255 seconds) 2014-11-17T21:39:42Z oleo joined #scheme 2014-11-17T21:41:36Z Vutral joined #scheme 2014-11-17T21:43:45Z atomx quit (Ping timeout: 264 seconds) 2014-11-17T21:46:27Z mrowe is now known as mrowe_away 2014-11-17T21:47:07Z Vutral quit (Excess Flood) 2014-11-17T21:48:30Z hiyosi joined #scheme 2014-11-17T21:56:10Z offby1: WHO dare take my name in vain?! 2014-11-17T21:57:05Z Gyps joined #scheme 2014-11-17T21:57:13Z Riastradh: Someone who was trying to take the next guy's name in vain, but missed, because of a slip-up with Python arrays. 2014-11-17T21:57:38Z stamourv: ijp: Only operational semantics really are like interpreters. Denotational semantics are more like compilers. 2014-11-17T21:58:46Z xyh: orz 2014-11-17T22:02:21Z circ-user-etfiX joined #scheme 2014-11-17T22:07:35Z hiroakip joined #scheme 2014-11-17T22:15:42Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T22:26:47Z mrowe_away is now known as mrowe 2014-11-17T22:34:09Z przl quit (Ping timeout: 264 seconds) 2014-11-17T22:34:25Z Vutral joined #scheme 2014-11-17T22:35:54Z mdibound_ joined #scheme 2014-11-17T22:40:40Z germ13 quit (Ping timeout: 244 seconds) 2014-11-17T22:41:39Z germ13 joined #scheme 2014-11-17T22:48:59Z germ13 quit (Ping timeout: 258 seconds) 2014-11-17T22:49:01Z altphi quit (Ping timeout: 255 seconds) 2014-11-17T22:51:34Z tessier quit (Read error: Connection reset by peer) 2014-11-17T22:52:30Z tessier joined #scheme 2014-11-17T23:00:25Z przl joined #scheme 2014-11-17T23:03:54Z developernotes quit (Quit: Textual IRC Client: www.textualapp.com) 2014-11-17T23:05:22Z przl quit (Ping timeout: 256 seconds) 2014-11-17T23:08:30Z robot-beethoven joined #scheme 2014-11-17T23:14:21Z davexunit quit (Quit: Later) 2014-11-17T23:22:37Z xyh quit (Ping timeout: 265 seconds) 2014-11-17T23:25:45Z hiroakip quit (Ping timeout: 264 seconds) 2014-11-17T23:27:05Z jenia joined #scheme 2014-11-17T23:27:20Z jenia: hello. can someone please tell me what wrong with this procedure: 2014-11-17T23:27:21Z jenia: (define member? 2014-11-17T23:27:22Z jenia: (lambda (l m) 2014-11-17T23:27:22Z jenia: (cond 2014-11-17T23:27:22Z jenia: ((null? (cdr l)) #f) 2014-11-17T23:27:22Z jenia: ((eq? (car l) m) #t) 2014-11-17T23:27:22Z jenia: (else (member? (cdr l) m))))) 2014-11-17T23:27:34Z jenia: it gives me an error 2014-11-17T23:27:53Z vanila: you should just check null? l 2014-11-17T23:28:11Z vanila: other than that it's good 2014-11-17T23:28:30Z jenia: ahh okay. thanks a lot 2014-11-17T23:30:47Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-17T23:32:15Z xyh joined #scheme 2014-11-17T23:44:26Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T23:45:01Z mdibound_ joined #scheme 2014-11-17T23:45:06Z przl joined #scheme 2014-11-17T23:46:10Z Vutral quit (Ping timeout: 256 seconds) 2014-11-17T23:49:57Z przl quit (Ping timeout: 240 seconds) 2014-11-17T23:50:33Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T23:54:53Z Vutral joined #scheme 2014-11-17T23:57:11Z kongtomorrow joined #scheme 2014-11-17T23:57:53Z davexunit joined #scheme 2014-11-17T23:58:30Z mdibound_ quit (Quit: Be back later ...) 2014-11-17T23:59:06Z mdibound_ joined #scheme