2014-11-19T00:00:56Z davexunit quit (Quit: Later) 2014-11-19T00:05:13Z davexunit joined #scheme 2014-11-19T00:11:49Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-11-19T00:20:09Z joneshf-laptop joined #scheme 2014-11-19T00:24:11Z BitPuffin quit (Ping timeout: 272 seconds) 2014-11-19T00:32:47Z Vutral quit (Ping timeout: 245 seconds) 2014-11-19T00:33:55Z xyh joined #scheme 2014-11-19T00:34:53Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-19T00:46:32Z Vutral joined #scheme 2014-11-19T00:50:31Z amgarchIn9 quit (Ping timeout: 255 seconds) 2014-11-19T00:56:41Z hiyosi joined #scheme 2014-11-19T01:01:33Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-19T01:07:19Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T01:07:28Z adu joined #scheme 2014-11-19T01:07:53Z Lingo______ joined #scheme 2014-11-19T01:10:42Z mmc quit (Quit: Leaving.) 2014-11-19T01:10:59Z derek_c joined #scheme 2014-11-19T01:16:21Z macdice` joined #scheme 2014-11-19T01:17:37Z macdice quit (Ping timeout: 240 seconds) 2014-11-19T01:25:34Z macdice`` joined #scheme 2014-11-19T01:26:59Z macdice` quit (Ping timeout: 244 seconds) 2014-11-19T01:28:06Z vanila quit (Quit: Leaving) 2014-11-19T01:39:46Z joneshf-laptop quit (Remote host closed the connection) 2014-11-19T01:40:43Z kongtomorrow quit (Read error: Connection reset by peer) 2014-11-19T01:42:43Z davexunit quit (Ping timeout: 255 seconds) 2014-11-19T01:46:30Z amgarchIn9 joined #scheme 2014-11-19T01:50:44Z jusss joined #scheme 2014-11-19T02:05:58Z choas quit (Ping timeout: 264 seconds) 2014-11-19T02:09:17Z robot-beethoven joined #scheme 2014-11-19T02:12:16Z kongtomorrow joined #scheme 2014-11-19T02:13:46Z tobik quit (Ping timeout: 255 seconds) 2014-11-19T02:15:08Z tobik joined #scheme 2014-11-19T02:19:48Z adu quit (Quit: adu) 2014-11-19T02:27:17Z adu joined #scheme 2014-11-19T02:27:18Z adu quit (Client Quit) 2014-11-19T02:28:02Z adu joined #scheme 2014-11-19T02:30:12Z frkout_ joined #scheme 2014-11-19T02:34:06Z frkout quit (Ping timeout: 255 seconds) 2014-11-19T02:35:11Z amgarchIn9 quit (Ping timeout: 244 seconds) 2014-11-19T02:37:35Z kongtomorrow quit 2014-11-19T02:40:41Z pera quit (Quit: leaving) 2014-11-19T02:44:09Z stephenmac7 quit (Ping timeout: 272 seconds) 2014-11-19T02:45:30Z hiyosi joined #scheme 2014-11-19T02:46:25Z ijp quit (Quit: This ijp has ended peacefully) 2014-11-19T02:50:41Z hiyosi quit (Ping timeout: 244 seconds) 2014-11-19T02:54:18Z jusss quit (Remote host closed the connection) 2014-11-19T02:54:58Z jusss joined #scheme 2014-11-19T03:05:23Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T03:05:57Z Lingo______ joined #scheme 2014-11-19T03:06:54Z Lingo______ quit (Remote host closed the connection) 2014-11-19T03:07:28Z Lingo______ joined #scheme 2014-11-19T03:11:14Z Riastradh joined #scheme 2014-11-19T03:16:01Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.91.1) 2014-11-19T03:20:44Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T03:21:20Z Lingo______ joined #scheme 2014-11-19T03:25:42Z Lingo______ quit (Ping timeout: 245 seconds) 2014-11-19T03:32:10Z enitiz quit (Remote host closed the connection) 2014-11-19T03:33:12Z enitiz joined #scheme 2014-11-19T03:33:18Z frkout_ quit (Read error: Connection reset by peer) 2014-11-19T03:33:42Z frkout joined #scheme 2014-11-19T03:35:32Z anannie quit (Remote host closed the connection) 2014-11-19T03:49:04Z germ13 quit (Read error: Connection reset by peer) 2014-11-19T03:53:19Z adu quit (Quit: adu) 2014-11-19T03:53:53Z ffs quit (Remote host closed the connection) 2014-11-19T03:54:15Z ffs joined #scheme 2014-11-19T03:57:08Z choas joined #scheme 2014-11-19T04:01:59Z enitiz quit (Remote host closed the connection) 2014-11-19T04:02:45Z enitiz joined #scheme 2014-11-19T04:05:22Z jusss quit (Ping timeout: 264 seconds) 2014-11-19T04:16:38Z oleo__ joined #scheme 2014-11-19T04:17:20Z oleo is now known as Guest76007 2014-11-19T04:17:52Z Guest76007 quit (Ping timeout: 240 seconds) 2014-11-19T04:21:45Z joneshf-laptop joined #scheme 2014-11-19T04:21:47Z Lingo______ joined #scheme 2014-11-19T04:21:57Z daviid quit (Ping timeout: 240 seconds) 2014-11-19T04:25:57Z Lingo______ quit (Ping timeout: 240 seconds) 2014-11-19T04:32:48Z Lingo______ joined #scheme 2014-11-19T04:34:36Z hiyosi joined #scheme 2014-11-19T04:39:29Z hiyosi quit (Ping timeout: 264 seconds) 2014-11-19T04:40:30Z xyh: cojy: say we have #1=('x) and ('y #1#), if GC copy #1=('x) first, then the #1# in ('y #1#) will be out of date !! 2014-11-19T04:42:59Z jeapostrophe quit (Ping timeout: 258 seconds) 2014-11-19T04:44:26Z oleo__ quit (Quit: Verlassend) 2014-11-19T04:47:01Z cky: xyh: Surely, a moving GC system keeps indirect pointers (pointer-to-pointer) so that objects can be moved without having to update all the references. 2014-11-19T04:49:05Z oleo__ joined #scheme 2014-11-19T04:49:10Z oleo__ quit (Read error: Connection reset by peer) 2014-11-19T04:49:45Z oleo joined #scheme 2014-11-19T04:50:50Z frkout quit (Remote host closed the connection) 2014-11-19T04:51:16Z frkout joined #scheme 2014-11-19T04:57:23Z henrytill quit (Quit: leaving) 2014-11-19T04:57:47Z jlongster quit (Ping timeout: 244 seconds) 2014-11-19T04:59:18Z ananna joined #scheme 2014-11-19T04:59:33Z ananna quit (Remote host closed the connection) 2014-11-19T04:59:41Z ananna joined #scheme 2014-11-19T05:06:21Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T05:06:23Z xyh: cky: I can imagine how "one-level-indirect" can be done for variables. 2014-11-19T05:06:24Z xyh: cky: but for list ??? in the memory, how a "cons"'s structure will be ?? 2014-11-19T05:06:57Z Lingo______ joined #scheme 2014-11-19T05:10:57Z Lingo______ quit (Ping timeout: 240 seconds) 2014-11-19T05:17:33Z oleo: that depends totally on the implementation.... 2014-11-19T05:28:48Z usrj joined #scheme 2014-11-19T05:32:05Z jusss` joined #scheme 2014-11-19T05:34:27Z xyh: oleo: yes, it do is the implementation tech that I am trying to learn. 2014-11-19T05:35:08Z Vutral quit (Ping timeout: 256 seconds) 2014-11-19T05:35:26Z hiyosi joined #scheme 2014-11-19T05:36:08Z Riastradh: When you first see #1, you move it and leave a forwarding address where it used to be. When you next see #1, inside #2, you update #2 to use the forwarding address instead. 2014-11-19T05:39:05Z xyh: Riastradh: how about incremental ? there is some time before #2 get updated. 2014-11-19T05:39:06Z ecthiender joined #scheme 2014-11-19T05:40:23Z hiyosi quit (Ping timeout: 255 seconds) 2014-11-19T05:41:21Z Riastradh: Then you need a read barrier to check the forwarding address -- when you try to take (cadr #2), it will have to check for a forwarding address. 2014-11-19T05:44:41Z xyh: Riastradh: build a interface into "cons" to do updating ?? 2014-11-19T05:44:47Z xyh: * an interface 2014-11-19T05:54:43Z oleo quit (Quit: Verlassend) 2014-11-19T05:55:03Z alezost joined #scheme 2014-11-19T05:57:22Z usrj quit (Ping timeout: 240 seconds) 2014-11-19T06:02:01Z Vutral joined #scheme 2014-11-19T06:07:11Z Lingo______ joined #scheme 2014-11-19T06:22:43Z lloda quit (Remote host closed the connection) 2014-11-19T06:22:58Z lloda joined #scheme 2014-11-19T06:27:30Z Gyps quit (Quit: Gyps) 2014-11-19T06:29:07Z kazimir42 quit (Remote host closed the connection) 2014-11-19T06:34:53Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T06:35:28Z Lingo______ joined #scheme 2014-11-19T06:40:18Z Lingo______ quit (Ping timeout: 256 seconds) 2014-11-19T06:43:12Z Vutral quit (Ping timeout: 245 seconds) 2014-11-19T06:48:21Z MichaelRaskin quit (Remote host closed the connection) 2014-11-19T06:50:23Z Bahman joined #scheme 2014-11-19T06:51:25Z acarrico quit (Ping timeout: 255 seconds) 2014-11-19T06:52:44Z Vutral joined #scheme 2014-11-19T07:03:17Z BitPuffin joined #scheme 2014-11-19T07:08:33Z kongtomorrow joined #scheme 2014-11-19T07:24:15Z hiyosi joined #scheme 2014-11-19T07:24:35Z ecthiender quit (Remote host closed the connection) 2014-11-19T07:25:47Z alezost quit (Read error: Connection reset by peer) 2014-11-19T07:26:37Z zacts joined #scheme 2014-11-19T07:28:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-19T07:32:02Z alezost joined #scheme 2014-11-19T07:46:44Z hypermagic quit (Ping timeout: 244 seconds) 2014-11-19T07:49:42Z Lingo______ joined #scheme 2014-11-19T07:51:16Z BitPuffin quit (Ping timeout: 255 seconds) 2014-11-19T08:00:12Z frkout_ joined #scheme 2014-11-19T08:03:51Z frkout quit (Ping timeout: 258 seconds) 2014-11-19T08:11:10Z ventonegro joined #scheme 2014-11-19T08:14:38Z derek_c quit (Ping timeout: 244 seconds) 2014-11-19T08:29:32Z frkout_ quit (Ping timeout: 258 seconds) 2014-11-19T08:33:41Z fantazo joined #scheme 2014-11-19T08:34:15Z frkout joined #scheme 2014-11-19T08:34:15Z frkout quit (Remote host closed the connection) 2014-11-19T08:34:22Z frkout_ joined #scheme 2014-11-19T08:36:43Z ventonegro quit (Remote host closed the connection) 2014-11-19T08:38:04Z finnrobi quit (Ping timeout: 255 seconds) 2014-11-19T08:38:59Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T08:39:33Z Lingo______ joined #scheme 2014-11-19T08:39:57Z finnrobi joined #scheme 2014-11-19T08:40:14Z ventonegro joined #scheme 2014-11-19T08:40:16Z bjz quit (Read error: Connection reset by peer) 2014-11-19T08:40:23Z bjz_ joined #scheme 2014-11-19T08:41:02Z redeemed joined #scheme 2014-11-19T08:55:26Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T09:01:37Z enitiz quit (Ping timeout: 272 seconds) 2014-11-19T09:02:28Z Lingo______ joined #scheme 2014-11-19T09:08:37Z civodul joined #scheme 2014-11-19T09:12:27Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T09:13:01Z Lingo______ joined #scheme 2014-11-19T09:13:02Z hiyosi joined #scheme 2014-11-19T09:14:46Z frkout_ quit (Ping timeout: 258 seconds) 2014-11-19T09:15:57Z tobik quit (Ping timeout: 255 seconds) 2014-11-19T09:16:38Z mmc joined #scheme 2014-11-19T09:17:50Z Lingo______ quit (Ping timeout: 256 seconds) 2014-11-19T09:17:53Z hiyosi quit (Ping timeout: 264 seconds) 2014-11-19T09:18:03Z tobik joined #scheme 2014-11-19T09:20:38Z frkout joined #scheme 2014-11-19T09:40:08Z stepnem joined #scheme 2014-11-19T09:40:27Z stepnem is now known as Guest36389 2014-11-19T09:40:58Z jusss` quit (Ping timeout: 250 seconds) 2014-11-19T09:43:36Z Lingo______ joined #scheme 2014-11-19T09:48:29Z Lingo______ quit (Ping timeout: 264 seconds) 2014-11-19T09:49:25Z pnkfelix joined #scheme 2014-11-19T09:53:52Z mmc quit (Ping timeout: 240 seconds) 2014-11-19T10:21:08Z mmc joined #scheme 2014-11-19T10:28:50Z bjz_ quit (Read error: Connection reset by peer) 2014-11-19T10:29:06Z bjz joined #scheme 2014-11-19T10:35:12Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-19T10:44:19Z Lingo______ joined #scheme 2014-11-19T10:48:24Z rszeno joined #scheme 2014-11-19T10:48:34Z Lingo______ quit (Ping timeout: 250 seconds) 2014-11-19T10:52:54Z MichaelRaskin joined #scheme 2014-11-19T10:52:55Z bjz quit (Quit: Textual IRC Client: www.textualapp.com) 2014-11-19T11:01:46Z hiyosi joined #scheme 2014-11-19T11:06:39Z hiyosi quit (Ping timeout: 255 seconds) 2014-11-19T11:11:51Z Bahman quit (Ping timeout: 244 seconds) 2014-11-19T11:13:57Z Bahman joined #scheme 2014-11-19T11:15:32Z dmiles quit (Quit: Read error: 110 (Connection timed out)) 2014-11-19T11:22:35Z jeapostrophe joined #scheme 2014-11-19T11:22:35Z jeapostrophe quit (Changing host) 2014-11-19T11:22:35Z jeapostrophe joined #scheme 2014-11-19T11:25:37Z bokr joined #scheme 2014-11-19T11:29:52Z rszeno quit (Ping timeout: 245 seconds) 2014-11-19T11:44:29Z rszeno joined #scheme 2014-11-19T11:45:40Z acarrico joined #scheme 2014-11-19T11:50:47Z bjz joined #scheme 2014-11-19T11:55:51Z bokr1 joined #scheme 2014-11-19T11:56:17Z MichaelRaskin quit (Ping timeout: 264 seconds) 2014-11-19T11:57:03Z bokr quit (Ping timeout: 272 seconds) 2014-11-19T11:57:36Z vinleod joined #scheme 2014-11-19T11:58:57Z rszeno quit (Ping timeout: 272 seconds) 2014-11-19T12:01:08Z pjb` joined #scheme 2014-11-19T12:02:37Z pjb quit (Ping timeout: 240 seconds) 2014-11-19T12:09:27Z jusss` joined #scheme 2014-11-19T12:13:36Z rszeno joined #scheme 2014-11-19T12:27:51Z Bahman quit (Quit: Ave atque vale) 2014-11-19T12:29:35Z jusss` is now known as jusss 2014-11-19T12:30:02Z Lingo______ joined #scheme 2014-11-19T12:33:09Z henrytill joined #scheme 2014-11-19T12:34:46Z Lingo______ quit (Ping timeout: 264 seconds) 2014-11-19T12:42:34Z b4283 joined #scheme 2014-11-19T12:46:45Z rszeno quit (Quit: Leaving.) 2014-11-19T12:50:35Z hiyosi joined #scheme 2014-11-19T12:55:34Z hiyosi quit (Ping timeout: 258 seconds) 2014-11-19T12:57:09Z fantazo quit (Quit: Verlassend) 2014-11-19T13:11:31Z jusss quit (Read error: Connection reset by peer) 2014-11-19T13:26:42Z bokr1 quit (Quit: Leaving.) 2014-11-19T13:28:10Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-11-19T13:34:27Z mmc quit (Ping timeout: 244 seconds) 2014-11-19T13:40:16Z jumblerg joined #scheme 2014-11-19T13:42:07Z taylanub quit (Disconnected by services) 2014-11-19T13:43:05Z taylanub joined #scheme 2014-11-19T13:46:43Z jusss joined #scheme 2014-11-19T13:47:39Z jusss quit (Remote host closed the connection) 2014-11-19T13:53:17Z jeapostrophe joined #scheme 2014-11-19T13:56:37Z altphi joined #scheme 2014-11-19T14:00:13Z xyh quit (Remote host closed the connection) 2014-11-19T14:00:51Z Lingo______ joined #scheme 2014-11-19T14:04:56Z Lingo______ quit (Ping timeout: 244 seconds) 2014-11-19T14:08:22Z joast quit (Quit: Leaving.) 2014-11-19T14:08:51Z jusss joined #scheme 2014-11-19T14:12:13Z davexunit joined #scheme 2014-11-19T14:24:31Z hiyosi joined #scheme 2014-11-19T14:28:19Z oleo joined #scheme 2014-11-19T14:35:39Z jlongster joined #scheme 2014-11-19T14:45:42Z pjb` is now known as pjb 2014-11-19T14:50:17Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-19T14:57:20Z joast joined #scheme 2014-11-19T14:58:44Z enitiz joined #scheme 2014-11-19T15:02:02Z jusss quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-19T15:03:13Z enitiz quit (Ping timeout: 258 seconds) 2014-11-19T15:14:29Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-11-19T15:15:07Z enitiz joined #scheme 2014-11-19T15:20:16Z adu joined #scheme 2014-11-19T15:21:14Z duggiefresh joined #scheme 2014-11-19T15:25:49Z fantazo joined #scheme 2014-11-19T15:27:40Z altphi quit (Quit: somno opus est.) 2014-11-19T15:31:35Z Lingo______ joined #scheme 2014-11-19T15:32:50Z altphi joined #scheme 2014-11-19T15:33:50Z davexunit quit (Quit: Later) 2014-11-19T15:35:52Z Lingo______ quit (Ping timeout: 250 seconds) 2014-11-19T15:36:45Z enitiz quit (Quit: Leaving) 2014-11-19T15:38:40Z atomx joined #scheme 2014-11-19T15:40:17Z xyh joined #scheme 2014-11-19T15:40:31Z davexunit joined #scheme 2014-11-19T15:45:58Z Natch quit (Remote host closed the connection) 2014-11-19T15:48:10Z oleo quit (Quit: Verlassend) 2014-11-19T15:50:18Z Riastradh joined #scheme 2014-11-19T15:53:53Z oleo joined #scheme 2014-11-19T15:55:54Z adu quit (Quit: adu) 2014-11-19T15:56:31Z oleo quit (Read error: Connection reset by peer) 2014-11-19T16:02:42Z oleo joined #scheme 2014-11-19T16:07:52Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T16:08:17Z sheilong joined #scheme 2014-11-19T16:08:51Z vanila joined #scheme 2014-11-19T16:11:39Z haole joined #scheme 2014-11-19T16:12:17Z Natch joined #scheme 2014-11-19T16:12:42Z haole: I'm parsing a binary file and I have to find a control byte in it to start my parsing... does anyone have a fancy suggestion about implementing this? right now I'm writing a recursive function to iterate over bytes but it's not looking pretty :D 2014-11-19T16:13:07Z dmiles_afk joined #scheme 2014-11-19T16:13:08Z vanila: maybe you could write a function to search for a byte, then use that 2014-11-19T16:16:39Z haole: hmm gonna try with simple strings then and complicate from there 2014-11-19T16:16:41Z haole: might work :) 2014-11-19T16:19:04Z ecraven: Riastradh: are there swifter methods for extracting a 32-bit unsigned integer (and all other variations) from a byte-string in MIT/GNU Scheme than vector-8b-ref on each part and proper multiplication / shifting? something built-in maybe? 2014-11-19T16:19:22Z redeemed quit (Quit: q) 2014-11-19T16:27:29Z Riastradh: ecraven: Nope. (Which unsigned integer? Little-endian, big-endian, host-endian, nuxi-endian?) 2014-11-19T16:29:44Z kongtomorrow quit 2014-11-19T16:30:11Z atomx quit (Ping timeout: 255 seconds) 2014-11-19T16:30:43Z ecraven: Riastradh: all of them :) 2014-11-19T16:30:44Z jumblerg joined #scheme 2014-11-19T16:32:14Z haole: can I read a string as a binary port? 2014-11-19T16:37:19Z cky: xyh: It won't be a special property of `cons` per se, but how your entire memory management system works. 2014-11-19T16:37:23Z bjz quit (Read error: Connection reset by peer) 2014-11-19T16:37:39Z bjz joined #scheme 2014-11-19T16:39:38Z cky: xyh: Nobody said that Scheme locations have to be implemented as direct pointers. That's a sensible implementation strategy for non-moving GCs, but you might want to do something different for a moving GC. 2014-11-19T16:40:20Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.92.1) 2014-11-19T16:40:38Z cky: xyh: The strategy Riastradh mentioned works too, then you don't always have to use double-indirection. 2014-11-19T16:41:29Z cky: ecraven: I'd like to think that there are ways to JIT-compile such things anyway. 2014-11-19T16:41:53Z Riastradh: ecraven: Anyway, no, nothing built-in. 2014-11-19T16:41:58Z cky: ecraven: (That is, the dynamic compiler sees that you're accessing those 4 bytes, so it reads in the whole word behind the scenes.) 2014-11-19T16:42:13Z Riastradh: haole: Depends on what Scheme system you're using... 2014-11-19T16:42:24Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T16:42:24Z haole: Riastradh: guile 2014-11-19T16:42:33Z cky: haole: You should use bytevectors in Guile. 2014-11-19T16:42:37Z Riastradh: haole: Probably! But I don't know how -- I don't use Guile. 2014-11-19T16:42:50Z cky: There are functions to convert strings into a bytevector "given a specific encoding". 2014-11-19T16:43:29Z ecraven: at least 32 bit integers are fixnums in MIT/GNU Scheme 2014-11-19T16:43:37Z Riastradh: ...on 64-bit systems. 2014-11-19T16:43:44Z cky: :-D 2014-11-19T16:43:57Z cky: Yes, pretty much every implementation I know reserves some bits for tagging. 2014-11-19T16:43:58Z Riastradh: On i386, fixnums are only 26 bits (signed). 2014-11-19T16:44:30Z cky: IIRC on a 64-bit system, Guile fixnums are 62 bits wide. 2014-11-19T16:44:41Z cky: Could be 61 though. I should double-check. 2014-11-19T16:47:20Z Lingo______ joined #scheme 2014-11-19T16:47:59Z Riastradh: ecraven: ...As an aside: why do you remark on 32-bit integers as fixnums? 2014-11-19T16:48:38Z ecraven: Riastradh: because 64 bit integers aren't fixnums in MIT/GNU Scheme, because they are tagged, right? 2014-11-19T16:48:57Z Riastradh: Yes. But what prompted you to remark on it? 2014-11-19T16:49:06Z Riastradh: Performance concerns, or something else? 2014-11-19T16:49:47Z ecraven: yes, I've implemented a basic X11 interface in pure scheme, and it seems to be a bit slow at times. I still haven't profiled it properly though :-/ 2014-11-19T16:51:44Z Lingo______ quit (Ping timeout: 256 seconds) 2014-11-19T16:52:03Z theseb joined #scheme 2014-11-19T16:52:12Z Riastradh: Anything keeping you from profiling it? How did the multithreaded profiling hack work? 2014-11-19T16:52:41Z jumblerg joined #scheme 2014-11-19T16:52:52Z ecraven: Riastradh: didn't get to try it yet :-/ too much normal non-Scheme work 2014-11-19T16:53:50Z cky: .oO(Guile fixnums in 64-bit mode are 61 bits wide. Just for the record. :-P) 2014-11-19T16:54:11Z ecraven: Riastradh: on a related note, I've had good success making IO-bound processes much faster in racket by multi-threading them. Threads in Racket as I understand are not OS-threads. The concrete use case was running several hundred HTTP requests in parallel. Is there something like this in MIT/GNU Scheme, some sort of run-another-thread-if-blocking-on-io thing? Starting actual OS threads seems like it would probably be 2014-11-19T16:54:11Z ecraven: slower :-/ 2014-11-19T16:55:01Z Riastradh: If one thread blocks on I/O it doesn't block all the other ones on I/O in MIT Scheme. 2014-11-19T16:55:40Z Riastradh: It's pretty much the same threading model, more or less. 2014-11-19T16:55:51Z ecraven: Is there anything like for-each/parallel (which runs each function call in a separate thread) predefined? 2014-11-19T16:56:14Z ecraven: or even better, map/parallel 2014-11-19T16:56:24Z Riastradh: No, but it's easy to do -- just call CREATE-THREAD in FOR-EACH and then join the threads. 2014-11-19T16:56:46Z ecraven: Riastradh: How would I get results back, if I wanted to? Racket uses channels for that 2014-11-19T16:57:21Z Riastradh: (Easier if you make copypasta of THREAD-JOIN tests/runtime/test-thread-queue.scm than the built-in JOIN-THREAD, which is kludgey for no reason I know.) 2014-11-19T16:57:46Z ecraven: Thanks, I'll try that later tonight! 2014-11-19T16:58:00Z Riastradh: (define (map/parallel f l) (map thread-join (map (lambda (x) (create-thread #f (lambda () (f x)))) l))) 2014-11-19T16:58:22Z Riastradh: (Of course, `parallel' is a misnomer here. The execution is merely interleaved.) 2014-11-19T16:58:49Z ecraven: hm... Was I misremembering that MIT/GNU Scheme supports actual OS threads? 2014-11-19T16:59:20Z Riastradh: Yes. Matt Birkholz is working on that, but it won't be at the same level as CREATE-THREAD, and it won't be really ready for a while. 2014-11-19T16:59:39Z ecraven: ah, then this is the same as Racket. Still great, thank you! 2014-11-19T17:00:44Z theseb: why in lisp if something can be done just as easily with recursion and iteration do i feel like a failure if i use iteration? somehow recursion got a rep as being more "proper" yes? 2014-11-19T17:00:47Z Riastradh: (Most of MIT Scheme is written under the assumption of a fundamentally sequential machine with total memory ordering. He's got some of the pthread-based infrastructure in the microcode, and is replacing shallow-binding by deep-binding, but I don't think he's done anything about interprocessor synchronization or memory ordering issues yet.) 2014-11-19T17:02:07Z Riastradh: theseb: Not really. Recursion is more expressive, but not always the clearest way to express something. 2014-11-19T17:03:04Z fantazo quit (Quit: Verlassend) 2014-11-19T17:06:15Z oleo__ joined #scheme 2014-11-19T17:06:55Z oleo is now known as Guest78773 2014-11-19T17:07:50Z jlongster quit (Ping timeout: 244 seconds) 2014-11-19T17:08:10Z Guest78773 quit (Ping timeout: 256 seconds) 2014-11-19T17:13:59Z ecraven: Riastradh: it sounds like a humongous task to port a system that wasn't designed with this in mind :-/ 2014-11-19T17:14:27Z ecraven: I find ../parallel a good name because it *could* be parallel (it just perchance isn't yet :) 2014-11-19T17:14:48Z theseb: Riastradh: thanks! but what do you mean by "expressive" ? 2014-11-19T17:21:14Z jlongster joined #scheme 2014-11-19T17:33:21Z haole: I've written a quick snippet to find a byte in a give port, but I'm sure it's very stupid :) can someone give me some suggestions or even a proper function in the standard libraries to do this? http://paste.lisp.org/display/144414 2014-11-19T17:33:34Z haole: (it seems to work, though) 2014-11-19T17:35:14Z ecraven: haole: you should use char=? to compare characters 2014-11-19T17:35:50Z haole: ecraven: thanks :) 2014-11-19T17:35:51Z ecraven: otherwise it seems fine ;) 2014-11-19T17:36:30Z joneshf-laptop quit (Remote host closed the connection) 2014-11-19T17:37:45Z haole: is there a nice library around to represent sets graphically? like circles that I could expand or colapse and then be able to travel inside the sets of sets 2014-11-19T17:37:50Z haole: (this sounds like a bad acid trip) 2014-11-19T17:42:48Z ventonegro quit (Remote host closed the connection) 2014-11-19T17:45:43Z szgyg joined #scheme 2014-11-19T17:47:56Z duggiefresh quit (Remote host closed the connection) 2014-11-19T17:48:03Z xyh quit (Remote host closed the connection) 2014-11-19T17:48:23Z duggiefresh joined #scheme 2014-11-19T17:52:43Z b4283 quit (Quit: Konversation terminated!) 2014-11-19T17:53:39Z altphi quit 2014-11-19T17:54:37Z duggiefresh quit (Ping timeout: 265 seconds) 2014-11-19T17:56:04Z rtra quit (Ping timeout: 265 seconds) 2014-11-19T17:58:51Z Lingo______ joined #scheme 2014-11-19T18:00:13Z haole quit (Quit: Page closed) 2014-11-19T18:00:27Z duggiefresh joined #scheme 2014-11-19T18:09:18Z rtra joined #scheme 2014-11-19T18:13:57Z rtra quit (Ping timeout: 265 seconds) 2014-11-19T18:16:25Z jlongster quit (Ping timeout: 272 seconds) 2014-11-19T18:19:09Z jlongster joined #scheme 2014-11-19T18:29:23Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-11-19T18:29:39Z rtra joined #scheme 2014-11-19T18:30:09Z duggiefresh quit (Read error: Connection reset by peer) 2014-11-19T18:30:35Z duggiefresh joined #scheme 2014-11-19T18:30:39Z amgarchIn9 joined #scheme 2014-11-19T18:31:24Z jeapostrophe joined #scheme 2014-11-19T18:31:25Z jeapostrophe quit (Changing host) 2014-11-19T18:31:25Z jeapostrophe joined #scheme 2014-11-19T18:43:49Z oleo__ quit (Quit: Verlassend) 2014-11-19T18:54:43Z duggiefresh quit (Read error: Connection reset by peer) 2014-11-19T18:55:06Z duggiefresh joined #scheme 2014-11-19T19:03:15Z oleo joined #scheme 2014-11-19T19:10:15Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T19:10:47Z Lingo______ joined #scheme 2014-11-19T19:11:21Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T19:13:06Z enitiz joined #scheme 2014-11-19T19:15:29Z Lingo______ quit (Ping timeout: 264 seconds) 2014-11-19T19:21:39Z oldskirt joined #scheme 2014-11-19T19:24:29Z oldskirt_ quit (Ping timeout: 264 seconds) 2014-11-19T19:25:24Z jumblerg joined #scheme 2014-11-19T19:25:38Z Bahman joined #scheme 2014-11-19T19:41:30Z adu joined #scheme 2014-11-19T19:49:15Z Lingo______ joined #scheme 2014-11-19T19:53:44Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T19:55:54Z adu quit (Quit: adu) 2014-11-19T19:56:02Z jeapostrophe quit (Read error: Connection reset by peer) 2014-11-19T19:56:08Z kazimir42 joined #scheme 2014-11-19T19:56:09Z jeapostrophe joined #scheme 2014-11-19T19:59:22Z amgarchIn9 quit (Ping timeout: 244 seconds) 2014-11-19T20:01:41Z jeapostrophe quit (Ping timeout: 264 seconds) 2014-11-19T20:05:40Z enitiz quit (Ping timeout: 258 seconds) 2014-11-19T20:06:48Z jumblerg joined #scheme 2014-11-19T20:10:37Z kongtomorrow joined #scheme 2014-11-19T20:19:10Z enitiz joined #scheme 2014-11-19T20:20:01Z mrowe is now known as mrowe_away 2014-11-19T20:22:44Z hiyosi quit (Ping timeout: 250 seconds) 2014-11-19T20:23:18Z theseb quit (Quit: Leaving) 2014-11-19T20:26:14Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T20:26:47Z Lingo______ joined #scheme 2014-11-19T20:29:31Z MichaelRaskin joined #scheme 2014-11-19T20:30:51Z adu joined #scheme 2014-11-19T20:31:24Z Lingo______ quit (Ping timeout: 255 seconds) 2014-11-19T20:31:57Z Lingo______ joined #scheme 2014-11-19T20:36:42Z Lingo______ quit (Ping timeout: 256 seconds) 2014-11-19T20:37:06Z enitiz quit (Ping timeout: 258 seconds) 2014-11-19T20:46:24Z sheilong quit (Quit: Konversation terminated!) 2014-11-19T20:53:04Z oldskirt_ joined #scheme 2014-11-19T20:53:04Z oldskirt_ quit (Changing host) 2014-11-19T20:53:04Z oldskirt_ joined #scheme 2014-11-19T20:53:12Z oldskirt_ quit (Excess Flood) 2014-11-19T20:54:37Z sg2002 joined #scheme 2014-11-19T20:56:19Z enitiz joined #scheme 2014-11-19T20:56:50Z oldskirt quit (Ping timeout: 265 seconds) 2014-11-19T20:57:59Z amgarchIn9 joined #scheme 2014-11-19T21:16:58Z enitiz quit (Ping timeout: 258 seconds) 2014-11-19T21:19:21Z hiyosi joined #scheme 2014-11-19T21:19:33Z jlongster quit (Ping timeout: 255 seconds) 2014-11-19T21:23:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-19T21:23:55Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-19T21:27:17Z Lingo______ joined #scheme 2014-11-19T21:29:23Z enitiz joined #scheme 2014-11-19T21:30:47Z hypermagic joined #scheme 2014-11-19T21:31:02Z hypermagic: hello my friends 2014-11-19T21:31:22Z Lingo______ quit (Ping timeout: 240 seconds) 2014-11-19T21:31:45Z ecraven: hey 2014-11-19T21:34:36Z derek_c joined #scheme 2014-11-19T21:35:27Z kazimir42 quit (Ping timeout: 250 seconds) 2014-11-19T21:38:04Z jenia joined #scheme 2014-11-19T21:38:44Z jenia: hello. what is the opposite of (list? '())? I mean, how do you ask if something is an atom? 2014-11-19T21:39:01Z jenia: and not (not (list? '()) lol 2014-11-19T21:39:42Z oleo: (atom? blah) 2014-11-19T21:40:16Z Riastradh: Well, since (list? '()) is #t, the opposite of it is #f... But anyway: why not (not (list? x))? What are you really trying to accompplish by discriminating on whether something is an `atom' or not? 2014-11-19T21:40:48Z oleo: try both 2014-11-19T21:41:06Z jenia: Riastradh, I want to implement a function called firsts 2014-11-19T21:41:33Z jenia: is takes all the first elements as so '((a b c) (d e f))----> '(a d) 2014-11-19T21:41:33Z vanila: null? 2014-11-19T21:41:39Z vanila: use NULL? to detect the end of a list 2014-11-19T21:42:12Z jenia: but what is the list is '(a (b c d) (e f g)), then I need to check if the element is a list or an atom 2014-11-19T21:42:40Z adu quit (Quit: adu) 2014-11-19T21:42:52Z jenia: (define firsts (lambda (L) (cond ((null? L) '()) 2014-11-19T21:43:41Z jenia: ((atom? (car L)) (cons (car L) (firsts (cdr L))) 2014-11-19T21:43:54Z vanila: use SYMBOL? 2014-11-19T21:44:01Z jenia: (else (cons (car (car L)) (firsts (cdr L))))) 2014-11-19T21:44:06Z jenia: something like that 2014-11-19T21:44:18Z vanila: use SYMBOL? to detect if something is a symbol 2014-11-19T21:44:32Z vanila: there is no such thing as ATOM? in R5RS 2014-11-19T21:44:35Z jenia: vanila, symbol didnt work for me 2014-11-19T21:44:44Z vanila: can I see you code? 2014-11-19T21:44:46Z jenia: unbound variable... 2014-11-19T21:44:52Z jenia: (SYMBOL? 'a) 2014-11-19T21:45:02Z vanila: maybe you need to switch to R5RS scheme mode 2014-11-19T21:45:18Z jenia: ahh ups, I used (symbol? 'a) and it worked 2014-11-19T21:45:20Z jenia: thanks 2014-11-19T21:45:48Z vanila: oh good! 2014-11-19T21:46:01Z jenia: but what do you think, is it a good idea to distinguish between atom and list? Is my function ... kind of programmed the way scheme is suppose to be programmed or is there a better way to do that? 2014-11-19T21:46:07Z bjz quit (Read error: Connection reset by peer) 2014-11-19T21:46:22Z bjz_ joined #scheme 2014-11-19T21:47:13Z vanila: what is it you want to do exactly? 2014-11-19T21:47:32Z vanila: oh 2014-11-19T21:47:38Z vanila: I see what you want to do 2014-11-19T21:47:45Z vanila: so you could define a subroutine like this 2014-11-19T21:47:55Z vanila: (first-of 'a) ;=> a 2014-11-19T21:47:56Z jenia: yup 2014-11-19T21:47:59Z vanila: (first-of '(a b c)) ;=> a 2014-11-19T21:48:03Z vanila: (first-of '(b c)) ;=> b 2014-11-19T21:48:07Z vanila: (first-of 'x) ;=> x 2014-11-19T21:48:11Z jenia: yes 2014-11-19T21:48:40Z vanila: using (cond ((symbol? thing) thing) ((list? thing) (car thing)) (else (error "no thing"))) 2014-11-19T21:48:48Z jenia: but also (first-of '((a b c) (d e f)) ;=> (a d) 2014-11-19T21:48:52Z vanila: and then you can define FIRSTS in a simpler way 2014-11-19T21:48:56Z vanila: oh 2014-11-19T21:49:00Z vanila: I must have misunderstood 2014-11-19T21:49:11Z vanila: I think I understand now 2014-11-19T21:49:21Z jenia: its from little schemer 2014-11-19T21:49:25Z vanila: okay 2014-11-19T21:49:49Z vanila: how about using MAP? 2014-11-19T21:50:07Z jenia: map? ill check that function out. 2014-11-19T21:50:26Z oleo: eheh 2014-11-19T21:50:41Z jenia: you know. I like "lisp" a lot. I now understand why `-` is not used in variable names in c, javascript and so on 2014-11-19T21:50:43Z oleo: ja, will be flat! 2014-11-19T21:51:10Z jenia: (cause its not possible to distinguish in those languages if `-` is the character or the function) 2014-11-19T21:51:29Z jenia: so its assumed to be the function 2014-11-19T21:55:50Z duggiefresh quit 2014-11-19T21:56:14Z taylanub: it's a binary infix "operator" to be exact; it's recognized at the grammar level already. 2014-11-19T21:57:00Z ijp joined #scheme 2014-11-19T21:57:59Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-19T21:58:06Z alexey joined #scheme 2014-11-19T21:58:19Z davexunit quit (Quit: Later) 2014-11-19T22:04:05Z szgyg quit (Quit: leaving) 2014-11-19T22:10:10Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-19T22:10:21Z mrowe_away is now known as mrowe 2014-11-19T22:15:35Z Lingo______ joined #scheme 2014-11-19T22:18:18Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T22:18:21Z kongtomorrow quit 2014-11-19T22:24:41Z jlongster joined #scheme 2014-11-19T22:26:23Z jumblerg joined #scheme 2014-11-19T22:30:12Z Lingo______ quit (Quit: Be back later ...) 2014-11-19T22:30:48Z Lingo______ joined #scheme 2014-11-19T22:34:52Z Lingo______ quit (Ping timeout: 245 seconds) 2014-11-19T22:36:05Z daviid joined #scheme 2014-11-19T22:36:53Z taylanub quit (Ping timeout: 265 seconds) 2014-11-19T22:37:58Z amgarchIn9 quit (Ping timeout: 256 seconds) 2014-11-19T22:40:06Z Lingo______ joined #scheme 2014-11-19T22:41:01Z taylanub joined #scheme 2014-11-19T22:48:46Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T22:50:55Z jumblerg joined #scheme 2014-11-19T23:03:05Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-19T23:05:10Z hiyosi joined #scheme 2014-11-19T23:06:58Z joneshf-laptop joined #scheme 2014-11-19T23:10:03Z hiyosi quit (Ping timeout: 258 seconds) 2014-11-19T23:11:08Z technomancy joined #scheme 2014-11-19T23:13:15Z usrj joined #scheme 2014-11-19T23:13:21Z usrj quit (Client Quit) 2014-11-19T23:14:32Z technomancy: I stumbled upon prescheme the other day which claims to compile programs with "very little runtime overhead"--I wonder if "very little" means "so little it could run on a microcontroller"? 2014-11-19T23:15:18Z usrj joined #scheme 2014-11-19T23:16:29Z kongtomorrow joined #scheme 2014-11-19T23:26:33Z daviid quit (Ping timeout: 244 seconds) 2014-11-19T23:32:16Z jumblerg joined #scheme 2014-11-19T23:40:43Z enitiz quit (Ping timeout: 258 seconds) 2014-11-19T23:41:49Z joneshf-laptop quit (Remote host closed the connection) 2014-11-19T23:41:55Z hiyosi joined #scheme 2014-11-19T23:46:25Z alexey quit (Remote host closed the connection) 2014-11-19T23:51:07Z jlongster quit (Ping timeout: 255 seconds) 2014-11-19T23:58:51Z cdidd quit (Ping timeout: 255 seconds)