gokrazy is really cool

3 years ago by pnutzh4x0r to c/linux

gokrazy is a Linux implementation that I've used off and on for a few years now. It's a very interesting project because everything on the system is written in Go save the kernel. The init process is in Go (and even listens over HTTP to handle updates!), every userland process is written in Go, and even the core system services are written in Go.

It's all stripped down to these few programs, configuration files, and one symlink for DNS resolution. This is a very minimal system, and it's all you need to run statically linked Go programs. It's very easy to deploy your own services to it too. It's probably the easiest platform I know of that lets you just deploy a Go binary and have it run as a service, automatically restarting when it crashes.

gokrazy is insanely cool. It's the easiest way to deploy Go services to your homelab. It integrates seamlessly with Tailscale, and is something that I'm very excited to see grow and mature. I'm very excited to see what the future holds for gokrazy, and I'm very excited to see what people do with it.

load all comments
bosco 15 points 3 years ago

Very cool! Nicely written too, I appreciate the technical depth and examples.

If you like Linux distributions/systems with an emphasis on a single language and custom init systems, I'd encourage you to take a peek at GUIX. It has an init system written in scheme called shepherd.

I'd say, per your definition which I agree with BTW, GUIX falls on the distribution side of things.

path: 0 3720904, hotness: undefined, score: 15, children: 2
pnutzh4x0r 8 points 3 years ago

Oh, just to be clear... I'm not the author of the blog post. I just shared the link :]

path: 0 3720904 3721717, hotness: undefined, score: 8, children: 1
bosco 7 points 3 years ago

No worries, thanks for sharing!

path: 0 3720904 3721717 3723562, hotness: undefined, score: 7, children: 0
linux
linux

@lemmy.ml

login for more options
68108
9462
5479

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...