News for hackers. Stuff that matters.
Re:C2rust: Transpile C to Rust by akireu on Wednesday February 02, 2022 @09:08AM (#30177693)
Please clarify what do you mean by incorporating a C compiler. Does this mean you're abandoning the "custom C frontend inside the D compiler" effort in favor of something like clang? To me, the other possibility - having *yet another* C compiler to look out for - is just terrifying.
Re:C2rust: Transpile C to Rust by WalterBright on Wednesday February 02, 2022 @03:12PM (#30183317)
> Does this mean you're abandoning the "custom C frontend inside the D compiler" effort in favor of something like clang?

No. It means the custom C frontend inside the D compiler, with the semantic routines in the D compiler tweaked where necessary to support C semantics.

Re:C2rust: Transpile C to Rust by akireu on Wednesday February 02, 2022 @05:42PM (#30185157)
Won't this require years of busywork? The various intrinsics, function attributes, C compiler args compatibility, ABI profiles for various platforms/systems (including the Windows GCC/VC ABI idiocy?)

upd: Also, I'm not sure that implementing -funsigned-char in 2022 will be all that great for morale!

Re:C2rust: Transpile C to Rust by WalterBright on Wednesday February 02, 2022 @06:41PM (#30185960)
It required maintenance, sure. But most of those extensions can be safely ignored.