News for hackers. Stuff that matters.
Re:How Browsers Lay Out Web Pages by amelius on Tuesday April 06, 2021 @06:14AM (#26710121)
Would Rust be the best choice of language, given all the back pointers (previous, parent)?
Re:How Browsers Lay Out Web Pages by timw4mail on Tuesday April 06, 2021 @08:54AM (#26711177)
Trees are not that bad in Rust, it's when you have a cyclical structure that Rust is really difficult.
Re:How Browsers Lay Out Web Pages by amelius on Tuesday April 06, 2021 @11:14AM (#26712825)
Yes, that's what I meant by "back pointers". In the article, every node has a parent pointer and a child pointer (or several). You can't have both of these pointers without introducing cycles.