Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m not sure there’s anything clever that resolved the issues, they just settled on slow execution times by accepting a dynamic dispatch on generics.




Not according to this post:

> Go generics combines concepts from "monomorphisation" (stenciling) and "boxing" (dynamic dispatch) and is implemented using GCshape stenciling and dictionaries. This allows Go to have fast compile times and smaller binaries while having generics.

https://deepsource.com/blog/go-1-18-generics-implementation


Yes, note lack of mention of speed :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: