Re:Memory Safe Languages in Android 13
by Ar-Curunir on Thursday December 01, 2022 @02:58PM
(#33821834)
One could implement many data structures without unsafe, but with less efficiency. E.g. using an arena allocator
[ Parent
| on HN ]
Re:Memory Safe Languages in Android 13
by dahfizz on Thursday December 01, 2022 @03:26PM
(#33822232)
Sure, but that is kind of what I mean. Safety in rust is something you actively have to think about and work around (at least some of the time). It doesn't just come for free like in python.
Point is, “for free like like in Python” really means “the C implementation hides that for you”
Re:Memory Safe Languages in Android 13
by estebank on Thursday December 01, 2022 @05:39PM
(#33823994)
I would like to dispute the "with less efficiency" simplification, because depensing on the size and usage patterns of your code, a doubly linked list or sikilar graph datastructure, backed by an arena will be faster than the way those data structures appear in books.