News for hackers. Stuff that matters.
Re:I can't keep up with idiomatic Rust by lmm on Sunday April 12, 2020 @09:54AM (#22848256)
Being polymorphic over ownership is the most important problem Rust should be looking to solve, IMO: it would make a lot of other problems trivial. I don't necessarily think it's easy, but I do think it's tractable.

The choice to focus on GATs is exactly what I was thinking of. I think Rust will come to regret it, as it comes with most of the costs of full HKT but leads one into working with a limited subset that's not so theoretically well-founded, and I'm not convinced the forward-compatibility is as good as claimed (the semantics may extend to full HKT, but it pushes syntax in a direction that seems likely to make for a frustrating syntax for full HKT). I hope it ends up working out.

Re:I can't keep up with idiomatic Rust by steveklabnik on Sunday April 12, 2020 @12:04PM (#22849090)
How are GATs any less theoretically well founded than HKT?

I can see how maybe working toward that would be a priority in a PLT research sense, but Rust isn't that kind of language anymore. (This is my own opinion and I'm not on the lang team, mind you.)

Re:I can't keep up with idiomatic Rust by lmm on Monday April 13, 2020 @06:15AM (#22854500)
> How are GATs any less theoretically well founded than HKT?

I'm not aware of their having been studied to the same extent, so I don't have the same level of confidence that they are well-behaved. For example, is there a known algorithm for doing perfect type inference in the presence of GAT? What about when we add in subtyping, or higher-rank types? Maybe it's all going to be fine, but the further you stray from the path that's been trodden by PLT research, the more I'd worry about falling down a hole.

Re:I can't keep up with idiomatic Rust by steveklabnik on Monday April 13, 2020 @09:24AM (#22855604)
Gotcha. My understanding was that they were, but not my area of expertise.