News for hackers. Stuff that matters.
Re:I Quit My Job to Live on Donations to Zig by ionforce on Thursday June 07, 2018 @11:56AM (#17256997)
What part(s) of Rust do you find too complicated, and why?
Re:I Quit My Job to Live on Donations to Zig by kevinmgranger on Thursday June 07, 2018 @12:07PM (#17257106)
I'm not the person who you asked, and I'm an absolute rust lover, but--

Rust is for people with C-level problems who don't like C's ergonomics. Zig appears to be for people with C-level problems who do like C's ergonomics.

Some of that is from essential complexity that we've been lying to ourselves about (memory safety, mutability, safe parallelism) and rust makes explicit.

C has a simplicity for it, for better _and_ worse.

Re:I Quit My Job to Live on Donations to Zig by pseudonymcoward on Thursday June 07, 2018 @12:06PM (#17257099)
In general I prefer languages to be small and simple - like Go and C. This doesn't seem to be a design goal for Rust, which puts me off. Some specifics:

Trying to do anything non-trivial with ownership/lifetimes/borrowing always ends up in a tangle, fighting with the compiler.

Everything in the stdlib seems to have a giant api with pages and pages of functions. Example: https://doc.rust-lang.org/std/string/struct.String.html Scrolling down through those methods is overwhelming.

The overhead imposed by the goal of maximising safety is big, and not that important to me (as I'm not writing Very Important Crypto code or whatever, I don't find it hard to write good enough code for my purposes in C).

Re:I Quit My Job to Live on Donations to Zig by star-castle on Thursday June 07, 2018 @01:19PM (#17257952)
Click the [-] at the top right of that doc page. You won't find it so overwhelming.
Re:I Quit My Job to Live on Donations to Zig by julienfr112 on Thursday June 07, 2018 @01:09PM (#17257852)
Why not Ctrl-F instead of scrolling ?
Re:I Quit My Job to Live on Donations to Zig by oregontechninja on Thursday June 07, 2018 @12:02PM (#17257063)
One place they're thinking of might be integration with C. zig's C integration is crazy good from what I can tell toying around with it. It was as easy as

@cImport({@cInclude("header.h")})

The language is also evolving rapidly, this may have changed, but if it did, it probably changed for the better.