Re:Fuchsia Programming Language Policy
by phkahler on Tuesday February 25, 2020 @07:07AM
(#22412483)
They mentioned one of the pros of C that nobody seems to talk about. The stable ABI that allows language interoperability via FFI. Until another language gets this right, C is going to be ever present at the bottom of every stack.
[ Parent
| on HN ]
Re:Fuchsia Programming Language Policy
by kryptiskt on Tuesday February 25, 2020 @08:26AM
(#22412976)
The C ABI doesn't require the presence of C in the stack, it can just be there in spirit like the ghost of Pascal in the Windows ABI.
Re:Fuchsia Programming Language Policy
by jacobush on Tuesday February 25, 2020 @08:51AM
(#22413152)
Yes, but in practice it's often easier to just fire up the C compiler and do some shim files and linking in the bottom.
Re:Fuchsia Programming Language Policy
by bluejekyll on Tuesday February 25, 2020 @09:16AM
(#22413349)
Easier than what? Their are a lot of languages that make exporting/importing C ABI dead simple. Rust, C++ and C# are some I’m familiar with, I’ve also been pleasantly surprised at Node.js (for imports) in this regard.
At least, the JVM and .NET have provided stable cross-language ABIs that are much more sophisticated than C for a long time now. You can even build operating systems with them. The Fuschia guys chose not to, but it's not like it's technically impossible or anything like that.
Re:Fuchsia Programming Language Policy
by GoblinSlayer on Friday February 28, 2020 @04:45AM
(#22441659)
>Until another language gets this right
Yes? In the next point they mention that pretty much all languages support the C ABI.