Comparing Rust and D As Better C

welkam wwwelkam at gmail.com
Thu Dec 24 03:58:57 UTC 2020


On Thursday, 24 December 2020 at 00:41:35 UTC, Dibyendu Majumdar 
wrote:
> At the moment I am struggling to implement the memory allocator 
> scheme in Rust

The easiest way to port C to Rust is trough D.

D is so close to C that if you just copy pasted C code to D file 
it might just work without changes or very minimum changes. 
Furthermore D`s code plasticity together with language features 
allow to iteratively massage code base to more closely resemble 
Rust code making transition to Rust easier.


More information about the Digitalmars-d mailing list