2014-12-07T00:00:08Z teurastaja: Grr 2014-12-07T00:01:33Z excelsior quit (Quit: Lost terminal) 2014-12-07T00:02:29Z daviid joined #scheme 2014-12-07T00:05:00Z teurastaja: (map lazy user-list) 2014-12-07T00:05:11Z robot-beethoven joined #scheme 2014-12-07T00:06:26Z hiyosi joined #scheme 2014-12-07T00:07:10Z daviid: :) 2014-12-07T00:07:55Z teurastaja: Hey someone! 2014-12-07T00:08:05Z teurastaja: Finally! 2014-12-07T00:08:34Z teurastaja: You ever implemented scheme in C? 2014-12-07T00:08:43Z teurastaja: I could use your help 2014-12-07T00:11:03Z teurastaja: Im from the province where most scheme development occurs and im bored so i thought of implementing scheme on a microcontroller 2014-12-07T00:11:25Z technomancy: teurastaja: I just started using http://microscheme.org and it's pretty nice 2014-12-07T00:12:44Z technomancy: you could do a nice scheme on ARM boards, but AVR forces you to cut a lot of dynamicity. 2014-12-07T00:12:55Z technomancy grumbles about the idiocy of harvard architecture 2014-12-07T00:14:06Z teurastaja: Lol im looking at the DS89C450, a 8051 2014-12-07T00:15:02Z teurastaja: Nice but im not looking to be dependant upon the arduino board 2014-12-07T00:18:25Z technomancy: cool 2014-12-07T00:18:33Z technomancy: well you might want to read the microscheme paper 2014-12-07T00:18:51Z technomancy: I'm sure you could learn from its design 2014-12-07T00:19:09Z teurastaja: Ive seen some ARMs seem supported but anyways... What are some of the techniques used to implement scheme in C? Sure ill read that 2014-12-07T00:20:03Z teurastaja: I mean... How do you implement closures? 2014-12-07T00:20:52Z BW^-: teurstaja: alive yes. 2014-12-07T00:20:59Z BW^- left #scheme 2014-12-07T00:22:55Z scmaccal quit (Remote host closed the connection) 2014-12-07T00:23:53Z teurastaja: I know continuations are easily made of setjmp and longjmp but closures would be what macros? 2014-12-07T00:24:10Z theseb quit (Quit: Leaving) 2014-12-07T00:25:44Z teurastaja: How do you delay procedure evaluation otherwise? 2014-12-07T00:26:54Z teurastaja: And it must carry its own stack through pointer manipulations 2014-12-07T00:28:59Z ijp: 1. continuations are not just setjmp/longjmp 2. closures would be a pointer to code, plus an environment vector for closed over values 2014-12-07T00:31:10Z ijp: so you just have a c function for each lambda, with an argument for its environment, and calling a function means extracting both parts of the closure struct and applying one to the other 2014-12-07T00:32:26Z teurastaja: Ok and how do you "pack" the code? In unparsed form? 2014-12-07T00:32:56Z ijp: what do you mean? 2014-12-07T00:35:06Z teurastaja: You execute code that has been applied to its environment variables, but how do you "pack" the code as an argument in c? 2014-12-07T00:36:09Z ijp: you are asking me how to compile a lambda? 2014-12-07T00:36:23Z teurastaja: Yup 2014-12-07T00:36:49Z ijp: lambdas are C functions, compile the body just like you would any other scheme expression 2014-12-07T00:37:48Z teurastaja: By manipulating file pointers? Impossible in microcontrollers 2014-12-07T00:38:09Z ijp: I don't see where file pointers come into this 2014-12-07T00:38:18Z teurastaja: Im a noob i know sorry for that 2014-12-07T00:38:29Z cojy: teurastaja: hwo are continuations easily made out of setjmp and longjmp? 2014-12-07T00:38:42Z ijp: cojy: they aren't 2014-12-07T00:38:58Z cojy: yea i mean if you don't have closures down you can't do it at alll 2014-12-07T00:39:19Z phipes joined #scheme 2014-12-07T00:39:42Z cojy: teurastaja: have you made an interpreter? 2014-12-07T00:40:03Z teurastaja: Only in scheme 2014-12-07T00:40:08Z cojy: did it do closures 2014-12-07T00:40:27Z teurastaja: It would be trivial in perl or javascript 2014-12-07T00:41:12Z cojy: im trying to explain it to you btw 2014-12-07T00:41:22Z cojy: but first you need to be able to write an interpreter with closures 2014-12-07T00:41:26Z cojy: then it's very intuitive 2014-12-07T00:42:23Z teurastaja: No it just copied lambda from the other implementation... 2014-12-07T00:42:41Z cojy: the other implementation? 2014-12-07T00:42:54Z cojy: do you have a paste somewhere? you sure you did it right? 2014-12-07T00:42:55Z teurastaja: Well the one i used to write it 2014-12-07T00:43:10Z cojy: it's common to mess up closures when making an interpreter 2014-12-07T00:43:38Z teurastaja: No i wrote it all on paper in a 6 month closed therapy lost all 2014-12-07T00:43:42Z cojy: teurastaja: you have to pair the lambda with the environment it was in otherwise you get dynamic binding 2014-12-07T00:43:49Z cojy: its the same for compiling 2014-12-07T00:44:42Z ijp: conceptually compiling isn't that much different from interpreting 2014-12-07T00:44:42Z cojy: but you want to walk the code to collect only what is used inside the lambda, replace the variable references with vector references and put all the needed values in a vector that you pass as an extra parameter 2014-12-07T00:44:45Z teurastaja: Yes i point to the saved stack 2014-12-07T00:45:34Z ijp: by stack do you mean control stack or the environment? 2014-12-07T00:45:41Z ijp: if you conflate the two, you don't have lexical scoping 2014-12-07T00:46:20Z teurastaja: Function stack 2014-12-07T00:47:03Z ijp: so, no lexical scoping for you 2014-12-07T00:47:15Z teurastaja: Oh damn... 2014-12-07T00:53:39Z ijp: teurastaja: if I follow you corrently, what you seem to be doing instead is creating continuations rather than closures 2014-12-07T00:56:02Z teurastaja: Ok i copy all variables in a struct of arrays and i pass it as one of 2 arguments of a function which binds that argument to the other argument which is a function pointer? 2014-12-07T00:56:05Z ijp: teurastaja: ((let((x 3)) (lambda (y) (+ x y))) 10) does that return 13 for you? 2014-12-07T00:56:51Z ijp: if you get an error, it means you don't have proper lexical scoping 2014-12-07T00:57:17Z teurastaja: If im totally hopeless tell me ill stop bothering you 2014-12-07T00:58:30Z jeapostrophe quit (Ping timeout: 256 seconds) 2014-12-07T00:59:45Z cojy: teurastaja: you hoist the code part into a normal C function, but you add an "env" parameter 2014-12-07T01:00:09Z cojy: in the place of the lambda you have a pair of a pointer to that function, and an environment vector 2014-12-07T01:00:45Z cojy: and you call the function pointer with the environment paired with it + arguments any time you want to call it 2014-12-07T01:02:24Z cojy: http://churchturing.org/y/90-min-scc.pdf 2014-12-07T01:02:34Z cojy: this has a couple slides to help illustrate its not that helpful overall though 2014-12-07T01:05:29Z stepnem quit (Ping timeout: 250 seconds) 2014-12-07T01:07:50Z amgarchIn9 joined #scheme 2014-12-07T01:09:10Z teurastaja: Oh so i handle pairs thats useful 2014-12-07T01:12:28Z teurastaja: Ok im getting a better idea of the data/program representation in c 2014-12-07T01:13:48Z cojy: closure conversion is probably the most major part of it, since that's what allows you to make lambdas into C functions 2014-12-07T01:16:42Z kongtomorrow joined #scheme 2014-12-07T01:17:43Z teurastaja: Thanks 2014-12-07T01:19:05Z oldskirt_ quit (Ping timeout: 264 seconds) 2014-12-07T01:19:43Z antinomy quit (Ping timeout: 272 seconds) 2014-12-07T01:22:26Z teurastaja quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) 2014-12-07T01:23:08Z amgarchIn9 quit (Quit: Konversation terminated!) 2014-12-07T01:23:18Z amgarchIn9 joined #scheme 2014-12-07T01:25:49Z kongtomorrow quit 2014-12-07T01:29:50Z jao quit (Ping timeout: 250 seconds) 2014-12-07T01:32:24Z antinomy joined #scheme 2014-12-07T01:34:55Z acarrico quit (Ping timeout: 252 seconds) 2014-12-07T02:21:38Z mark_wea` joined #scheme 2014-12-07T02:21:54Z tobik quit (Ping timeout: 245 seconds) 2014-12-07T02:22:23Z mark_wea` is now known as mark_weaver` 2014-12-07T02:23:05Z tobik joined #scheme 2014-12-07T02:25:35Z mark_weaver quit (Ping timeout: 258 seconds) 2014-12-07T02:43:51Z daviid quit (Ping timeout: 250 seconds) 2014-12-07T02:47:17Z enitiz_ quit (Quit: Leaving) 2014-12-07T02:47:34Z enitiz joined #scheme 2014-12-07T02:49:23Z jumblerg joined #scheme 2014-12-07T02:52:20Z yrdz` joined #scheme 2014-12-07T02:53:19Z acarrico joined #scheme 2014-12-07T02:53:54Z yrdz quit (Ping timeout: 250 seconds) 2014-12-07T03:01:27Z ddp joined #scheme 2014-12-07T03:01:34Z ddp left #scheme 2014-12-07T03:07:15Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T03:07:47Z pnpuff joined #scheme 2014-12-07T03:11:12Z antinomy quit (Ping timeout: 258 seconds) 2014-12-07T03:13:39Z dmiles_afk quit (Quit: Read error: 110 (Connection timed out)) 2014-12-07T03:15:29Z BitPuffin quit (Ping timeout: 250 seconds) 2014-12-07T03:17:29Z hiyosi joined #scheme 2014-12-07T03:17:30Z pnpuff quit 2014-12-07T03:38:45Z b4283 joined #scheme 2014-12-07T03:41:14Z psy_ quit (Ping timeout: 244 seconds) 2014-12-07T03:57:11Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T03:57:18Z jcowan joined #scheme 2014-12-07T03:59:30Z jcowan: hoi 2014-12-07T04:07:30Z jcowan: I'm making a library of immutable, sharable, cheaply subscriptable string-like objects, but I don't know what to call them. "String" is out. "Rope" has implications of cheap insert/delete that I don't intend, though ropes could be built on these. "Text" implies something higher level. Any suggestions? 2014-12-07T04:10:22Z offby1: is there a special word for "cheap bead necklace worn at Mardi Gras"? 2014-12-07T04:16:28Z davexunit quit (Quit: Later) 2014-12-07T04:18:57Z jcowan: There would be, if I needed one! 2014-12-07T04:22:24Z Gyps quit (Quit: Gyps) 2014-12-07T04:23:03Z pllx joined #scheme 2014-12-07T04:28:57Z jusss joined #scheme 2014-12-07T04:36:09Z mark_weaver` is now known as mark_weaver 2014-12-07T04:43:26Z amgarching joined #scheme 2014-12-07T04:46:41Z amgarchIn9 quit (Ping timeout: 252 seconds) 2014-12-07T04:55:13Z jcowan_ joined #scheme 2014-12-07T04:56:27Z enitiz quit (Quit: Leaving) 2014-12-07T04:56:29Z jcowan quit (Ping timeout: 245 seconds) 2014-12-07T04:57:05Z work_op joined #scheme 2014-12-07T05:02:08Z jcowan_ is now known as jcowan 2014-12-07T05:10:16Z kongtomorrow joined #scheme 2014-12-07T05:14:27Z leppie joined #scheme 2014-12-07T05:20:17Z leo2007 quit (Ping timeout: 240 seconds) 2014-12-07T05:26:09Z psy_ joined #scheme 2014-12-07T05:29:50Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-12-07T05:32:10Z phipes joined #scheme 2014-12-07T05:35:54Z kongtomorrow quit 2014-12-07T05:36:29Z b4283 quit (Read error: Connection reset by peer) 2014-12-07T05:40:43Z jumblerg joined #scheme 2014-12-07T05:41:07Z dmiles_afk joined #scheme 2014-12-07T05:42:22Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-12-07T05:42:29Z karswell` joined #scheme 2014-12-07T05:45:29Z karswell quit (Ping timeout: 264 seconds) 2014-12-07T05:54:55Z mark_wea` joined #scheme 2014-12-07T05:55:16Z alezost joined #scheme 2014-12-07T05:59:06Z mark_weaver quit (Ping timeout: 258 seconds) 2014-12-07T06:03:34Z bjz quit (Read error: Connection reset by peer) 2014-12-07T06:03:51Z bjz joined #scheme 2014-12-07T06:10:18Z rx_ joined #scheme 2014-12-07T06:13:25Z kongtomorrow joined #scheme 2014-12-07T06:38:17Z jusss quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-12-07T06:42:14Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T06:45:51Z hilquias quit (Remote host closed the connection) 2014-12-07T06:57:01Z cojy quit (Read error: Connection reset by peer) 2014-12-07T06:57:30Z cojy joined #scheme 2014-12-07T06:59:00Z daviid joined #scheme 2014-12-07T07:05:48Z mark_wea` quit (Ping timeout: 258 seconds) 2014-12-07T07:21:09Z pllx left #scheme 2014-12-07T07:33:54Z kazimir42 joined #scheme 2014-12-07T07:35:43Z psy_ quit (Ping timeout: 252 seconds) 2014-12-07T07:39:44Z dytrivedi__ quit (Ping timeout: 272 seconds) 2014-12-07T07:40:17Z daviid quit (Ping timeout: 245 seconds) 2014-12-07T07:40:28Z jcloud quit (Ping timeout: 255 seconds) 2014-12-07T07:40:59Z greghendershott quit (Ping timeout: 272 seconds) 2014-12-07T07:41:06Z leo2007 joined #scheme 2014-12-07T07:41:17Z samth quit (Ping timeout: 264 seconds) 2014-12-07T07:42:18Z systemovich_ joined #scheme 2014-12-07T07:45:53Z systemovich quit (Ping timeout: 250 seconds) 2014-12-07T07:49:27Z bjz quit (Ping timeout: 264 seconds) 2014-12-07T07:54:18Z rx_ quit (Quit: ircN 9.00 for mIRC (20100824-DEV) - www.ircN.org) 2014-12-07T08:00:35Z bjz joined #scheme 2014-12-07T08:01:47Z aksatac quit (Ping timeout: 258 seconds) 2014-12-07T08:01:54Z ELLIOTTCABLE quit (Ping timeout: 272 seconds) 2014-12-07T08:02:40Z pjdelport quit (Ping timeout: 244 seconds) 2014-12-07T08:04:01Z pjdelport joined #scheme 2014-12-07T08:04:26Z aksatac joined #scheme 2014-12-07T08:06:37Z work_op quit (Ping timeout: 246 seconds) 2014-12-07T08:08:02Z girrig quit (Ping timeout: 256 seconds) 2014-12-07T08:09:05Z girrig joined #scheme 2014-12-07T08:12:25Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T08:13:43Z ELLIOTTCABLE joined #scheme 2014-12-07T08:14:46Z xyh joined #scheme 2014-12-07T08:16:52Z shardz joined #scheme 2014-12-07T08:20:18Z kongtomorrow quit (Read error: Connection reset by peer) 2014-12-07T08:20:59Z kongtomorrow joined #scheme 2014-12-07T08:21:15Z bjz quit (Ping timeout: 264 seconds) 2014-12-07T08:21:22Z bjz_ joined #scheme 2014-12-07T08:23:19Z vinleod joined #scheme 2014-12-07T08:28:08Z hiyosi joined #scheme 2014-12-07T08:32:40Z petercommand quit (Quit: Reconnecting) 2014-12-07T08:33:31Z petercommand joined #scheme 2014-12-07T08:34:26Z petercommand quit (Client Quit) 2014-12-07T08:34:47Z petercommand joined #scheme 2014-12-07T08:35:22Z nisstyre quit (Ping timeout: 255 seconds) 2014-12-07T08:38:15Z ASau` joined #scheme 2014-12-07T08:40:59Z petercommand quit (Quit: leaving) 2014-12-07T08:41:15Z petercommand joined #scheme 2014-12-07T08:41:56Z ASau quit (Ping timeout: 244 seconds) 2014-12-07T08:43:48Z mark_weaver joined #scheme 2014-12-07T08:44:12Z petercom1and joined #scheme 2014-12-07T08:44:35Z petercommand quit (Client Quit) 2014-12-07T08:44:46Z petercom1and is now known as petercommand 2014-12-07T08:49:49Z amgarching quit (Ping timeout: 245 seconds) 2014-12-07T08:50:21Z amgarching joined #scheme 2014-12-07T09:04:43Z nisstyre joined #scheme 2014-12-07T09:22:58Z pjdelport quit (Quit: Connection closed for inactivity) 2014-12-07T09:29:19Z psy_ joined #scheme 2014-12-07T09:42:33Z altphi joined #scheme 2014-12-07T09:54:57Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-12-07T09:55:53Z altphi quit 2014-12-07T10:00:16Z chitofan joined #scheme 2014-12-07T10:00:23Z chitofan: http://pasterack.org/pastes/19837 2014-12-07T10:00:27Z chitofan: what error did i overlook? 2014-12-07T10:03:33Z MichaelRaskin: Are you sure you want begin, not cons? 2014-12-07T10:04:21Z chitofan: begin is the scheme's version of progn in cl, right? 2014-12-07T10:04:45Z MichaelRaskin: Yes 2014-12-07T10:05:58Z hive-mind quit (Ping timeout: 258 seconds) 2014-12-07T10:06:00Z chitofan: it works with cons 2014-12-07T10:06:03Z chitofan: thanks! 2014-12-07T10:07:40Z hive-mind joined #scheme 2014-12-07T10:08:04Z derek_c quit (Ping timeout: 255 seconds) 2014-12-07T10:27:48Z leo2007 quit (Remote host closed the connection) 2014-12-07T10:38:47Z oleo is now known as Guest6095 2014-12-07T10:40:19Z oleo__ joined #scheme 2014-12-07T10:40:57Z drdanmaku quit (Quit: Connection closed for inactivity) 2014-12-07T10:41:37Z Guest6095 quit (Ping timeout: 240 seconds) 2014-12-07T10:42:52Z Bahman joined #scheme 2014-12-07T10:49:51Z antinomy joined #scheme 2014-12-07T10:54:48Z dytrivedi__ joined #scheme 2014-12-07T11:01:06Z vinleod quit (Quit: Computer has gone to sleep.) 2014-12-07T11:06:52Z leo2007 joined #scheme 2014-12-07T11:08:51Z jeapostrophe joined #scheme 2014-12-07T11:11:15Z stepnem joined #scheme 2014-12-07T11:14:25Z offby1_ joined #scheme 2014-12-07T11:17:55Z xyh left #scheme 2014-12-07T11:22:35Z mlaine joined #scheme 2014-12-07T11:22:41Z samth joined #scheme 2014-12-07T11:26:17Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-12-07T11:30:37Z greghendershott joined #scheme 2014-12-07T11:44:57Z Vutral quit (Ping timeout: 240 seconds) 2014-12-07T11:47:38Z ELLIOTTCABLE quit (Write error: Connection reset by peer) 2014-12-07T11:47:38Z aksatac quit (Remote host closed the connection) 2014-12-07T11:59:02Z taylanub quit (Disconnected by services) 2014-12-07T11:59:38Z taylanub joined #scheme 2014-12-07T12:05:40Z jcloud joined #scheme 2014-12-07T12:07:35Z mark_wea` joined #scheme 2014-12-07T12:11:42Z mark_weaver quit (Ping timeout: 258 seconds) 2014-12-07T12:13:04Z ASau` is now known as ASau 2014-12-07T12:15:09Z antinomy quit (Ping timeout: 258 seconds) 2014-12-07T12:16:10Z chitofan: if i have a list with 3 distinct objects that are separated from each other with an all uppercase string, how do i bundle them into a list of 3 lists? 2014-12-07T12:16:59Z chitofan: i've only gotten so far as http://pasterack.org/pastes/38542 2014-12-07T12:23:55Z ELLIOTTCABLE joined #scheme 2014-12-07T12:24:07Z jeapostrophe joined #scheme 2014-12-07T12:27:39Z ijp quit (Quit: This ijp has ended peacefully) 2014-12-07T12:28:42Z jeapostrophe quit (Ping timeout: 256 seconds) 2014-12-07T12:30:37Z pnkfelix joined #scheme 2014-12-07T12:35:13Z hiroakip joined #scheme 2014-12-07T12:38:10Z antinomy joined #scheme 2014-12-07T12:38:25Z dytrivedi__ quit (Ping timeout: 260 seconds) 2014-12-07T12:38:32Z samth quit (Ping timeout: 258 seconds) 2014-12-07T12:39:05Z jcloud quit (Ping timeout: 244 seconds) 2014-12-07T12:39:17Z greghendershott quit (Ping timeout: 272 seconds) 2014-12-07T12:39:18Z offby1_ quit (Ping timeout: 258 seconds) 2014-12-07T12:44:54Z narendraj9 joined #scheme 2014-12-07T12:47:43Z aksatac joined #scheme 2014-12-07T12:53:13Z aksatac quit (Ping timeout: 272 seconds) 2014-12-07T12:55:55Z pnpuff joined #scheme 2014-12-07T12:56:11Z ELLIOTTCABLE quit (Ping timeout: 265 seconds) 2014-12-07T13:02:43Z b4283 joined #scheme 2014-12-07T13:03:24Z pjb: chitofan: your paste is incomplete. 2014-12-07T13:08:59Z BitPuffin joined #scheme 2014-12-07T13:14:03Z chitofan: pjb: i realized that i would get into a nested list if i went with that idea, so i stopped there.. 2014-12-07T13:22:05Z oleo__ quit (Quit: Verlassend) 2014-12-07T13:26:27Z mark_wea` quit (Ping timeout: 258 seconds) 2014-12-07T13:28:10Z sternenseemann left #scheme 2014-12-07T13:30:00Z dytrivedi__ joined #scheme 2014-12-07T13:38:35Z jusss joined #scheme 2014-12-07T13:39:08Z davexunit joined #scheme 2014-12-07T13:43:52Z ELLIOTTCABLE joined #scheme 2014-12-07T13:44:04Z taylanub quit (Disconnected by services) 2014-12-07T13:44:42Z taylanub joined #scheme 2014-12-07T13:45:12Z wingo joined #scheme 2014-12-07T13:50:20Z offby1_ joined #scheme 2014-12-07T13:56:19Z samth joined #scheme 2014-12-07T13:56:52Z Vutral joined #scheme 2014-12-07T14:00:28Z chitofan quit (Ping timeout: 246 seconds) 2014-12-07T14:00:51Z aksatac joined #scheme 2014-12-07T14:01:05Z narendraj9 quit (Ping timeout: 264 seconds) 2014-12-07T14:02:05Z greghendershott joined #scheme 2014-12-07T14:04:31Z pnpuff quit (Quit: pnpuff) 2014-12-07T14:13:39Z narendraj9 joined #scheme 2014-12-07T14:14:00Z enitiz joined #scheme 2014-12-07T14:21:45Z snyp joined #scheme 2014-12-07T14:25:09Z mlaine: anyone here using gambit-c git? 2014-12-07T14:25:35Z mlaine: what would be the proper way to keep up to date? 2014-12-07T14:26:13Z mlaine: git pull && make clean && make -jX from-scratch? 2014-12-07T14:26:59Z jcloud joined #scheme 2014-12-07T14:27:21Z narendraj9 quit (Quit: WeeChat 1.0.1) 2014-12-07T14:29:29Z jeapostrophe joined #scheme 2014-12-07T14:32:24Z flaggy joined #scheme 2014-12-07T14:33:50Z Rodya_ joined #scheme 2014-12-07T14:34:28Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-12-07T14:47:00Z FracV quit (Read error: Connection reset by peer) 2014-12-07T14:47:10Z FracV joined #scheme 2014-12-07T14:47:33Z Rodya_ quit (Read error: Connection reset by peer) 2014-12-07T14:50:42Z jusss quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-12-07T14:51:16Z amgarching quit (Ping timeout: 264 seconds) 2014-12-07T14:53:03Z oleo joined #scheme 2014-12-07T14:54:40Z flaggy: Is the only way to see if two numbers are different (not (= x y))? 2014-12-07T14:55:24Z hilquias joined #scheme 2014-12-07T14:57:39Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T14:58:28Z xyh joined #scheme 2014-12-07T14:59:33Z hiyosi joined #scheme 2014-12-07T15:02:56Z jcowan quit (Ping timeout: 244 seconds) 2014-12-07T15:03:52Z BossKonaSegwaY quit (Ping timeout: 264 seconds) 2014-12-07T15:04:00Z drdanmaku joined #scheme 2014-12-07T15:11:59Z ecraven: flaggy: (or (< x y) (> x y)) :) 2014-12-07T15:12:21Z ecraven: flaggy: equal? may work too, eqv? might as well, even eq?, depending on your implementation 2014-12-07T15:20:46Z flaggy: well, I was looking for something less verbose, like (!= x y) :P 2014-12-07T15:22:03Z daviid joined #scheme 2014-12-07T15:23:12Z BossKonaSegwaY joined #scheme 2014-12-07T15:32:24Z snyp: continuations are so confusing.... 2014-12-07T15:34:22Z flaggy: everything in this earth is confusing 2014-12-07T15:34:36Z flaggy: thank god I can pretend I understand a few 2014-12-07T15:37:00Z dpk: flaggy: (define (!= . xs) (not (apply = xs))) 2014-12-07T15:38:45Z flaggy: I found it odd that it was not part of the language already. I thought I was missing something. 2014-12-07T15:38:51Z dpk: or even better, (define (! f . xs) (not (apply f xs))) 2014-12-07T15:39:23Z dpk: then you can do (! = x y) or (! ) to avoid paren-clutter 2014-12-07T15:39:40Z dpk: doesn't work with syntax though, so you might want to implement it as a macro 2014-12-07T15:40:10Z snyp: what does call/cc return ? 2014-12-07T15:40:15Z flaggy: interesting :) 2014-12-07T15:40:43Z snyp: what does call/cc return after applying it to the lambda? 2014-12-07T15:40:47Z dpk: snyp: whatever the passed procedure returns 2014-12-07T15:41:03Z dpk: *or* if the passed procedure calls the continuation arg, it returns whatever the arg is 2014-12-07T15:41:45Z snyp: dpk: ah 2014-12-07T15:41:50Z snyp: returns ? 2014-12-07T15:41:58Z snyp: (+ 1 (call/cc (lambda (cc) 2014-12-07T15:41:59Z snyp: (begin (cc 3) 2014-12-07T15:42:02Z snyp: 2)))) 2014-12-07T15:42:15Z snyp: why is it not print 4 and then 3? 2014-12-07T15:42:19Z dpk: returns 4 2014-12-07T15:42:20Z snyp: s/print/printing 2014-12-07T15:42:25Z snyp: why not 3 after? 2014-12-07T15:42:30Z dpk: because the continuation there is like an early escape 2014-12-07T15:42:35Z dpk: like 'return' in C or whathaveyou 2014-12-07T15:42:40Z snyp: i see 2014-12-07T15:42:47Z snyp: weird 2014-12-07T15:43:40Z xyh left #scheme 2014-12-07T15:43:42Z dpk: not really; the continuation is an object representing the 'next action' of the interpreter. when you call it, it resets the next action and completely forgets about whatever was previously ahead of it 2014-12-07T15:44:36Z snyp: i searched for escape in r6rs.pdf 2014-12-07T15:44:39Z snyp: "Scheme was the first widely used programming 2014-12-07T15:44:40Z snyp: language to embrace first-class escape procedures" 2014-12-07T15:44:45Z snyp: is that it? 2014-12-07T15:45:09Z snyp: i see. 2014-12-07T15:45:50Z Natch quit (Remote host closed the connection) 2014-12-07T15:47:04Z mark_weaver joined #scheme 2014-12-07T15:47:50Z snyp: yes they are it seems 2014-12-07T15:47:57Z snyp: nice 2014-12-07T15:54:23Z leo2007 quit (Quit: rcirc on GNU Emacs 25.0.50.1) 2014-12-07T16:00:07Z offby1_ quit (Quit: Connection closed for inactivity) 2014-12-07T16:00:15Z jeapostrophe joined #scheme 2014-12-07T16:00:16Z jeapostrophe quit (Changing host) 2014-12-07T16:00:16Z jeapostrophe joined #scheme 2014-12-07T16:05:09Z jeapostrophe quit (Ping timeout: 258 seconds) 2014-12-07T16:15:02Z kazimir42 quit (Remote host closed the connection) 2014-12-07T16:34:45Z jcloud quit (Quit: Connection closed for inactivity) 2014-12-07T16:37:17Z ASau quit (Remote host closed the connection) 2014-12-07T16:38:33Z ASau joined #scheme 2014-12-07T16:48:12Z taylanub quit (Disconnected by services) 2014-12-07T16:48:47Z taylanub joined #scheme 2014-12-07T16:55:56Z snyp quit (Quit: WeeChat 1.0.1) 2014-12-07T17:00:54Z pjdelport joined #scheme 2014-12-07T17:06:26Z amgarchIn9 joined #scheme 2014-12-07T17:06:56Z pnkfelix quit (Ping timeout: 256 seconds) 2014-12-07T17:11:37Z hiroakip quit (Ping timeout: 272 seconds) 2014-12-07T17:23:36Z Bahman quit (Quit: Ave atque vale) 2014-12-07T17:25:45Z enitiz_ joined #scheme 2014-12-07T17:29:40Z enitiz quit (Ping timeout: 264 seconds) 2014-12-07T17:33:19Z b4283 quit (Quit: Konversation terminated!) 2014-12-07T17:36:22Z enitiz_ quit (Quit: Leaving) 2014-12-07T17:43:56Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T17:45:29Z karswell` quit (Ping timeout: 252 seconds) 2014-12-07T17:48:42Z karswell` joined #scheme 2014-12-07T17:55:22Z Vutral quit (Ping timeout: 265 seconds) 2014-12-07T17:58:17Z add^_ joined #scheme 2014-12-07T17:58:20Z mark_wea` joined #scheme 2014-12-07T18:02:27Z mark_weaver quit (Ping timeout: 258 seconds) 2014-12-07T18:06:37Z mark_wea` is now known as mark_weaver 2014-12-07T18:07:19Z systemovich_ quit (Ping timeout: 245 seconds) 2014-12-07T18:07:48Z leppie quit (Ping timeout: 250 seconds) 2014-12-07T18:08:14Z kazimir42 joined #scheme 2014-12-07T18:08:27Z Vutral joined #scheme 2014-12-07T18:10:29Z gravicappa joined #scheme 2014-12-07T18:11:53Z GGMethos quit (Ping timeout: 264 seconds) 2014-12-07T18:13:15Z GGMethos joined #scheme 2014-12-07T18:21:55Z flaggy quit (Ping timeout: 272 seconds) 2014-12-07T18:28:00Z karswell` is now known as karswell 2014-12-07T18:28:01Z wingo quit (Ping timeout: 252 seconds) 2014-12-07T18:33:20Z ddp joined #scheme 2014-12-07T18:33:27Z ddp left #scheme 2014-12-07T18:40:48Z pnkfelix joined #scheme 2014-12-07T18:53:50Z hiroakip joined #scheme 2014-12-07T19:02:13Z daviid quit (Ping timeout: 255 seconds) 2014-12-07T19:08:54Z ft quit (Ping timeout: 264 seconds) 2014-12-07T19:10:32Z ft joined #scheme 2014-12-07T19:11:08Z fantazo joined #scheme 2014-12-07T19:16:18Z araujo quit (Quit: Leaving) 2014-12-07T19:27:17Z jcloud joined #scheme 2014-12-07T19:31:54Z hiroakip quit (Ping timeout: 244 seconds) 2014-12-07T19:34:44Z jeapostrophe joined #scheme 2014-12-07T19:34:44Z jeapostrophe quit (Changing host) 2014-12-07T19:34:44Z jeapostrophe joined #scheme 2014-12-07T19:39:24Z jeapostrophe quit (Ping timeout: 245 seconds) 2014-12-07T19:44:35Z yrdz`` joined #scheme 2014-12-07T19:45:48Z Flaoer joined #scheme 2014-12-07T19:46:19Z yrdz` quit (Ping timeout: 255 seconds) 2014-12-07T20:03:21Z dmiles joined #scheme 2014-12-07T20:04:28Z dmiles_afk quit (Ping timeout: 264 seconds) 2014-12-07T20:05:34Z jumblerg joined #scheme 2014-12-07T20:05:56Z ASau quit (Remote host closed the connection) 2014-12-07T20:06:55Z ASau joined #scheme 2014-12-07T20:07:19Z kazimir42 quit (Ping timeout: 250 seconds) 2014-12-07T20:09:00Z Gyps joined #scheme 2014-12-07T20:09:20Z fantazo quit (Quit: Verlassend) 2014-12-07T20:11:38Z alexander-01 joined #scheme 2014-12-07T20:15:03Z karswell quit (Ping timeout: 265 seconds) 2014-12-07T20:17:32Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T20:18:49Z enitiz joined #scheme 2014-12-07T20:20:58Z kongtomorrow quit 2014-12-07T20:25:49Z Flaoer quit (Ping timeout: 258 seconds) 2014-12-07T20:29:33Z goglosh joined #scheme 2014-12-07T20:29:40Z wilfredh joined #scheme 2014-12-07T20:29:45Z CatPlusPlus joined #scheme 2014-12-07T20:37:01Z jumblerg joined #scheme 2014-12-07T20:42:00Z araujo joined #scheme 2014-12-07T20:47:01Z add^_ left #scheme 2014-12-07T20:47:55Z alexander-01 quit (Ping timeout: 265 seconds) 2014-12-07T20:49:27Z mrowe_away is now known as mrowe 2014-12-07T20:55:41Z alexander-01 joined #scheme 2014-12-07T20:57:00Z bjz_ quit (Ping timeout: 256 seconds) 2014-12-07T21:00:53Z civodul joined #scheme 2014-12-07T21:10:13Z alexander-01 quit (Remote host closed the connection) 2014-12-07T21:12:39Z rtra quit (Ping timeout: 244 seconds) 2014-12-07T21:18:54Z rtra joined #scheme 2014-12-07T21:20:22Z klltkr_ joined #scheme 2014-12-07T21:23:26Z pnkfelix quit (Remote host closed the connection) 2014-12-07T21:29:29Z goglosh left #scheme 2014-12-07T21:29:31Z flaggy joined #scheme 2014-12-07T21:32:24Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-12-07T21:32:46Z pllx joined #scheme 2014-12-07T21:37:01Z pllx quit (Ping timeout: 250 seconds) 2014-12-07T21:43:46Z derek_c joined #scheme 2014-12-07T21:44:26Z ASau quit (Remote host closed the connection) 2014-12-07T21:45:00Z hiyosi joined #scheme 2014-12-07T21:47:26Z ASau joined #scheme 2014-12-07T21:49:57Z derek_c quit (Ping timeout: 240 seconds) 2014-12-07T21:59:18Z amgarching joined #scheme 2014-12-07T21:59:18Z amgarchIn9 quit (Read error: Connection reset by peer) 2014-12-07T21:59:44Z alezost quit (Quit: I use GNU Guix ) 2014-12-07T22:01:07Z enenn joined #scheme 2014-12-07T22:04:55Z dmiles quit (Ping timeout: 255 seconds) 2014-12-07T22:06:47Z Flaoer joined #scheme 2014-12-07T22:10:58Z leppie joined #scheme 2014-12-07T22:12:40Z gravicappa quit (Remote host closed the connection) 2014-12-07T22:14:45Z ASau quit (Remote host closed the connection) 2014-12-07T22:16:04Z systemovich joined #scheme 2014-12-07T22:21:10Z ASau joined #scheme 2014-12-07T22:21:34Z jumblerg joined #scheme 2014-12-07T22:29:32Z Atro joined #scheme 2014-12-07T22:31:10Z Flaoer quit (Ping timeout: 258 seconds) 2014-12-07T22:39:57Z klltkr_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-12-07T22:49:12Z nisstyre quit (Changing host) 2014-12-07T22:49:12Z nisstyre joined #scheme 2014-12-07T22:50:43Z derek_c joined #scheme 2014-12-07T22:51:17Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-12-07T22:52:16Z dmiles_afk joined #scheme 2014-12-07T22:54:19Z oleo is now known as Guest32365 2014-12-07T22:55:55Z oleo__ joined #scheme 2014-12-07T22:56:14Z karswell joined #scheme 2014-12-07T22:57:14Z Guest32365 quit (Ping timeout: 244 seconds) 2014-12-07T22:59:00Z girrig quit (Ping timeout: 250 seconds) 2014-12-07T23:02:58Z girrig joined #scheme 2014-12-07T23:05:03Z zv` joined #scheme 2014-12-07T23:18:41Z flaggy quit (Ping timeout: 260 seconds) 2014-12-07T23:23:41Z araujo quit (Quit: Leaving) 2014-12-07T23:31:34Z hilquias quit (Remote host closed the connection) 2014-12-07T23:42:52Z emma quit (Ping timeout: 264 seconds) 2014-12-07T23:44:36Z emma joined #scheme 2014-12-07T23:46:01Z Atro quit (Read error: Connection reset by peer) 2014-12-07T23:47:04Z derek_c quit (Ping timeout: 255 seconds) 2014-12-07T23:57:00Z ijp joined #scheme 2014-12-07T23:58:26Z enitiz_ joined #scheme 2014-12-07T23:59:19Z derek_c joined #scheme