Click here to Skip to main content
15,176,946 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 12:02
mvahoney the codewitch2-Mar-21 12:02 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 12:17
MemberMember 133016792-Mar-21 12:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:22
mvahoney the codewitch2-Mar-21 14:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 14:28
MemberMember 133016792-Mar-21 14:28 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 14:30
mvahoney the codewitch2-Mar-21 14:30 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 14:39
MemberMember 133016792-Mar-21 14:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch2-Mar-21 15:26
mvahoney the codewitch2-Mar-21 15:26 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016792-Mar-21 20:59
MemberMember 133016792-Mar-21 20: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 1:41
mvahoney the codewitch3-Mar-21 1:41 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Member 133016793-Mar-21 1:46
MemberMember 133016793-Mar-21 1:46 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Greg Utas27-Feb-21 14:43
mveGreg Utas27-Feb-21 14:43 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
markrlondon27-Feb-21 14:56
Membermarkrlondon27-Feb-21 14:56 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn27-Feb-21 15:57
professionalEspen Harlinn27-Feb-21 15:57 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 16:16
mvahoney the codewitch27-Feb-21 16:16 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn27-Feb-21 16:28
professionalEspen Harlinn27-Feb-21 16:28 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch27-Feb-21 21:01
mvahoney the codewitch27-Feb-21 21:01 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Espen Harlinn28-Feb-21 6:39
professionalEspen Harlinn28-Feb-21 6:39 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
markkuk27-Feb-21 23:18
Membermarkkuk27-Feb-21 23:18 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 3:00
mvahoney the codewitch28-Feb-21 3:00 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Daniel Pfeffer27-Feb-21 23:17
professionalDaniel Pfeffer27-Feb-21 23:17 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 2:59
mvahoney the codewitch28-Feb-21 2:59 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Daniel Pfeffer28-Feb-21 4:20
professionalDaniel Pfeffer28-Feb-21 4:20 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
honey the codewitch28-Feb-21 4:22
mvahoney the codewitch28-Feb-21 4:22 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Sander Rossel28-Feb-21 0:13
professionalSander Rossel28-Feb-21 0:13 
GeneralRe: And when you depend on multithreading to be unpredictable, it isn't! Pin
Martijn Smitshoek28-Feb-21 23:39
MemberMartijn Smitshoek28-Feb-21 23: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.