by rollcat · 3y ago · 0 comments
I would love to see these principles implemented in a privacy-respecting manner: bring your own device, choose your identity provider (including self-hosted options that integrate with e.g. email or even plain old SSH), choose your storage backend (including other clouds but also e.g. Syncthing, SFTP...).
Immutable / secure-by-default OS would also be interesting, but nothing else out there is quite like ChromeOS. NixOS/Guix would be good candidates, but the underlying scaffolding is quite complex. Alpine & OpenBSD are both radically simpler, but lack the aspect of trivially reproducible builds. Then of course there's the question of providing a good UX on top of that base: I want to connect to Wifi, select the ID provider, type my username/password, and start working. That's an enormous gap to close.
With that, you could set up a special secret URL which you'd type in on system boot, and have your personal OS loaded for you, complete with your settings and data, on any machine.
The local hard drive could be used as an encrypted cache so that it's only slow the first time you boot up.
Sadly, support for wifi from UEFI is rare, and bugfree booting over the network is tricky to get working on a wide variety of hardware.
macOS (at least on Intel) is able to download and start the installer from the Internet, straight from the UEFI environment - you just have to hold the right magic button combination. I've only done this once, but it felt like one of those ideas, "why isn't every computer in the world able to do this".
As long as device can be reused, wiped completely and supplied with new OS etc. otherwise "disposable device" we should avoid at all cost as that is not green.
If it means crappy quality and unreparable, something that will last for a couple of years tops, I agree that is terrible.
It could also mean decent quality that will last, but is cheap enough that you won't worry too much about it being damaged or lost or stolen.
I love my Macbook, and my previous one is still going strong after 8 years, in the hands of a family member with lower need for computational power, but I hate carrying around a device so expensive. I don't dare eat near it, and I wince whenever my backpack bumps on something.
I miss the careless freedom of carrying around a cheap, crappy linux laptop.
> reusable device with a replaceable OS; secure by default; your data is always backed up; if you have any doubts or problems you can always restore to the factory image and be back in action within minutes, etc.
I found that Qubes OS provides all of that for me, without any reliance on megacorporations. All software runs in VMs, which are automatically backed up and can be restored to a state before reboot easily. VMs run Linux and Windows, so all apps are working as expected (except those relying on GPU). And the UI is great.
Classes usually only required a single java file to turn in your work, which was then compiled and run automatically with the results being verified by another program, so as long as your individual java file output the same results as what was expected, it didn't matter what build system (if any) you used.
The only other class that didn't use java was systems programming, where we did C. I had been doing C since I was 12 at that point, and since I was already using ubuntu server via ssh, it wasn't a difficult class at all for me.
For my OS final, we had to write an operating system simulator (a program which simulated the kind of events that would occur in an OS: new processes, processes being deleted, memory paging, single process multi-tasking with pre-emption). I didn't actually read the instructions and ended up writing a kind of hypervisor(?) which ran programs in an 8080 emulator with some of my own custom instructions for memory banking and forking to meet the requirements of the class (your program had to be able to do memory paging up to something like 512mb of RAM).
You had to have some kind of user interface, so I wrote it as a web server in C with a custom HTTP server implementation. The program returned an HTML page which looked like a desktop. You could spawn terminal windows and run specific programs. I wrote a few long-running programs which printed out numbers to demonstrate memory paging and process pre-emption. There was a special instruction I made to fork the program so you could clone a process from another process, and I used one of the unused flag register bits to signify which fork the program was.
The professor was impressed by the implementation (and I implemented all the algorithms required to get 10 points extra credit), but because I didn't actually write an OS simulator (closer to an actual OS, but not quite there), he gave me 100%, but no extra credit. I was happy with that, because I'm not a grade chaser.
Unfortunately, I failed the class because I couldn't answer trivia on the exam like "What does GRUB stand for" because I spent the whole semester working on the hypervisor and not actually going to any of the lectures. I just read the textbook and coded in C at the library.
Here's the very rough code, with a slightly buggy 8080 emulator implementation:
BTW have a look at this blog post: <https://eli.thegreenplace.net/2023/faas-in-go-with-wasm-wasi...>. It uses a lot of off-the-shelf components like a WASM runtime instead of a custom 8080 emulator, and net/http rather than rolling your own HTTP server - but it's fascinating, how close your crazy project ended up from actually viable real-world use cases.
To quote that xkcd, I'll need a research team and 5 years.