Pretty soon, that's all people will remember when they think of me!Combuster wrote:As Colonel Kernel would say: go read the research papers.
Moving from Java to C++
- Colonel Kernel
- Member
- Posts: 1437
- Joined: Tue Oct 17, 2006 6:06 pm
- Location: Vancouver, BC, Canada
- Contact:
Re: Moving from Java to C++
Top three reasons why my OS project died:
- Too much overtime at work
- Got married
- My brain got stuck in an infinite loop while trying to design the memory manager
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Moving from Java to C++
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...berkus wrote: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.Colonel Kernel wrote:Pretty soon, that's all people will remember when they think of me!Combuster wrote:As Colonel Kernel would say: go read the research papers.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Moving from Java to C++
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
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
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
but it does make you part of a larger picture.
Re: Moving from Java to C++
...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>
<rant>
*deleted because we went just fine without one so far*
</rant>
Every good solution is obvious once you've found it.
Re: Moving from Java to C++
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...
Every good solution is obvious once you've found it.
Re: Moving from Java to C++
And then decide at release 1.6 that you would rather call it release 6 instead?
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Moving from Java to C++
I thought this was a discussion on languages, not compilers...
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Moving from Java to C++
We're not talking compilers.
Every good solution is obvious once you've found it.
Re: Moving from Java to C++
i586coder wrote: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,JavaOS Wikipedia Article wrote:As of 2006, Sun considers JavaOS a legacy system.
Adam
Re: Moving from Java to C++
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 JAVAJavaOS Wikipedia Article wrote:As of 2006, Sun considers JavaOS a legacy system.
Cheers,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
but it does make you part of a larger picture.
Re: Moving from Java to C++
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:
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
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:
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.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.
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++
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
is no inline assembly in java, java understands one language ---> CLASS
CheerS,
a.T.d
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
you see, even JAVA still need programing language such assembly/C++ in some parts,since thereAJ 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.
is no inline assembly in java, java understands one language ---> CLASS
CheerS,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
but it does make you part of a larger picture.
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: Moving from Java to C++
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:What the...Wilkie wrote:No excuses!
My OS is Perception.
Re: Moving from Java to C++
Roll on C++0x (or by the time it's released, will it be C++1x?)
Re: Moving from Java to C++
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++).i586coder wrote:you see, even JAVA still need programing language such assembly/C++ in some parts...
Every good solution is obvious once you've found it.