News for hackers. Stuff that matters.
Re:Show HN: TinyGo – LLVM-based Go compiler for microcontrol... by SiVal on Saturday August 18, 2018 @07:21AM (#17788004)
Go tends to be at least as fast as Java with a much smaller memory footprint. It ought to run well on any device that can run Java, which includes a lot of small devices.
Re:Show HN: TinyGo – LLVM-based Go compiler for microcontrol... by abstractbeliefs on Saturday August 18, 2018 @08:14AM (#17788128)
If I remember right though, the smallest devices running Java (comparable to the AVR devices in specs) were mostly designed at the hardware level to run Java, so there were lots of considerations made that wont be true for an AVR microcontroller that has a first-class C toolchain.

Additionally, the Java Card specification was a pretty cut down version of Java that didn't have the same "Not _yet_ supported" feature list here.

Re:Show HN: TinyGo – LLVM-based Go compiler for microcontrol... by stmw on Saturday August 18, 2018 @01:19PM (#17789472)
I actually wouldn't expect Go to be considerably better in memory footprint (or other things) than "embedded" Java in embedded environments. Once you accept the idea of having GC, it puts some constraints on things. Of course, you can't compare "server java" with embedded java -- those are as different as TinyGo and "real" Go, if not more so...
Re:Show HN: TinyGo – LLVM-based Go compiler for microcontrol... by lossolo on Saturday August 18, 2018 @02:32PM (#17789840)
Normal Go is a lot more memory efficient than normal Java, it has value types and no VM/JIT overhead. In my own measurements it was up to 50x times more memory efficient.
Re:Show HN: TinyGo – LLVM-based Go compiler for microcontrol... by crawshaw on Saturday August 18, 2018 @04:45PM (#17790560)
Also: UTF-8 instead of UTF-16 can make a surprising difference on memory use, especially if you interact with services in UTF-8 and so spend a lot of memory in Java copying back and forth.