3 ms·
No doubt I'll do something crazy, that is, try to implement this in C.
by ronsor 6y ago
No doubt I'll do something crazy, that is, try to implement this in C.
- peterkos 6y agoI was going to > inb4 rust!, but, isn't Gecko built in Rust?
- ronsor 6y agoGecko is (mostly, at least) traditional C++. Servo is written in Rust.
- amelius 6y agoWould Rust be the best choice of language, given all the back pointers (previous, parent)?
- timw4mail 6y agoTrees are not that bad in Rust, it's when you have a cyclical structure that Rust is really difficult.
- amelius 6y agoYes, 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.
- KwanEsq 6y agoThe style parts are in Rust, but layout is C++, I believe. servo does have an experimental layout engine (or two? layout 2020?) in Rust, but I don't think that ever reached a point where Mozilla were seriously considering replacing Gecko's with it.
- timw4mail 6y agoI think Servo is basically a proving ground for replacing components in Firefox with Rust equivalents.