M-Valentino
M-Valentino on Hacker News
Not too early. I got an NES emulator in there and a text editor already. I wonder if I could port Inkscape to wasm.
Posted by
M-Valentino on Thursday November 28, 2024 @02:02AM
from the self-post dept.
https://sacred.neocities.orgI'm thinking about adding an MS Paint equivalent or an actual desktop that displays files and folders next. What would you like to see on it?
My idea for wanting PNG encoding is that they have lossless compression, and that the other common format that preserves details is bitmap, which has no lossless compression. At least PNG might compress photos somewhat. The web is plagued with images that have been resaved over and over that have JPEG degradation. I did not know JPG-XL had a lossless format so that's promising imo. But JPG-XL isn't supported in many browsers.
I like PNG's lossless compression. I feel like PNG was a really bad format back when hard drives were 100GB, but now storage is so cheap. I didn't know JPEP-XL had a lossless mode. Other than that format, I don't know of any other formats that offer lossless compression other than bitmap and TIF. You can't really use TIFs in many contexts and bitmaps have no compression at all.
When the OS starts up, it fetches all the source files and puts their content inside a huge JavaScript object the "hard disk". From that object, it will append the GUI script, kernel script, taskbar, and start menu to the DOM. The GUI script does most of the heavy lifting. The kernel script handles, creating, updating, and deleting of files and folders. Folders are really just nested objects inside the main hard disk object
I want a phone that lets you shoot PNG
What separates my online OS from Windows 93, Windows 96, and Daedal OS, is the ability to export the entire "hard disk" to JSON and boot with it. Every system file is editable. In Sacred OS, HTML files are executable and HTML files are ran in iframes. These iframe programs can communicate with the kernel with the window.top.postMessage method. The whole thing was written using Vanilla JS.
This OS is still a work in progress. What do you guys think of it?
Posted by
M-Valentino on Friday August 23, 2024 @11:09PM
from the sacred.neocities.org dept.