483 karma · joined October 21, 2015
"WebKitGTK and WPEWebKit Switching to Skia for 2D Graphics Rendering"
Can we update the title here also?
struct Node<T> { Node<T> left; Node<T> right; };
would obviously be the best choice (what I call in the article "raw value"). But it's not valid C++.
In Rust, it's move by default and you need an explicit .clone()
In C++, it's copy by default and you need an explicit std::move()
Indeed it's exactly the same idea (and I think `value_ptr` is actually a better name than `box`).
I've googled before writing the blog post and haven't found literature about this (but I was mostly googling stuff around "box" or "deep shared ptr").
Thank you for the link! Kinda glad it's more widespread than what I though actually, it means we can think about making an official proposal.
However, the current spec has been written in a way that it doesn't prevent removing this restriction in the future. But the CSSWG would prefer to have some real world profiling data to know the actual performance cost of removing this restriction.
At least, they've only added 500 microservices in 2 years (not even 1 per day, how sad!)
Either it analyzes the given SQL to determine the in/out types of each SQL query, or it calls the database describe feature at compile-time.