frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

You might want to build your WebApp in Canvas instead of HTML

https://hivekit.io/blog/why-you-might-want-to-build-your-webapp-in-canvas-instead-of-html/
16•wolframhempel•6d ago

Comments

frollogaston•5d ago
People who work on web browsers have ranted that HTML/CSS isn't a very natural interface into the engine, so it's inefficient and has nasty edge cases. I know nothing about browser engines but do find CSS awkward as a user when I'm not making a plaintext website, so have been relying heavily on React for side projects.

Been thinking about doing a toy project where I try to build my own alternative to HTML/CSS that runs on top of Canvas, drawing inspiration from how Wayland is actually less abstracted than X11.

xscott•50m ago
You might find this video useful or interesting: https://youtu.be/by9lQvpvMIc

I've been tempted to do something similar for browser canvas, perhaps with some slightly different choices than he made. His approach uses a very elegant way of looking at things though.

efficax•1h ago
Not a word in here about accessibility, of course. If you’re blind you’re blind to the canvas as well without a lot of work, it’s much more straightforward to make the DOM accessible
martinbooth•56m ago
It says:

> For most web apps, the DOM remains the better choice. It gives you accessibility, responsive layouts, text selection, input handling, and countless other features for free

evan_•39m ago
Ah, so literally a word.

I was thinking you could probably get a fair bit of accessibility by using <div>s for your text rendering- or by maintaining a separate, hidden outline of DOM elements mirroring what’s on screen.

dinkelberg•54m ago
The dev tools in the browser become much more useless when you draw everything in a canvas. It's gonna be sad when everyone starts using frameworks that draw on canvases. Arguably more sad than when Webassembly came. One could probably write new dev tools for those frameworks though.

I also imagine this will be a big setback for web accessibility.

everdrive•41m ago
I block all canvas requests. When I can no longer do so, I will just try to use the web less.
zarzavat•34m ago
Canvas is a last resort if you absolutely cannot build the thing any other way.

When you use canvas you're giving up on not just accessibility but also optimizations that the browser does for you transparently when you use the native render tree. There's no guarantee that your app will be faster in canvas, it could easily be slower. Do you really think you can beat the browser's C++ by writing code in a language that doesn't even have a native integer type? Perhaps you can, but your base assumption should be that you can't.

bramadityaw•19m ago
If you've decided to make your next webapp's interface in Canvas, you are jeopardizing what makes the web flourish in the first place: openness. I personally agree with DHH that View Source is one of the browser's most liberating feature. Others in this thread have also pointed issues in accessibility.

It's a shame that this is what the web is trending towards with more and more enterprise interest in the internet.

groomlake•15m ago
I’m always curious how Google, Microsoft and Co. build their web apps - given that they need to work well on any computer, from a top-shelf speed machine to a potato with wires.

In my experience, Microsoft webapps (which now includes many of their desktop apps) are rather sluggish. Even the Copilot Chat website. How hard could it be to make a chatbox and a session transcript not be sluggish?

amiga-workbench•12m ago
YouTube too. And I'm not even talking about the video player. Displaying a 4x4 grid of thumbnails seems to be some kind of herculean task.
mister_mort•9m ago
I think some of the Youtube thumbnail stuff is lazy-loaded, so depending on the speed of your browser and connection it can just hang there doing nothing for a while.
slopinthebag•5m ago
All of their webapps are garbage.
nilslindemann•1m ago
[delayed]

There Are Magic Hexagons of Every Order

https://gukov.dev/math/2026/08/02/new-magic-hexagons.html
61•gukoff•4h ago•12 comments

My server is a phone now

https://seg6.space/posts/phone-server/
366•seg6•13h ago•154 comments

Microsoft Word for Windows 1.1a, Native X64 Port

https://github.com/jmarshall23/msword
97•BruceEel•6h ago•42 comments

Os8088: A powerful Mac-like OS for the IBM XT, 286, 386

https://os8088.com/
189•jggonz•12h ago•116 comments

The Grid That Doubles the Strength of the Ground

https://practical.engineering/blog/2026/8/4/the-grid-that-doubles-the-strength-of-the-ground
37•michaefe•4d ago•5 comments

