Re: problems to embedd kaffe in Amaya

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Tue Sep 08 1998 - 15:14:21 EDT


 Hi Daniel,

I don't think there's anything that would prevent us from adding
fixfd again. This might be useful for the case where you inherit
fd's from X, because you can't make X use the jsyscall function needed
to create the descriptor (which would be the "right" way of doing it).
As for pipes, wouldn't it make more sense to add a pipe() call to the
jsyscall interface?

I see a related problem in EventQueue.getNextEvent in the X11-based AWT.
There, the thread polls for events at a given rate, which clearly seems
suboptimal. The reason it needs to poll is because even if it could
"fixfd" the file descriptor associated with the X11 connection, it
couldn't get Xlib to use jsyscall's "read".

What are the alternatives? I looked some at X11's public header files,
but there doesn't seem to be a way for X11 to "import" a read method.
I think what would be needed would be to replace the "transport"
(I think that what they call it) for that XConnection. This, however,
seems to require the use of X11-internal header files; and it also might
not work well with optimizations such as Xshm.
You know more about this than I do: is this a correct assessment?

We should also keep in mind that we don't want to preclude
a native win32 port, so our jsyscall interface should to a certain
degree reflect that.

Also, when you say that Amaya still manages the internal select call,
do you mean that Xlib manages it or do you have a separate layer in
Amaya that does that? If the latter, would it maybe make sense to
use Kaffe's syscall layer instead (given that it is sufficient for
the task, possibly after modifying it?)

        - Godmar

>
> I have been using Amaya for a long time as the Java core for Amaya.
> Amaya is the W3C testbed for browsing and editing tools. It's based
> on a M?otif/X-windows core (at least on Unices) and until now I more
> or less suceeded making Kaffe and Motif work together.
> However recent (2 last months) changes really makes this difficult
> now, for example fixfd was removed from syscall interface (I inherit
> FDs from X and also when creating pipe for the external process doing
> the asynchronous DNS queries).
> I really need to have access to low level FD synchronization from
> my C code (Amaya still manage the internal select() call ...). For example
> I would like to be able to register new FD, and also to know whether
> a FD is in a blocking state.
>
> Maybe the approach I have taken in the past doesn't fit well with new
> developments in Kaffe, for example keeping the control of the inner select()
> will be harder and harder, but I would prefer getting some feedback from
> you before investing a lot of time redefining (again !) the mechanisms
> to embed Kaffe into Amaya,
>
> Daniel
>
> --
> Daniel.Veillard@w3.org | W3C MIT/LCS NE43-344 | Today's Bookmarks :
> Tel : +1 617 253 5884 | 545 Technology Square | Linux, WWW, rpm2html,
> Fax : +1 617 258 5999 | Cambridge, MA 02139 USA | badminton, Kaffe,
> http://www.w3.org/People/W3Cpeople.html#Veillard | HTTP-NG and Amaya.
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:56:55 EDT