glittery
|
7 years ago
|
on: Was ditching the headphone jack a good idea?
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 easier to connect to devices. The only point that makes any sense to me is that wireless headphones are better for exercise, but why would Apple remove the audio jack just to indirectly improve the state of wireless audio for when people exercise?
glittery
|
7 years ago
|
on: Why Rust closures are somewhat hard
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 (as withoutboats said in another comment.)
glittery
|
7 years ago
|
on: Why Rust closures are somewhat hard
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't this a recipe for executable bloat?
glittery
|
7 years ago
|
on: Why Rust closures are somewhat hard
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.