3 ms·
The other issue with Python in the browser is that the significant whitespace requirement prevents minification, which would bloat download size.
by ben336 11y ago
The other issue with Python in the browser is that the significant whitespace requirement prevents minification, which would bloat download size.
- dragonwriter 11y agoSignificant whitespace (in all languages, really, its a difference of degree rather than kind) constrains, but does not prevent, minification. (Idiomatic python code can be reduced by three chars per indentation level on each line with no impact on semantics, and of course other transformations that aren't whitespace elimination that are past of minification are unaffected.) Heck, there are existing python minification tools.
- klibertp 11y agoAlso, with SourceMaps you could provide compiled Python code (.pyc), which is already heavily minified.