Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lagom
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
lagom
13y ago
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 start of the string
2.
▲
by
lagom
14y ago
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.
3.
▲
by
lagom
14y ago
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 language with an advan
4.
▲
by
lagom
14y ago
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 really that of focus w