Better HN
topnewbestaskshowjobs
Log inSign up

jakeStbu

17 karma · joined Aug 8, 2024 (2y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

Yeah building a C cross compiler can certainly be a pain. I do feel like basically every Zig improvement over C also exists with Rust, though, including, yes, ease of cross compilation.

comment 2y ago · link · parent

I see. Better error handling could perhaps be something that C can improve, yes, especially as compared to things like errno (which yes is technically not C specific but rather Linux specific, but it would be good to have a layer of abstraction over this). I can see why Zig Build may be useful - does it have any major advantages over something like, say, Rust's Cargo? I personally find that to be quite powerful. CTFE does sound like it could be easier to debug, but it sounds significantly less powerful and I don't think that it's necessarily worth it in many cases.

comment 2y ago · link · parent

ChatGPT is not particularly smart and tends to generate answers which should not be trusted. Of course, I have done Google searches before this, but most of them just point to the same answer - "It's C but simpler".

4.

Show HN: SpecOS – A 64 bit OS kernel from scratch(github.com ↗)

45 points · by jakeStbu · 2y ago · 5 comments