Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
glittery
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
glittery
8y ago
Not sure I understand - wired headphones are much cheaper to manufacture, are inherently higher quality (they'll always have less loss and less latency), can fit just as well, don't have batteries to begin with, and are much easie
2.
▲
by
glittery
8y ago
Unboxed closures aren't any harder to reason about than boxed closures, and any function that accepts an unboxed closure accepts a boxed closure, too, which is why library authors should almost always prefer accepting unboxed closures
3.
▲
by
glittery
8y ago
One thing that's always concerned me about Rust is that everyone mononorphizes everything (e.g. closures are always unboxed except in the rare cases where dynamic dispatch is necessary). Hopefully this is a baseless fear, but isn'
4.
▲
by
glittery
8y ago
Closures have known size at compile-time, so they can be stored anywhere at all, although their types can't be named yet, so I don't think they can be stored in static memory.