News for hackers. Stuff that matters.
Re:I love coding in C by ChrisSD on Thursday December 26, 2019 @12:34PM (#21885335)
> any library that wants to be usable from different languages is still written in it.

This part isn't quite true. All that's needed is to be able to define an exported function with a specific name and calling convention. Libraries can be written in any language that supports these features.

Re:I love coding in C by codr7 on Thursday December 26, 2019 @02:01PM (#21885883)
I used to do some of that in Borland's Object Pascal, which sort of works but isn't much fun.

Even C++ is a pain in the behind, because everything that doesn't translate needs to be encapsulated.

As a result, it's very rare to find code written in different languages with exported C APIs from my experience.

Re:I love coding in C by fanf2 on Thursday December 26, 2019 @02:04PM (#21885897)
And the language needs to hide its runtime support so it appears to be as minimal as C