|
|
|
|
|
by brendanfh
935 days ago
|
|
That is exactly the way that I see it too. While Onyx does have core library support for doing standard POSIX things like stdin/stdout/stderr, file operations, and networking, Onyx can be used in an entirely different environment without any of these things. In fact, the standard libraries are (almost) entirely separate from the compiler (i.e. the compiler makes no assumptions about what the standard library is), so if the standard library does not suite your use case for one reason or another, you can write your own. It will be a bit of work, but there would be nothing in your way. |
|
Isn't that true for most native languages as well ? C++ have multiple stdlibs.Rust,C and c++ can be used against bare metals.
The orthogonality of the std lib and the compiler and language semantic (maybe at the exception of the types) seems pretty common these days.