quote:
Original post by CoffeeMug
A technologically superior mechanism is already in place and it''s called RPC.
That''s what X does, but it does it faster. I don''t see how RPC would solve the problem anyway: clients and servers will still have to communicate.
quote:
Whenever you wish to use a networked model you replace all functions by stubs that do appropriate initialization and marshalling. This way you don''t have to pay for networking if you don''t want to and you will have it if you do.
X uses shared memory locally, that''s zero network traffic. If the network is required, then it will use its RPC mechanism transparently.
quote:
Modern programming frameworks do this for you automatically.
I guess Xlibs is very modern.
quote:
I don''t understand why the linux scene is stuck behind the times still using C and a twenty year old networking model.
So X is too slow but shouldn''t be written in C? What would you suggest?
Most OSes and even libraries are still mostly written in C. FORTRAN is still used for number crunching, Lisp is also used a lot in fault tolerant, concurrent, distributed systems (like air traffic control). Algol is still one of the most used languages in the AI field (with Scheme at the MIT, I guess). FORTRAN and Lisp are 50 years old, and Algol is 30 years old. All of them have evolved over time, and so has C.
FWIW, TCP/IP and virtual memory are very old, much older than X. Would you suggest that we get rid of them?
Hope this helps.