Conversation with #inferno at Wed Jun 19 16:07:18 2013 on powerman@irc.freenode.net (irc) (16:07:18) #inferno: Topic for #inferno set by mennis at 17:30:16 on 12/28/09 (16:07:57) kabbi: powerman1, Thank you! I've already found you article today in russian :) But I have some problems allocating array of array of something. (16:08:55) kabbi: powerman, What should be the memory layout? I've used heap header-array header-n*array headers-m1*data-m2*data-...-mn*data (16:09:11) kabbi: But that doesn't seem to work. (16:11:45) kabbi: Also should I request the whole chunk from the heap, or one chunk for every Array object (total of n)? (16:12:28) powerman: I suppose you should allocate n+1 separate arrays and save references to n arrays in top array. But I didn't work with it for a long time, so I may be wrong. (16:14:54) kabbi: But how could I save a reference when the top Array needs N objects, not their pointers or refs? (16:15:03) Gegemon left the room (quit: Quit: Leaving.). (16:19:46) powerman: kabbi: I suppose top array should contain Array structs in "data" (and have Tarray in "type") (16:21:25) powerman: *in "t", not "type" (16:23:14) kabbi: Yep, I understand, but then it should contain Array structs in data, not their refs. (16:29:35) powerman: Another option - top array can contain Tptr in "t" and references to subarrays in "data". (16:31:57) powerman: kabbi: yeah, I think it should work using Tptr (16:32:54) powerman: in my cjson module there are makekeys function http://code.google.com/p/inferno-cjson/source/browse/libinterp/cjson.c#184 (16:33:06) kabbi: powerman, Ok, that makes sense. I'll try it soon. I had an idea to pass such array from Limbo to c module and see how it works. (16:33:38) powerman: it return adt which contains "array of array of byte" http://code.google.com/p/inferno-cjson/source/browse/module/cjson.m#61 (16:33:51) powerman: so you can check how it create that array (16:35:03) kabbi: Wow! I've been searching for examples for quite a time, but found nothing. Your sources are really useful! Great thank you! (16:38:36) kabbi left the room (quit: Read error: Connection reset by peer). (16:40:49) kabbi [~kabbi@37.214.94.81] entered the room. (16:45:10) Aram [~aram@chello084112126145.24.11.vie.surfer.at] entered the room. (16:45:10) Aram left the room (quit: Changing host). (16:45:10) Aram [~aram@unaffiliated/aramdune] entered the room. (16:46:13) kabbi left the room (quit: Ping timeout: 248 seconds). (16:54:27) kabbi [~kabbi@37.214.102.40] entered the room. (17:06:23) kabbi left the room (quit: Ping timeout: 240 seconds). (17:13:23) kabbi [~kabbi@37.214.111.225] entered the room. (18:34:28) raphaelsc [~ravelont@179-236-59-164.user.veloxzone.com.br] entered the room. (19:17:32) kabbi_ [~kabbi@178.120.80.69] entered the room. (19:18:42) kabbi left the room (quit: Ping timeout: 264 seconds). (20:13:42) kabbi_ left the room (quit: Remote host closed the connection). (20:18:56) Fish [~Fish@9fans.fr] entered the room. (20:38:24) rogpeppe left the room (quit: Ping timeout: 240 seconds). (21:39:39) dreadlorde left the room (quit: ). (23:12:24) Edune [~Edune@m83-180-215-125.cust.tele2.se] entered the room. (23:20:26) E-dne [~E-dne@m83-180-215-125.cust.tele2.se] entered the room. (23:24:00) Edune left the room (quit: Ping timeout: 260 seconds). (23:25:07) E-dne left the room (quit: Ping timeout: 264 seconds). (23:27:33) Aram left the room (quit: Remote host closed the connection). (23:45:49) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (00:09:41) kabbi [~kabbi@178.120.218.161] entered the room. (00:48:56) Aram [~aram@chello084112126145.24.11.vie.surfer.at] entered the room. (00:48:56) Aram left the room (quit: Changing host). (00:48:56) Aram [~aram@unaffiliated/aramdune] entered the room. (01:02:59) kabbi left the room (quit: Remote host closed the connection). (01:37:08) dreadlorde left the room (quit: Ping timeout: 264 seconds). (01:44:00) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (01:47:55) KBme left the room (quit: Quit: KBme kthxbye). (01:49:13) KBme [~KBme@2001:470:cabe:dead:beef:feed:dead:beef] entered the room. (01:59:46) ddf [fdd@unaffiliated/fdd] entered the room. (02:00:11) fdd left the room (quit: Ping timeout: 246 seconds). (02:14:25) ddf is now known as fdd (03:08:43) raphaelsc left the room (quit: Quit: Leaving). (03:31:03) Aram left the room (quit: Remote host closed the connection). (04:08:34) KBme left the room (quit: Quit: KBme kthxbye). (04:14:43) KBme [~KBme@2001:470:cabe:dead:beef:feed:dead:beef] entered the room. (06:54:08) KBme left the room (quit: Ping timeout: 245 seconds). (06:58:43) KBme [~KBme@2001:470:cabe:dead:beef:feed:dead:beef] entered the room. (09:58:08) rogpeppe [~rog@host-92-30-151-24.as13285.net] entered the room. (10:06:12) Gegemon [~ynv@mx1.airis.ru] entered the room. (10:59:58) yshurik [~Adium@193.69.63.210] entered the room. (11:46:58) Aram [~aram@chello084112126145.24.11.vie.surfer.at] entered the room. (11:47:02) Aram left the room (quit: Changing host). (11:47:02) Aram [~aram@unaffiliated/aramdune] entered the room. (12:30:15) yshurik left the room (quit: Quit: Leaving.). (12:44:50) ddf [fdd@unaffiliated/fdd] entered the room. (12:48:02) fdd left the room (quit: Ping timeout: 246 seconds). (13:24:52) kabbi [~kabbi@178.120.80.69] entered the room. (13:25:53) rogpeppe left the room (quit: Ping timeout: 255 seconds). (13:25:55) rogpeppe1 [~rog@host-92-30-151-24.as13285.net] entered the room. (13:44:16) rogpeppe1 is now known as rogpeppe (13:48:14) kabbi_ [~kabbi@178.120.80.69] entered the room. (13:48:42) kabbi left the room (quit: Ping timeout: 268 seconds). (13:51:47) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (13:56:36) yshurik1 [~Adium@62.92.189.109.customer.cdi.no] entered the room. (13:57:24) yshurik left the room (quit: Ping timeout: 240 seconds). (14:09:17) yshurik1 left the room (quit: Quit: Leaving.). (14:30:56) ddf left the room (quit: Ping timeout: 246 seconds). (14:30:57) fdd [fdd@2a02:2f0e:400f:ffff::bc18:527b] entered the room. (14:30:57) fdd left the room (quit: Changing host). (14:30:57) fdd [fdd@unaffiliated/fdd] entered the room. (14:31:57) yshurik [~Adium@193.69.63.210] entered the room. (15:49:11) rogpeppe1 [~rog@host-92-30-151-24.as13285.net] entered the room. (15:52:43) rogpeppe left the room (quit: Ping timeout: 264 seconds). (16:19:46) yshurik left the room (quit: Quit: Leaving.). (17:00:34) rogpeppe2 [~rog@host-92-30-146-160.as13285.net] entered the room. (17:01:05) rogpeppe1 left the room (quit: Ping timeout: 248 seconds). (17:14:50) kabbi_ left the room (quit: Remote host closed the connection). (17:16:04) kabbi [~kabbi@178.120.80.69] entered the room. (18:20:33) kabbi_ [~kabbi@178.121.83.229] entered the room. (18:21:53) kabbi left the room (quit: Ping timeout: 268 seconds). (19:07:52) kabbi_ left the room (quit: Remote host closed the connection). (19:21:56) kabbi [~kabbi@178.121.83.229] entered the room. (19:29:55) fgudin left the room (quit: Ping timeout: 264 seconds). (19:52:26) raphaelsc [~ravelont@179-236-59-164.user.veloxzone.com.br] entered the room. (20:57:24) rogpeppe2 left the room (quit: Ping timeout: 240 seconds). (21:07:27) kabbi_ [~kabbi@178.120.12.213] entered the room. (21:08:08) kabbi left the room (quit: Ping timeout: 252 seconds). (21:32:03) kabbi_ left the room (quit: Remote host closed the connection). (21:44:28) qrstuv left the room (quit: Quit: jmk added reentrancy for threads). (21:58:00) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (22:10:25) yshurik left the room (quit: Quit: Leaving.). (22:19:12) dreadlorde left the room (quit: ). (22:22:39) kabbi [~kabbi@178.120.218.161] entered the room. (22:34:07) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (22:44:30) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (22:46:07) Aram left the room (quit: Remote host closed the connection). (23:02:24) raphaelsc left the room (quit: Ping timeout: 240 seconds). (23:14:46) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room. (23:20:51) raphaelsc left the room (quit: Remote host closed the connection). (23:32:26) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room. (23:34:58) raphaelsc left the room. (23:51:13) KBme left the room (quit: Ping timeout: 245 seconds). (00:02:48) KBme [~KBme@2001:470:cabe:dead:beef:feed:dead:beef] entered the room. (01:41:57) dreadlorde left the room (quit: ). (01:52:58) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (01:53:03) dreadlorde left the room (quit: Client Quit). (01:53:23) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (02:11:47) yshurik left the room (quit: Quit: Leaving.). (04:06:05) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room. (04:23:04) qrstuv [~bnjuytghj@50.45.83.25] entered the room. (06:33:24) raphaelsc left the room (quit: Quit: Leaving). (07:27:08) `jpi left the room (quit: Ping timeout: 260 seconds). (08:43:29) kabbi left the room (quit: Remote host closed the connection). (08:48:49) Gegemon left the room (quit: Quit: Leaving.). (08:49:06) Gegemon [~ynv@mx1.airis.ru] entered the room. (09:14:21) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (09:19:29) rogpeppe2 [~rog@host-92-30-146-160.as13285.net] entered the room. (09:24:46) `jpi [~jpi@unaffiliated/pseud0cod3r] entered the room. (09:53:26) kabbi [~kabbi@217.21.43.95] entered the room. (10:33:19) fgudin [fgudin@odin.sdf-eu.org] entered the room. (10:45:24) yshurik left the room (quit: Quit: Leaving.). (10:49:30) kabbi left the room (quit: Remote host closed the connection). (11:09:29) kabbi [~kabbi@217.21.43.95] entered the room. (12:47:28) kabbi left the room (quit: Remote host closed the connection). (12:53:59) kabbi [~kabbi@217.21.43.95] entered the room. (13:38:11) kabbi left the room (quit: Remote host closed the connection). (13:50:40) kabbi_ [~kabbi@178.121.179.82] entered the room. (14:43:09) kabbi [~kabbi@178.121.166.45] entered the room. (14:43:56) kabbi_ left the room (quit: Ping timeout: 260 seconds). (14:51:16) kabbi left the room (quit: Read error: Connection reset by peer). (14:54:39) kabbi [~kabbi@178.121.180.230] entered the room. (15:01:01) Gegemon left the room (quit: Quit: Leaving.). (15:19:32) rogpeppe2 is now known as rogpeppe (16:01:34) ddf [~fdd@unaffiliated/fdd] entered the room. (16:01:50) fdd left the room (quit: Ping timeout: 246 seconds). (16:38:41) Aram [~aram@chello084112126145.24.11.vie.surfer.at] entered the room. (16:38:41) Aram left the room (quit: Changing host). (16:38:41) Aram [~aram@unaffiliated/aramdune] entered the room. (16:51:42) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (16:59:33) kabbi left the room (quit: Remote host closed the connection). (17:34:39) kabbi [~kabbi@86.57.157.214] entered the room. (17:45:59) yshurik left the room (quit: Quit: Leaving.). (18:38:42) yshurik [~Adium@193.212.24.100] entered the room. (18:49:36) yshurik left the room (quit: Quit: Leaving.). (19:07:27) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room. (21:02:12) kabbi left the room (quit: Remote host closed the connection). (22:05:32) kabbi [~kabbi@178.120.218.161] entered the room. (01:02:35) kabbi_ [~kabbi@178.120.218.161] entered the room. (01:05:25) kabbi left the room (quit: Ping timeout: 276 seconds). (01:49:48) kabbi_ left the room (quit: Remote host closed the connection). (05:28:46) raphaelsc left the room (quit: Quit: Leaving). (05:51:29) Aram left the room (quit: Remote host closed the connection). (05:56:38) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room. (06:19:37) raphaelsc left the room (quit: Quit: Leaving). (09:26:08) kabbi [~kabbi@178.120.218.161] entered the room. (11:17:47) kabbi left the room (quit: Remote host closed the connection). (11:57:51) kabbi [~kabbi@86.57.157.214] entered the room. (12:13:25) Fish left the room (quit: Quit: WeeChat 0.4.0). (12:42:54) rogpeppe left the room (quit: Ping timeout: 240 seconds). (15:01:41) Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] entered the room. (15:36:15) kabbi left the room (quit: Remote host closed the connection). (15:56:40) Aram [~aram@chello084112126145.24.11.vie.surfer.at] entered the room. (15:56:40) Aram left the room (quit: Changing host). (15:56:40) Aram [~aram@unaffiliated/aramdune] entered the room. (16:01:03) kabbi [~kabbi@86.57.157.214] entered the room. (17:39:50) yshurik [~Adium@62.92.189.109.customer.cdi.no] entered the room. (19:55:30) kabbi left the room (quit: Remote host closed the connection). (20:30:41) kabbi [~kabbi@178.120.69.59] entered the room. (20:52:29) Fish left the room (quit: Quit: WeeChat 0.4.0). (00:35:17) rogpeppe [~rog@host-92-30-146-160.as13285.net] entered the room. (01:22:57) kabbi left the room (quit: Remote host closed the connection). (01:56:01) rogpeppe left the room (quit: Ping timeout: 248 seconds). (02:16:53) rogpeppe [~rog@host-92-30-146-160.as13285.net] entered the room. (02:21:31) rogpeppe left the room (quit: Ping timeout: 264 seconds). (02:51:49) raphaelsc [~ravelont@200-97-58-30.user.veloxzone.com.br] entered the room.