Live data from Hacker News

A native Go userland for your Raspberry Pi 3 or 4 appliances

github.com

1–10 of 37 posts

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#5
post #2

Is it just me or this feels like, effectively, a whole gnu/linux distribution?

> aside from the Linux kernel and proprietary Raspberry Pi bootloader — only contains Go software.

Given this is what the README states, how can it be a GNU/Linux distribution?

It doesn’t include a shell or anything like coreutils either (GNU or otherwise).

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#6
an interesting project.

the size of the image concerns me:

kernel+boot 100MB, with C it could be 4MB.

kernel+boot+basicpackages 500MB, with C it could be 16MB.

Golang is designed to be static all-in-one packages for each application(e.g. microservices), when you run a lot of them in any given system, it becomes really large together.

I don't mind to use one or two go binaries in my embedded board, when I need a few of them, I am concerned about the storage size(possibly memory size as well).

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#7

an interesting project. the size of the image concerns me: kernel+boot 100MB, with C it could be 4MB. kernel+boot+basicpackages 500MB, with C it could be 16MB. Golang is designed to be static all-in-one packages for each application(e.g. microservices), when you run a lot of them in any given system, it becomes really large together. I don't mind to use one or two go binaries in my embedded board, when I need a few o…

The only place on the readme where I could find those figures you came up with was the partition table and obviously a partition of 500MB doesn’t mean the applications are going to be 500MB in size. In fact it’s quite the opposite; it pretty much guarantees the applications are going to be less than 500MB given you are going to want some headroom to work with.

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#8

an interesting project. the size of the image concerns me: kernel+boot 100MB, with C it could be 4MB. kernel+boot+basicpackages 500MB, with C it could be 16MB. Golang is designed to be static all-in-one packages for each application(e.g. microservices), when you run a lot of them in any given system, it becomes really large together. I don't mind to use one or two go binaries in my embedded board, when I need a few o…

To be fair, this is designed for Raspberry Pi, and nowadays it's almost impossible to find a micro SD that's less than 16 GB and costs significantly less than a 16 GB one, I don't think a couple hundred MBs are a concern (even if it hurts my soul too)

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#9
post #5
post #2

Is it just me or this feels like, effectively, a whole gnu/linux distribution?

> aside from the Linux kernel and proprietary Raspberry Pi bootloader — only contains Go software. Given this is what the README states, how can it be a GNU/Linux distribution? It doesn’t include a shell or anything like coreutils either (GNU or otherwise).

> how can it be a GNU/Linux distribution?

You're taking a few F/OSS components (in this case the Linux kernel, the golang toolchain and some custom software) and you're assemblying them into a bootable system.

That's almost quite literally the definition of "gnu/linux distribution".

Re: A native Go userland for your Raspberry Pi 3 or 4 appliances

#10
post #4

Is this kinda like the Nerves approach but for Golang? ( https://github.com/nerves-project/nerves )

This space is really interesting to me- developing for pi by bundling up a whole image, for weird little software/hardware experiments.

Anyone know if there a list of these types of frameworks anywhere?

Post reply on HN