4 ms·
>Computing for ever. We use C to avoid writing assembly. Use Java to avoid writing C. Use Python to avoid writing Java. Yeah, but until Electron and they like,
by coldtea 10y ago
>Computing for ever. We use C to avoid writing assembly. Use Java to avoid writing C. Use Python to avoid writing Java.
Yeah, but until Electron and they like, we seldom shipped desktop apps in anything than C, C++, Delphi etc even after all those decades. Which are all as close to the metal as can be. And in fact C/C++ can be as fast, or even faster than hand-rolled assembly most of the time (with few exception), so the whole premise is moot.
The few Java desktop apps that were around, people used to hate as memory hogs.
- sametmax 10y agoYou bet ? I have 3 software opened right now using Python for their GUI: my rss reader, my torrent downloader and dropbox. And I got many more installed on my machine. But the thing is, even when I write something for myself, I first write a command line app, then a web service. Never a GUI, because it's such pain.
- weberc2 10y agoTo be fair, your "Python GUI apps" are a very thin wrapper around C/C++ libraries.
- sametmax 10y agoOf course. Electron is just a layer around the chrome compiled engined as well. If you want anything to display a matrix of pixels changing rapidly, you need low level performances eventually.
- weberc2 10y agoOf course, but in your case, the C/C++ libraries you're calling into aren't doing any heavy lifting, they're just making calls to an X server (or equivalent) or perhaps to a graphics card. There's no reason GTK (or the GUI portion of Qt) couldn't be implemented in Python, it's just a huge undertaking and it was started in C (or C++ as the case may be).
- mpweiher 10y agoActually, I've been shipping desktop apps in Objective-C for roughly a quarter of a century. Gets me the high-level, Smalltalk-ish productivity when I want it (most of the time) and the low-level C efficiency when I need it (sometimes). Having my cake and eating it, that's me :-)
- sametmax 10y agoBut can you make a website with the same knowledge ? Can you make it portable to other OS ? Can you reuse 20 years of knowledge, resources and libs ? Can you hire tomorrow 10 experts to help you on it ? Quality of the tech is NOT the drive for success here. You are missing the point.
- coldtea 10y ago>Quality of the tech is NOT the drive for success here. You are missing the point. Well, maybe it's better to miss the point, than to succeed by selling crap to people who deserve better? When are technies gonna stand up for quality of tech?
- sametmax 10y agoOh I do agree, it's just the debate is all about being a critic of electron instead of providing viable alternative.
- nilliams 10y ago> When are technies gonna stand up for quality of tech? When the user notices a quality difference?
- sametmax 10y agoPeople used crashy, buggy, slow software for years. Photoshop and Office lost you data on a regular basis in the 2000's. Windows BSD was a common occurrence then. We didn't see a massive exodus to Mac products because of that. The only reason people started to go crazy for Apple was after the iPod came out. And even then, it was still a small part of the market. You can see everyday that people favor cheapness, easiness and convenience over quality. You would not have so much junk food otherwise.
- Touche 10y agoC# has been the default way to write Windows apps since the early 2000s. It is no more "closer to the metal" than JavaScript.
- coldtea 10y ago>C# has been the default way to write Windows apps since the early 2000s. No, it really hasn't. It was just the way Microsoft proposed businesses to write bloated internal enterprise apps, what they used to use VB for. Those are not the same as desktop apps -- and no, or very very few, desktop apps, ever turned to C#. Not even MS own apps, like Office, and surely nothing like Abobe's or countless others. >It is no more "closer to the metal" than JavaScript. Actually it very much is: it is statically typed, it has scalar types and contiguous memory allocation that allow for much better speeds (hence the effort to add some of those things asm.js and the like for Javascript), and it even has AOT compilation. Besides, it's not JS itself that's the problem (though it took millions and top notch teams to make it fast): it's the web stack on top of it. C# just runs on a thin CLR VM layer -- and the graphics are native.
- city41 10y agoA large portion of Visual Studio is written in C#.
- LeoNatan25 10y agoBy "large", you mean some of the UI using WPF, the plugin system supporting C# and some of NuGet?. Not that those are small projects, but considering what is inside Visual Studio, they are hardly "large portions" of Visual Studio.
- Touche 10y ago> Those are not the same as desktop apps I mean, if you're going to say Windows Forms and WPF apps are not "desktop apps" then you're going to have to do a lot more than just declare that they aren't. > Actually it very much is: it is statically typed, it has scalar types and contiguous memory allocation that allow for much better speeds (hence the effort to add some of those things asm.js and the like for Javascript), and it even has AOT compilation. You're just listing ways that they are different. They both run in a virtual machine that abstracts away the actual machine. You know, the metal in the phrase "close to the metal."
- douche 10y agoThere's probably, line for line, more VB6 desktop apps in existence than any other language. And that's not just because of how verbose VB is...
- nickpsecurity 10y agoHey, I used to use it! :P I came from BASIC background. VB6 was supposedly good for rapid prototyping of GUI apps (esp CRUD variety). I found it would boot up in 1 second, deploy new project in 1 second, and load new app in 1 second. It was also safer so no constant blue screens over common functionality. It also could wrap foreign code in less safe languages which I could still write in an industrial BASIC. One could also export the GUI to code in different language. Became one of my favorite toys. I'd still use it for GUI prototyping if it was FOSS and kept getting extended. I found even lay people could learn it well enough to get stuff done. Long after, I learned what horrible things lay people did with it. Yet, they got work done and got paid without the IT budget and staff they would've preferred. (shrugs)
- Arizhel 10y ago>And in fact C/C++ can be as fast, or even faster than hand-rolled assembly most of the time (with few exception) This is generally true, but to be fair the reason is because we design CPUs differently these days. Modern CPUs use instruction sets that are specifically designed to work well with compilers, and aren't meant to be programmed in hand-coded assembly except for a few critical bits deep within OS code. Older CPUs weren't like this. It still might be possible to write hand-rolled assembly that beats modern compilers, but you probably need to have seriously super-human mental abilities to do it.
- gpderetta 10y ago> the reason is because we design CPUs differently these days. Modern CPUs use instruction sets that are specifically designed to work well with compilers You got the causality wrong. Assembly programmer-friendly CPUs died because CPUs which weren't as friendly were faster and cheaper; those same CPUs were instead more amenable as compiler targets.