FROM : Jean-Daniel Dupas
DATE : Sun Jun 08 13:05:00 2008
Le 8 juin 08 à 12:43, Michael Ash a écrit :
> On Sun, Jun 8, 2008 at 1:48 AM, Peter Duniho <<email_removed>> wrote:
>> So, when you write "true proxying of method invocations", what does
>> that
>> mean, exactly?
>
> Distributed Objects is probably the best example in terms of
> real-world use of a technique which is difficult in stricter
> languages. Consider:
>
> Foo *obj = [connection rootProxy];
> [obj doSomethingWithArgument:arg];
>
> This transparently proxies the method invocation off to another
> machine. I seem to recall from the last time that this is possible to
> implement in C# but not Java, but I could be wrong.
>
> And as I pointed out in the last discussion, a key point is not only
> whether this sort of thing is possible but whether it is easy. Message
> capturing and forwarding is fairly trivial in ObjC, which makes it
> practical for the end programmer to write his own code which takes
> advantage of it, rather than using system APIs which use it. It's very
> nice to be able to compose two objects together with forwarding using
> only a couple of lines of code, or to capture an invocation for later
> use with a similar amount of code.
>
> Mike
Of couse, it took me only a couple of line to implements my own
interthread messaging proxy.
I don't think this is worth restarting this long and boring discussion
about what are the advantage of Obj-C runtime.
DATE : Sun Jun 08 13:05:00 2008
Le 8 juin 08 à 12:43, Michael Ash a écrit :
> On Sun, Jun 8, 2008 at 1:48 AM, Peter Duniho <<email_removed>> wrote:
>> So, when you write "true proxying of method invocations", what does
>> that
>> mean, exactly?
>
> Distributed Objects is probably the best example in terms of
> real-world use of a technique which is difficult in stricter
> languages. Consider:
>
> Foo *obj = [connection rootProxy];
> [obj doSomethingWithArgument:arg];
>
> This transparently proxies the method invocation off to another
> machine. I seem to recall from the last time that this is possible to
> implement in C# but not Java, but I could be wrong.
>
> And as I pointed out in the last discussion, a key point is not only
> whether this sort of thing is possible but whether it is easy. Message
> capturing and forwarding is fairly trivial in ObjC, which makes it
> practical for the end programmer to write his own code which takes
> advantage of it, rather than using system APIs which use it. It's very
> nice to be able to compose two objects together with forwarding using
> only a couple of lines of code, or to capture an invocation for later
> use with a similar amount of code.
>
> Mike
Of couse, it took me only a couple of line to implements my own
interthread messaging proxy.
I don't think this is worth restarting this long and boring discussion
about what are the advantage of Obj-C runtime.
| Related mails | Author | Date |
|---|---|---|
| Bill Bumgarner | Jun 7, 21:38 | |
| Denis Bohm | Jun 7, 22:30 | |
| WT | Jun 7, 22:49 | |
| Bill Bumgarner | Jun 7, 22:49 | |
| Denis Bohm | Jun 7, 22:54 | |
| Bill Bumgarner | Jun 7, 23:01 | |
| Bill Bumgarner | Jun 7, 23:08 | |
| Denis Bohm | Jun 7, 23:10 | |
| Denis Bohm | Jun 7, 23:40 | |
| Bill Bumgarner | Jun 7, 23:43 | |
| Denis Bohm | Jun 7, 23:52 | |
| Ken Ferry | Jun 8, 00:08 | |
| Torsten Curdt | Jun 8, 01:12 | |
| Peter Duniho | Jun 8, 01:16 | |
| Peter Duniho | Jun 8, 02:15 | |
| Peter Duniho | Jun 8, 02:15 | |
| Bill Bumgarner | Jun 8, 02:16 | |
| Michael Ash | Jun 8, 03:51 | |
| Peter Duniho | Jun 8, 07:48 | |
| Denis Bohm | Jun 8, 08:17 | |
| Michael Ash | Jun 8, 12:43 | |
| Jean-Daniel Dupas | Jun 8, 13:05 | |
| Denis Bohm | Jun 8, 19:33 |






Cocoa mail archive

