4 ms·
Not paying for what you don't use is not an unreasonable goal of a compiler, linker etc.
by krona 5y ago
Not paying for what you don't use is not an unreasonable goal of a compiler, linker etc.
- JulianMorrison 5y agoIt is an unreasonable goal if (1) it's wildly outside the expected use cases and (2) it complicates things. Both of which would apply.
- cweagans 5y agoSure. But as stated previously, even a basic hello world go program does use the runtime.
- adgjlsfhk1 5y agoPretty much all programs use the GC. Threading isn't used in everything, but Go, especially probably has at least 50% of programs over 1000 lines use threads (especially considering the standard lib).
- JulianMorrison 5y agoIf I remember right the GC lives on a thread, even if the program runs serially.