Re:Truly Portable C Applications
by Brian_K_White on Friday November 22, 2024 @08:57AM
(#42213868)
portability in a language is sort of like the right to persue happiness vs a garantee to be happy.
A language can't direct the rest of the universe to ensure that something always works regardless of the environment or context.
But it can avoid adding it's own limitations and be agnostic itself. So c is very portable, even though c on machine A has acces to machine A features and not machine B features.
Libraries and frameworks and standards just help a little for a few common cases but they are just travel power plug adapters, not pprtability.
A language can't direct the rest of the universe to ensure that something always works regardless of the environment or context.
But it can avoid adding it's own limitations and be agnostic itself. So c is very portable, even though c on machine A has acces to machine A features and not machine B features.
Libraries and frameworks and standards just help a little for a few common cases but they are just travel power plug adapters, not pprtability.