Re:Zap – Blazingly fast backends in Zig
by csjh on Wednesday June 14, 2023 @03:54PM
(#36331642)
It's still pretty early on, but it's aim is to be a C successor I believe. Main example of usage off the top of my head is for bun.sh
[ Parent
| on HN ]
how is that different from rust? or is rust a cpp successor?
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++".