User loginNavigation |
archivesType inference and unification algorithmsI am trying to build a simple DSL in scheme. I would like this DSL to use type inference to constrain s-expressions to only those that are provably type correct. My type scheme is fairly simple. I would like to have the following basic polymorphic types (at least for starters. This will likely expand later): datum number real int char bool In addition, I would like to support functions (all curried to a single param), lists and intersections of types, so that types like (-> int char) and (intersection (list-of int) char) can be supported. Strings will be lists of char for my DSL. I know the way to do this is to use a type unification algorithm. Unfortunately, all the docs I can find on this subject seem to be very much research oriented and way over my head since I do not grasp the basic concepts here. I am wondering if anyone has some pointers to some good type inference tutorial level stuff that I might be able to get a good grasp of the basic principles and algorithm from. Missing style for <quote>?
At the bottom of the comment input form, <quote> is mentioned as an allowed tag. Is it just my setup, or does it not work? I don't seem to see quotation marks nor a change of appearance of the enclosing text. Here's an example:
The quick brown fox jumps over the lazy dog. Derivatives and dissections of data typesThe Derivative of a Regular Type is its Type of One-Hole Contexts by Conor McBride was mentioned on LtU several times. If you enjoyed it, try a new paper by the same author: More generic programming, more parallels between data types and calculus, more fun. As usual for Conor's paper, it's short and full of (sometimes obscure) humor. Beware of typos, though. By Andris Birkmanis at 2007-01-03 21:35 | Functional | Type Theory | 18 comments | other blogs | 19386 reads
D 1.0 finally releasedWalter Bright's D programming language 1.0 was released today! A sampling of its many great features: Garbage collection http://www.digitalmars.com/d/changelog.html Cheers. |
Browse archivesActive forum topics |
Recent comments
22 weeks 12 hours ago
22 weeks 16 hours ago
22 weeks 16 hours ago
44 weeks 1 day ago
48 weeks 3 days ago
50 weeks 1 day ago
50 weeks 1 day ago
1 year 4 days ago
1 year 5 weeks ago
1 year 5 weeks ago