TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Type tailoring – adding domain-specific type checkers to a typed host language

28 pointsby Learn2winabout 8 years ago

1 comment

tonygabout 8 years ago
This is such a cool idea.<p>One potential application is doing something like F#&#x27;s type providers for typed access to a SQL database.<p>You could use `trivial` to get fully typed SELECT statements integrated with Typed Racket.<p>In fact, Ben has already done some thinking along these lines: section 3.6 of <a href="http:&#x2F;&#x2F;www.ccs.neu.edu&#x2F;home&#x2F;types&#x2F;cv&#x2F;failures&#x2F;icfp-2016-reject.pdf" rel="nofollow">http:&#x2F;&#x2F;www.ccs.neu.edu&#x2F;home&#x2F;types&#x2F;cv&#x2F;failures&#x2F;icfp-2016-reje...</a> sketches out the idea, and there is some stubbed-out code in the `trivial` git repo waiting to be dusted off.