3 ms·
You cannot use Go in kernel programming at all without a monumental amount of work. You'd need your own implementation of the language. Go originally did have
by lgunsch 11y ago
You cannot use Go in kernel programming at all without a monumental amount of work. You'd need your own implementation of the language. Go originally did have a runtime that did not require systemcalls and could run on bare hardware, however, this was removed very early on as not being worth the effort.
- pjmlp 11y agoYes I do remember that runtime when I was still reading gonuts. As always, a language and its implementations are not the same thing. It is nothing special to have a bare runtime that would enable a Go application to be statically compiled and deployed into a Raspberry PI, for example. It just needs someone to create such Go compiler. Of course, such work would probably be a nice thesis project for OS design classes.