Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
12bitfloat1085219hJust to be clear: Zig is just as memory unsafe as C and C++
It's a really cool language, but on the memory safety side it has nothing in common with Rust
And on the thread safety side, no systems language can even dream to come close to Rusts guarantees -
whimsical122513h@12bitfloat every system language that would come close to rust regarding syntax would be their worst nightmare. I could not even use Rust in same sentence as dream. In exception of that sentence fuck. A nice programming language for people lacking discipline..
-
3dgoosee6912h@12bitfloat Rust is the safest of all, I know, but Zig got at least panics for division by zero, max integer addition, null pointer dereference and out-of-bound memory access.
Most segfault cases. -
Sometimes, you just want to divide by zero... sometimes you just want to crash your game...
...like when e.g. you want to test your crash uploader's mechanics. -
@whimsical Let's do a challenge: I write a reference conformant Rust parser and you write a conformant C parser, let's see who finishes first lol
(and we're not even talking about C++... good fucking luck with that)
hint: for variables, pointer-ness is a property of the variable, not the type.
`int* a, b;` declares a as int* and b as int. Lot's of fun, that is -
@12bitfloat You make it sound like it's hard, C compilers were written by hand before you were born XD
-
@BordedDev Okay big boy, write one then :P
You guys shit on Rusts syntax but have no idea how hard C and C++ are to parse, yet you claim they have such beautiful syntax
As someone that had the misfortune of writing a compiler for a very old pascal inspired language I can tell you, syntax of old languages sucks hard. So many edge cases, special rules, rules changing based on context, etc. -
AlgoRythm5016347mI’m probably the biggest Zig fan on this app and I just can’t recommend it right now. Head Honcho Alex keeps fucking up the standard library because he’s chasing perfection.
The comptime stuff is probably the absolute best part of Zig. It’s the best comptime system of any language, by far, by miles and miles. -
AlgoRythm5016347m@D-4got10-01 you can never divide by zero if you’re good friends with uncle epsilon! -
12bitfloat1085229m@AlgoRythm The fact that unused variables and tabs for indentation are compile errors in Zig is so absurd. I really want to learn the language at some point but pointless anti-user stuff like this is really unfortunate
Related Rants

I finally got it working! Now I have a foundation for a kernel and an uefi bootloader written in pure Rust
To...
So today I was reading a paper on different languages and I saw how good Zig is on the paper:
- same performance as C
- memory safety (underlined behavior, not trump's one)and rust
Basically the same with concurrency
Maybe I will need to switch languages;
Any arguments for C except the ecosystem, it's age/maturity and easy syntax?
rant
zig
rust
v