Aside from API, there's a convincing performance argument to have len() return the byte count rather than number of utf8 characters. The implementation of strings in Go is a 2-word struct containing a pointer to the…
It's definitely possible to access unallocated memory e.g., // p points to address 1000 p := (*int)(unsafe.Pointer(uintptr(1000))) Of course, this is why use of the unsafe package is heavily discouraged.
If only Scala compilation weren't so slow. This is a bit off topic, but I find the difference between Scala and Go to exemplify some of the fundamental tradeoffs in the languages. Scala is certainly the more researchy…
I think the contrast between mindfulness and mindlessness is more apt than that of thinking and non-thinking. I consider his call to non-thinking to be more hyperbolic than anything else. I believe the primary goal is…
Aside from API, there's a convincing performance argument to have len() return the byte count rather than number of utf8 characters. The implementation of strings in Go is a 2-word struct containing a pointer to the…
It's definitely possible to access unallocated memory e.g., // p points to address 1000 p := (*int)(unsafe.Pointer(uintptr(1000))) Of course, this is why use of the unsafe package is heavily discouraged.
If only Scala compilation weren't so slow. This is a bit off topic, but I find the difference between Scala and Go to exemplify some of the fundamental tradeoffs in the languages. Scala is certainly the more researchy…
I think the contrast between mindfulness and mindlessness is more apt than that of thinking and non-thinking. I consider his call to non-thinking to be more hyperbolic than anything else. I believe the primary goal is…