Re: get CPU info, RAM info
On 14-04-2010 09:33, Eric Sosman wrote:
On 4/13/2010 10:24 PM, Arne Vajh?j wrote:
On 13-04-2010 21:44, Mike Schilling wrote:
Arne Vajh?j wrote:
On 12-04-2010 08:44, Eric Sosman wrote:
On 4/12/2010 4:54 AM, Roedy Green wrote:
On Sat, 10 Apr 2010 22:21:07 -0700, "Mike Schilling"
<mscottschilling@hotmail.com> wrote, quoted or indirectly quoted
someone who said :
The OS-specific parts of the JRE [1] are, of course, precisely
stuff that's
been tweaked to work on all supported platforms.
File i/o, networking etc are basically the same on all platforms.
Roedy, you should get out more. ;-)
The C and POSIX standards define a lot. And most platforms are
either compliant or close.
Perhaps this has changed since I worried about this stuff, but at one
time
"POSIX compliant" meant "A simple-minded test suite could be made to
compile
and run", not that you'd actually use the POSIX interfaces for
anything that
mattered.
POSIX is pretty thin in many contexts. Way smaller than the
Java library.
It is not sufficient to create portable applications in general.
But for the topics mentioned "File i/o, networking" I think it
will do very well.
It seems to me that "{Java,POSIX} can do {files,nets} on all
systems" is being mis-read as "{Java,POSIX} can do all kinds of
{files,nets}." My point -- and it's not new, nor complicated --
is that the former is achieved by making the latter untrue. Again,
two of my counter-examples: Where are the {Java,POSIX} interfaces
for {resource forks,DECnet}?
The response "Who needs 'em?" may cover a lot of cases, but
it surely does not cover all.
There are certainly a lot of IO and network stuff not
covered by POSIX.
But Roedy started the "standard in C" subthread by
referring to "File i/o, networking" in a reply to where
Mike were referring to "The OS-specific parts of the JRE".
Because the JRE does not support DECnet and resource forks,
then those does not counter a claim that the IO and network
in Java should be reasonable POSIX standard.
(my guess is that there are a few pronlems anyway - there
usually are when porting C)
Arne