3 ms·
> Originally Volt app was written in Go, but after a couple of weeks of development I decided to re-write it in C for two reasons: easier integration with exist
by leshow 8y ago
> Originally Volt app was written in Go, but after a couple of weeks of development I decided to re-write it in C for two reasons: easier integration with existing C graphics and UI libraries and much smaller binaries. The app size reduced from ~5 MB to ~100 KB.
I'm always curious when people complain about binary sizes. Was there some reason the binary needed to be small? Or just based on some sense of 'largeness' and 'smallness'. It seems to me like rewriting in a 'less productive language' to save a few mbs of binary size that nobody cared about anyway is a pretty big waste of time.
I don't mean to come across super critical, there are cases where binary size could be really important. Say you're on an embedded platform with minimal memory. I just don't /understand why it was something worth optimising over here... especially to the point of a rewrite
- amedvednikov 8y agoIt was not just about the size. I experienced major issues with cgo.
- GenericsMotors 8y agoThis is the same attitude that has gotten us 20MB+ web page sizes.
- leshow 8y agoI'm not talking about a web page, I'm talking about a binary you're running locally. Your criticism doesn't apply.