Space Frugal Reflection (Dart Developer Summit 2015)

2,855 views · Published 28 April 2015 · 23:50 · Indexed 28 October 2026

Channel: Google for Developers · 2015 · Science & Technology

Watch on YouTube

Dynamic languages define the culture of web programming, and Dart web programming tends to use reflection. However, static analysis of reflection is difficult, and hence very little can be omitted from programs via tree shaking during compilation. Consequently, the size of dart2js-generated code causes performance problems during software download and startup. Reflectable is an upcoming package with a transformer that empowers programmers to statically specify how they use reflection, based on metadata. Reflection can then be avoided entirely; it is replaced by a statically generated, customized version of the reflection library, resulting in a considerably smaller compiler output.

Watch more from the 2015 Dart Summit here: https://www.youtube.com/playlist?list=PLOU2XLYxmsIIQorIS8gagUiMau9S84vZV

More from this channel