▲ | nine_k 7 days ago | |||||||||||||
One of the more senior engineers I worked with told me: "Every real-life data structure I encountered was tree-like". It would be easiest to just ask the browser to render a fragment of HTML onto a canvas, or onto some invisible bitmap, like you can with most other UI toolkits. | ||||||||||||||
▲ | monster_truck 7 days ago | parent | next [-] | |||||||||||||
They would never do this because of fingerprinting, which is already the cause of most of the reasons we cannot 'just' do a lot of things, unfortunately. E: And the infamous other half: malware. A bit over a decade ago malware devs started using canvas to do things like hide fragments inside of bitmap data in seemingly harmless ads and then a second script would extract and assemble it to evade detection. | ||||||||||||||
| ||||||||||||||
▲ | bongodongobob 7 days ago | parent | prev | next [-] | |||||||||||||
> Every real-life data structure I encountered was tree-like I don't understand what the takeaway is here. Is that surprising? Is it not? What does "real-life" mean? | ||||||||||||||
| ||||||||||||||
▲ | mook 7 days ago | parent | prev | next [-] | |||||||||||||
Yeah, that's already available in Firefox for chrome/extensions, but not allowed for the web due to fingerprinting and other security risks. For example, rendering an iframe of your bank account… https://searchfox.org/mozilla-central/rev/f691af5143ebd97034... | ||||||||||||||
| ||||||||||||||
▲ | do_not_redeem 7 days ago | parent | prev [-] | |||||||||||||
> Every real-life data structure I encountered was tree-like What does this even mean? Is a hash map "tree-like" somehow? Or is a hash map just a toy data structure with no real-life use cases? | ||||||||||||||
|