News for hackers. Stuff that matters.
Re:Two Years with Rust by dpbriggs on Monday March 23, 2020 @10:47AM (#22664584)
Totally agree. Anything that touches multiple owner territory gets ugly pretty fast. You end up with a variety of Cell objects, Rc::weak pointers, etc. Again it's possible but not trivial to figure out.

Now I wish I read that resource before writing the library, as I would have saved a considerable amount of time (~30h / 2k lines of rust). Just using raw pointers (NonNull) everywhere meant comments like this [0] but was far more elegant and understandable overall.

It was spooky seeing rust segfault before everything was ironed out + valgrind + miri tested. But it's also really nice to have the borrow checker figure out sketchy lifetime extensions / iterator invalidation for you.

[0] https://github.com/dpbriggs/convenient-skiplist/blob/d781954...

There are no comments on this comment yet.