Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coherent level of dictionary #4

Open
mizunashi-mana opened this issue Feb 25, 2020 · 1 comment
Open

coherent level of dictionary #4

mizunashi-mana opened this issue Feb 25, 2020 · 1 comment

Comments

@mizunashi-mana
Copy link
Owner

mizunashi-mana commented Feb 25, 2020

coherence ~ global uniqueness

  • no coherence (but non-ambiguity)
  • unchecked coherence
    • compiler does not check
    • compiler rely coherence to optimize
  • checked coherence

References

  1. White, L., Bour, F., & Yallop, J. (2015). Modular implicits. Electronic Proceedings in Theoretical Computer Science, 198, 22–63. https://doi.org/10.4204/EPTCS.198.2
    • The OCaml case
  2. SCHRIJVERS, T., OLIVEIRA, B. C. D. S., WADLER, P., & MARNTIROSIAN, K. (2019). COCHIS: Stable and coherent implicits. Journal of Functional Programming, 29, e3. https://doi.org/10.1017/S0956796818000242
    • The calculus with implicit system focusing coherence
  3. Edward Z. Yang. Type classes: confluence, coherence and global uniqueness. http://blog.ezyang.com/2014/07/type-classes-confluence-coherence-global-uniqueness/
    • The summary of Haskell's type classes
  4. Winant, T., & Devriese, D. (2018). Coherent explicit dictionary application for Haskell. ACM SIGPLAN Notices, 53(7), 81–93. https://doi.org/10.1145/3299711.3242752
    • An extensions of Haskell for explicit dictionary application with coherence
  5. Dotty's Issue. What kind of typeclass coherence should we support?. What kind of typeclass coherence should we support? scala/scala3#4234
    • A discussion for Dotty (Scala 3)
  6. Rust's dicussion. Orphan rules. https://internals.rust-lang.org/t/orphan-rules/1322
    • A diccusion of orphan instances for Rust
@mizunashi-mana
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant