I have just started a project that aims to create a Linux distribution
that uses Go for everything except for the Kernel (obviously since it
is a Linux distribution). I figured this would be a good way to learn
Go. So far, I have been unable to find documentation for how I would
interface with the Linux kernel from Go.
The main reasons I chose not to write a kernel are:
Garbage collection in Go would complicate things,
lack of the ability to embed ASM (afaik),
I am still learning Go,
my knowledge of C is very rudimentary
On Nov 13, 4:43 pm, Ben Leslie <
ben.les...@gmail.com> wrote:
> On Sat, Nov 14, 2009 at 1:22 AM, Frank <
m...@frankwmiller.net> wrote:
>
> > Interesting that you could turn off garbage collection. I didn't
> > notice in the spec anything allowing explicit freeing of memory, like
> > a free() or dispose construct. I'll assume that because the language
> > assumes gc or else I just missed it ;) Seems like that construct
> > would be necessary if you wanted to turn off gc.
>
> > This is a great discussion and did answer my question. I'll be making
> > a distinction in the future between "systems" and "operating systems
> >kernel" programming. C still appears to be the right solution for the
> > latter.
>
> Yeah, I think C (and assembler) is still the tool of choice for
> programming operating systems kernels.
>
> Of course in OS designs where thekernelrepresents only a small part