Please log in to watch this conference skillscast.
In this talk we present a practical theory of language-integrated query based on quotation and normalisation of quoted terms.
How best to blend a domain-specific language into a host language? For the domain of databases, the old question of how to achieve language integrated query is receiving renewed attention, in part because of its support through Microsoft's LINQ framework. Higher-order features prove useful even for constructing first-order queries. We prove a theorem characterising when a host query is guaranteed to generate a single SQL query, and we present experimental results confirming our technique works, even in situations where Microsoft's LINQ framework either fails to produce an SQL query or, in one case, produces an avalanche of SQL queries. Our ideas are implemented in F#, and the talk briefly considers how they might apply to other languages such as Scala and Haskell.
YOU MAY ALSO LIKE:
- Fast Track to F# with Tomas Petricek & Phil Trelford (in London on 6th - 7th December 2018)
- Lightbend Scala Language - Professional (in London on 11th - 12th December 2018)
- Scala eXchange London 2018 - Europe's Largest Annual Scala Conference (in London on 13th - 14th December 2018)
- Lightbend Scala Language - Expert (in London on 13th - 15th March 2019)
A practical theory of language-integrated query
Philip Wadler has contributed to the designs of Haskell, Java, and XQuery, and is a co-author of XQuery from the Experts (Addison Wesley, 2004) and Generics and Collections in Java (O'Reilly, 2006).