Click here to Skip to main content
15,914,905 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Effective Methods to Showcase Back-End Work? Pin
tbim5-Sep-16 1:58
tbim5-Sep-16 1:58 
AnswerRe: Effective Methods to Showcase Back-End Work? Pin
carlospc19705-Sep-16 7:00
professionalcarlospc19705-Sep-16 7:00 
AnswerRe: Effective Methods to Showcase Back-End Work? Pin
aja.ali5-Sep-16 11:16
aja.ali5-Sep-16 11:16 
GeneralOS Kernels Pin
Richard Andrew x642-Sep-16 9:23
professionalRichard Andrew x642-Sep-16 9:23 
AnswerRe: OS Kernels Pin
Kent Sharkey2-Sep-16 9:37
staffKent Sharkey2-Sep-16 9:37 
GeneralRe: OS Kernels Pin
Nemanja Trifunovic2-Sep-16 9:39
Nemanja Trifunovic2-Sep-16 9:39 
GeneralRe: OS Kernels Pin
Rick York2-Sep-16 9:54
mveRick York2-Sep-16 9:54 
GeneralRe: OS Kernels Pin
Afzaal Ahmad Zeeshan2-Sep-16 10:02
professionalAfzaal Ahmad Zeeshan2-Sep-16 10:02 
Moving onward from where Kent left you. Basically, I do a lot of Object-oriented programming and prefer it over other procedural languages. But when things have to go deep, like really deep, you should avoid distractions. Wink | ;-)

C and C++ have a basic difference, C++ has a flavor of object-oriented programming, a bit of functional programming (lambdas) and other community-suggested features. C language is free from such stuff and is very much close to Assembly language. Assembly language, as you know, is used to program the devices at the lowest level and, as per this thread[^]:
Quote:
Per Brinch-Hansen once called C an "assembly language with better syntax".
So, that is one of the factors why C is preferred over C++. If C++ was that much great language and better than C (which it is not in the terms of performance), even Bjarne would have started a project to port some kernel to C++. Which he did not, or that we know of. He did use C++ in many applications, started supporting the community for many projects but kernels or low-level programming was not a part of that — and all of that made sense at a higher-level of programming, in kernel development that was just garbage.

That said, now I really want to see a kernel re-written in C++ because of the amazing facts of C++, there is a try...catch block on C++, so maybe instead of halting the systems we can redirect it somewhere — redirect to termination? The processor power today doesn't care about these things, processors are powerful and intelligent enough to take care of most of issues. So, these won't be a problem in today's world. But still C++ is much more complex than C, just because of the easy features that it contains.

Finally, if you are asking why Linux kernel isn't using C++, then you would be really very much disappointed because that is never going to happen as long as Linus is managing what piece of code goes to Linux kernel. Linus Torvalds on C++[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: OS Kernels Pin
Richard Andrew x642-Sep-16 10:07
professionalRichard Andrew x642-Sep-16 10:07 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:00
Mladen Janković2-Sep-16 12:00 
GeneralRe: OS Kernels Pin
Richard Andrew x642-Sep-16 12:04
professionalRichard Andrew x642-Sep-16 12:04 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Tomaž Štih3-Sep-16 6:29
Tomaž Štih3-Sep-16 6:29 
GeneralRe: OS Kernels Pin
Mladen Janković3-Sep-16 7:36
Mladen Janković3-Sep-16 7:36 
GeneralRe: OS Kernels Pin
Tomaž Štih2-Sep-16 22:30
Tomaž Štih2-Sep-16 22:30 
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 2:11
professionalJackPeacock6-Sep-16 2:11 
GeneralRe: OS Kernels Pin
Richard Andrew x646-Sep-16 12:11
professionalRichard Andrew x646-Sep-16 12:11 
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 22:29
professionalJackPeacock6-Sep-16 22:29 
GeneralWhat do you guys think of H-1B visas ? Pin
jlongo2-Sep-16 6:19
jlongo2-Sep-16 6:19 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
User 84202-Sep-16 6:24
User 84202-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:30
mveOriginalGriff2-Sep-16 6:30 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Charles Programmer5-Sep-16 6:24
Charles Programmer5-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:29
mveOriginalGriff2-Sep-16 6:29 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
jlongo2-Sep-16 6:35
jlongo2-Sep-16 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.