News for hackers. Stuff that matters.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by jjnoakes on Tuesday May 07, 2019 @06:28PM (#19854024)
The sizes closer to 100MB seem to be from debug builds. From the bug you linked (and this one which it links to: https://github.com/flutter/flutter/issues/16833), bare flutter apps are around 4MB on Android.

Doesn't seem bad to me.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Hixie on Tuesday May 07, 2019 @07:20PM (#19854370)
(I'm the Flutter TL.)

According to today's benchmark numbers, we're at 4414KB on Android and 8572KB on iOS (IIRC, iOS encrypts before compressing so it can't get as good a compression).

This is for our Hello World test app (https://github.com/flutter/flutter/blob/master/examples/hell...), which is more or less the smallest app you can imagine building with Flutter unless you bypass the entire framework and only use the engine directly.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by cornstalks on Tuesday May 07, 2019 @07:40PM (#19854503)
Fellow Googler here. I think it’s best to report those numbers with the appropriate SI prefix: 4.414 MB and 8.572 MB. Reporting numbers as “X thousand kilobytes” makes it harder to grok the real scale.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by zaroth on Tuesday May 07, 2019 @09:08PM (#19854993)
Pardon me making a joke at your expense cornstalks, but...

Is this what a culture that AB tests 34 shades of blue looks like?

I think we can handle the conversion here in the HN comment section!

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by abacadaba on Tuesday May 07, 2019 @09:37PM (#19855165)
fwiw, when i saw the prefix and no commas i subconsciously assumed it was under 1000KB and read it wrong, until that comment made me take another look.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by typeformer on Wednesday May 08, 2019 @02:38AM (#19856398)
Ha, at first I thought "cornstalks" was a new slang reference for Googlers and was just over my head.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by zaroth on Wednesday May 08, 2019 @03:45PM (#19862200)
Well if it wasn’t, it certainly is now. Thanks for that typeformer.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Faark on Wednesday May 08, 2019 @09:10AM (#19858475)
Also please be aware not all locals use "." as thousands separator. About half of the world [0], including we here in Germany, actually uses the dot as decimal separator. Thus your number "4.414 MB" actually looks confusingly close like ~4.41 GB to me on first sight. An easy way to avoid this is to not rounding to three digits after your only dot or comma.

[0] https://en.wikipedia.org/wiki/Decimal_separator#Arabic_numer...

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by Hixie on Wednesday May 08, 2019 @01:30AM (#19856100)
Sorry, I just copied and pasted the number as it appears on our benchmark page. :-)
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by skybrian on Tuesday May 07, 2019 @07:52PM (#19854586)
Hmm, encrypting before compressing seems like a pretty strange decision. How does that happen?
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by stock_toaster on Wednesday May 08, 2019 @01:44AM (#19856162)
I believe the literature says that compress before encrypt is less secure, because compression behaves predictably. See CRIME attacks.
Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by skybrian on Wednesday May 08, 2019 @03:30AM (#19856640)
But, why compress at all then? It won't do anything.

I'm not sure this is a good enough reason to never compress anything.

Re:Flutter: a Portable UI Framework for Mobile, Web, Embedde... by e12e on Wednesday May 08, 2019 @05:38PM (#19863233)
Maybe they encrypt with rot13. Compression should work on such a "ciphertext"...