Click here to Skip to main content
15,880,469 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.

 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Greg Utas27-Feb-21 13:38
professionalGreg Utas27-Feb-21 13:38 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Gary R. Wheeler27-Feb-21 13:31
Gary R. Wheeler27-Feb-21 13:31 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 13:45
mvahoney the codewitch27-Feb-21 13:45 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016791-Mar-21 20:33
Member 133016791-Mar-21 20:33 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 2:58
mvahoney the codewitch2-Mar-21 2:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 3:20
Member 133016792-Mar-21 3:20 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 3:24
mvahoney the codewitch2-Mar-21 3:24 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 3:38
Member 133016792-Mar-21 3:38 
Quote:
I was about to write a top level post pondering the overall utility of writing *new* code in C.


The overall utility is in the reuse. Writing a library in C means that it can be reused from Python, C++, Java, Perl, Rust, C#, Php, Go, Tcl, Delphi/Lazarus, Pascal, etc. Libraries in C++ can be reused by making C-compatible wrappers around functions, not exposing classes, suppressing exceptions, typedefing structs and prefixing all functions with 'extern "C"'. But then you lose a lot of the value of C++.

Lets say you come up with something new and truly useful: a new uber-compression alorithm, or a quantum-computer-proof elliptic curve cryptography. You go ahead and write it in Haskell, or Clojure, or Scala, etc. It definitelywon't take off until someone clones it into a reusable library.

Right now we are in a period of computing where it is fashionable to rewrite everything (and also fashionable to pretend that C is the great evil). As far as I can tell, though, the new systems languages are taking a bite out of the C++ mindshare, not out of the C mindshare.

C will die the usual way, simply due to attrition as those that know it die off Smile | :)
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 3:54
mvahoney the codewitch2-Mar-21 3:54 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 10:58
Member 133016792-Mar-21 10:58 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 11:02
mvahoney the codewitch2-Mar-21 11:02 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 11:17
Member 133016792-Mar-21 11:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 13:22
mvahoney the codewitch2-Mar-21 13:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 13:28
Member 133016792-Mar-21 13:28 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 13:30
mvahoney the codewitch2-Mar-21 13:30 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 13:39
Member 133016792-Mar-21 13:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:26
mvahoney the codewitch2-Mar-21 14:26 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 19:59
Member 133016792-Mar-21 19:59 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch3-Mar-21 0:41
mvahoney the codewitch3-Mar-21 0:41 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016793-Mar-21 0:46
Member 133016793-Mar-21 0:46 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Greg Utas27-Feb-21 13:43
professionalGreg Utas27-Feb-21 13:43 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
markrlondon27-Feb-21 13:56
markrlondon27-Feb-21 13:56 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn27-Feb-21 14:57
professionalEspen Harlinn27-Feb-21 14:57 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 15:16
mvahoney the codewitch27-Feb-21 15:16 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn27-Feb-21 15:28
professionalEspen Harlinn27-Feb-21 15:28 

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.