5 ms·
A while ago, I had the "krazy" idea of writing my own single binary Go router software on top of linux kernel. Turns out it's fairly easy to get up and running
by oxplot 10y ago
A while ago, I had the "krazy" idea of writing my own single binary Go router software on top of linux kernel. Turns out it's fairly easy to get up and running with literally having nothing but a kernel image and a single executable that gets called on boot. My kernel booted in less than 2 second on a VM.
- bigdubs 10y agoThis is basically what a docker image is.
- zer0t3ch 10y agoDocker is just a container, anything you can boot you can put in a container. That doesn't make what he did "basically a docker image".
- nothrabannosir 10y agoIt's more like a busybox image.
- jagger27 10y agoI guess the next step would be to try a uni-kernel. ClickOS claims to be able to boot in 20ms. http://unikernel.org/projects/ http://unikernel.org/projects/
- vog 10y agoAlso, MigrageOS is amazingly fast, and can use tons of existing OCaml libraries.
- im_down_w_otp 10y agoUse LING (Erlang on Xen). Fast boot, great libraries and tools for building network applications and introspection, and still hosts its own shell (albeit an Erlang one) you could remote into if you so desired.
- sigjuice 10y agoWouldn't the kernel take the same time to boot whether it is your single Go binary or the usual Linux userland?
- Matthias247 10y agoI guess he meant to boot the whole thing, which means kernel plus userspace.
- CSDude 10y agoI still have that idea, want to work on something together?