Impressed by speed. Compiled Embedded Go's patches to the Go compiler. The whole thing built in 207 second my work laptop!
Not that impressed with binary size, though. A simple blink LED program for Siped Maix Bit (riscv64) took 1.5 MiB.
Impressed by speed. Compiled Embedded Go's patches to the Go compiler. The whole thing built in 207 second my work laptop!
Not that impressed with binary size, though. A simple blink LED program for Siped Maix Bit (riscv64) took 1.5 MiB.
@mc It was the impractical binary size that put me off. I offered some patches to shave 0.5Mb off most real-world binaries by removing unnecessary "fmt" imports from lots of common stdlib imports like json, and was rejected. I lost interest at that point..
If you feel like complicating things for the sake of 0.5Mb or so, I could point you at a halfassed set of patched libraries from probably ten versions ago. :)
It's actually pretty easy to do, because most stdlib imports of fmt are just for error logging, and the native error module achieves the same ends with drastically smaller binary size.
@seachaint I might be interested in that. Thanks!
Were you also compiling with GOOS=noos? Or was this targeting something with an operating system?
I would really like to be able to fit my program in 128 kiB, but no chance of that, right?
@seachaint I tried again without including any modules at all. No import statement. Still 1,4 MiB. If you have any way to shave bytes off that I would be very grateful.
Did you change the Go runtime?
Chirp! is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Chirp! content and data are available under the Creative Commons Attribution 3.0 license.