03:45:12 | * | fowl quit (Ping timeout: 268 seconds) |
03:47:47 | * | Amrykid3 joined #nimrod |
03:50:21 | * | Amrykid2 quit (Ping timeout: 276 seconds) |
04:18:33 | * | fowl joined #nimrod |
05:07:12 | * | XAMPP_ joined #nimrod |
05:09:49 | * | XAMPP quit (Ping timeout: 246 seconds) |
05:43:38 | * | Amrykid3 quit (Quit: Leaving) |
07:53:43 | * | Boscop quit (Ping timeout: 260 seconds) |
08:14:05 | * | Araq_ joined #nimrod |
08:17:58 | * | Araq_ quit (Client Quit) |
09:29:50 | * | rking quit (*.net *.split) |
09:32:50 | * | fowl quit (Quit: Leaving) |
09:40:56 | * | rking joined #nimrod |
09:59:32 | * | rking quit (*.net *.split) |
10:10:05 | * | rking joined #nimrod |
10:35:28 | * | rking quit (*.net *.split) |
10:56:03 | * | Arcanum_za joined #nimrod |
10:56:11 | * | Arcanum_za is now known as Trixar_za |
10:59:41 | * | Trixar_za quit (Client Quit) |
11:23:14 | * | Trix[a]r_za quit (Ping timeout: 252 seconds) |
12:06:57 | * | Araq_ joined #nimrod |
12:12:31 | * | Araq_ quit (Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]) |
12:28:55 | * | rking joined #nimrod |
12:49:03 | * | Trixar_za joined #nimrod |
13:48:21 | * | q66 joined #nimrod |
15:21:22 | * | Trixar_za quit (Quit: Leaving) |
16:24:04 | dom96 | hello |
16:52:01 | dom96 | This looks interesting: http://aisandbox.com |
17:35:38 | Araq | hi dom96 |
17:38:23 | dom96 | hey Araq |
17:39:05 | Araq | the first class iterators can now be used for a light task system :P |
17:39:27 | Araq | dunno if it helps async IO though ... |
17:57:05 | Araq | so ... we can have: |
17:58:07 | Araq | var html = download("http://nimrod-code.org") |
17:58:10 | Araq | yield |
17:58:29 | Araq | # scheduler gurarantes the IO completed when control comes back here |
17:58:41 | Araq | echo html.get() |
17:59:11 | Araq | it can be wrapped in a template |
17:59:28 | Araq | but the 3 statements need to occur in an iterator |
18:00:25 | Araq | basically the whole pseudo-linear flow needs to be within an iterator |
18:01:03 | Araq | however, with the right async library design it should be really sweet |
18:05:54 | Araq | now aren't you happy you already switched to threading for nimbuild? :P |
18:34:39 | dom96 | most of nimbuild is still async. |
18:41:27 | dom96 | I'm not entirely sure how these new iterators work, so I'm not sure how to adjust the asyncio module to work with them. |
18:41:45 | Araq | I'm looking at the current api again ... |
18:42:31 | dom96 | In fact I think a new module might be necessary |
18:44:40 | Araq | I don't think so |
18:49:47 | Araq | your TDelegate stuff is pretty weird |
18:50:06 | Araq | I suppose you left it that way to not break any code? |
18:53:13 | dom96 | what's weird about it? |
18:53:36 | Araq | well TAsyncSocket supports closures but TDelegate does not |
18:53:55 | Araq | and both have handleRead etc. proc vars |
18:54:19 | dom96 | mmm, perhaps it should be a closure |
18:55:31 | dom96 | I simply forgot to change it I think. |
18:56:07 | dom96 | but then again I think it would break some code. |
18:56:39 | Araq | yeah |
18:57:10 | dom96 | You don't really need a closure there though. |
18:57:20 | dom96 | You're already given a custom object. |
18:57:23 | Araq | true. |
18:57:38 | Araq | it's fine the way it is but my point was: |
18:57:56 | Araq | TDelegate and TAsyncSocket look like they should be merged somehow |
18:58:29 | dom96 | no. |
18:58:46 | Araq | why not? |
18:58:57 | dom96 | TDelegate is the generic object which works of file descriptors |
18:59:01 | dom96 | *works on |
18:59:54 | dom96 | If you merge it, asyncio will turn into asyncsock |
19:00:16 | Araq | asyncio already contains the TAsyncSocket |
19:00:37 | Araq | in fact these should all be streams instead |
19:01:13 | Araq | I'm not saying that you should change all this code btw |
19:01:16 | Araq | I'm merely thinking |
19:03:57 | Araq | ftpclient.listDirs returns @[] when in async mode |
19:04:18 | Araq | and existsFile always blocks |
19:04:47 | Araq | I think 'yield' should be a nop in a 'proc' |
19:05:02 | Araq | then the same template could be used in a task and in a proc |
19:07:23 | Araq | brb |
19:29:12 | Araq | back |
20:55:11 | * | fowl joined #nimrod |
20:57:56 | * | ekselkiu joined #nimrod |
23:14:19 | * | ekselkiu quit (Ping timeout: 260 seconds) |
23:22:23 | * | fowl quit (Remote host closed the connection) |
23:41:10 | * | fowl joined #nimrod |