You'd be giving up a lot by dropping the runtime. Off the top of my head:
* maps
* many slice operations
* string conversions between []int, []byte, and integer types
* goroutines
* channels
* defer
* many/all interface features
* garbage collection/allocation
* most built-in functions
It should be possible to keep the OS-independent parts and implement
something minimal in order to keep allocation and garbage collection.
You might want to do something for the print functions too. You can
probably live without the rest.
- Evan
That sounds like a lot of fun! Are you intending to do this as a
personal thing, or possibly open-source? I'd be interested in watching,
at the very least!
--
Arlen Cuss
Software Engineer
Phone: +61 3 9877 9921
Email: ar...@noblesamurai.com
Noble Samurai Pty Ltd
Level 1, 234 Whitehorse Rd
Nunawading, Victoria, 3131, Australia
That indeed is a pity ;-) Anyway, let us know when you do release it!
Russ
http://code.google.com/p/tinygo/
And for another (currently dormant) experiment on writing a kernel in
Go see GoFY:
http://code.google.com/p/gofy/source/browse/
uriel