News for hackers. Stuff that matters.
Re:Making a RISC-V Operating System Using Rust by mrec on Wednesday October 02, 2019 @12:05PM (#21137950)
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

Re:Making a RISC-V Operating System Using Rust by flohofwoe on Wednesday October 02, 2019 @12:58PM (#21138534)
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.

Re:Making a RISC-V Operating System Using Rust by mrec on Wednesday October 02, 2019 @01:36PM (#21138891)
Ah yes, I didn't really think that one through. I know Redox OS (Rust) has OpenGL working, but I think they're just using the Mesa software renderer.