3 ms·
I do not consider Rust and D to be in the same niche. D is relatively conservative in terms of features, but it is more broad and complex. D as a language is n
by qznc 14y ago
I do not consider Rust and D to be in the same niche.
D is relatively conservative in terms of features, but it is more broad and complex. D as a language is not minimal, although that is en vogue today. For example, does Rust address SIMD/Vector Extensions [0], Contracts [1], Inline assembly [2]?
Rust is more of a experimental variant of C (or ML) with respect to parallelism and concurrency. Rust is more minimalistic, because it solves problems with general mechanisms instead of special syntax. For example, instead of special syntax for unittests in D [3], in Rust you use the general attribute mechanism in Rust [4].
I do not want to judge them against each other. D is the solid language, which I hope replaces C++ as soon as possible. As a C/C++ programmer you feel at home in D relatively fast. On the other hand, Rust is an interesting language, which might show us a better way to program multicore computers. Learning Rust stretches your mind, instead.
[0] http://dlang.org/simd.html http://dlang.org/simd.html
[1] http://dlang.org/dbc.html http://dlang.org/dbc.html
[2] http://dlang.org/iasm.html http://dlang.org/iasm.html
[3] http://dlang.org/unittest.html http://dlang.org/unittest.html
[4] http://static.rust-lang.org/doc/rust.html#attributes http://static.rust-lang.org/doc/rust.html#attributes
- ch_123 14y agoI believe Rust supports inline asm - https://mail.mozilla.org/pipermail/rust-dev/2013-April/003427.html https://mail.mozilla.org/pipermail/rust-dev/2013-April/00342... There also seems to be some work on SIMD extensions - https://github.com/mozilla/rust/pull/6214 https://github.com/mozilla/rust/pull/6214