3 ms·
It's just the kind of area Rust does really well in. From a certain point of view, Rust can produce executables that are pretty much "written in plain old C" i
by wyldfire 11y ago
It's just the kind of area Rust does really well in. From a certain point of view, Rust can produce executables that are pretty much "written in plain old C" in that they can provide linkage that works like C linkage, don't necessarily need heap/GC, don't necessarily need big std library presuming userspace context.
I'd wager you could do something similar with D (soon if not now), since its no-std support is catching up w/Rust's.
- CyberShadow 11y agoI have a "framework" (really just a build tool and some examples) for bare-bones Win32 support for D[1]. I haven't tried writing kernel drivers with it though. I used it to create a few Fallout 4 mods[2]. Avoiding the stdlib was not necessary there, but I didn't want the bloat. One interesting application of D's metaprogramming has been automatically recursively instrumenting the DirectX COM API just from the D interface definitions[3] (not IDLs). [1]: https://github.com/CyberShadow/SlimD [2]: https://github.com/CyberShadow/csfo4 [3]: https://github.com/CyberShadow/csfo4/blob/master/dxlog/d3d11.d