Click here to Skip to main content
15,868,141 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
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 
Quote:
I didn't say reuse is useless. In fact, all I've maintained is that you're wrong in trying to paint C as write once, use anywhere. It's not.


No, all you're done is say that you can port stuff, which is irrelevant.

Quote:
I can write code just easily in C++ that exports the exact same way you do in C.


But I already said that.


Quote:
I was about to write a top level post pondering the overall utility of writing *new* code in C.

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++.


Except you thought I was talking about porting :-/

Quote:
But I could just as easily expose something as COM, using some other programming language, and other languages that spoke COM, including C, could use it.


I dunno, last I checked COM didn't work on anythe systems I target. You live in an all-windows world, don't you?

Quote:
There's nothing magic about C. It's yet another language. It doesn't just interface with everything out there.


Maybe, but it interfaces to more systems than any other language. Rust is a new possibility that can somewhat do the same thing, but so far it still supports fewer systems than C.

A good example of C being foundational in almost all software is the recent trouble over the cryptography library in Python - the dependency (which was in C) was rewritten in Rust, and that broke multiple distributions that did not run on x86/64.
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 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 20:01
mvahoney the codewitch27-Feb-21 20:01 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn28-Feb-21 5:39
professionalEspen Harlinn28-Feb-21 5:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
markkuk27-Feb-21 22:18
markkuk27-Feb-21 22:18 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 2:00
mvahoney the codewitch28-Feb-21 2:00 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Daniel Pfeffer27-Feb-21 22:17
professionalDaniel Pfeffer27-Feb-21 22:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 1:59
mvahoney the codewitch28-Feb-21 1:59 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Daniel Pfeffer28-Feb-21 3:20
professionalDaniel Pfeffer28-Feb-21 3:20 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 3:22
mvahoney the codewitch28-Feb-21 3:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Sander Rossel27-Feb-21 23:13
professionalSander Rossel27-Feb-21 23:13 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Martijn Smitshoek28-Feb-21 22:39
Martijn Smitshoek28-Feb-21 22:39 

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.