user2450516
user2450516

Reputation: 51

Is Go developed enough to use it to make the core of an operating system?

I'm wondering if Go is developed enough to use it to make the core of an operating system? So basically replace what you would normally use C for with Go.

Upvotes: 3

Views: 150

Answers (1)

zzzz
zzzz

Reputation: 91379

Of course you can develop an OS in almost any (Turing complete) language. Usually there's some small assembly layer required, though. And usually one must implement some parts of the OS using only a restricted subset of the language in question.

Examples:

What concerns Go, there used to be a usable (toy) Go kernel implementation, but it is now obsoleted already for a long time. From rsc's post:

In the repository history there is a toy kernel called "tiny". If you run hg log -k tiny you'll find it. It doesn't build anymore with the current version of Go but it illustrates what might be done. It had the whole package runtime, including the garbage collector, in the kernel.

Russ

Upvotes: 5

Related Questions