News for hackers. Stuff that matters.
Re:This game is a single 13 KiB file that runs on Windows, L... by socketcluster on Sunday January 11, 2026 @07:14PM (#46582026)
I love the idea of applications which exist in one file which you can run anywhere. I've been working towards this with my serverless platform; you can build complex data-driven apps with just one .html file and mostly declarative HTML markup (thanks to web-components which are loaded from a remote server). With modern browser features, you don't need a bundling system. Once you do away with it; a whole universe is opened up.

The ability to load .html files over the file:// protocol is a powerful, often neglected feature. In practice, it means you can double-click an HTML file and it runs an app in your browser instantly.

Re:This game is a single 13 KiB file that runs on Windows, L... by Retr0id on Sunday January 11, 2026 @07:33PM (#46582171)
Sadly a lot of browser features are inaccessible from non-https contexts.
Re:This game is a single 13 KiB file that runs on Windows, L... by jsheard on Sunday January 11, 2026 @07:40PM (#46582226)
Don't most (all?) browsers consider file:// and localhost to be secure for the sake of enabling those features?

https://developer.mozilla.org/en-US/docs/Web/Security/Defens...

Re:This game is a single 13 KiB file that runs on Windows, L... by mlok on Sunday January 11, 2026 @08:41PM (#46582787)
Unfortunately, no. CORS will block this on Chrome and Firefox.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/COR...

The security risk : https://www.mozilla.org/en-US/security/advisories/mfsa2019-2...

You need a local webserver. Or bundle everything in one html file.

Re:This game is a single 13 KiB file that runs on Windows, L... by Am4TIfIsER0ppos on Monday January 12, 2026 @05:29AM (#46586534)
So that's why I have to keep booting a Windows 7 computer in order to use an html file I saved 10+ years ago? Some dumb shit android app.
Re:This game is a single 13 KiB file that runs on Windows, L... by gabriela_c on Sunday January 11, 2026 @09:50PM (#46583402)
or you could use something like caddy (https reverse-proxy, local cert), and have a dedicated ws running in the background that serves your files
Re:This game is a single 13 KiB file that runs on Windows, L... by billfruit on Monday January 12, 2026 @12:24AM (#46584415)
How are you approaching the development of your single file html apps, is there any examples publicly available, sounds very interesting.
Re:This game is a single 13 KiB file that runs on Windows, L... by nottorp on Monday January 12, 2026 @06:27AM (#46587006)
> I implemented the game three times in total: once in C for the i686 Visual C platform using WinAPI, once in C for the x86_64 Linux platform using clang and X11, and once in JavaScript for the browser using HTML5 Canvas.

The OP actually wrote two native applications instead of just instantiating a browser.