3 ms·
Yes, except for proprietary operating systems. However, as vast as the gulf is between Hare and Zig/Rust in terms of portability, far vaster is the gulf between
by ddevault 4y ago
Yes, except for proprietary operating systems. However, as vast as the gulf is between Hare and Zig/Rust in terms of portability, far vaster is the gulf between both of those and C. It's disingenuous to compare any of these languages with C in terms of portability, as C is by a wide margin the most portable language of all time.
Unlike LLVM, adding a new backend for Hare is a relatively straightforward effort: riscv64 was done by one person in a few months and is only 1,476 lines of code.
And again: the answer to the question posed by the blog post's title is "no".
- RealityVoid 4y agoIs C necessarily more portable than Rust? I think not. Of course, you can target any arch under sun with C _right now_. Rust does not have this yet, but you _could_ do so no problem if you wanted to.
- ddevault 4y agoThe same argument can be made of Hare, but the reality is that closing the portability gap between C and any other language is a monumental undertaking which will take decades to complete.