Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ronsor
on April 6, 2021
|
parent
|
context
|
favorite
| on:
How Browsers Lay Out Web Pages
Gecko is (mostly, at least) traditional C++.
Servo
is written in Rust.
amelius
on April 6, 2021
[–]
Would Rust be the best choice of language, given all the back pointers (previous, parent)?
timw4mail
on April 6, 2021
|
parent
[–]
Trees are not that bad in Rust, it's when you have a cyclical structure that Rust is really difficult.
amelius
on April 6, 2021
|
root
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: