A D vs. Rust example
Imperatorn
johan_forsberg_86 at hotmail.com
Sun Oct 23 12:19:24 UTC 2022
On Thursday, 20 October 2022 at 14:26:07 UTC, IGotD- wrote:
> On Thursday, 20 October 2022 at 13:37:07 UTC, Don Allen wrote:
>> [...]
>
> Actually, Rust is even worse for embedded, OS, near hardware
> programming. The memory model just gets in the way of doing
> those things. Example of things in OS programming are often
> intrusive containers, pointers/references pointing in all
> directions and sometimes even to itself, multiple use of
> containers for the same object, chicken and egg problems. This
> is where the memory model of just Rust breaks down. Of course
> you have to use unsafe everywhere but as soon as you do that,
> things get ugly very quickly. For these tasks C++ is still the
> obvious choice. However, this is not normal programming and you
> have to do tricks that you never usually do in application
> programming.
>
> [...]
I have also experienced this. We tried using Rust at work for
embedded but it slowed us down so much to the point we decided to
just do it in C instead.
More information about the Digitalmars-d
mailing list