Overview
| Artifact ID: | 7e33a009c54a08d786fe5968a0f76b29c0b841e4 |
|---|---|
| Ticket: | 3408824fffffffffffffffffffffffffffffffff
iocmd.tf-24.16 unstable w/ -DPURIFY |
| User & Date: | ferrieux on 2011-09-20 02:10:48 |
Changes
- assignee changed to: "andreas_kupries"
- icomment:
allow_comments - 0 Andreas, thanks for addressing my points. I don't want to appear as fighting your ideas. It's simply that you are much more courageous than I am :D. Let me just answer a few of your arguments from the lazy man's standpoint: > [use case for interthread comm] Still doable with plain, documented [thread::send] instead of its hidden ersatz inside IORchan, right ? > [orthogonality, channel type agnosticism] Okay but "<@" already exposes the special nature of refchans (and channel transforms, for that matter). Also, while some cases of channel transfer come to mind (like the client socket in a network server), I really can't imagine a modular app ignoring the kind of channel that it's transferring ... and yet accepting the two peculiar consequences of transferring an RC: (a) that the mother thread stays in evloop, and (b) that each and every channel method incurs a round trip to this mother thread. Hardly transparent, I'd say :} > IOW. the complexity and special casing is not really going away, only > simply shifted around and changing its nature a bit (setup with yours vs. > all the internal transfer mgmt with mine). Yes. The key word here is "changing its nature": the burden of setup is entirely in script land ! This means that any complex interactions are emergent properties of the existing primitives, which are covered in dozens of atomic tests, hence much easier to debug : thread::send, vwait, chan create, etc. Moreover, this burden seems much lighter to me. Indeed, instead of emulating the interthread forwarding of refchan methods, one is more likely to just implement them in the other thread, on top of whatever true channel was transferred beforehand. Not much complexity indeed. But I guess it's way too late anyway. Let's hope few deadlocks and race conditions still exist in there ;-)
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "ferrieux"