News for hackers. Stuff that matters.
Re:Rust: Systems Programming for Everyone by nercury on Saturday August 20, 2016 @09:52AM (#12326597)
I guess Rust may seem more complex, if you know C++ well, but from the side it may not seem like it.

For example, C++ Core Guidelines [0] is longer than Rust Book. Core Guidelines is itself a great example of things one needs to keep in the head while writing C++ code.

Look at implementation of something as basic as optional<T> [1]. The amount of things one needs to know is so high most C++ developers would never attempt it.

[0]: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...

[1]: https://github.com/akrzemi1/Optional/blob/master/optional.hp...

Re:Rust: Systems Programming for Everyone by soulbadguy on Saturday August 20, 2016 @11:01AM (#12326882)
Using the size difference between the C++ code Guidelines and the Rust Book as measure of relative complexity seems misguided to me : Those two very different document, with very different purpose and target audience.
Re:Rust: Systems Programming for Everyone by girvo on Saturday August 20, 2016 @10:05AM (#12326653)
Which is interesting, because I implemented Optional<T> (well, Maybe<T>) in Nim v0.14 in 20 lines of code in a single evening, to see how difficult it would be!
Re:Rust: Systems Programming for Everyone by gpderetta on Saturday August 20, 2016 @11:29AM (#12326988)
The reason for the complexity of that implementation are compiler bugs/nonconfromance workarounds, a fully constexpr implementation and attempt to match a standard spec.
Re:Rust: Systems Programming for Everyone by girvo on Monday August 22, 2016 @10:09PM (#12340888)
> a fully constexpr implementation

That's actually simpler to do in Nim than you'd think, but I understand what you mean. I might expand my implementation to be const and see how complex it makes it!