Earlier quoted context omitted.
If you do, definitely ping flohofwoe, who a) maintains a Zig port of his lightweight Sokol graphics API and b) has a penchant for retro consoles. https://github.com/floooh/sokol-zig
The zig wrapper is only a minimal experiment and work in progress now, also I've hit a little bug :) https://github.com/ziglang/zig/issues/3211 BUT the sokol_app.h and sokol_gfx.h headers require an underlying platform 3D-API (e.g. GL, D3D11 or Metal) and window system to setup the swap chain. On a bare metal machine with only a 2D framebuffer they're not all that useful unfortunately.
Making a RISC-V Operating System Using Rust
21–30 of 47 posts
Re: Making a RISC-V Operating System Using Rust
#22Rust is build around the expectation that allocations happen automatically and can never fail. I’m curious to see how they deal with this in a kernel...
You can implement your own global allocator, use an existing crate, or (in the case of user applications) use the system's. That is for the stdlib level, not even core...
Re: Making a RISC-V Operating System Using Rust
#23For someone with a standard CS undergraduate education, how much effort (in hrs/week) would such an endeavour require?
The first 20% of the effort gets you about 80% of the results. So everything seems exciting. But to that that last 20% of the results requires 80% of the total work.
There is a ton of un-fun, un-glamorous work getting a gazillion device drivers written, for example.
Re: Making a RISC-V Operating System Using Rust
#24I really really like the first sentence > RISC-V ("risk five") and the Rust programming language both start with an R, so naturally they fit together
When RISC-V inevitably renames itself CISC-V, then what language would naturally fit together? And don't say cobol.
It's not like current "CISC" architectures haven't taken a lot of the good aspects of RISC already too...
Re: Making a RISC-V Operating System Using Rust
#25Re: Making a RISC-V Operating System Using Rust
#26I really really like the first sentence > RISC-V ("risk five") and the Rust programming language both start with an R, so naturally they fit together
When RISC-V inevitably renames itself CISC-V, then what language would naturally fit together? And don't say cobol.
Re: Making a RISC-V Operating System Using Rust
#27For someone with a standard CS undergraduate education, how much effort (in hrs/week) would such an endeavour require?
Old wives tail from ancient times, before CompuServe: The first 20% of the effort gets you about 80% of the results. So everything seems exciting. But to that that last 20% of the results requires 80% of the total work. There is a ton of un-fun, un-glamorous work getting a gazillion device drivers written, for example.
Rump kernels are the closest trend.
Re: Making a RISC-V Operating System Using Rust
#28I really really like the first sentence > RISC-V ("risk five") and the Rust programming language both start with an R, so naturally they fit together
When RISC-V inevitably renames itself CISC-V, then what language would naturally fit together? And don't say cobol.
Crystal?[2]
Church?[3]
Coq?[4]
[2]: https://crystal-lang.org/
[3]: https://en.wikipedia.org/wiki/Church_(programming_language)
Re: Making a RISC-V Operating System Using Rust
#29I really really like the first sentence > RISC-V ("risk five") and the Rust programming language both start with an R, so naturally they fit together
When RISC-V inevitably renames itself CISC-V, then what language would naturally fit together? And don't say cobol.
Common Lisp would be a decent choice, too, with
CISC:RISC = Common Lisp:SchemeRe: Making a RISC-V Operating System Using Rust
#30I really really like the first sentence > RISC-V ("risk five") and the Rust programming language both start with an R, so naturally they fit together
When RISC-V inevitably renames itself CISC-V, then what language would naturally fit together? And don't say cobol.