Re:Zap – Blazingly fast backends in Zig
by itake on Wednesday June 14, 2023 @06:12PM
(#36333503)
how is that different from rust? or is rust a cpp successor?
[ Parent
| on HN ]
Re:Zap – Blazingly fast backends in Zig
by seattle444 on Wednesday June 14, 2023 @06:17PM
(#36333558)
Rust lives in the smart pointer world. So a good candidate as a c++ succesor. Zig lives in arena alloc and soa world. So it's a better than rust when you need performance beyond the norm.
Re:Zap – Blazingly fast backends in Zig
by steveklabnik on Wednesday June 14, 2023 @08:25PM
(#36334831)
Just to be clear, you can absolutely do arena allocation and soa in Rust.
In Rust you have convenient escape hatch with a default allocator. It's similar to say "you can do safe applications using C or C++".