lazear/types-and-programming-languages
소개
Exercises from Benjamin Pierce's "Types and Programming Languages" textbook + extras!
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaltypes-and-programming-languages
Several Rust implementations of exercises from Benjamin Pierce's "Types and Programming Languages" are organized into different folders, as described below:
arithis an implementation of the untyped lambda calculus extended with simple numeric operationslambdais an implementation of the untyped lambda calculus as presented in chapter 5, 6, and 7.typedarithis thearithproject extended with simple types:NatandBoolstlcis an implementation of the simply typed lambda calculus, as discussed in chapters 9 and 10 of TAPL. This simply typed calculus has the types,Unit,Nat,Bool,T -> T(arrow), andRecordtypes.reconcontains several implementations of Hindley-Milner based type reconstruction from the untyped lambda calculus to System F, with let-polymorphism. Both Algorithm W (the more common) and Algorithm J (the more efficient) are presented. For Alg. W, both a naive equality constraint solver, and a faster union-find (with path compression) solver are provided. Algorithm J makes use shared mutable references to promote type sharing instead.system_fcontains a parser, typechecker, and evaluator for the simply typed lambda calculus with parametric polymorphism (System F). The implementation of System F is the most complete so far, and I've tried to write a parser, typechecker and diagnostic system that can given meaningful messagessystem_fwcontains a parser for a high-level, Standard ML like source language that is desugared into an HIR, and then System F-omega. This extendssystem_fwith type operators and higher-kinded types. This is where most of the ongoing work is located, as I'd like to make this the basis of a toy (but powerful, and useable) programming language. Ideally we will have some form of bidirectional type inference. Work on this has accidentally turned into a full fledged SML compiler, so it's likely that I will roll back the work on the system_fw project to just type checkingbidiris is an implementation of the bidirectional typechecker from 'Complete and Easy Bidirectional Typechecking', extended with booleans, product, and sum types. I make no claims on the correctness of the implementation for the extended features not present in the paper.dependentis WIP, implementing a simple, dependently typed lambda calculus as discussed in ATAPL.
관련 프로젝트 살펴보기
불러오는 중…