Re:Facebook Launches Flow, Static Type Checker for JavaScript
by avik on Wednesday November 19, 2014 @06:14PM
(#8633320)
Yes, so the conclusion one might draw is that if your code is implicitly typed, it will run fast as well as probably do well when run through a static type checker.
Re:Facebook Launches Flow, Static Type Checker for JavaScript
by discreteevent on Wednesday November 19, 2014 @08:10AM
(#8629755)
That's the basic principle Dart is founded on. (hardly surprising when the Dart authors are the same people who did V8)
(ref this absolutely fascinating paper
http://bibliography.selflanguage.org/_static/implementation....
and this piece of V8 dox quoting the aforementioned paper
https://developers.google.com/v8/design)
It seems that adding a type system to a dynamic language has little real drawbacks compared to designing language and type system at the same time, for both performance and type safety considerations.