r/ProgrammingLanguages • u/AustinVelonaut Admiran • Feb 17 '26
Blog post Bidirectional Computation using Lazy Evaluation
https://github.com/taolson/Admiran/blob/main/doc/Lazy.md
33
Upvotes
r/ProgrammingLanguages • u/AustinVelonaut Admiran • Feb 17 '26
View all comments
Show parent comment
2
u/AustinVelonaut Admiran Feb 18 '26
I'm undecided, right now. I initially went with the "manual dictionary" approach as described in Scrap Your Typeclasses to be able to get Admiran self-hosted without having to add a lot of complexity to the typechecker, but intended to eventually add typeclasses, or some equivalent form of ad-hoc polymorphism that would allow common equality/comparison operators across all types, generic functor/applicative/monads, etc. However, after self-hosting and writing a lot of other Admiran code, I don't find the absence of typeclasses that onerous, and it allows a full HM typechecker in only 458 SLOC. So I'm still looking for that happy balance of simplicity / ease of use.