Re:The Dark Arts of Advanced and Unsafe Rust Programming
by exitcode00 on Friday August 24, 2018 @11:52PM
(#17839430)
I meant Rust is a copy of Ada in general - it does not deal with unsafe programming in the same way. Instead, you do things like instantiate generic packages/procedure like Ada.Unchecked_Deallocation and Ada.Unchecked_Conversion with the specific conversion or heap deallocation procedure you need. So you are forced to be explicit about every unsafe operation by including such procedures and calling such things - but you are not prone to accidents because you got in the habit of wrapping things in perverse "unsafe" blocks every time you meet a well-thought-out restriction of the language.
[ Parent
| on HN ]
Re:The Dark Arts of Advanced and Unsafe Rust Programming
by Tuna-Fish on Saturday August 25, 2018 @04:18AM
(#17840084)
> I meant Rust is a copy of Ada in general
Have you ever actually looked at rust? The headline feature of Rust is linear types with checked borrowing, something that Ada does not provide.
Re:The Dark Arts of Advanced and Unsafe Rust Programming
by hunt on Saturday August 25, 2018 @07:40AM
(#17840458)
Plus Ada has a complicated runtime system that Rust doesn't.
Re:The Dark Arts of Advanced and Unsafe Rust Programming
by exitcode00 on Sunday August 26, 2018 @08:35AM
(#17845665)
Example?