News for hackers. Stuff that matters.
Re:Google Docs will now use canvas based rendering by attilakun on Wednesday May 12, 2021 @10:04AM (#27130445)
I'm not sure but what you are suggesting is not outside the realm of possibility. There are already projects like https://makepad.dev/ which implement their GUI on top of WebGL. (Which is arguably more challenging than implementation on top of Canvas 2D.)
Re:Google Docs will now use canvas based rendering by SquareWheel on Wednesday May 12, 2021 @04:40PM (#27134908)
Ran very smoothly for me. My only complaint is that right clicking doesn't offer a context menu, and that scroll bars don't allow snapping back to a previous position on Windows.

It would be interesting to see a project that allows integration of these native features into an otherwise canvas-like environment. Copying all the minutiae of OS features and quirks seems like an unending task.

Re:Google Docs will now use canvas based rendering by davb on Wednesday May 12, 2021 @02:50PM (#27133779)
I expected scrolling to feel janky and "non-native" but it was fine. Text rendering, on the other hand... it was a bit of a blurry mess, compared to Chrome's native rendering (on Ubuntu 21.04).
Re:Google Docs will now use canvas based rendering by lol768 on Wednesday May 12, 2021 @02:57PM (#27133863)
Ctrl+scrollwheel for zoom also doesn't work; this seems awful for accessibility.
Re:Google Docs will now use canvas based rendering by kizer on Friday May 14, 2021 @11:54PM (#27162196)
Ran well for a few minutes on my iPhone, but froze up and then again after refresh. But very responsive and crisp. Obviously not yet optimized for touch devices; have to tap and hold the scrollbar to scroll, native iOS stuff didn’t come up after text selection. Very cool and while imperfect according to other comments, this is not bad at all.
Re:Google Docs will now use canvas based rendering by ignoranceprior on Wednesday May 12, 2021 @11:37AM (#27131551)
Visiting that website made my laptop's fans start running.
Re:Google Docs will now use canvas based rendering by danans on Wednesday May 12, 2021 @11:59AM (#27131813)
If you look at the bottom left of the screen, it is live compiling/rendering a 3D particle swarm animation while you edit the code, so really not so surprising that it makes the machine work a bit.

On my laptop (a Core i7 Chromebook - fast but not crazy by HN standards) the fan runs for a half second at first load - presumably during the compilation step - then shuts off immediately.

Re:Google Docs will now use canvas based rendering by skyde on Wednesday May 12, 2021 @01:49PM (#27133138)
try using a better web browser ?
Re:Google Docs will now use canvas based rendering by russellbeattie on Wednesday May 12, 2021 @01:57PM (#27133227)
Perfect example of the pitfalls this approach has. I'm on a Samsung Galaxy Tab S7+ and visited that site using Chrome for Android. I can't enter text as the on-screen keyboard is never activated.

Easy to fix, but these are the sorts of edge cases a canvas-only solution is going to have to deal with.

Re:Google Docs will now use canvas based rendering by snak on Wednesday May 12, 2021 @10:42AM (#27130894)
That's amazing, the IDE itself and the shader preview running on a WebGL canvas. Thanks for sharing!