Post #3213151
2023-11-03 22:08 UTC
@mos_8502@oldbytes.space @thamesynne@dragon.style @gsuberland@chaos.social @thephd@pony.social that and the calling convention is the most widely interoperable, so you can extend almost any extendable language by writing extensions in C
The thing I’m inclined to use C for is things where it matters that the runtime introduces almost no overhead - things where I want to optimize computer time, not programmer time. Not because it’s the only option, but because as you said it’s the most portable
Replies (1)
-
@gsuberland@chaos.social 2023-11-03 22:17
@ShadSterling@mastodon.social @mos_8502@oldbytes.space @thamesynne@dragon.style @thephd@pony.social hmm, I'm not actually sure I agree that C is particularly special w.r.t. calling conventions or interop. COM interop in C is significantly more painful than in C++, for example. and are the calling convention keywords actually part of C as a language standard, rather than being compiler-specific? iirc they're compiler extensions. in which case it's got far more narrow calling convention interop support than a lot of other languages (even C# / Python)