Type safety analysis for dart

Publikation: Bidrag til bog/antologi/rapport/proceedingKonferencebidrag i proceedingsForskningpeer review

7 Citationer (Scopus)
150 Downloads (Pure)

Abstract

Optional typing is traditionally viewed as a compromise between static and dynamic type checking, where code without type annotations is not checked until runtime. We demonstrate that optional type annotations in Dart programs can be integrated into a flow analysis to provide static type safety guarantees both for annotated and non-annotated parts of the code. We explore two approaches: one that uses type annotations for filtering, and one that uses them as specifications. What makes this particularly challenging for Dart is that its type system is unsound even for fully annotated code. Experimental results show that the technique is remarkably effective, even without context sensitivity: 99:3% of all property lookup operations are reported type safe in a collection of benchmark programs.

OriginalsprogEngelsk
TitelDLS 2016 - Proceedings of the 12th Symposium on Dynamic Languages
RedaktørerRoberto Ierusalimschy
Antal sider12
ForlagAssociation for Computing Machinery
Publikationsdato1 nov. 2016
Sider1-12
ISBN (Trykt)978-1-4503-4445-6
ISBN (Elektronisk)9781450344456
DOI
StatusUdgivet - 1 nov. 2016
BegivenhedSPLASH 2016: Systems, Programming, and Applications - Amsterdam, Holland
Varighed: 30 okt. 20164 nov. 2016
http://2016.splashcon.org/

Konference

KonferenceSPLASH 2016
Land/OmrådeHolland
ByAmsterdam
Periode30/10/201604/11/2016
Internetadresse

Fingeraftryk

Dyk ned i forskningsemnerne om 'Type safety analysis for dart'. Sammen danner de et unikt fingeraftryk.

Citationsformater