Fastmail offers EU data region

https://www.fastmail.com/blog/fastmail-offers-eu-data-region/
442•groomlake•20h ago•236 comments

Improving Heuristics for A* Pathfinding

https://www.redblobgames.com/pathfinding/heuristics/differential.html
272•bobbiechen•1w ago•28 comments

Dithered QR Codes

https://www.andrewt.net/dithered-qr-codes/wtf/
241•jmusall•13h ago•19 comments

The Alpha 21264 CPU: NT's Greatest RISC (1998)

https://halfhill.com/byte/1998-12_alpha.html
14•Lammy•2h ago•5 comments

Shopify replaced Redis with MySQL for inventory reservations–and it scaled

https://shopify.engineering/scaling-inventory-reservations
235•adletbalzhanov•13h ago•150 comments

You might want to build your WebApp in Canvas instead of HTML

https://hivekit.io/blog/why-you-might-want-to-build-your-webapp-in-canvas-instead-of-html/
17•wolframhempel•6d ago•13 comments

Protopia

https://kevinkelly.substack.com/p/protopia
24•surprisetalk•4d ago•16 comments

The original URL for this prediction will no longer be available in 11 years (2011)

http://longbets.org/601/
161•doubletwoyou•7h ago•72 comments

Uber SubmitQueue: a high-performance speculative merge queue

https://github.com/uber/submitqueue/
4•handfuloflight•1w ago•0 comments

Everything You Do Is Being Recorded

https://www.theatlantic.com/technology/2026/05/ai-wearable-surveillance-countermeasures/687203/
18•ike_usawa•47m ago•7 comments

_for-sale DNS records

https://specification.website/spec/foundations/for-sale-dns/
406•shaunpud•22h ago•157 comments

How to Survive in a Louisiana Swamp

https://unherd.com/2026/08/how-to-survive-on-a-louisiana-swamp/
16•bookofjoe•3d ago•1 comments

Stylized GGX Shading

https://alexandrelamure.github.io/graphics-posts/stylized-ggx-shading.html
34•ibobev•5d ago•0 comments

Melatonin impairs morning cognition in healthy young adults (2023)

https://academic.oup.com/sleep/article/46/Supplement_1/A34/7181621
146•bohaska•11h ago•138 comments

Unexpected events and prosocial behavior: the Batman effect (2025)

https://www.nature.com/articles/s44184-025-00171-5
68•davidbarker•6d ago•21 comments

CSS: The bomb inside your inbox

https://portswigger.net/research/css-the-bomb-inside-your-inbox
29•ashurandi•2h ago•6 comments

Open-source interactive map for the Aug 12 total solar eclipse

https://eclipsefan.org/?v=2&t=max&layers=eclipse%2Cbesselian%2Cumbra-live%2Cshadow-3d%2Ccloud-pro...
165•MarcoDewey•16h ago•43 comments

Making difficulty curves in games

http://www.davetech.co.uk/difficultycurves
130•hakkikonu•4d ago•50 comments

TheoremDB – A public workspace for machine mathematics

https://theoremdb.org/
48•frozenseven•10h ago•4 comments

Should you stop cracking your knuckles?

https://www.bbc.com/future/article/20260807-should-i-stop-cracking-my-knuckles
70•tchalla•13h ago•74 comments

Why MySpace fans want it back as relaunch hinted

https://www.bbc.com/news/articles/c4g64152v71o
22•1659447091•7h ago•23 comments

Show HN: Airy – Free, fast, and simple voice content creation

https://airy.so
4•login588•2h ago•3 comments

Software Giant SAP Stops Most Travel and Hiring Because of AI's Soaring Cost

https://www.404media.co/software-giant-sap-stops-most-travel-and-hiring-because-of-ais-soaring-cost/
44•theanonymousone•4h ago•18 comments

Retraction: The App Store Rejection of the Week That Was a Correct Rejection

https://daringfireball.net/2026/08/retraction_app_store_rejection_of_the_week
231•minimaxir•8h ago•31 comments

Building a local positioning system to track runners using Ultra-Wideband

https://zeus.ugent.be/blog/25-26/12urenloop-uwb/
92•robinpdev•1w ago•8 comments