Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ackfoobar
on June 12, 2024
|
parent
|
context
|
favorite
| on:
The Swift compiler is slow due to how types are in...
"Does type X have an implementation for typeclass Y" isn't always easy to answer.
https://aphyr.com/posts/342-typing-the-technical-interview
tines
on June 12, 2024
[–]
That post, while awesome (as is the rest of aphyr's stuff), is a lot to wade through to get to the point you're trying to convey. Can you spell it out for me?
ackfoobar
on June 12, 2024
|
parent
[–]
That typeclass resolution can encode some heavy computation, the example being n-queens in the article.
tines
on June 12, 2024
|
root
|
parent
[–]
That's only the case when you turn on the "enable arbitrary computation in typeclasses" flag, so I'd say it's not much of a worry.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://aphyr.com/posts/342-typing-the-technical-interview