but go is a first class citizen when you think of something like raspberry..
you can think golang wherever you can think of python
but go is a first class citizen when you think of something like raspberry..
you can think golang wherever you can think of python
Could you please provide a link or two on that, or give some explanation on why this is not possible?
https://en.wikipedia.org/wiki/Singularity_%28operating_syste...
They only used C and assembly for interrupt handling.
You need some bits of assembly, but that's true for C, C++, Rust and whatever else as well.
to make this happen, it should be possible to, at least change the runtime , or not use a runtime at all.. so the little boot part in assembly could call a go function in kernel mode
You can create your own runtime as you see fit. In fact, the Go distribution used to ship with such a bare metal runtime. Search the repository history for the tiny runtime. Reviving it again should be easier then porting Go to a new architecture, which is quite easy. Making a stub runtime (equivalent to booting a C kernel with no libc) is not more than half an hour of work.
Go can call assembly and C, and assembly and C can call Go. This is used a lot in the runtime, nothing special about it.
suppose you create a kernel kit library/runtime.. instead the one in go.. who assume you are in userspace.. its possible..
i think if only they allowed to create a binary with no runtime in it... and with the binary encoding for the boot (dont remember what it is right now) it would just be feasible.. people could start hacking it