2 ms·
> That would be an absolutely awesome project. Usually when you can think of it someone has already done it so a bit of googling I've done a bit of googling an
by sph 1y ago
> That would be an absolutely awesome project. Usually when you can think of it someone has already done it so a bit of googling
I've done a bit of googling and research, nothing viable has surfaces, and I still haven't found the time to create a prototype myself, just some doodling around here and there. I do agree that it's an awesome idea, and it's been stewing in my head for a couple years now!
There are a lot of moving parts (scheduler design, probably needs its own high level language and bytecode, mapping capabilities onto actor semantics, etc.) that are outside what current OS-research seems to be focused on.
EDIT: I've just seen the mention of your QNX-like OS in your profile. Lovely! Any reason you haven't posted it on Github/Codeberg?
- toast0 1y agoI've got a hobby OS you may want to check out. Crazierl is a just enough kernel that can run the FreeBSD build of BEAM as a single OS process. Features include: x86-32 only, bios boot only, SMP capable, drivers in Erlang (there's nifs for managing memory with devices or i/o; and the kernel manages the interrupt controller(s) and has console output before userspace takes over), a kind of working IPv4 stack, dist! It doesn't run on all my machines, but it does on some (it does some VGA things that I guess aren't well supported and also non uefi is iffy these days too. I typically run it in qemu and v86, but I think it will work in VMWare as well. https://crazierl.org/ https://crazierl.org/ https://github.com/russor/crazierl/ https://github.com/russor/crazierl/ There's a hosted v86 demo as well (works better on a desktop than a phone): https://crazierl.org/demo.html https://crazierl.org/demo.html It's also in the weird OS section at https://copy.sh/v86/ https://copy.sh/v86/
- jacquesm 1y agoVery neat! I have my own OS to work with that I know like my back pocket, so if I ever go this route I'll probably just carve that up.
- toast0 1y agoDid you get your serial ports working? :) If it doesn't take much time, it's worth trying to get it to run in v86; it's so much easier to send people a link to a web page to poke at your OS than to send them an image and tell them to run qemu against it. Edit: I misinterpretted --- you'll carve your OS up, not mine, that makes more sense! Old comment: Feel free to carve away, just be aware that just because it's committed doesn't mean it works... I wouldn't take my memory management code, for example. There's some fiddly issues I haven't tracked down because it doesn't break consistently.
- jacquesm 1y agoI got distracted (story of my life) by something very interesting that takes precedence but I'll return to it at some point, I've made up my mind about that.
- sph 1y agoThat last link deserves its own HN post!
- toast0 1y agov86 has been posted a few times [1], I'm pretty sure that's how I became aware of it to use as a target platform. It's a nice project, and they've taken three PRs from me (so far) that make it easier for me to run my weird OS :) Lots of other contributions here and there from others which is great, because I thought I was going to have to build a virtio-net device in v86 or write a ne2k driver in crazierl, and other people built and debugged the virtio-net so I can just use it. [1] https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=https%3A%2F%2Fcopy.sh%2Fv86%2F&sort=byDate&type=story https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
- jacquesm 1y ago> Any reason you haven't posted it on Github/Codeberg? Yes, I don't want Microsoft to be able to pretend claim I gave it to them for some particular purpose which I didn't. They'll have to come and take it. Feel free to use that code and do anything you want with it, and if there are no more seeds for the code let me know and I'll serve up the torrent.
- sph 1y agoI hear you. These days all my projects are on private SSH repositories on my servers.