4 ms·
It's odd to see the "just 20MB" phrasing. I guess even native applications have expanded to the point where 20MB seems small, but in absolute terms I still cons
by userbinator 6y ago
It's odd to see the "just 20MB" phrasing. I guess even native applications have expanded to the point where 20MB seems small, but in absolute terms I still consider that quite large --- to put things into perspective, a full installation of Windows 3.11, the OS with all of its included applications, is less than 20MB.
I wonder if, in another 20 years, we may see people speaking of "just 20GB"...
- watermelon0 6y agoI think this is in comparison with 200M+ Electron executable, which is nowadays bundled with almost every 'native' app. Do you want to flash image to USB drive? There is Electron app (balenaEtcher) for that. Do you want to control your mouse/keyboard? There is Electron app for that (Logitech GHub), which also includes many Qt libraries. Do you want a terminal emulator? There is an Electron based app for that. ...
- stu2b50 6y agoIt's unfortunate that traditional desktop GUI frameworks are such an abysmal developer experience that everything from FOSS made by 1 person in their spare time to the cornerstone of multi-billion dollar companies choose to embed a web browser into their desktop app instead. Qt is the best I've seen, but it has the normal c++ FUD plus the infamous licensing FUD. And honestly, I'll have to admit that how react models GUIs is a really attractive.
- einpoklum 6y ago> Qt is the best I've seen, but it has the normal c++ FUD Not sure what you mean exactly; C++ is complex, but why the fear and doubt? Also - Qt is based on veeery old C++ - a 22-year-old standard. The language has changed significantly since then, while Qt's fundamental design (in terms of programming) - not really, or not much. So, Qt is not "normal C++" these days.
- bmn__ 6y agoSimply add https://github.com/woboq/verdigris https://github.com/woboq/verdigris so you can use C++ ≥ 14.
- slavik81 6y agoThe moc is not the issue. The biggest design problem with Qt is that it predates move semantics. That history affects the design of almost every class. It feels like a beautiful old walking path that detours around a wall that's long since been torn out. It's still fine... but... it's not how you'd design it if you were to start from scratch.
- bscphil 6y ago> It's odd to see the "just 20MB" phrasing. I agree with you, although one thing worth pointing out is that with Qt (or similar) application frameworks on any decent operating system, you only have to download those libraries once, which means the individual overhead of an application remains extremely low. For example, the LXQT default terminal, qterminal, comes in a package that is only 200 KB on Arch Linux, for the entire thing. (To be fair it directly depends on a library that provides a terminal widget, which is another 200 KB.)
- slavik81 6y agoIIRC, the single biggest component of that 20MB is the ICU Unicode library. It may be double the size of Windows 3.11, but it supports multiple languages.
- imtringued 6y agoI'm always amazed by its size when I have to pull that library in as a dependency.
- jcelerier 6y ago> but in absolute terms I still consider that quite large --- to put things into perspective, a full installation of Windows 3.11, the OS with all of its included applications, is less than 20MB. that really depends on the application though. say you want to make a media player, you likely want to embed FFMPEG and that alone will be heavier than windows 3.11 because there are so many codecs today. Likewise for an image editor, you're gonna have to pack a whole lot of image format encoders / decoders. Also note that Qt can basically run as-is on top of a linux kernel, directly rendering to the framebuffer and doing everything itself so it'll mechanically be a bit heavier than something like wx which uses the OS widget APIs instead.... but won't be able to run in place where there are no "OS widget APIs" (that is, 99.9% of embedded platforms), while Qt has that as a main market.
- userbinator 6y agoyou likely want to embed FFMPEG and that alone will be heavier than windows 3.11 because there are so many codecs today. Likewise for an image editor, you're gonna have to pack a whole lot of image format encoders / decoders. As someone who has written some video and image decoders --- 20MB is still very large. Minimal-complexity H.261 through H.263 decoders are in the "dozens of KB" range, and optimisations in Asm are unlikely to make them that much bigger. ffdshow, an all-in-one codec that can decode and encode a few dozen formats, is 2MB and that not only includes code that does the real work, but also the COM-based bloat of the DirectShow API it uses. A GIF decoder is a few KB. JPEG is also roughly the same, maybe slightly bigger, and PNG is around that size too. Also note that Qt can basically run as-is on top of a linux kernel, directly rendering to the framebuffer and doing everything itself So does Windows (on top of DOS.)
- krapp 6y agoBear in mind the current standard is Electron, where the average size of an app is ~120Mb.