News for hackers. Stuff that matters.
Re:Is Zig's New Writer Unsafe? by simonask on Saturday September 20, 2025 @01:30PM (#45315342)
“Safety” as defined in the context of the Rust language - the absence of Undefined Behavior - is important 100% of the time. Without it, you are not writing programs in the language you think you are using.

That’s a convoluted way to say that UB is much, much worse than you think. A C program with UB is not a C program, but something else.

Re:Is Zig's New Writer Unsafe? by kiitos on Saturday September 20, 2025 @05:34PM (#45317765)
curious, where is the definition of "undefined behavior" for rust specified?
Re:Is Zig's New Writer Unsafe? by simonask on Saturday September 20, 2025 @05:38PM (#45317808)
Re:Is Zig's New Writer Unsafe? by kiitos on Monday September 22, 2025 @05:45PM (#45339926)
mmm, no, that's an explicitly incomplete list of informally-described observable behaviors that qualify as undefined -- which is fine and good! but quite far from a specification!