News for hackers. Stuff that matters.
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
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?
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.
Re:Zap – Blazingly fast backends in Zig by bvrmn on Thursday June 15, 2023 @03:59AM (#36337623)
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++".
Re:Zap – Blazingly fast backends in Zig by r87 on Wednesday June 14, 2023 @06:15PM (#36333538)
Rust is more of a c++ successor, yes.

It’s very much a kitchen sink language.