This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Language extensions ?


Robin Garner writes:
 > > AFAICS RawMemoryAccess already provides everything that anyone might
 > > need, in a reasonably clean and well-factored package.  We just need
 > > an impementation.
 > 
 > Perhaps I'm being dense, but I can't quite see how (for example) you
 > would implement a garbage collector for gcj in java using
 > RawMemoryAccess, given that it requires that RawMemoryAccess objects
 > don't overlap with heap objects.

Well, we could relax that restriction to allow RawMemoryAccess to
everything.

But I see your point.  I guess it doesn't.  But is that a bad thing?
If you want a garbage collector for gcj, why write it in Java?

It seems to me that Java doesn't have low-level memory access
features, by design.  C++ does, by design.  But you want to use Java
and not C++.  Like hammering a nail with pliers.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]