>Instead of registering functions, callers should register objects
>which implement specified methods. This will make the Java
>implementation easier, and is better OO design. As a general
>practice, I would like us not to implement any more C++ API's which
>pass functions as arguments.
I am for it.
>If this is not the XDR format used by CLIP, I would strongly
>recommend looking into the format used by Java to send objects, so
>that Java applets can more easily communicate with C++ clients.
>(Although I suppose when Java gets accelerated, we might write
>both the client and server in Java, and not use whatever network
>encoding we define here for Java programs.)
I thought JAVA uses the same technique as XDR does to do network byte swapping.
If we decide no to use XDR, the byte stream generated by new method
should be the same as that generated by XDR.
>Hashing is only efficient if the number of entries exceeds 15. Do we
>believe this to be the expected case? Indexing a predefined order is
>the fastest, but linear search is the fastest way to access an unordered
>set for small set sizes. Dynamically switch?
We need more research on this.
--Jie Chen