Re:How safe is Zig?
by brundolf on Thursday June 23, 2022 @01:19PM
(#31852261)
Rust's borrow checker would be much calmer in these scenarios too, wouldn't it? If there are no lifetimes, there are no lifetime errors
[ Parent
| on HN ]
Re:How safe is Zig?
by thecatster on Thursday June 23, 2022 @01:40PM
(#31852590)
Rust is definitely different (and calmer imho) on bare metal. That said (as much of a Rust fanboy I am), I also enjoy Zig.
Re:How safe is Zig?
by the__alchemist on Thursday June 23, 2022 @05:36PM
(#31855451)
Yep! We've entered a grey areas, where some Rust embedded libs are expanding the definitions of memory safety, and what the borrow checker should evaluate beyond what you might guess. Eg, structs that represent peripherals, that are now checked for ownership; the intent being to prevent race conditions. And Traits being used to enforce pin configuration.