Msp101

Building Resource-Dependent EDSLs in a Dependently-Typed Language

Today, I gave an extended talk about Resource Dependent EDSLs in a Dependently Typed Language at the MSP101 Seminar Series of the MSP Group at the University of Strathclyde. This was joint work with Wim Vanderbauwhede, and Edwin Brady.

While many people use dependent types for theorem proving some of us like to use dependent types for building, and running, safer programs.

Idris’ Effects library demonstrates how to embed resource dependent algebraic effect handlers into a dependently typed host language, providing run-time and compile-time based reasoning on type-level resources. Building upon this work, Resources is a framework for realising EDSLs with type systems that contain domain specific substructural properties. Differing from Effects, Resources allows a language’s substructural properties to be encoded within type-level resources that are associated with language variables. Such an association allows for multiple effect instances to be reasoned about autonomically and without explicit type-level declaration. We use type-level predicates as proof that a language’s substructural properties hold.

A Type-System for describing the Structural Topology of System-on-a-Chip Architectures.

In February, I gave a talk about my work on the Border Patrol at the University of Strathclyde’s, School of Computing and Information Sciences MSP 101.

This was a fun talk to prepare and deliver as the MSP101 talks are traditionally Chalk&Talk. Hopefully, I was able to convince the group that I was working on something interesting.

The protocols that describe the interactions between IP Cores on System-on-a-Chip architectures are well-documented. These protocols described not only the structural properties of the physical interfaces but also the behaviour of the emanating signals. However, there is a disconnect between the design of SoC architectures, their formal description, and the verification of their implementation in known hardware description languages.