News for hackers. Stuff that matters.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by oxplot on Saturday March 04, 2017 @06:40PM (#13793566)
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.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by jagger27 on Saturday March 04, 2017 @09:17PM (#13794235)
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/

Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by im_down_w_otp on Sunday March 05, 2017 @12:59PM (#13797315)
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.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by vog on Sunday March 05, 2017 @09:57AM (#13796185)
Also, MigrageOS is amazingly fast, and can use tons of existing OCaml libraries.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by perbu on Sunday March 05, 2017 @12:33PM (#13797141)
Or just use IncludeOS, and you'll have the option to recompile most of the software out there (as IncludeOS is C++).
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by pjmlp on Tuesday March 07, 2017 @02:50AM (#13808921)
Including the memory corruption bugs written by those that use it as "C with C++ compiler".
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by CSDude on Sunday March 05, 2017 @02:19AM (#13794963)
I still have that idea, want to work on something together?
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by sigjuice on Saturday March 04, 2017 @10:37PM (#13794452)
Wouldn't the kernel take the same time to boot whether it is your single Go binary or the usual Linux userland?
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by Matthias247 on Sunday March 05, 2017 @04:41AM (#13795249)
I guess he meant to boot the whole thing, which means kernel plus userspace.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by bigdubs on Saturday March 04, 2017 @08:15PM (#13794022)
This is basically what a docker image is.
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by zer0t3ch on Saturday March 04, 2017 @08:29PM (#13794081)
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".
Re:Gokrazy – a pure-Go userland for Raspberry Pi 3 appliances by nothrabannosir on Sunday March 05, 2017 @09:34AM (#13796118)
It's more like a busybox image.