4 ms·
To some extent, android is this with java. For a low-powered device, would a Go usespace bring particular benefits? (Though, even the cheapest phones today are
by hyperthesis 3y ago
To some extent, android is this with java.
For a low-powered device, would a Go usespace bring particular benefits? (Though, even the cheapest phones today aren't really "low-powered" anymore)
- yjftsjthsd-h 3y agoGo has memory safety (via GC rather than fancy ownership, but if it works it works); that's an asset anywhere that can afford the overhead. Edit: In order to preempt the argument others are having: Safer than C, anyways, while being much easier than rust.
- pjmlp 3y agoIf only we didn't need the const dance for enumerations, even Pascal like ones, to yet another 10 years, I guess.
- jrockway 3y agoI don't have a big problem using codegen to get "syntax" for enumerations. "go generate ./..." before you checkin, save yourself some typing. I have used this in the past: https://github.com/abice/go-enum https://github.com/abice/go-enum But mostly use protos as much as possible these days. (The enum is going to be in the API, might as well use the same object inside the app.)
- pjmlp 3y agoI left that kind of gimmicks behind me in C++ compilers for MS-DOS.
- pjmlp 3y agoThere are USB security keys running Go bare metal, https://www.withsecure.com/en/solutions/innovative-security-hardware/usb-armory https://www.withsecure.com/en/solutions/innovative-security-... Look for TamaGo on the page.