3 ms·
Simple compared to what? The Go implementation is very immature, I'll grant you that, but it is definitely more complex than an implementation of C at a similar
by sausagefeet 14y ago
Simple compared to what? The Go implementation is very immature, I'll grant you that, but it is definitely more complex than an implementation of C at a similar point in its life. At the very least Go supports, fairly straight forwardly, a lot of C and it has a GC and multiplexing user land threads over multiple cores.
* Assume C90
- duaneb 14y agoAhh, if we are comparing equivalent implementations, you are definitely correct. GC and goroutines are much more complex than anything in C. In fact, off the top of my head, the only features truly missing in Go from C are unions (unfortunately) and the preprocessor (effectively a part of C).
- kragen 14y agoHave you ever implemented GC or fibers? They can be pretty simple to implement, really.
- duaneb 14y agoThey are conceptually more high level than anything in C - that's what I meant.
- sausagefeet 14y agoThere is a big difference between implementing them for fun and implementing them for a production system. Regardless, even if they are simple to implement they are more than what C90 has so, by definition, more complex implementation.
- kragen 14y agoThey're a lot simpler than printf, strxfrm, or mktime, all of which are in C90!