Page 4 of 5
Re: Moving from Java to C++
Posted: Sat Jan 31, 2009 8:59 am
by Colonel Kernel
Combuster wrote:As Colonel Kernel would say: go read the research papers.
Pretty soon, that's all people will remember when they think of me!
Re: Moving from Java to C++
Posted: Sat Jan 31, 2009 1:03 pm
by Love4Boobies
berkus wrote:Colonel Kernel wrote:Combuster wrote:As Colonel Kernel would say: go read the research papers.
Pretty soon, that's all people will remember when they think of me!
That's something you should start from, reading the research papers, there's quite a lot of research going on in OS area, it's a pity not all OS developers at least skim through these papers.
Oh, gee... good advice
I do my share of reading, it's just that it seems I didn't do enough on this particular subject...
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 6:48 am
by i586coder
To the best of my knowledge most C++ programmers change there minds to JAVA and
not the contrary, since JAVA is full OOP language ,and on other hand JAVA is adopt
all C++ advantages, and JAVA added some concepts like garbage collections
maybe you want to learn C++ because most OS's codded in this language, but don't
forget there is some OS's coded in JAVA like
JavaOS
you can read more
http://en.wikipedia.org/wiki/JavaOS
Cheers
a.
T.d
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 6:59 am
by Solar
...and when we thought the subject has been sufficiently talked over, here comes the Java advertisment.
<rant>
*deleted because we went just fine without one so far*
</rant>
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 10:39 am
by Solar
At least it's not telling you to do things the X way in release 1.2, the Y way in release 1.3, and the X way in release 1.4...
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 4:10 pm
by JackScott
And then decide at release 1.6 that you would rather call it release 6 instead?
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 4:16 pm
by Love4Boobies
I thought this was a discussion on languages, not compilers...
Re: Moving from Java to C++
Posted: Sun Feb 01, 2009 11:37 pm
by Solar
We're not talking compilers.
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 2:38 am
by AJ
JavaOS Wikipedia Article wrote:As of 2006, Sun considers JavaOS a legacy system.
Cheers,
Adam
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 3:03 am
by i586coder
JavaOS Wikipedia Article wrote:As of 2006, Sun considers JavaOS a legacy system.
YAP!, unfortunately, JAVAos and OS/2 has the same Destiny, but at last you can consider JAVAos as
prototype, so you can write OS using JAVA
Cheers,
a.
T.d
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 4:14 am
by AJ
Hi,
While I don't want to be seen as flaming (I am genuinely interested in bytecode OSes), I have read up on some more background info and came up with this:
The OS itself is 85% written in Java. The drivers are being written in assembler, and some Java Virtual Machine (JVM) and API routines are being written in C++. All of this adds up to one very fast operating system.
If (as stated in a post above) Java has adopted all of C++'s advantages and added extra features, why couldn't more than 85% of the system be written in Java? Also, why have Sun Microsystems given up on JavaOS? You would think that if anyone could make a Java OS work, it would be Sun.
I personally think it's wrong to
define an OS by the language it is written in. As I said above, I'm very interested in bytecode / managed / IL OSes, but don't see what advantage it is to a project to say "We're going to code as much of this OS as possible in x/y/z language, regardless of whether that language is the best tool for the job".
Use Java/C#/Whatever for the parts where that language actually confers some advantage over a traditional language. JM2C.
Cheers,
Adam
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 6:22 am
by i586coder
Hi,
I completely respect your opinion
AJ , but i still believe
PROGRAMING LANGUAGE SOMEHOW the backBone for any OS
,
you know java isn't compiler it's an interpreter,(JAVA generate byteCode), so it's need virtual machine to run that code,and maybe
SUN microsystems can't produce hi-quality OS
using JAVA due to that
,
Personally JAVA is the last chance ,i prefer using C/C++ instead.
programming with JAVA, it's tooo slow even with tiny program
AJ wrote:
The OS itself is 85% written in Java. The drivers are being written in assembler, and some Java Virtual Machine (JVM) and API routines are being written in C++. All of this adds up to one very fast operating system.
you see, even JAVA still need programing language such assembly/C++ in some parts,since there
is no inline assembly in java,
java understands one language ---> CLASS
CheerS,
a.
T.d
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 6:33 am
by AndrewAPrice
I've become extremely fond of D. A powerful modern language that is designed for systems and applications programming. As said on another thread;
Solar wrote:Wilkie wrote:No excuses!
What the...
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 6:43 am
by AJ
Roll on C++0x (or by the time it's released, will it be C++1x?)
Re: Moving from Java to C++
Posted: Mon Feb 02, 2009 7:50 am
by Solar
i586coder wrote:you see, even JAVA still need programing language such assembly/C++ in some parts...
I find it quite amusing, in language arguments like these, that the Sun JVM is written in C++.
There's a research project about a Java-written VM, but that hasn't hit mainstream yet (and I am pretty sure that some core components will
still be written in, not just "any other compiled language", but C++).