Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I guess the next step would be to try a uni-kernel. ClickOS claims to be able to boot in 20ms.

http://unikernel.org/projects/


Use 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.


Also, MigrageOS is amazingly fast, and can use tons of existing OCaml libraries.


Or just use IncludeOS, and you'll have the option to recompile most of the software out there (as IncludeOS is C++).


Including the memory corruption bugs written by those that use it as "C with C++ compiler".


I still have that idea, want to work on something together?


Wouldn't the kernel take the same time to boot whether it is your single Go binary or the usual Linux userland?


I guess he meant to boot the whole thing, which means kernel plus userspace.


This is basically what a docker image is.


Docker 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".


It's more like a busybox image.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: