There is a framework for OCaml for this: https://mirage.io/
So if you are interested in learning OCaml and want a unikernel, this would be a possible path to take.
OCaml is a good language but perhaps unikernel does not mean what I thought it did:
> fully-standalone, specialised unikernel that runs under a Xen or KVM hypervisor.
Or maybe xen / kvm are no longer called operating systems?
I'm interested in having my code be responsible for thread scheduling and page tables - no OS layer to syscall into - but am not as keen on DIYing the device drivers to get it talking to the rest of the world.
> I replace the [QubesOS] Linux firewall VM with a MirageOS unikernel. The resulting VM uses safe (bounds-checked, type-checked) OCaml code to process network traffic, uses less than a tenth of the memory of the default FirewallVM, boots several times faster, and should be much simpler to audit or extend.
> Or maybe xen / kvm are no longer called operating systems?
> I'm interested in having my code be responsible for thread scheduling and page tables - no OS layer to syscall into [...]
You might be confusing Xen and KVM here? Xen and KVM are rather different in this regard.
KVM runs on a full Linux kernel (as far as I know). But running your application as unikernels on top of Xen is more comparable to the old Exokernel concept.
I create cronjobs which run ratt regularly and save the xml to a file in a directory to be served as file by a web server.
After that i can just subscribe to it with my feedreader.
Maybe i will try to use it as a building block for a webservice, but for now i am still figuring out how to write good config files.