News for hackers. Stuff that matters.
Re:Zig now has built-in HTTP server and client in std by brigadier132 on Thursday May 18, 2023 @06:04PM (#35994771)
This is a silly way of comparing these languages.

Zig and rust are both modern iterations of low level languages.

Rust chooses safety with more complex syntax. Zig chooses a less complex syntax with less safety.

Re:Zig now has built-in HTTP server and client in std by jadodev on Thursday May 18, 2023 @07:02PM (#35995496)
nah this is a pretty normal way to compare languages. rust's "complex" syntax can mostly be attributed to its semantics https://matklad.github.io/2023/01/26/rusts-ugly-syntax.html safety can also mean a lot of different things: https://andrewkelley.me/post/unsafe-zig-safer-than-unsafe-ru...
Re:Zig now has built-in HTTP server and client in std by brigadier132 on Thursday May 18, 2023 @08:02PM (#35996066)
How is it a good way to compare the languages when Rust is nothing like C++?
Re:Zig now has built-in HTTP server and client in std by jadodev on Thursday May 18, 2023 @08:16PM (#35996168)
... wat? imperative; compiled to machine code, either static exe or dynamic libs; builtin RAII & polymorphism (parametric, subtyping); maps, vectors, trees, and other data structures in the stdlib; raw access to pointers; C ABI compat. there are some big differences, but "nothing like c++" is absolutely not true.