5 ms·
Having just installed SolveSpace, a parametric 3D CAD tool which includes a solver in 1.9 MB, I can't help but feel a bit sad when a minimal Markdown editor is
by StavrosK 10y ago
Having just installed SolveSpace, a parametric 3D CAD tool which includes a solver in 1.9 MB, I can't help but feel a bit sad when a minimal Markdown editor is a 34 MB file :(
I wonder if there's a better option for crossplatform apps than Electron. Maybe Rust? Or Python+PyQT?
- ovao 10y agoStill less than Google's site for the new Pixel [1] :) [1] https://tools.pingdom.com/#!/ckhRCy/pixel.google.com https://tools.pingdom.com/#!/ckhRCy/pixel.google.com
- truncate 10y agoI would like to see what is the size of this page in countries with slower internet.
- mzehrer 10y agoI would guess they don"t care. These countries are not exactly the target market for such a expensive phone.
- tvararu 10y agoIt costs $2.60 to view the website in Canada with non-retina images. Source: https://whatdoesmysitecost.com/test/161007_QR_78c23294113b6c95811fd521859f820a https://whatdoesmysitecost.com/test/161007_QR_78c23294113b6c...
- whocanfly 10y ago97.7% of which is images. Also, PageSpeed gives it a 48/100 on desktop.
- kup0 10y agoWhy the heck are they using PNG for a large photo panorama? That's 5MB right there for one image.
- voltagex_ 10y agoI think we've lost the binary size battle, just as we've lost the bandwidth battle. I agree, there has to be a better way, but development convenience is being prioritised.
- dorfsmay 10y agoAnd we've lost the dynamic library battle. I understand why but can't help being saddened by it, it was such an elegant solutions.
- SkyMarshal 10y agoElegant in theory maybe, rough in practice.
- marssaxman 10y agoI'm really glad we're finally starting to win the dynamic library battle; it was a kludgey fix for a transient storage bottleneck that has been plaguing us with unnecessary complication for at least a decade now. Predictability is a good thing.
- ge0rg 10y agoIt's not such a good thing to have to update each and every application whenever there is a vulnerability in a library.
- nightski 10y agoMeh, I feel like it is even better because even if you could update the library indvidually you have no idea about the ramifications of such an update and what potential other vulnerabilties/bugs doing so will uncover.
- z3t4 10y agoYou could install the electron or nw.js runtime separately and then just download/distribute a compressed file with the JavaScript source code. Witch would be smaller then most programs.
- bajsejohannes 10y agoWhile I agree and upvoted you, I think the realistic answer is that the alternative to this 34 MB editor is no editor like this at all. The author made what they wanted with the tools they knew.
- tomtomtom777 10y agoYou seem to be contradicting yourself. If the binary size is big because of the (lack of) tools the author knows, the alternative to this is an editor made by someone who knows tools that don't bloat the binary.
- croon 10y agoHe's not. This exists because the tools existed to enable the author to make this in a reasonable timeframe/effort. If something better/smaller exists, use it. If it doesn't exist, it might be because making it smaller requires tools that take more effort/time to use and thus no one has bothered. I've traditionally liked crapping on bloated software too, but have come to realize that the plethora of software is fine and I can use whatever I like and abstain from what I dislike. The simple fact is that the alternative to bloated software is a subtraction of that software. And sometimes they happen to be useful, despite their size.
- muthdra 10y agoThanks for sharing this point of view, man.
- tomtomtom777 10y agoI am not really crapping on bloat. I am merely correcting the point that the only alternative is no editor at all.
- croon 10y agoOn your first point; alright, then my mistake. But my comment was really in response to your second line here. I disagreed with your assertion. The alternative is that this editor doesn't exist, meaning "no editor at all" with this specific featureset/design/etc. And if this editor is better than a less bloated editor, why shouldn't it exist?
- zem 10y agoi wish D had good, complete qt bindings. it seems like the best option for a new standard compile-to-native desktop gui app language. i have a personal preference for ML-family languages, but i think those have already lost the war for mindshare; D on the other hand is solidly C-family and therefore familiar, but is a way more pleasant language than C++.
- shakna 10y agoD's binaries still aren't small[0], what with including the entire prelude without code elimination. Sure, they seem tiny alongside Electron, but a giant doesn't look big next to Jupiter. Nim competes in the same space, and seems to hit this problem a whole lot nicer. [1] [0] http://forum.dlang.org/thread/yhcopkgdkhclbkfpisut@forum.dlang.org#post-mailman.1228.1379073533.1719.d.gnu:40puremagic.com http://forum.dlang.org/thread/yhcopkgdkhclbkfpisut@forum.dla... [1] https://hookrace.net/blog/nim-binary-size/ https://hookrace.net/blog/nim-binary-size/
- duaneb 10y agoI do agree with everything you said, but a) I'd still rather the giant than jupiter and b) Nim still has a long way to go to prove itself. Just like D, it is in the awkward position of being high performance without fully addressing either the performance or safety concerns of the preceding languages. This may be an acceptable tradeoff but neither have any killer features that make it an obvious good fit for a given problem. Rust has memory safety-like, actual memory safety-and go has utter simplicity. What is the Nim two word pitch? Small binaries isn't going to win anyone; that's what deflate is for. Meanwhile, you don't have the language stability and, erm, prudent design that D has hammered out for over a decade. Even if I don't agree with the decisions I can't say D has executed poorly. Nim though? Who knows! I've never seen it in production, so I can't tell the downfalls!
- shakna 10y agoAbsolutely agree on a. I think the popularity of Electron is a travesty. I live in Australia, but despite it being a first world nation, the Internet speed is miserable and bandwidth is precious. (I pay $50 a month for 100gb, at 1.5mbms). Size still matters. I do quite like D and the structured process of developing the language they use. But I also find it incredibly depressing that Nim has a better optimising compiler.
- fitzwatermellow 10y agoSolveSpace looks exactly like the sort of "user-unfriendly" tools I build for myself and am absolutely personally productive on but would never release to the general public. Maybe I need to re-think this ;) That said I'm getting back into GUI editors. Anaconda for research computing. And Atom for text and code. Including Markdown. The advantage is Atom's module system. 5000+ third-party creations. Including really edge cases. That, I believe, is due to the reach of JS/HTML/CSS.
- StavrosK 10y agoIt's very very not user-unfriendly. I finished the tutorial in 20 minutes and it was very intuitive and exciting!
- dvcrn 10y agoThat's a good question. If I want to write a cross-platform tool I wouldn't know what to choose either (besides electron that is). Maybe Xamarin?
- aoloe 10y agoQt is not bad. I got interested in libui (https://github.com/andlabs/libui https://github.com/andlabs/libui), but it stalled a bit, after a couple of months of very promising activity.
- cpplinuxdude 10y agoVery different beasts. :) Writing CAD software can be done with a surprisingly small number of libraries, which is not at all withe case when it comes to typesetting.
- StavrosK 10y agoReally? That's very surprising to me. Doesn't the OS include everything required to display text already?
- creshal 10y agoGo+QML worked okay-ish for me in a few brief tests. While Go tends to make large-ish binaries, it's not nearly as bad as Electron.
- mixedCase 10y agogo-qml and forks don't support Go >1.6 due to the cgo breakage; some manage to compile, but with a memory leak. There's github.com/therecipe/qt which is a full Qt binding (not just QML). You have to set-up a proper dynamic linking build process if you don't want 100MB binaries though, and the bindings require a default Qt installation or a folder full of symlinks to fake one if your Linux distro splits Qt in different folders.
- wiz21c 10y agoPython+Qt is very nice to program with. Portability is nice between Windows and Linux (that's my experience) But binary size is big :-) The Qt libs are not exactly small nor is the python interpreter.
- mintplant 10y agoYep, I was stunned when I realized the total distribution size for a tiny script I wrote that used numpy+scipy would run over 300mb. And here I thought Electron apps were big...