Re:TinyGo: New Go Compiler Based on LLVM
by mook on Friday July 19, 2019 @12:00AM
(#20476065)
While I have no insight to their plans, perhaps a non-GC toolchain could still be used for short-lived programs (such as command line tools)? Don't even need to free anything if it's short enough, the OS can deal with it when the process exits
[ Parent
| on HN ]
Re:TinyGo: New Go Compiler Based on LLVM
by antisemiotic on Friday July 19, 2019 @06:28AM
(#20477431)
>a non-GC toolchain could still be used for short-lived programs (such as command line tools)
Or missile firmware: https://groups.google.com/forum/message/raw?msg=comp.lang.ad...
You can already do this: GOGC=off [1]
https://tinygo.org/usage/important-options/
Take a look at the `-gc` flag. The values have changed in the latest version (need to update the docs!) but it does provide an option to disable the GC entirely.