Which One?

Programming, for all ages and all languages.
Locked
Jprogrammer
Posts: 2
Joined: Wed Aug 28, 2013 10:17 am

Which One?

Post by Jprogrammer »

Which language is better for OS development? C or C++?
shikhin
Member
Member
Posts: 274
Joined: Sat Oct 09, 2010 3:35 am
Libera.chat IRC: shikhin
Contact:

Re: Which One?

Post by shikhin »

Hi,
Jprogrammer wrote:Which language is better for OS development? C or C++?
The one you're more comfortable with!

Anyway, this has been discussed upon loads of times. You should probably just search the forums, and unless you've something unique to say on the topic, not make a new thread.

Regards,
Shikhin
http://shikhin.in/

Current status: Gandr.
User avatar
arseniuss
Member
Member
Posts: 32
Joined: Tue Aug 10, 2010 12:13 am
Location: Latvia
Contact:

Re: Which One?

Post by arseniuss »

Actually I would say that C is easier and good. But if you looking at your kernel/OS from object-oriented perspective then I would recommend to use C++. Anyway there will much code written in C at start.

As I've seen C++ code is little bit harder to debug. However there is no better language to use. It's up to programmer.
Hobby stuff (suckless libs, compilators, game engines, kernels): github. Work @ zabbix: arseniuss@zabbix
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Which One?

Post by Jezze »

There is actually no reason at all to use c++. All it ads is syntatctic sugar but without adding anything bemeficial for you as a programmer.
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: Which One?

Post by dozniak »

Jezze wrote:There is actually no reason at all to use c++. All it ads is syntatctic sugar but without adding anything bemeficial for you as a programmer.
That is of course not true, but lets not reiterate that topic again.

(At least one thing that C++ provides, but C principally can not is RAII).
Learn to read.
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Which One?

Post by Jezze »

Let's just agree it's a complex topic.
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Which One?

Post by bluemoon »

Actually, I used not one, but both. Why not get both while they are free? :mrgreen:
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Which One?

Post by sortie »

This topic gets more fun if you consider that the C and C++ languages have a large set of programs in common.
Locked