News for hackers. Stuff that matters.
Re:Ask HN: Is there still a place for native desktop apps? by jrockway on Sunday May 17, 2020 @04:45PM (#23215291)
Native desktop apps are great.

The reason that people don't write them is because users aren't on "the desktop". "The desktop" is split between OS X and Windows, and your Windows-app-compiled-for-Mac is going to annoy Mac users and your Mac-app-compiled-for-Windows is going to annoy Windows users. Then you realize that most users of computing devices actually just use their phone for everything, and your desktop app can't run on those. Then you realize that phones are split between Android and iOS, and there is the same problem there -- Android users won't like your iOS UI, and iOS users won't like your Android UI. Then there are tablets.

Meanwhile, your web app may not be as good as native apps, but at least you don't have to write it 6 times.

Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @05:39PM (#23215732)
> Meanwhile, your web app may not be as good as native apps, but at least you don't have to write it 6 times.

I must be living in a parallel world because I use a ton of desktop apps that aren't "written 6 times" - and write a few, including a music & other things sequencer (https://ossia.io).

Just amongst the ones running on my desktop right now, Strawberry (Qt), Firefox (their own toolkit), QtCreator (Qt), Telegram Desktop (Qt), Bitwig Studio (Java), Kate (Qt), Ripcord (Qt), all work on all desktop platforms with a single codebase. I also often use Zim (GTK), which is also available on all platforms, occasionnally Krita (Qt) and GIMP (GTK), and somewhat rarely Blender. Not an HTML DOM in sight (except FF :-)).

Re:Ask HN: Is there still a place for native desktop apps? by _bxg1 on Sunday May 17, 2020 @08:26PM (#23216877)
In my experience Java GUIs are consistently even more laggy and unresponsive than Electron apps. They may be lighter in terms of memory, but they never feel lighter. Even IntelliJ and family - supposedly the state of the art in Java apps - feel like mud on a brand-new 16" Macbook Pro.
Re:Ask HN: Is there still a place for native desktop apps? by mnm1 on Monday May 18, 2020 @02:13AM (#23218949)
Lighter in terms of memory? No way. Intellij is always at a few gb per instance. They are indeed laggy as hell. With the latest Mac os intellij products specifically bring down the entire os for ten to twenty minutes at a time requiring a hard reboot without which the cycle starts again. Except it's not java or intellij, it's the os. I only wish they were electron apps. That way I wouldn't have to return a $4400 brand new 16" mbpro because of its constant crashing due to horrible native apps. All apps can be shitty. At least electron ones are cross platform, work, and generally do not bring the whole system to a standstill followed by a hard crash. While using about the same resources as electron apps.
Re:Ask HN: Is there still a place for native desktop apps? by eyegor on Sunday May 17, 2020 @10:13PM (#23217502)
Interestingly they seem to run exactly the same on horribly low spec machines. I blame the jvm's love for boxing and unboxing everything in IL land. Of course by now I'd hope it's less wasteful - last I spent serious time in Java was 2015.
Re:Ask HN: Is there still a place for native desktop apps? by nv-vn on Monday May 18, 2020 @12:34AM (#23218391)
I've definitely noticed the same on IntelliJ but weirdly enough Eclipse feels just fine. IIRC both are written in Java, so maybe it comes down to the design of IntelliJ moreso than the limitations of the JVM?
Re:Ask HN: Is there still a place for native desktop apps? by _bxg1 on Monday May 18, 2020 @01:24AM (#23218677)
I used Eclipse for a while before switching to IntelliJ around ~2015 and it actually seemed like a vast improvement, not just in terms of features but in terms of performance. It still wasn't "snappy", but I figured I was doing heavy work so that was just how it was.

Fast-forward 5 years and I've been doing JS in VSCode for a while. My current company offered to pay for Webstorm so I gave it a try. Lo and behold it was still sludgy, but now unbearable to me because I've gotten used to VSCode.

The one other major Java app I've used is DBeaver, which has the same problem to an even greater degree. Luckily I don't have to use it super often.

Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:18AM (#23220555)
Eclipse interestingly uses native controls which it hooks up to Java, while IntelliJ draws everything essentially.
Re:Ask HN: Is there still a place for native desktop apps? by karmakaze on Monday May 18, 2020 @02:21PM (#23226344)
I work daily in a codebase with 20M lines and RubyMine can still search near-instantly compared to say VS Code. One thing that's still true is that there are sometimes long pauses, presumably garbage collection, or I suspect more likely bugs as changing window/input focus can sometimes snap out of it.
Re:Ask HN: Is there still a place for native desktop apps? by LgWoodenBadger on Monday May 18, 2020 @11:48AM (#23223928)
If that's the case regarding IntelliJ then you probably haven't changed the jvm heap size, which is defaulted to something very small (2GB maybe) by IntelliJ.
Re:Ask HN: Is there still a place for native desktop apps? by nicoburns on Sunday May 17, 2020 @09:19PM (#23217200)
QT is excellent, but C++ is quite a tough pill to swallow for many. Especially as QT layers a macro system on top. I predict that native desktop apps will make a comeback when there's QT-quality cross-platform framework in a more approachable language (Rust, nim, or similar).
Re:Ask HN: Is there still a place for native desktop apps? by searchableguy on Sunday May 17, 2020 @10:11PM (#23217483)
Re:Ask HN: Is there still a place for native desktop apps? by soraminazuki on Sunday May 17, 2020 @11:31PM (#23218026)
Why not use Qt bindings for $YOUR_LANGUAGE_OF_CHOICE? https://wiki.qt.io/Language_Bindings
Re:Ask HN: Is there still a place for native desktop apps? by mjevans on Monday May 18, 2020 @05:33AM (#23220264)
It's rather clunky and often requires writing like C++ in whatever language of choice you're using, the worst of both worlds.

I wonder what an API with both only C (or some other low level) bindings and designed to be easy to use externally might look like.

Re:Ask HN: Is there still a place for native desktop apps? by kdot on Tuesday May 19, 2020 @12:16AM (#23231229)
Flutter for desktop solves this.
Re:Ask HN: Is there still a place for native desktop apps? by 1cvmask on Sunday May 17, 2020 @09:29PM (#23217243)
Your subdomain http://forum.ossia.io/ lacks an ssl certificate for the login mask.

You can get wildcard ssl certificates for your domain and all subdomains from Letsencrypt.

Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Monday May 18, 2020 @03:37AM (#23219424)
Thanks for the info, gonna check.. we already have a cert, no clue what's missing precisely in the config, how can I try ?
Re:Ask HN: Is there still a place for native desktop apps? by elbear on Monday May 18, 2020 @06:06AM (#23220478)
Configure your HTTP server to serve that subdomain from HTTPS. Here's an example using nginx:

https://linuxize.com/post/redirect-http-to-https-in-nginx/

Re:Ask HN: Is there still a place for native desktop apps? by abiogenesis on Sunday May 17, 2020 @11:41PM (#23218082)
...or just use CloudFlare, which will automatically take care of it.
Re:Ask HN: Is there still a place for native desktop apps? by avmich on Sunday May 17, 2020 @06:19PM (#23216020)
Do you count Qt apps as native, but not count web apps as native? Why?
Re:Ask HN: Is there still a place for native desktop apps? by AsyncAwait on Sunday May 17, 2020 @06:22PM (#23216042)
Qt may not 'look' native, but it has native performance, whereas Electron really doesn't.
Re:Ask HN: Is there still a place for native desktop apps? by userbinator on Sunday May 17, 2020 @08:08PM (#23216763)
The difference between "Qt native" and "native native" (e.g. Win32 or Cocoa) is still noticeable if you pay attention, although it's not quite as obvious as between Electron and the former.

(Likewise, applications using the JVM may also look very convincingly like native ones, but you will feel it as soon as you start interacting with them.)

Re:Ask HN: Is there still a place for native desktop apps? by nv-vn on Monday May 18, 2020 @12:37AM (#23218408)
Is it really even worth highlighting though? I use Telegram Desktop (Qt) daily and it is always, 100% of the time completely responsive. It launches basically instantly the second I click the icon and the UI never hangs or lags behind input to a noticeable degree. If we transitioned to a world where everyone was writing Qt instead of Electron apps we would already have a huge win.
Re:Ask HN: Is there still a place for native desktop apps? by catblast on Monday May 18, 2020 @10:38PM (#23230794)
If you're using KDE, Qt is "native native".

You're fundamentally mistaken about where Qt sits in the stack - it effectively sits in the same place as USER32/WinForms in Windows or NS/Cocoa GUI widgets of OSX. It is reasonable to think of it as an alternative native GUI library in that sense. If it is slower, it's because an implementation of something is slower, not because of where it lives or an abstraction cost.

Qt pretty much draws using low-level drawing APIs on the respective platform. And although Qt itself is not written in the most performance sensitive C++, it is still orders of magnitude faster than most (and it's not like Chrome doesn't pay overhead) - people rag on vtable dispatch speed but jeez its still orders of magnitude faster than something like ObjC which served Apple quite well for years.

The performance of a Qt app is more likely a function of the app itself and how the app developers wrote it.

But no, you're not noticing any micro-seconds differences in C++ overhead for Qt over "native native" - and you're basically comparing the GUI code of the platform - since Qt does it's own rendering. Win32 is mostly pretty good, NS is a mixed bag, and Gtk+ is basically a slug. In all cases there is some kind of dynamic dispatch going on, because that is a fundamental pattern of most GUI libraries. But dynamic dispatch is almost never a factor in GUI render performance. Things like recalculating sizes for 1 million items in a table on every repaint are the things that get people into trouble, and that is regardless of GUI library.

Re:Ask HN: Is there still a place for native desktop apps? by outside1234 on Sunday May 17, 2020 @07:21PM (#23216460)
VSCode is indistinguishable from native, so not sure its Electron that's at fault here.
Re:Ask HN: Is there still a place for native desktop apps? by keb_ on Sunday May 17, 2020 @08:22PM (#23216845)
This gets said a lot, and granted VSCode is certainly one of the best performing Electron apps, but it definitely is not indistinguishable from native apps. Sublime, Notepad++, or TextAdept all fly compared to VSCode in terms of performance and RAM efficiency.
Re:Ask HN: Is there still a place for native desktop apps? by fiddlerwoaroof on Sunday May 17, 2020 @09:39PM (#23217301)
On Mac, VSCode does a better job than many apps at emulating the Cocoa text input systems but, like every electron app, it misses some of the obscure corners of cocoa text input system that I use frequently.

If we’re going to use JavaScript to write native apps, I’d really like to see things like React Native take off: with a good set of components implemented, it would be a first class environment.

Re:Ask HN: Is there still a place for native desktop apps? by AlchemistCamp on Sunday May 17, 2020 @07:32PM (#23216543)
No. I like VS Code but it's a hog.

I still use Macvim or even Sublime Text a lot for speed reasons, especially on large files.

Re:Ask HN: Is there still a place for native desktop apps? by andai on Sunday May 17, 2020 @07:31PM (#23216525)
If your native apps are indistinguishable from VSCode, they're doing something wrong.
Re:Ask HN: Is there still a place for native desktop apps? by voltagex_ on Sunday May 17, 2020 @08:16PM (#23216803)
Start Notepad++ or https://github.com/rxi/lite and then compare the startup speed with VSCode.
Re:Ask HN: Is there still a place for native desktop apps? by drngdds on Sunday May 17, 2020 @08:22PM (#23216843)
I use VS Code daily (because it seems to be the only full-featured editor that Just Works(TM) with WSL), but it can get pretty sluggish, especially with the Vim plugin.
Re:Ask HN: Is there still a place for native desktop apps? by dep_b on Monday May 18, 2020 @03:52AM (#23219548)
Try to use AppleScript or Accessibility. It's like VS Code doesn't even exists.
Re:Ask HN: Is there still a place for native desktop apps? by eyegor on Sunday May 17, 2020 @10:16PM (#23217522)
If I recall correctly, Microsoft forked their own version of electron to make vs code feel more snappy. Because normal electron runs like slack.
Re:Ask HN: Is there still a place for native desktop apps? by RMPR on Tuesday May 19, 2020 @05:10AM (#23232865)
I don't think so, Microsoft wanted to fork electron in the past to replace Chromium with edgeHTML, but it didn't happen. VSCode is powered by Monaco Editor github.com/microsoft/monaco-editor, and VSCode feels snappier than let's say Atom, probably because of Typescript.
Re:Ask HN: Is there still a place for native desktop apps? by meritt on Sunday May 17, 2020 @11:55PM (#23218158)
Try opening a moderately large (even 2MB) .json file in VSCode, and then do the same in sublime.

VSCode very quickly freezes because it cannot handle a file that size. Sublime not only opens it but syntax highlights immediately.

Re:Ask HN: Is there still a place for native desktop apps? by inapis on Monday May 18, 2020 @04:33AM (#23219856)
This is something with your configuration. OOB VSCode will immediately show you the file but disable tokenization and certain other features. I regularly open JSON files upto 10 MB in size without any problem. You probably have plugins which impede this process.
Re:Ask HN: Is there still a place for native desktop apps? by thawaway1837 on Sunday May 17, 2020 @06:54PM (#23216282)
Isn’t that more of an Electron issue?

I mean, is anyone clamouring for VS Code, for example, to be rewritten in native toolkits?

Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @07:32PM (#23216542)
I would argue that the web platform is one of the most optimised and performant platforms for apps.
Re:Ask HN: Is there still a place for native desktop apps? by wolco on Sunday May 17, 2020 @08:03PM (#23216742)
When you say web platform do you mean a browser? Using a browser is the mosted optimised and performant over installing an application on your desktop?

Curious what desktop do you run your browser under?

I would give you an example of a simple video split application. A web platform requires uploading, downloading and slow processing. A local app would be hours quicker as the data is local.

Re:Ask HN: Is there still a place for native desktop apps? by cglong on Sunday May 17, 2020 @09:21PM (#23217210)
No reason a video splitting app couldn't be written with client-side JS.
Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:21AM (#23220567)
That sounds like it’d probably be slow.
Re:Ask HN: Is there still a place for native desktop apps? by boomlinde on Monday May 18, 2020 @06:39AM (#23220698)
So please do.
Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @06:31PM (#23216116)
a few reasons :

- Qt is actually the native toolkit of multiple operating systems (Jolla for instance and KDE Plasma) - you just need to have a Linux kernel running and it handles the rest. It also does the effort of going to look for the user theme for widgets to mix in with the rest of the platform, while web apps completely disregard that.

- Windows has at least 4 different UI toolkits now which all render kinda differently (win32, winforms, wpf, the upcoming winui, whatever is using Office) - only Win32 is the native one in the original sense of the term (that is, rendering of some stuff was originally done in-kernel for more performance). So it does not really matter on that platform I believe. Mac sure is more consistent, but even then ... most of the apps I use on a mac aren't cocoa apps.

- The useful distinction for me (more than native and non-native) is, if you handle a mouse event, how many layers of deciphering and translation has it to go through, and are these layers in native code (eg. compiled to asm). As it reliably means that user interaction will have much less latency than if you have to go through interpreted code, GC, ...

Of course you can make Qt look deliberately non-native if you want, but by default it tries its best - see https://code.woboq.org/qt5/qtbase/src/plugins/platforms/coco... and code such as https://code.woboq.org/qt5/qtbase/src/plugins/platforms/wind...

Re:Ask HN: Is there still a place for native desktop apps? by irishcoffee on Sunday May 17, 2020 @07:20PM (#23216453)
Knowing what I know about Qt and what I've done with it in my day job, it's basically the best kept secret on hn. What they're doing with 6+licensing... I'm not sure how I feel, but from a pure multi-platform framework it really is the bees knees.

I've taken c++ qt desktop apps that never had any intention of running on a phone, built them, ran them, everything "just worked. I was impressed.

Re:Ask HN: Is there still a place for native desktop apps? by hoseja on Monday May 18, 2020 @03:28AM (#23219376)
I just wish it weren't stuck, anisotropically, ~10 years in the past. Maybe Qt6 will be better, but more likely it will be more and more QML.
Re:Ask HN: Is there still a place for native desktop apps? by RMPR on Tuesday May 19, 2020 @05:14AM (#23232879)
Since QML uses Javascript it may be their best bet to attract new developers.
Re:Ask HN: Is there still a place for native desktop apps? by hoseja on Tuesday May 19, 2020 @08:07AM (#23233923)
Yes, well, QML also uses JavaScript.
Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Sunday May 17, 2020 @07:01PM (#23216337)
This is not really accurate. Qt relies on a lower level windowing system (X Window, Wayland, Cocoa, win32 etc. etc.).

Also worth noting that many creation-centric applications for the desktop (graphics, audio, video etc. etc.) don't look "native" even when they actually are. In one case (Logic Pro, from Apple), the "platform leading app from the platform creator" doesn't even look native!

Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @07:36PM (#23216568)
> This is not really accurate. Qt relies on a lower level windowing system (X Window, Wayland, Cocoa, win32 etc. etc.).

Qt also supports rendering directly on the GPU (or with software rendering on the framebuffer) without any windowing system such as X11 or Wayland - that's likely how it is most commonly used in the wild, as that's one of the main way to use it on embedded devices.

Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Sunday May 17, 2020 @08:49PM (#23217024)
I'd like to see it do that on macOS ...

You're seriously suggesting that the common use of Qt on Linux systems is direct rendering without the windowing system?

Re:Ask HN: Is there still a place for native desktop apps? by gwillz on Sunday May 17, 2020 @09:06PM (#23217116)
Not parent, but yes, sort of.

Arguably it's use in embedded contexts is much larger than desktop. It's quite popular for in-car computers, defense systems, etc.

For desktop linux, yes, it uses the windowing system.

Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Monday May 18, 2020 @03:31AM (#23219392)
Well, yes. I can't tell too much because of NDAs but if you go buy a recent car there is a good chance that all the screens are rendered with Qt on Linux or a RTOS - there is likely more of those than desktop linux users as much as this saddens me
Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:23AM (#23220587)
On macOS Qt doesn’t really use Cocoa, it use Quartz/CoreGraphics (the drawing rather than the application layer). Note that Apple’s pro apps are native controls with a UI theme: they usually behave like their unthemed counterparts.
Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Wednesday May 20, 2020 @12:54AM (#23243406)
I had meant to write Quartz, not Cocoa.

I know how Qt works at that level. I did a bunch of work in the mid-naughts on the equivalent stuff in GTK.

Re:Ask HN: Is there still a place for native desktop apps? by rattray on Sunday May 17, 2020 @07:31PM (#23216531)
> Qt relies on a lower level windowing system

That's true of QtWidgets, but not QML / Qt Quick (the newer tool), correct? (I found this hard to determine online).

Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @08:01PM (#23216728)
Kinda - QML is a programming language, Qt Quick is an UI scene graph (with the main way to use it being through QML) which also "renders everything" and makes by default less effort than widgets to look like the OS.

But :

- QML can be used with other graphics stack - for instance Qt Widgets like with https://www.kdab.com/declarative-widgets/ or alternatives to the official Qt Quick controls with https://github.com/uwerat/qskinny or with completely custom rendering like here with NanoVG : https://github.com/QUItCoding/qnanopainter

- QtQuick Controls can be made to use the same style hints than the desktop with https://github.com/KDE/qqc2-desktop-style

Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @07:36PM (#23216561)
What does “native” even mean?

Put a <button/> in an HTML page and you get a platform-provided UI widget.

Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Sunday May 17, 2020 @08:51PM (#23217035)
It's not platform-provided in my experience, but browser provided. The result of <button/> when viewed in a browser on macOS has no relation to the Cocoa API in any meaningful sense.
Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @09:39PM (#23217300)
I'm pretty sure that when you render just a <button> in at least Safari, the browser will render a native Cocoa button control. If you set a CSS property like background colour or change the border, then it will "fall back" to a custom rendered control that isn't from the OS UI.

I did a small bit of research into this, and found plenty of "anecdotal" evidence, but nothing confirming for sure. I'm looking and interacting with the controls and they seem pretty native - if they're a recreation than that's pretty impressive :)

Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:24AM (#23220595)
The drawing is native and the interaction is handled by the browser.
Re:Ask HN: Is there still a place for native desktop apps? by slightwinder on Monday May 18, 2020 @05:29AM (#23220241)
A GUI is a collection of elements with specific look and behaviour. A Desktop Environment is a collection of GUI(s), tools and services. Native means you have something which follows this look and behaviour 100% and can utilize all the tools and services.

Implementing the look is simple, adding behaviour quite harder and utilizing the service the endgame. WebUI usually does nothing from those or some parts, it all depends on the constellation. But usually there is a obvious difference at some point where you realize whether something is native or just made an attempt.

Re:Ask HN: Is there still a place for native desktop apps? by mjevans on Monday May 18, 2020 @05:35AM (#23220280)
I'd also love for Mac and Windows to make it really easy to get a vendor blessed version of QT installed.

Imagine if when trying to run a QT app on Windows a dialog box could popup saying. "Program X is missing the Y, install from the Windows Store (for free): Yes / No"

Re:Ask HN: Is there still a place for native desktop apps? by nitrogen on Sunday May 17, 2020 @06:40PM (#23216177)
Ossia looks pretty sweet! I'll be checking that out for sure.
Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @07:48PM (#23216646)
thanks ! it's still kinda in alpha but making progress :)
Re:Ask HN: Is there still a place for native desktop apps? by guggle on Sunday May 17, 2020 @05:59PM (#23215890)
Bitwig has been ported to Android ? Or IOS ?
Re:Ask HN: Is there still a place for native desktop apps? by jcelerier on Sunday May 17, 2020 @06:02PM (#23215910)
I don't think it makes sense to use it on even small laptops screen to be honest so I don't really see the point. You'd have to redo the UI and whole paradigm entirely anyways for it to be meaningful on small devices. But there is certainly not any obstacle to porting - from my own experience with ossia & Qt, it is fairly easy to make iOS and Android builds, the difficulty is in finding a proper iOS and Android UX.

In particular C++ code works on every machine that can drive a screen without too much trouble - if the app is built in C++ you can at least make the code run on the device... just have to make something pretty out of it afterwards.

Re:Ask HN: Is there still a place for native desktop apps? by guggle on Sunday May 17, 2020 @06:49PM (#23216252)
The point is that the parent poster mentioned tablets and phones which you don't address in your point. Of course your examples aren't written 6 times, but they support fewer platforms too (only desktop).

Off-topic, but regarding Bitwig: of course it makes perfect sense to use it on smaller devices. Not phones, but tablets. It's even officially supported with a specific display profile in your user interface settings (obvious target amongst others: windows surface). This is particularly useful for musicians on stage.

Re:Ask HN: Is there still a place for native desktop apps? by ninjakeyboard on Sunday May 17, 2020 @06:20PM (#23216033)
I still can't believe bitwig is java. I'm a bitwig user. It even runs on linux.
Re:Ask HN: Is there still a place for native desktop apps? by effie on Sunday May 17, 2020 @07:11PM (#23216403)
Only small part, the core is C++ and assembly.

https://www.reddit.com/r/Bitwig/comments/4c2zoh/what_program...

Re:Ask HN: Is there still a place for native desktop apps? by hawaiianbrah on Sunday May 17, 2020 @06:57PM (#23216304)
Wasn’t that Java’s original selling point, it runs anywhere (there’s a JVM)?
Re:Ask HN: Is there still a place for native desktop apps? by suyash on Monday May 18, 2020 @12:11AM (#23218240)
Yes, today you can use JavaFx to build cross platform desktop apps.
Re:Ask HN: Is there still a place for native desktop apps? by hawaiianbrah on Sunday May 24, 2020 @01:07AM (#23289267)
Sounds like that’s the Java Swing replacement for the same thing you could do over a decade ago?
Re:Ask HN: Is there still a place for native desktop apps? by ubercow13 on Sunday May 17, 2020 @06:58PM (#23216314)
Only part of it will be Java, probably the UI logic layer
Re:Ask HN: Is there still a place for native desktop apps? by IvanK_net on Sunday May 17, 2020 @06:57PM (#23216303)
I think he did not mean "written 6 times", but more like Compiled 6 times, with 6 different sets of parameters, and having to be tested on 6 different devices.
Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Sunday May 17, 2020 @06:58PM (#23216316)
Because you NEVER have to do that with browsers, right?
Re:Ask HN: Is there still a place for native desktop apps? by colordrops on Sunday May 17, 2020 @07:32PM (#23216540)
You don't have to sign and deploy your web app six times.
Re:Ask HN: Is there still a place for native desktop apps? by Kipters on Sunday May 17, 2020 @09:57PM (#23217397)
You have to do it anyway if you're using Electron
Re:Ask HN: Is there still a place for native desktop apps? by colordrops on Wednesday May 20, 2020 @01:35PM (#23249557)
That's not a web app then.
Re:Ask HN: Is there still a place for native desktop apps? by Kipters on Wednesday May 20, 2020 @06:39PM (#23252834)
Isn't it? The UI is rendered using web technologies inside a specialized browser and it's written in a web-specific language. I might consider an electron app an hybrid app (that leans heavily towards the web side), but for sure not a native app
Re:Ask HN: Is there still a place for native desktop apps? by irishcoffee on Sunday May 17, 2020 @07:01PM (#23216336)
CI/CD + uh... doing your job? I build one app (same codebase) on 4 different platforms often, it isn't terribly hard.
Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @07:38PM (#23216578)
I don’t know, I think they did mean that.

You write an app for the Mac... how do you ship on Windows as well?

Re:Ask HN: Is there still a place for native desktop apps? by tpush on Sunday May 17, 2020 @05:21PM (#23215593)
Concerning the desktop, I honestly don't see Windows users caring much about non-native UIs. Windows apps to this day are a hodgepodge of custom UIs. From driver utilities to everyday programs, there's little an average Windows user would identify as a "Windows UI". And even if, deviations are commonplace and accepted.

Linux of course doesn't have any standard toolkit, just two dominant ones. There's no real expectation of "looking native" here, either.

Which leaves macOS. And even there, the amount of users really caring about native UIs are a (loud and very present online) minority.

So really, on the Desktop, the only ones holding up true cross-platform UIs are a subset of Mac users.

Re:Ask HN: Is there still a place for native desktop apps? by ahmedfromtunis on Sunday May 17, 2020 @05:41PM (#23215749)
During my days of Windows-exclusive computing, I wondered what people meant by native UIs, and why do they care about them. My wondering stopped when I discovered Mac OS and, to a lesser extent, Ubuntu (especially in the Unity days). Windows, with its lack of visual consistency, looked like a hot mess compared to the aforementioned platforms.

And now that I think about it, would this made it easier, even by an infinitesimal amount, for malware to fool users, as small deviations in UI would fail to stand out?

Re:Ask HN: Is there still a place for native desktop apps? by atombender on Sunday May 17, 2020 @06:50PM (#23216257)
I don't know exactly what time period you're referring to, but back when Java was attempting to take over the desktop UI world with Swing, it was painfully obvious when an app wasn't native on Windows. Eclipse was the first Java app I used that actually felt native, thanks to its use of native widgets (through a library called SWT) instead of Swing.
Re:Ask HN: Is there still a place for native desktop apps? by bigbizisverywyz on Monday May 18, 2020 @07:42AM (#23221112)
As far as I know, you can even write your own applications based on SWT which would make jvm apps pretty consistent and performant across platforms, but not many people seem to have chosen that route for some reason.
Re:Ask HN: Is there still a place for native desktop apps? by pessimizer on Sunday May 17, 2020 @06:35PM (#23216145)
> And now that I think about it, would this made it easier, even by an infinitesimal amount, for malware to fool users, as small deviations in UI would fail to stand out?

I don't think that's how fraud works in actuality; malicious actors will pay more attention to UI consistency than non-malicious actors (who are just trying to write a useful program and not trying to sucker anyone), inverting that signal.

Re:Ask HN: Is there still a place for native desktop apps? by nitrogen on Sunday May 17, 2020 @06:42PM (#23216189)
I don't know, I've read that e.g. spam will not focus on grammatical accuracy because they want to exclude anyone who pays attention to details. Also most fake Windows UIs from malicious websites I used to see weren't exact matches of the native UI.
Re:Ask HN: Is there still a place for native desktop apps? by ebj73 on Sunday May 17, 2020 @05:49PM (#23215825)
I think this has changed. People used to be very particular about how their apps looked on different native platforms, like you say. But I don't think it's like that anymore. People are more agnostic now, when it comes to how user interfaces look, because they've seen it all. Especially on the web, where there's really no rules, and where each new site and web app looks different. I believe this also carries over to native apps, and I think there's much more leeway now, for a user interface to look different from the native style, as long as it adheres to any of the general well established abstract principles for how user interface elements ought to behave.
Re:Ask HN: Is there still a place for native desktop apps? by mokus on Sunday May 17, 2020 @07:43PM (#23216609)
Speaking for myself only, I haven’t changed my preference, I’ve just given up hoping that any company gives a shit about my preference.
Re:Ask HN: Is there still a place for native desktop apps? by bradleyjg on Sunday May 17, 2020 @09:38PM (#23217293)
The other thing is that I trust the web browser sandbox. If I have to install something I’m a lot more paranoid about who wrote and whether it’s riddled with viruses.
Re:Ask HN: Is there still a place for native desktop apps? by fartcannon on Sunday May 17, 2020 @04:55PM (#23215398)
And therefore, beware any OS attempts to break cross platform browser compatibility.

Also I think you can deploy to all those things with Qt.

Re:Ask HN: Is there still a place for native desktop apps? by camccar on Sunday May 17, 2020 @04:59PM (#23215427)
And pay QT like 5,000 $ a year to keep it closed source. No thank you. Would rather write it 6 times. Or just use electron.
Re:Ask HN: Is there still a place for native desktop apps? by roblabla on Sunday May 17, 2020 @05:32PM (#23215666)
Qt is LGPL licensed is it not? LGPL license means you can distribute your app closed source, so long as the user can swap out the Qt implementation. This usually just means dynamic linking against Qt so the user can swap the DLL. The rest of your app can be kept closed source.

On iOS and Android the situation might be a bit more complicated, but this discussion[0] seems to say that dynamically linking would also work there.

[0]: https://wiki.qt.io/Licensing-talk-about-mobile-platforms

Re:Ask HN: Is there still a place for native desktop apps? by api on Sunday May 17, 2020 @05:57PM (#23215869)
Qt doesn't require that but even if it did writing it 6 times is vastly more expensive. People would just rather spend 500k on writing it 6 times than 5k on a license because they are somehow offended at the notion of paying for dev software or tooling.

It's a major reason UI coding sucks. There is no incentive for anyone to make it not suck, and the work required to build a modern UI library and tooling is far beyond what hobbyist or spare time coders could ever attempt.

Re:Ask HN: Is there still a place for native desktop apps? by detaro on Sunday May 17, 2020 @06:45PM (#23216222)
Qt is mostly LGPL. It's really not that hard to comply with that on desktop, and doesn't require you opening your source code.
Re:Ask HN: Is there still a place for native desktop apps? by camccar on Sunday May 17, 2020 @08:25PM (#23216864)
It’s hard to satisfy the requirements in various app stores. They also sneak in more restrictive licenses in their graphs
Re:Ask HN: Is there still a place for native desktop apps? by Narishma on Sunday May 17, 2020 @05:31PM (#23215658)
AFAIK you only have to pay if you modify Qt itself and don't want to release those changes.
Re:Ask HN: Is there still a place for native desktop apps? by thrower123 on Sunday May 17, 2020 @06:29PM (#23216099)
Targeting Windows alone gets you 90% of the desktop market. 95% if you make it run reasonably in Wine. This argument is often used, but it's an excuse.

Anything that you need to run on a desktop can't be used effectively on a touch screen anyway, so phones and tablets don't really count for serious software. (Writing this comment is stretching the bounds of what I can reasonably do on an IPhone).

Re:Ask HN: Is there still a place for native desktop apps? by smileysteve on Sunday May 17, 2020 @11:37PM (#23218060)
95% of a market that has shrunk nearly 50% over the last decade.

In many ways, the consumer and non specialty business are post desktop. Turns out documents, email, and other communication apps cover 90% of use cases. Anything that requires major performance gets rendered in a cloud and delivered by these other apps.

Re:Ask HN: Is there still a place for native desktop apps? by riquito on Monday May 18, 2020 @03:25AM (#23219351)
You live in a bubble, Windows still dominates desktop (obviously, most people can't afford a Mac and the year of Linux on desktop has not come yet)

https://gs.statcounter.com/os-market-share/desktop/worldwide

Re:Ask HN: Is there still a place for native desktop apps? by monadgonad on Monday May 18, 2020 @04:30AM (#23219831)
They're not refuting that. They agreed that it's "95% of the market." Their point is that the overall desktop has shrunk, regardless of Windows's share of that.
Re:Ask HN: Is there still a place for native desktop apps? by smileysteve on Monday May 18, 2020 @02:54PM (#23226850)
Note: People questioning the stats

https://www.statista.com/statistics/272595/global-shipments-...

Note that this data is missing phones.

2010: 157mm Desktops, 201mm Laptops sold 2019 forecast; 88.4 + 166mm

Or, perhaps better, is in terms of internet use https://www.broadbandsearch.net/blog/mobile-desktop-internet...

Mobile went from 16.2% to 53% of traffic since 2013; nearly 4 fold. Which means since 2013, non mobile usage went from 84% to 47%; or nearly 50%

Re:Ask HN: Is there still a place for native desktop apps? by Strom on Monday June 01, 2020 @02:39PM (#23382068)
Shippments of desktops/laptops doesn't tell the whole story. I'm still using a 2009 desktop (with some upgraded components) and wouldn't show up on any of those stats. Similar story for a lot of my friends. They still use desktops/laptops daily, but they don't replace them as often as in the 2000s.
Re:Ask HN: Is there still a place for native desktop apps? by ksk on Monday May 18, 2020 @03:46PM (#23227461)
What do you consider as a specialty business? There are hundreds of millions of professionals - scientists, engineers, accountants, animators, content creators, visual artists, chip design folks, folks writing drivers for equipment, photographers, musicians, manufacturing folks, etc who simply cannot earn a living without native apps. Sure, maybe when those people go home, they don't always need native apps, but IMHO its a mistake to only think about them in such a narrow scope.
Re:Ask HN: Is there still a place for native desktop apps? by smileysteve on Tuesday May 19, 2020 @01:49PM (#23237878)
You name several that are speciality businesses and are part of that 10%.

But there are definitely examples within Accountants, Animators, and Musicians where Phones, Tablets, and Chromebooks (not specialty desktop apps) have taken over the essential day to days.

For animators; the Ipad VS. Surface face off is a great example -- also where they offload concepts to "the cloud" to render instead of a Mac Pro.

Re:Ask HN: Is there still a place for native desktop apps? by ksk on Wednesday May 20, 2020 @03:09PM (#23250546)
Well, I am not talking about examples, I'm talking about entire industries. For e.g., There is absolutely no way for my industry (vaccine r&d) to any work without native apps. Even for animators, no native apps = no pixar. Maybe you were thinking of some other kinds of animation. I don't disagree that you can find small examples here and there of people not needing native apps in any industry.
Re:Ask HN: Is there still a place for native desktop apps? by fomine3 on Monday May 18, 2020 @03:51AM (#23219546)
really shrunk?
Re:Ask HN: Is there still a place for native desktop apps? by gindely on Monday May 18, 2020 @06:15PM (#23229021)
Lots of people use an android or an iPhone as their main computer nowadays. If you're targeting keyboard/mouse style input, then Windows is probably close to as popular as ever. But if you're targeting people using some kind of device to access your service in exchange for money, Windows is wasting your time.
Re:Ask HN: Is there still a place for native desktop apps? by smileysteve on Monday May 18, 2020 @02:48PM (#23226767)
Re:Ask HN: Is there still a place for native desktop apps? by fomine3 on Monday May 18, 2020 @08:03PM (#23229822)
Sales shrunk doesn't mean usage shrunk. Replacement cycle of PC should be getting longer due to enough performance.
Re:Ask HN: Is there still a place for native desktop apps? by thrower123 on Monday May 18, 2020 @08:45PM (#23230115)
Any PC from the past decade is still mostly serviceable.

I'm finally upgrading from an Intel Sandy Bridge processor after nine years, and I still don't need to - it's cranking along pretty well as a dev and gaming machine still.

Re:Ask HN: Is there still a place for native desktop apps? by edeion on Monday May 18, 2020 @03:23PM (#23227191)
I'm surprised nobody mentioned Emscripten. Unfortunately I have no experience with it but I get that you could write a native app and also get it to work in browser with this. I also get there could be a performance penalty but hey... There's also a native app! It feels like we could reverse steam and get 1st class native apps again.
Re:Ask HN: Is there still a place for native desktop apps? by theshetty on Sunday May 17, 2020 @06:49PM (#23216247)
Many desktop apps these days seems to be built on Electron, a JS framework for building desktop-class apps.

https://www.electronjs.org/

Re:Ask HN: Is there still a place for native desktop apps? by KeepFlying on Sunday May 17, 2020 @07:16PM (#23216427)
And many of those apps end up with terrible performance. I'm sure it's possible to write a performant electron app, but I don't see it happen often and it's disappointing.
Re:Ask HN: Is there still a place for native desktop apps? by cosmotic on Sunday May 17, 2020 @07:26PM (#23216494)
What is a desktop-class app?
Re:Ask HN: Is there still a place for native desktop apps? by wruza on Sunday May 17, 2020 @08:12PM (#23216781)
One that can read and write files and directories among other things. (Not an electron fan, but web pages are still pages, not real apps.)
Re:Ask HN: Is there still a place for native desktop apps? by cglong on Sunday May 17, 2020 @09:50PM (#23217363)
There's a web API for that! https://web.dev/native-file-system/
Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:26AM (#23220604)
Does anything but Chrome support this?
Re:Ask HN: Is there still a place for native desktop apps? by Kipters on Sunday May 17, 2020 @09:52PM (#23217370)
Or you could use languages that allow you to share code, so you have 6 thin native UI layers on top of a shared cross-platform core with all the business logic and most interactions with the external world.

You can do it today with C# and https://www.mvvmcross.com/

Re:Ask HN: Is there still a place for native desktop apps? by modzu on Sunday May 17, 2020 @06:04PM (#23215918)
u forgot linux. :(
Re:Ask HN: Is there still a place for native desktop apps? by jrockway on Sunday May 17, 2020 @06:09PM (#23215955)
I started using Linux in the late 90s and have since lost all expectation of someone writing an app for it.
Re:Ask HN: Is there still a place for native desktop apps? by modzu on Sunday May 17, 2020 @08:56PM (#23217067)
actually id say app support is better than ever (of course all the caveats that go along with being a 1% os apply..)
Re:Ask HN: Is there still a place for native desktop apps? by zdragnar on Sunday May 17, 2020 @10:08PM (#23217465)
If wine and steam count as app support, then you're not wrong. It's pretty amazing what can run on linux nowadays compared to yesteryear.
Re:Ask HN: Is there still a place for native desktop apps? by modzu on Sunday May 17, 2020 @10:06PM (#23217452)
downvoters I'm curious to hear your counterexamples!
Re:Ask HN: Is there still a place for native desktop apps? by CamperBob2 on Sunday May 17, 2020 @04:59PM (#23215435)
Windows-app-compiled-for-Mac is going to annoy Mac users

And they'll let you know it, too. Unfortunately this has been an issue since the first Macs left the assembly line in 1984. If you point out that based on their share of the software market they're lucky they get anything at all, the conversation usually goes south from there.