frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Does anyone have scans of these missing PC Plus issues (1991–1993)?

111•billpg•1w ago•32 comments

Publishing desktop apps via HTML5 canvas

6•string-theory•5h ago•4 comments

Ask HN: Our AWS account got compromised after their outage

391•kinj28•2d ago•94 comments

Ask HN: Am I the only one not using AI?

12•acqbu•10h ago•15 comments

Ask HN: How many 9s did AWS lose due to the last outage (us-east-1 incident)?

6•2dvisio•7h ago•1 comments

Ask HN: Best practices for research code?

11•Eugeleo•18h ago•5 comments

Ask HN: Any good books for a layman on history of quantum computing?

19•bmau5•1d ago•6 comments

Ask HN: Can you recreate/restore deleted text messages on an iPhone/Android?

4•danielovichdk•4h ago•0 comments

Ask HN: How to stop an AWS bot sending 2B requests/month?

285•lgats•6d ago•181 comments

Ask HN: Would you like some help with your OSS project?

7•seph-reed•13h ago•4 comments

The First Data-Driven Platform That Makes Hosting Comparisons Fair

2•Hostingmoz•14h ago•4 comments

Ask HN: What are people doing to get off of VMware?

194•jwithington•4d ago•165 comments

Ask HN: Preferred Next.js Alternatives?

3•blinkbat•1d ago•10 comments

Why do LMMs overuse these patterns of speech that aren't overused in the wild?

7•jimbo808•1d ago•16 comments

Ask HN: End-to-end encrypted LLM chat (open- and closed-model)

3•5F7bGnd6fWJ66xN•20h ago•1 comments

MySQL Release Engineering PGP Key for Apt Repos Has Expired

6•scblzn•23h ago•7 comments

Did people in the 90s worry about the efficiency of the internet

12•burgiee•1d ago•15 comments

Anyone built an email or calendar assistant that syncs and indexes data?

5•Bahushruth•1d ago•10 comments

Ask HN: How does one build large front end apps without a framework like React?

107•thepianodan•6d ago•187 comments

Tell HN: Copilot.microsoft.com redirect to m365.cloud.microsoft, chats gone

7•eitland•1d ago•1 comments

Ask HN: What are you working on? (October 2025)

347•david927•1w ago•1054 comments

Programming language agnosticism is the only way to move forward in life

34•amano-kenji•4d ago•21 comments

Ask HN: Are you / should we be preparing for "cyberattack"

4•lifeisstillgood•1d ago•4 comments

HTTP error codes illustrated with stills from Columbo

9•ColinWright•2d ago•5 comments

Ask HN: How do you convince people to use privacy respecting technologies

12•bogomil•1d ago•12 comments

Ask HN: What failed in the AWS outage that should have worked offline?

12•cipz•1d ago•3 comments

Ask HN: Abandoned/dead projects you think died before their time and why?

363•ofalkaed•1w ago•891 comments

Ask HN: Why is Bowker's monopoly on ISBNs in the USA legal?

19•blindprogrammer•3d ago•12 comments

You've reached the end!

Open in hackernews

Publishing desktop apps via HTML5 canvas

6•string-theory•5h ago
what do you think about the strategy of publishing apps via html5. I mean desktop apps trough html5 rendering. Let me know.

Comments

PaulHoule•4h ago
Like Google Docs?
gnulinux•1h ago
There are ways to do this efficiently but it'd have to be over engineered and thus probably not worth it. You write the code in C/C++/Rust or similar and compile to WebAssembly. Then package it all in the thinnest wrapper you can find, of which I'm familiar with: https://tauri.app/ This gets you a "webpage" that runs C++ which you can let your customers install and use as a desktop app. Your mileage will vary.

It all depends on how powerful computers you want to support, if you assume your users will allow WebGPU use and your application needs 2D or 3D graphics (or more niche, GPGPU compute) imho Godot engine is actually pretty good to develop any web app (not just games) since it can compile its shader language down to WebGPU. Again, you'll probably need to write most of the code in C++ and compile to WebAssembly, which is pretty doable with Godot. If you just need graphics and very light CPU processing, GDScript will be enough. Once you do this you still need to wrap the webpage as a desktop app, I think Chrome browser has tools that can help with that.

The other obvious way is to use something like Electron and writing most of the code in Javascript. This will probably get you far if you need something simple but the memory and CPU usage will be much higher than necessary. Since the app ends up being so bloated, I personally don't like things approach, but apps like VSCode exist.

dualogy•1h ago
Even with JS/TS app code, instead of Electron, you can still also use Tauri afaict: just minimally get the Tauri binding up in your compiles-to-native lang of choice, and then one can still write the overwhelming bulk of the GUI in JS/TS (and perhaps even most/all of app logic, depending on how much of it is expressible via browser web APIs).

Certainly less bloat this way than Electron, for those with a taste for JS/TS.

jauntywundrkind•1h ago
It's deeply rude to the user to strip away all the user agency they have on the web. The web is one of the only places in computing where users get more than pixels being pushed at their faces: walking backwards into the dark & shadow is a bad move.

Basically all the same faults and troubles of Towards a Modern Web Stack apply. https://news.ycombinator.com/item?id=34612696

It's also notable that your software is grossly immoral if it does not have accessibility. You could write your desktop app that renders into an HTML5 canvas to also expose a second render of the app that is the accessibility tree (or less kindly use some of the new APIs to grammatically create accessibility, but this is far worse an option). But this greatly increases the effort of the work, and it's effort you don't need to spend if you use actual HTML with semantic tags and some ARIA sprinkled in.