4 ms·
> It's possible in Go, unlike many scripting languages, to write in an allocate-up-front style that doesn't generate garbage, in pretty much exactly the same w
by pconner 10y ago
> It's possible in Go, unlike many scripting languages, to write in an allocate-up-front style that doesn't generate garbage, in pretty much exactly the same way you'd do it in C
I am very interested in this. Do you have any links with more info?
- greenleafjacob 10y agohttps://www.youtube.com/watch?v=N3PWzBeLX2M https://www.youtube.com/watch?v=N3PWzBeLX2M
- jerf 10y agoBasically, the link would be the language spec. Go's structs are "value types". Until you deliberately take a pointer or access them through an interface, they're just structs, like C. It also has real arrays. In many ways, Go is like a scripting language, but it does let you do some systems-like things in a way that Python or Perl or the other similar languages completely don't.