[835] in java-interest

home help back first fref pref prev next nref lref last post

Re: Java questions

daemon@ATHENA.MIT.EDU (Mathew Lodge)
Sat Jul 22 16:10:53 1995

Date: Sat, 22 Jul 1995 13:50:00 -0600
From: lodge@houston.omnes.net (Mathew Lodge)
To: chris@tkna.com (Christopher Helck)
Cc: java-interest@java.Eng.Sun.COM

Hello,

>2.  Java has threads. How does it handle inter-process communication?
>    Objective-C has something called proxies that (I think) pass objects
>    between processes. Will the language have direct support for this or
>    will this be done by a package or is it impossible?

Java has Hoare-style monitors for serialising access to objects, and it
uses condition variables for synchronisation. This leads to a shared memory
style of interprocess communication -- which is really odd, IMHO, given
that Java is an OO language!

You can therefore "roll your own" message passing style communication by
writing a class/package to do so. You'll be looking at some sort of agent
thread acting as a buffer.

>4.  Why doesn't Java allow operator overloading?

My guess is that it's because they wanted to make Java easy to compile (and
therefore fast to interpret). Overload resolution can get to be
non-trivial, particularly when you've got C-style promotions etc.

Cheers,

Mathew

| Mathew Lodge                  | "There's nothing intellectual about   |
| lodge@houston.omnes.net       | wandering around Italy in a big shirt |
| Omnes, Houston, Texas, USA    | trying to get laid" - Blackadder III  |
| Phone: +1 713 513 3237 Fax: +1 713 513 3126                           |


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post