An unofficial, read-only Hacker News reader.

Optimizing Rustc's next trait solver (opens external site)

107 points by g0xA52A2A 3 days ago | donsz.nl | 8 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. It's interesting how much of the next gen compiler improves borrow heavily from logic programming. I don't know if any other compilers that have made the connection to logic programming as explicit as rustc.
    Replies (4)
    1. > I don't know if any other compilers that have made the connection to logic programming

      Which other compilers do you know?

    2. type systems correspond to logics so this tends to be how it goes
    3. I mean any compiler that has a typeclass system basically does the same, since there is quits a deep connection between the two.

      Of course any theorem prover will have an even deeper connection to logic in it's compiler and we've been building those since the 70s.

    4. If you name it constraint based programming, it all makes more sense.