4 ms·
I read this several times hours apart. Lots of information, thanks. I don't have many questions except this: "Some microcontroller programs are only allowed
by logicallee 8y ago
I read this several times hours apart. Lots of information, thanks. I don't have many questions except this:
"Some microcontroller programs are only allowed a couple of KB of RAM (Go can't handle that)."
What in here...
https://golang.org/ref/spec https://golang.org/ref/spec
...can't you possibly implement in only a couple of KB of RAM? (For what required feature or features can we say for sure that a couple of KB of RAM is insufficient to implement as specified?)
- striking 8y agoAs it turns out, the only mention of the feature is in that link's introduction. The garbage collector (https://github.com/golang/go/blob/master/src/runtime/mgc.go https://github.com/golang/go/blob/master/src/runtime/mgc.go) makes many references to 4KB pages and 1MB arenas. This (the code and the user of the technique) would need some serious reconsideration for small devices.
- logicallee 8y agoIsn't the specification the actual language, and Google's compiler just one implementation? (That's true for C/C++.) Is the specification underspecified or something? We're not talking about a syntactically huge language...