Hacker News new | past | comments | ask | show | jobs | submit login

Unfortunately a lot of embedded devices can't handle the size of go executables.



The gc compiler produces notoriously large executables but Go programs need not be so large. A small program compiled using the tinygo compiler can be as small as 10s of kilobytes.


Someone even developed a complete SOHO router in Go: Router7 [1].

[1] https://router7.org/


This certainly doesn't look like a embedded device though:

> The reference hardware platform is the PC Engines™ apu2c4 system board. It features a 1 GHz quad core amd64 CPU, 4 GB of RAM, 3 Ethernet ports and a DB9 serial port.


That's an embedded device, sure. Embedded doesn't mean "microcontroller only".


I didn't mean to imply this. I consider most router hardware embedded, but they includes CPUs. It is just that they're CPUs that you would generally consider embedded (like a SoC).

And BTW, my reply was mostly because of the context: people were talking about binary sizes for Go, but if you're using PC-like hardware you wouldn't care about binary sizes anyway (you can simply put more storage, even something like a 1GB SD Card would be way bigger than something like OpenWRT that can run with hardware as low as 8MB of Flash memory).


"Embedded" has no relationship with size, though. And that's moderately big for "embedded" anyway.




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

Search: