2014-09-26T00:01:01Z ilammy quit (Ping timeout: 246 seconds) 2014-09-26T00:05:13Z klltkr quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-09-26T00:06:44Z jeapostrophe joined #scheme 2014-09-26T00:06:46Z jeapostrophe quit (Changing host) 2014-09-26T00:06:46Z jeapostrophe joined #scheme 2014-09-26T00:22:07Z kongtomorrow quit 2014-09-26T00:26:08Z zhaoym joined #scheme 2014-09-26T00:46:56Z uncomprehensibly is now known as ELLIOTTCABLE 2014-09-26T00:49:29Z Shmore left #scheme 2014-09-26T00:54:27Z jusss joined #scheme 2014-09-26T00:55:46Z kongtomorrow joined #scheme 2014-09-26T00:58:37Z zlrth quit (Ping timeout: 260 seconds) 2014-09-26T01:02:18Z BossKonaSegwaY quit (Ping timeout: 244 seconds) 2014-09-26T01:02:25Z amgarchIn9 quit (Ping timeout: 260 seconds) 2014-09-26T01:06:30Z BossKonaSegwaY joined #scheme 2014-09-26T01:08:00Z pnkfelix quit (Remote host closed the connection) 2014-09-26T01:12:03Z kongtomo_ joined #scheme 2014-09-26T01:12:10Z kongtomorrow quit (Read error: Connection reset by peer) 2014-09-26T01:16:55Z kongtomo_ quit (Read error: Connection reset by peer) 2014-09-26T01:17:01Z Mso150_u joined #scheme 2014-09-26T01:17:10Z kongtomorrow joined #scheme 2014-09-26T01:33:45Z lisper29 joined #scheme 2014-09-26T01:37:01Z kongtomorrow quit (Read error: Connection reset by peer) 2014-09-26T01:37:34Z kongtomorrow joined #scheme 2014-09-26T01:42:23Z daviid joined #scheme 2014-09-26T01:44:56Z c107 joined #scheme 2014-09-26T01:47:41Z tobik quit (Ping timeout: 260 seconds) 2014-09-26T01:48:46Z tobik joined #scheme 2014-09-26T01:50:17Z Mso150_u quit (Ping timeout: 272 seconds) 2014-09-26T01:52:05Z jusss quit (Read error: No route to host) 2014-09-26T01:52:26Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T02:03:54Z jusss joined #scheme 2014-09-26T02:08:13Z b4283 joined #scheme 2014-09-26T02:08:17Z yacks joined #scheme 2014-09-26T02:10:17Z BossKonaSegwaY joined #scheme 2014-09-26T02:14:31Z zhaoym quit (Quit: WeeChat 0.3.8) 2014-09-26T02:14:33Z kongtomorrow quit 2014-09-26T02:15:52Z jeapostrophe quit (Ping timeout: 272 seconds) 2014-09-26T02:18:00Z zacts: stupid gavino 2014-09-26T02:19:12Z atomx_ quit (Ping timeout: 272 seconds) 2014-09-26T02:35:45Z kongtomorrow joined #scheme 2014-09-26T02:48:13Z kongtomorrow quit (Remote host closed the connection) 2014-09-26T02:48:54Z kongtomorrow joined #scheme 2014-09-26T02:49:05Z jlongster joined #scheme 2014-09-26T02:52:54Z lisper29 left #scheme 2014-09-26T02:53:19Z ChanServ has set mode -o samth 2014-09-26T03:06:16Z eMBee quit (Ping timeout: 250 seconds) 2014-09-26T03:08:10Z gluegadget quit (Read error: Connection reset by peer) 2014-09-26T03:10:12Z gluegadget_ joined #scheme 2014-09-26T03:21:33Z hiyosi_ quit (Ping timeout: 246 seconds) 2014-09-26T03:21:54Z MichaelRaskin quit (Ping timeout: 272 seconds) 2014-09-26T03:29:46Z davexunit quit (Remote host closed the connection) 2014-09-26T03:35:06Z eMBee joined #scheme 2014-09-26T03:48:06Z hiyosi_ joined #scheme 2014-09-26T03:49:26Z jcowan joined #scheme 2014-09-26T03:49:46Z jcowan: hoi 2014-09-26T03:52:48Z hiyosi_ quit (Ping timeout: 244 seconds) 2014-09-26T04:07:42Z jusss quit (Ping timeout: 245 seconds) 2014-09-26T04:12:43Z kazimir42 joined #scheme 2014-09-26T04:12:57Z Neet quit (Read error: Connection reset by peer) 2014-09-26T04:13:23Z Neet joined #scheme 2014-09-26T04:15:06Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T04:32:42Z araujo quit (Quit: Leaving) 2014-09-26T04:33:14Z robot-beethoven joined #scheme 2014-09-26T04:34:23Z BossKonaSegwaY joined #scheme 2014-09-26T04:38:35Z vinleod joined #scheme 2014-09-26T04:48:58Z hiyosi_ joined #scheme 2014-09-26T04:53:32Z hiyosi_ quit (Ping timeout: 245 seconds) 2014-09-26T04:54:59Z vanila joined #scheme 2014-09-26T04:57:25Z vinleod quit (Quit: Computer has gone to sleep.) 2014-09-26T04:58:05Z oleo__ quit (Quit: Verlassend) 2014-09-26T05:02:34Z c107 quit (Remote host closed the connection) 2014-09-26T05:02:36Z kongtomorrow quit 2014-09-26T05:17:24Z travula joined #scheme 2014-09-26T05:19:44Z jlongster quit (Ping timeout: 250 seconds) 2014-09-26T05:21:15Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-26T05:24:38Z travula quit (Remote host closed the connection) 2014-09-26T05:27:01Z jcowan quit (Quit: Leaving) 2014-09-26T05:27:52Z kongtomorrow joined #scheme 2014-09-26T05:31:02Z kazimir42 quit (Remote host closed the connection) 2014-09-26T05:32:24Z jusss joined #scheme 2014-09-26T05:38:15Z kongtomorrow quit 2014-09-26T05:39:23Z hiroakip joined #scheme 2014-09-26T05:40:54Z lrs joined #scheme 2014-09-26T05:49:45Z hiyosi_ joined #scheme 2014-09-26T05:50:04Z kongtomorrow joined #scheme 2014-09-26T05:55:11Z hiyosi_ quit (Ping timeout: 272 seconds) 2014-09-26T05:57:22Z hiroakip quit (Ping timeout: 240 seconds) 2014-09-26T05:59:09Z daviid quit (Ping timeout: 260 seconds) 2014-09-26T06:26:03Z mrowe is now known as mrowe_away 2014-09-26T06:29:08Z fadein quit (Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number) 2014-09-26T06:29:22Z vukcrni quit (Remote host closed the connection) 2014-09-26T06:29:53Z tstc quit (Ping timeout: 240 seconds) 2014-09-26T06:30:28Z vukcrni joined #scheme 2014-09-26T06:31:37Z fadein joined #scheme 2014-09-26T06:31:54Z tstc joined #scheme 2014-09-26T06:35:16Z Mso150_u joined #scheme 2014-09-26T06:35:33Z drewc quit (Ping timeout: 260 seconds) 2014-09-26T06:50:13Z civodul joined #scheme 2014-09-26T06:50:32Z hiyosi_ joined #scheme 2014-09-26T06:51:40Z masm joined #scheme 2014-09-26T06:55:36Z hiyosi_ quit (Ping timeout: 260 seconds) 2014-09-26T06:57:21Z ilammy joined #scheme 2014-09-26T07:00:13Z lrs quit (Quit: Leaving) 2014-09-26T07:01:43Z ilammy quit (Ping timeout: 246 seconds) 2014-09-26T07:03:43Z fridim__ joined #scheme 2014-09-26T07:11:54Z ventonegro joined #scheme 2014-09-26T07:15:27Z ilammy joined #scheme 2014-09-26T07:15:38Z vukcrni quit (Remote host closed the connection) 2014-09-26T07:17:23Z vukcrni joined #scheme 2014-09-26T07:26:42Z BossKonaSegwaY quit (Ping timeout: 244 seconds) 2014-09-26T07:28:15Z Soft quit (Ping timeout: 244 seconds) 2014-09-26T07:34:02Z taylanub: ecraven: That library is basically from http://www.gnu.org/software/guile/manual/html_node/Higher_002dOrder-Functions.html except I added `pipeline' 2014-09-26T07:34:03Z rudybot: http://tinyurl.com/lbfchzs 2014-09-26T07:44:36Z Soft joined #scheme 2014-09-26T07:45:41Z BossKonaSegwaY joined #scheme 2014-09-26T07:51:27Z hiyosi_ joined #scheme 2014-09-26T07:55:40Z rszeno joined #scheme 2014-09-26T07:56:15Z hiyosi_ quit (Ping timeout: 258 seconds) 2014-09-26T07:56:29Z taylanub: hm, Guile supports not only `floor' and `truncate' for /, quotient, and remainder, but also euclidian, ceiling, centered, and round O_o 2014-09-26T08:03:17Z rszeno quit (Quit: Leaving.) 2014-09-26T08:04:28Z vinleod joined #scheme 2014-09-26T08:09:30Z MichaelRaskin joined #scheme 2014-09-26T08:36:08Z stepnem joined #scheme 2014-09-26T08:41:37Z drdanmaku quit (Quit: Connection closed for inactivity) 2014-09-26T08:50:54Z gluegadget_ is now known as gluegadget 2014-09-26T08:50:57Z gluegadget quit (Changing host) 2014-09-26T08:50:57Z gluegadget joined #scheme 2014-09-26T08:50:57Z gluegadget quit (Changing host) 2014-09-26T08:50:57Z gluegadget joined #scheme 2014-09-26T08:52:13Z hiyosi_ joined #scheme 2014-09-26T08:54:43Z ecraven: does any srfi contain a multi-partition procedure? like partition from srfi-1, but with multiple resulting groups, not just two? 2014-09-26T08:56:39Z Mso150_u quit (Read error: Connection reset by peer) 2014-09-26T08:57:09Z hiyosi_ quit (Ping timeout: 272 seconds) 2014-09-26T09:05:39Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-26T09:12:20Z przl joined #scheme 2014-09-26T09:17:26Z wingo joined #scheme 2014-09-26T09:18:32Z gravicappa joined #scheme 2014-09-26T09:33:17Z ilammy: ecraven, I looked for one at some point but have not found any, so just write it yourself 2014-09-26T09:34:32Z vanila: Ive written this for a fixed set using PUSH! i dont know a good way to do it for general 2014-09-26T09:36:13Z jusss quit (Quit: ERC Version 5.2 (IRC client for Emacs)) 2014-09-26T09:36:18Z przl quit (Ping timeout: 258 seconds) 2014-09-26T09:39:19Z ilammy: I believe, something like this: https://gist.github.com/ilammy/4300d3f24998e28ddde5 2014-09-26T09:40:10Z vanila: that traverse the list more than necessary though I think 2014-09-26T09:41:37Z ilammy: Or some super-optimized stuff like preallocating groups and then just going through the list, matching each element with all predicates. 2014-09-26T09:41:45Z vanila: yes! 2014-09-26T09:41:46Z przl joined #scheme 2014-09-26T09:42:03Z ilammy: Dunno which one is going to be faster :) 2014-09-26T09:42:13Z vanila: but then that traverses the list of predicates many times... 2014-09-26T09:42:44Z vanila: so its difficult 2014-09-26T09:42:48Z ilammy: I believe this does not matter, as usually you have few predicates and many values. 2014-09-26T09:43:24Z ilammy: Well, in the end I have wrote _that_ code for syntax-rules macros. And all I have there is lists, so it worked for me :) 2014-09-26T09:44:01Z ilammy: I tried to write it in a preallocated way, but finding the right group was hell hard :( 2014-09-26T09:45:26Z ilammy: Even... not finding, but modifying. 2014-09-26T09:45:37Z vanila: syntax-rules cool! 2014-09-26T09:45:43Z ilammy: And that snippet is purely functional. 2014-09-26T09:46:28Z vanila: Wow :D 2014-09-26T09:46:31Z vanila: you use CK machine 2014-09-26T09:47:11Z vanila: this is so nice 2014-09-26T09:47:51Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-26T09:49:49Z vanila: ilammy, where is np on github? 2014-09-26T09:50:17Z ilammy: in non-master branches 2014-09-26T09:50:43Z vanila: thanks :) 2014-09-26T09:50:52Z vanila: are you working on anything compiler using it? 2014-09-26T09:50:57Z vanila: -thing 2014-09-26T09:51:55Z ilammy: I hope to do so :) 2014-09-26T09:52:13Z vanila: great 2014-09-26T09:52:17Z drewc joined #scheme 2014-09-26T09:52:18Z vanila: good luck 2014-09-26T09:52:38Z ilammy: thanks 2014-09-26T09:52:50Z vanila: ill look out for it :) 2014-09-26T09:52:58Z hiyosi_ joined #scheme 2014-09-26T09:53:20Z vanila: im working on one but I dont use nanopass 2014-09-26T09:53:30Z vanila: some stolen ideas though 2014-09-26T09:55:39Z sbwhitecap joined #scheme 2014-09-26T09:57:46Z hiyosi_ quit (Ping timeout: 258 seconds) 2014-09-26T10:01:21Z vanila: CK based np is a really exciting project 2014-09-26T10:03:39Z b4283 quit (Quit: Konversation terminated!) 2014-09-26T10:04:55Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T10:18:35Z BossKonaSegwaY joined #scheme 2014-09-26T10:26:17Z civodul quit (Remote host closed the connection) 2014-09-26T10:26:39Z civodul joined #scheme 2014-09-26T10:36:20Z przl quit (Ping timeout: 260 seconds) 2014-09-26T10:53:51Z hiyosi_ joined #scheme 2014-09-26T10:58:45Z hiyosi_ quit (Ping timeout: 272 seconds) 2014-09-26T11:03:22Z tadni quit (Read error: Connection reset by peer) 2014-09-26T11:04:02Z tadni joined #scheme 2014-09-26T11:11:48Z wingo quit (Ping timeout: 260 seconds) 2014-09-26T11:27:56Z przl joined #scheme 2014-09-26T11:35:14Z taylanub: ecraven: I added `partition' here: https://gitorious.org/taylan-scheme/r7rs-extras/ :-) 2014-09-26T11:37:46Z taylanub: (well actually partition* and partition+) 2014-09-26T11:41:47Z ecraven: taylanub: great, thank you! 2014-09-26T11:42:01Z ecraven: now if only MIT/GNU Scheme supported R7RS libraries (or any sort of libraries for that matter :-/) 2014-09-26T11:42:47Z taylanub: MIT/GNU Scheme has no libs/modules? 2014-09-26T11:54:36Z hiyosi_ joined #scheme 2014-09-26T11:57:42Z sbwhitecap quit (Ping timeout: 245 seconds) 2014-09-26T11:58:50Z sbwhitecap joined #scheme 2014-09-26T11:59:16Z hiyosi_ quit (Ping timeout: 250 seconds) 2014-09-26T12:06:30Z davexunit joined #scheme 2014-09-26T12:09:37Z kongtomorrow quit 2014-09-26T12:09:57Z pnkfelix joined #scheme 2014-09-26T12:14:52Z przl quit (Ping timeout: 240 seconds) 2014-09-26T12:17:25Z przl joined #scheme 2014-09-26T12:23:32Z byte48 joined #scheme 2014-09-26T12:35:04Z wingo joined #scheme 2014-09-26T12:35:14Z jusss joined #scheme 2014-09-26T12:37:01Z jrslepak quit (Remote host closed the connection) 2014-09-26T12:37:54Z oleo joined #scheme 2014-09-26T12:53:30Z suppi joined #scheme 2014-09-26T12:53:30Z suppi quit (Changing host) 2014-09-26T12:53:30Z suppi joined #scheme 2014-09-26T12:55:27Z hiyosi_ joined #scheme 2014-09-26T13:00:12Z hiyosi_ quit (Ping timeout: 245 seconds) 2014-09-26T13:06:45Z jusss quit (Ping timeout: 258 seconds) 2014-09-26T13:06:55Z bjz_ quit (Read error: Connection reset by peer) 2014-09-26T13:07:10Z bjz joined #scheme 2014-09-26T13:08:40Z przl quit (Ping timeout: 258 seconds) 2014-09-26T13:09:50Z jeapostrophe joined #scheme 2014-09-26T13:09:50Z jeapostrophe quit (Changing host) 2014-09-26T13:09:50Z jeapostrophe joined #scheme 2014-09-26T13:11:32Z przl joined #scheme 2014-09-26T13:12:49Z vinleod quit (Quit: Computer has gone to sleep.) 2014-09-26T13:16:19Z cky quit (Quit: WeeChat 0.4.2) 2014-09-26T13:20:54Z cky joined #scheme 2014-09-26T13:23:43Z aranhoide quit (Remote host closed the connection) 2014-09-26T13:23:51Z jusss joined #scheme 2014-09-26T13:28:36Z MichaelRaskin quit (Quit: MichaelRaskin) 2014-09-26T13:34:14Z bars0 joined #scheme 2014-09-26T13:39:06Z bars0 quit (Client Quit) 2014-09-26T13:41:27Z taylanub quit (Disconnected by services) 2014-09-26T13:42:02Z taylanub joined #scheme 2014-09-26T13:49:50Z jusss quit (Read error: Connection reset by peer) 2014-09-26T13:53:48Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T13:56:16Z hiyosi_ joined #scheme 2014-09-26T13:56:47Z jrslepak_neu joined #scheme 2014-09-26T13:56:47Z jrslepak_neu quit (Client Quit) 2014-09-26T13:57:14Z jrslepak_neu joined #scheme 2014-09-26T13:57:17Z jrslepak_neu is now known as jrslepak 2014-09-26T13:58:08Z jusss joined #scheme 2014-09-26T14:00:44Z Soft quit (Ping timeout: 260 seconds) 2014-09-26T14:01:17Z hiyosi_ quit (Ping timeout: 260 seconds) 2014-09-26T14:07:35Z BossKonaSegwaY joined #scheme 2014-09-26T14:13:25Z Soft joined #scheme 2014-09-26T14:17:29Z sbwhitecap quit (Quit: Leaving...) 2014-09-26T14:21:52Z jeapostrophe quit (Ping timeout: 245 seconds) 2014-09-26T14:30:19Z hiyosi_ joined #scheme 2014-09-26T14:30:59Z kobain joined #scheme 2014-09-26T14:39:58Z gravicappa quit (Remote host closed the connection) 2014-09-26T14:40:43Z cocosp joined #scheme 2014-09-26T14:42:09Z Nizumzen joined #scheme 2014-09-26T14:46:01Z jlongster joined #scheme 2014-09-26T14:58:45Z jlongster quit (Remote host closed the connection) 2014-09-26T14:59:17Z jlongster joined #scheme 2014-09-26T15:03:55Z jusss quit (Remote host closed the connection) 2014-09-26T15:10:28Z cocosp quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2014-09-26T15:15:34Z MichaelRaskin joined #scheme 2014-09-26T15:22:03Z drdanmaku joined #scheme 2014-09-26T15:23:02Z theseb joined #scheme 2014-09-26T15:29:43Z iterrogo joined #scheme 2014-09-26T15:33:41Z aranhoide joined #scheme 2014-09-26T15:42:13Z atomx joined #scheme 2014-09-26T15:48:11Z przl quit (Ping timeout: 272 seconds) 2014-09-26T15:49:42Z pnkfelix quit (Ping timeout: 272 seconds) 2014-09-26T15:52:29Z civodul quit (Remote host closed the connection) 2014-09-26T15:52:35Z iterrogo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-26T15:52:51Z civodul joined #scheme 2014-09-26T15:53:19Z iterrogo joined #scheme 2014-09-26T15:54:06Z jar_ joined #scheme 2014-09-26T15:55:48Z vinleod joined #scheme 2014-09-26T15:57:03Z amgarchIn9 joined #scheme 2014-09-26T16:00:40Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-26T16:01:06Z Mso150_u joined #scheme 2014-09-26T16:02:11Z jar_ quit (Quit: Colloquy for iPhone - http://colloquy.mobi) 2014-09-26T16:06:05Z gravicappa joined #scheme 2014-09-26T16:07:41Z bjz quit (Read error: Connection reset by peer) 2014-09-26T16:07:55Z bjz joined #scheme 2014-09-26T16:09:17Z ilammy_ joined #scheme 2014-09-26T16:09:52Z MichaelRaskin quit (Ping timeout: 245 seconds) 2014-09-26T16:17:42Z kazimir42 joined #scheme 2014-09-26T16:17:50Z Nizumzen quit (Ping timeout: 244 seconds) 2014-09-26T16:17:56Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-26T16:18:51Z ventonegro quit (Remote host closed the connection) 2014-09-26T16:21:29Z hiroakip joined #scheme 2014-09-26T16:22:05Z pera joined #scheme 2014-09-26T16:22:39Z ilammy_ quit (Quit: Page closed) 2014-09-26T16:23:54Z amgarchIn9 quit (Ping timeout: 272 seconds) 2014-09-26T16:26:24Z Nizumzen joined #scheme 2014-09-26T16:26:32Z hiroakip quit (Ping timeout: 245 seconds) 2014-09-26T16:35:45Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-26T16:36:52Z BossKonaSegwaY joined #scheme 2014-09-26T16:46:15Z Fare joined #scheme 2014-09-26T16:49:39Z amgarchIn9 joined #scheme 2014-09-26T16:51:12Z daviid joined #scheme 2014-09-26T16:52:32Z tadni quit (Ping timeout: 258 seconds) 2014-09-26T16:58:42Z wingo quit (Ping timeout: 250 seconds) 2014-09-26T17:02:36Z b4283 joined #scheme 2014-09-26T17:09:40Z ilammy quit (Ping timeout: 246 seconds) 2014-09-26T17:12:32Z jeremyheiler joined #scheme 2014-09-26T17:12:40Z amgarchIn9 quit (Ping timeout: 272 seconds) 2014-09-26T17:16:41Z ilammy joined #scheme 2014-09-26T17:32:15Z holst joined #scheme 2014-09-26T17:37:16Z suppi quit (Ping timeout: 260 seconds) 2014-09-26T17:39:52Z holst: I wish to bind the cdr part of a cell to a value using (set! (cdr) b) 2014-09-26T17:39:58Z holst: but then later be able to change the contents ofb 2014-09-26T17:40:05Z holst: this illustrates the problem 2014-09-26T17:40:07Z holst: http://pastebin.com/uHmzMcuQ 2014-09-26T17:40:19Z holst: any hints are more than welcome 2014-09-26T17:40:25Z LeoNerd: Surely set-cdr! 2014-09-26T17:41:29Z holst: yes, but how do I later change b? :) 2014-09-26T17:42:26Z holst: (set-cdR 2014-09-26T17:42:35Z holst: is the same as (set (cdr a) ...) right? 2014-09-26T17:42:53Z holst: chicken scheme already supports that directly via (set! (cdr ..) ..) 2014-09-26T17:42:56Z LeoNerd: ... no..? It's a totally unrelated thing 2014-09-26T17:43:01Z LeoNerd: Right - that's a Chickenism 2014-09-26T17:43:05Z holst: ok, let me investigate 2014-09-26T17:45:37Z ilammy: Also, http://okmij.org/ftp/Scheme/setf.txt 2014-09-26T17:45:42Z ilammy: But that 2014-09-26T17:46:18Z ilammy: that's not portable and requires low-level macrosystem or some syntax-case magic 2014-09-26T17:47:15Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T17:47:20Z altphi joined #scheme 2014-09-26T17:48:09Z przl joined #scheme 2014-09-26T17:55:18Z hiroakip joined #scheme 2014-09-26T18:02:33Z holst: is there a easier way to do this? 2014-09-26T18:02:39Z holst: http://pastebin.com/GuXpA8nS 2014-09-26T18:03:13Z BossKonaSegwaY joined #scheme 2014-09-26T18:06:01Z vanila: holst, what do you want to do? 2014-09-26T18:06:29Z altphi quit 2014-09-26T18:08:47Z holst: I want to understand 2014-09-26T18:09:00Z holst: why i cannot do (set! b (cons ...)) 2014-09-26T18:09:07Z holst: why i need to set cdr and car of b 2014-09-26T18:09:26Z developernotes joined #scheme 2014-09-26T18:09:28Z holst: in order to update the cdr of b too 2014-09-26T18:09:33Z developernotes quit (Client Quit) 2014-09-26T18:09:37Z holst: er to update the cdr of a too 2014-09-26T18:09:45Z vanila: (set! b (cons ...)) sets the value of b to that cons 2014-09-26T18:10:10Z holst: yes, but I have set cdr of a to b 2014-09-26T18:10:12Z vanila: you need to mutate the structure itself if you want edits to be shared 2014-09-26T18:10:21Z holst: i would like to update both cdr of a and b in the same set! 2014-09-26T18:10:29Z suppi joined #scheme 2014-09-26T18:10:30Z holst: which my way seems to acchieve 2014-09-26T18:10:37Z holst: in a bit ackward way 2014-09-26T18:11:00Z davexunit quit (Read error: Connection reset by peer) 2014-09-26T18:13:46Z davexunit joined #scheme 2014-09-26T18:13:51Z hiroakip quit (Ping timeout: 272 seconds) 2014-09-26T18:14:44Z jkraemer quit (Ping timeout: 272 seconds) 2014-09-26T18:20:42Z theseb quit (Quit: Leaving) 2014-09-26T18:21:04Z holst: hmm. I think I understand 2014-09-26T18:21:26Z holst: (set b (cons ...)) sets b to a new pair. it assigns the b pointer to a new pair object 2014-09-26T18:21:31Z przl quit (Quit: leaving) 2014-09-26T18:21:54Z ilammy: Exactly. 2014-09-26T18:22:02Z holst: i would like to change the pair itself. i guess i can make my own (set-pair! ..) function 2014-09-26T18:22:24Z vanila: you wan to set car and set cdr? 2014-09-26T18:22:35Z ilammy: Yeah, just write (define (set-pair! pair car cdr) (set-car! pair car) (set-cdr! pair cdr)) 2014-09-26T18:24:30Z ilammy: No idea why would anyone need that, but we're not in haskellland. 2014-09-26T18:25:01Z vanila: ilammy, can I contribute to any of your projects? 2014-09-26T18:25:40Z ilammy: uh, and why not?.. 2014-09-26T18:27:22Z jkraemer joined #scheme 2014-09-26T18:29:31Z SvenGek joined #scheme 2014-09-26T18:29:36Z SvenGek left #scheme 2014-09-26T18:30:39Z dan64 quit (Quit: ZNC - http://znc.in) 2014-09-26T18:31:26Z dan64 joined #scheme 2014-09-26T18:41:48Z b4283 quit (Quit: Konversation terminated!) 2014-09-26T18:46:40Z pnpuff joined #scheme 2014-09-26T18:50:45Z kongtomorrow joined #scheme 2014-09-26T18:53:02Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-09-26T19:00:05Z akkad quit (Ping timeout: 272 seconds) 2014-09-26T19:03:27Z gravicappa quit (Remote host closed the connection) 2014-09-26T19:06:56Z akkad joined #scheme 2014-09-26T19:10:18Z Mso150_u_n joined #scheme 2014-09-26T19:11:29Z Mso150_u quit (Ping timeout: 272 seconds) 2014-09-26T19:11:51Z sroy_ joined #scheme 2014-09-26T19:11:55Z tadni joined #scheme 2014-09-26T19:13:25Z sheilong joined #scheme 2014-09-26T19:13:41Z holst quit (Quit: Lost terminal) 2014-09-26T19:14:48Z tadni quit (Read error: Connection reset by peer) 2014-09-26T19:15:54Z suppi quit (Ping timeout: 258 seconds) 2014-09-26T19:24:24Z bjz quit (Read error: Connection reset by peer) 2014-09-26T19:24:26Z bjz_ joined #scheme 2014-09-26T19:26:31Z kongtomorrow quit 2014-09-26T19:29:50Z guampa quit (Remote host closed the connection) 2014-09-26T19:29:52Z bit` quit (Ping timeout: 240 seconds) 2014-09-26T19:31:02Z guampa joined #scheme 2014-09-26T19:34:44Z hiroakip joined #scheme 2014-09-26T19:36:24Z fikusz quit (Remote host closed the connection) 2014-09-26T19:40:53Z Nizumzen joined #scheme 2014-09-26T19:43:49Z jeremyhe_ joined #scheme 2014-09-26T19:46:39Z bit` joined #scheme 2014-09-26T19:47:00Z jeremyheiler quit (Ping timeout: 260 seconds) 2014-09-26T19:50:34Z byte48 quit (Ping timeout: 272 seconds) 2014-09-26T19:50:41Z amgarchIn9 joined #scheme 2014-09-26T19:51:02Z byte48 joined #scheme 2014-09-26T19:52:32Z oleo is now known as Guest94473 2014-09-26T19:53:34Z zacts: how do I define a subroutine within another subroutine? 2014-09-26T19:54:59Z ilammy: in exactly the same way you define a subroutine outside of any subroutine 2014-09-26T19:55:15Z kongtomorrow joined #scheme 2014-09-26T19:55:23Z zacts: oh.. 2014-09-26T19:55:44Z zacts: and does map apply the procedure to a list in order, or is order not guaranteed? 2014-09-26T19:55:49Z Guest94473 quit (Ping timeout: 272 seconds) 2014-09-26T19:56:22Z mario-goulart: Not guaranteed. 2014-09-26T19:56:48Z zacts: ok, that's all I need to know for now. thanks. 2014-09-26T19:56:49Z mario-goulart: There's srfi-1's map-in-order if the order is relevant. 2014-09-26T19:56:55Z zacts: oh, thanks 2014-09-26T19:56:59Z mario-goulart: yw 2014-09-26T19:57:00Z oleo__ joined #scheme 2014-09-26T19:58:04Z oleo__ is now known as oleo 2014-09-26T20:08:08Z kongtomorrow quit 2014-09-26T20:09:15Z zacts: [08:11] < zacts> ok another question. is it guaranteed that expressions within a (define (lambda () (expression-a) (expression-b)) will be evaluated in order from a to b? I've read the first chapter of SICP, but how does the interpreter actually work? 2014-09-26T20:09:19Z zacts: [08:11] < zacts> my procedure will depend on this happening in order, must I instead use begin? 2014-09-26T20:09:23Z zacts: I meant to ask this here 2014-09-26T20:12:09Z phipes joined #scheme 2014-09-26T20:16:18Z hunter joined #scheme 2014-09-26T20:16:47Z hunter is now known as Guest29331 2014-09-26T20:16:52Z hjolt quit (Ping timeout: 245 seconds) 2014-09-26T20:17:04Z sroy_ quit (Quit: Leaving) 2014-09-26T20:21:52Z ilammy: Yes, it's guaranteed. 2014-09-26T20:22:04Z ilammy: Actually, lambda forms have implicit begin inside them 2014-09-26T20:22:35Z ilammy: The evaluation order of procedure arguments is the thing which is not guaranteed in Scheme 2014-09-26T20:22:46Z zacts: cool 2014-09-26T20:23:01Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-26T20:24:26Z cky: zacts: To understand why the order of map is not guaranteed, it's important to understand that lists are built from right to left. So an implementation would also map the elements of the incoming list right-to-left too. 2014-09-26T20:24:37Z cky: s/would/could very well/ 2014-09-26T20:25:26Z cky: It's possible to code map to work left-to-right, right-to-left, or order-undefined. But in practice, most implementations will either be left-to-right or right-to-left. 2014-09-26T20:25:27Z zacts: ok 2014-09-26T20:26:09Z zacts: the problem I'm trying to do is: for a list of objects call a method for each object. 2014-09-26T20:26:27Z zacts: but the method name will be passed in to the procedure that calls each object 2014-09-26T20:26:53Z ilammy: hint: for-each if you're after side effect of the calls, not the list of resulting values 2014-09-26T20:26:55Z zacts: (note: I'm using coops on CHICKEN for this) 2014-09-26T20:27:13Z zacts: let me pastebin 2014-09-26T20:27:23Z cky: zacts: What ilammy said. for-each is left-to-right guaranteed, if you don't care about the result of each of the calls. 2014-09-26T20:27:41Z zacts: indeed 2014-09-26T20:29:34Z zacts: http://paste.lisp.org/display/143857 2014-09-26T20:30:09Z zacts: I'm attempting to implement something similar to this -> http://leonerds-code.blogspot.com/2014/02/event-reflexive-programming.html 2014-09-26T20:30:16Z zacts: in the hope to learn more about it 2014-09-26T20:32:59Z robot-beethoven joined #scheme 2014-09-26T20:34:00Z zacts: plugins in this case is a list of plugin CHICKEN coops objects 2014-09-26T20:36:10Z amgarchIn9 quit (Ping timeout: 244 seconds) 2014-09-26T20:36:39Z jeremyhe_ is now known as jeremyheiler 2014-09-26T20:37:11Z zacts: oh I know how to do this. sorry for the flood. =) 2014-09-26T20:43:59Z BossKonaSegwaY joined #scheme 2014-09-26T20:45:48Z masm quit (Ping timeout: 260 seconds) 2014-09-26T20:48:12Z Nizumzen quit (Ping timeout: 245 seconds) 2014-09-26T20:48:42Z pnpuff quit (Ping timeout: 256 seconds) 2014-09-26T21:04:13Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-26T21:05:33Z jlongster quit (Ping timeout: 246 seconds) 2014-09-26T21:10:37Z hiyosi_ quit (Ping timeout: 260 seconds) 2014-09-26T21:11:12Z amgarchIn9 joined #scheme 2014-09-26T21:12:36Z suppi joined #scheme 2014-09-26T21:16:07Z kongtomorrow joined #scheme 2014-09-26T21:17:05Z suppi quit (Ping timeout: 260 seconds) 2014-09-26T21:18:44Z BossKonaSegwaY joined #scheme 2014-09-26T21:19:53Z vanila quit (Quit: Leaving) 2014-09-26T21:23:33Z Mso150_u_n quit (Ping timeout: 258 seconds) 2014-09-26T21:24:17Z suppi joined #scheme 2014-09-26T21:26:17Z Mso150 joined #scheme 2014-09-26T21:28:18Z civodul joined #scheme 2014-09-26T21:28:26Z sheilong quit (Quit: Konversation terminated!) 2014-09-26T21:34:44Z ilammy: Can macro definitions forward-reference macros defined in the same library/module? 2014-09-26T21:35:13Z ilammy: I've been doubting this before, but then it turned to be okay (for Chibi) and I've been using it quite a while, but now I'm in doubt again. 2014-09-26T21:35:48Z Mso150_l joined #scheme 2014-09-26T21:36:52Z hiyosi_ joined #scheme 2014-09-26T21:37:08Z taylanub: ilammy: not sure what different implementations do but did you check any of the standards? 2014-09-26T21:37:37Z Mso150 quit (Ping timeout: 248 seconds) 2014-09-26T21:37:51Z ilammy: Yeah, I'm reading R7RS right now... 2014-09-26T21:38:44Z taylanub: "Any use of a syntax keyword before its corresponding definition is an error." p26, 5.4. Syntax definitions 2014-09-26T21:39:48Z ilammy: Looking at it too. And looking for a definition of 'use of a syntax keyword'. As I presume, macro templates are not considered 'usages of a macro'. 2014-09-26T21:40:17Z ilammy: More like writing (keyword stuff ...) in the program is an example of usage. 2014-09-26T21:40:26Z taylanub: indeed, not sure what precisely that means, what I quoted... 2014-09-26T21:41:40Z hiyosi_ quit (Ping timeout: 250 seconds) 2014-09-26T21:44:25Z jeremyheiler quit (Quit: Computer has gone to sleep.) 2014-09-26T21:48:20Z ilammy: 4.3, paragraph #3: 'Each instance of a macro is called a use of the macro.' 2014-09-26T21:48:28Z ilammy: okay, so it's not a _use_ 2014-09-26T21:49:08Z suppi quit (Quit: Leaving) 2014-09-26T21:49:42Z ilammy: Then the question is basically this: does define-library provide an automagical letrec for all toplevel bindings. 2014-09-26T21:50:20Z guampa quit (Quit: quit) 2014-09-26T21:50:21Z taylanub: actually, now that you ask it like that, I'm almost sure it means to ... 2014-09-26T21:50:45Z hiroakip quit (Ping timeout: 260 seconds) 2014-09-26T21:51:09Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-26T21:58:08Z fridim__ quit (Ping timeout: 250 seconds) 2014-09-26T21:58:27Z ilammy: Well, it seem to work in Chibi, Racket, and Guile. So I think it's okay :) 2014-09-26T21:58:57Z ilammy: But I recall that I was annoyed by this forward usage at some point. 2014-09-26T21:59:39Z ilammy: Dunno, maybe I really _used_ macros before defining them that time. Not... mentioned them in another declaration. 2014-09-26T22:02:06Z c107 joined #scheme 2014-09-26T22:06:07Z ilammy quit (Ping timeout: 246 seconds) 2014-09-26T22:07:43Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-26T22:07:59Z tcsc joined #scheme 2014-09-26T22:14:01Z Riastradh joined #scheme 2014-09-26T22:24:51Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-26T22:26:31Z Riastradh joined #scheme 2014-09-26T22:31:32Z hiroakip joined #scheme 2014-09-26T22:32:39Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-26T22:33:15Z Riastradh joined #scheme 2014-09-26T22:33:56Z kongtomorrow quit 2014-09-26T22:33:57Z BossKonaSegwaY joined #scheme 2014-09-26T22:34:59Z kongtomorrow joined #scheme 2014-09-26T22:37:47Z hiyosi_ joined #scheme 2014-09-26T22:42:29Z hiyosi_ quit (Ping timeout: 260 seconds) 2014-09-26T23:06:09Z iterrogo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-26T23:14:41Z hiroakip quit (Ping timeout: 260 seconds) 2014-09-26T23:15:08Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-26T23:27:51Z BossKonaSegwaY joined #scheme 2014-09-26T23:30:08Z stepnem quit (Ping timeout: 272 seconds) 2014-09-26T23:36:41Z mrowe_away is now known as mrowe 2014-09-26T23:38:35Z hiyosi_ joined #scheme 2014-09-26T23:39:16Z dpk: surely the answer is, "yes, otherwise you have to add an extra layer of wrapping to recursive main procedures" ? 2014-09-26T23:39:17Z kongtomorrow quit 2014-09-26T23:43:17Z phipes quit (Quit: Textual IRC Client: www.textualapp.com) 2014-09-26T23:43:26Z hiyosi_ quit (Ping timeout: 250 seconds) 2014-09-26T23:53:21Z hiyosi_ joined #scheme 2014-09-26T23:57:46Z jeapostrophe joined #scheme 2014-09-26T23:57:46Z jeapostrophe quit (Changing host) 2014-09-26T23:57:46Z jeapostrophe joined #scheme