Live data from Hacker News

Gokrazy – A Native Go Userland

gokrazy.org

31–32 of 32 posts

Re: Gokrazy – A Native Go Userland

#31
post #2

Very interesting project. Has anyone tried it? Apparently they have written their own init: https://gokrazy.org/userguide/process-interface/ This makes me curious. I wonder how well Gokrazy would blend with s6/s6-rc… If anyone is curious there’s more info about those projects here: https://skarnet.org/software/s6/ https://skarnet.org/software/s6-rc/

I’ve tried it. It’s very neat. I wrote a PoC music player on it and it boots up and begins playing music in about 4 seconds if I recall. Has a neat optional web-based service control UI that lets you see the logs and stop/start the “services.” Has a cool dual-boot-image scheme so you can boot a new one and roll back to the old one if needed (takes double the space on the boot drive but it’s still pretty small). It’s…

Hello, I’m the maintainer!

You’re right about the lack of a C runtime being intentional. However, C programs can be run if you take on the task of keeping them up-to-date: https://gokrazy.org/prototyping/

Regarding WiFi, we have https://github.com/gokrazy/wifi which currently only works for unencrypted WiFi. If at some point there is a Go solution to configure encrypted WiFi, I’m all for it!

Re: Gokrazy – A Native Go Userland

#32
post #30

FWIW, Caddy would probably work with this, if you need a web server. Caddy is pure Go, no CGO. We did a bunch of work recently to ensure that none of the dependencies have any CGO code enabled (involved asking upstream dependencies to switch to pure alternatives).

It definitely works with gokrazy, we even have a guide for it: https://gokrazy.org/userguide/install/caddy-http-server/

Awesome! Thanks for sharing!
Post reply on HN