Lurker News
Back to discussion

Comment by jcelerier

jcelerier9 replies#
> 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 :-)).

guggle1 reply#
Bitwig has been ported to Android ? Or IOS ?
jcelerier1 reply#
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.

guggle#
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.

avmich2 replies#
Do you count Qt apps as native, but not count web apps as native? Why?
AsyncAwait4 replies#
Qt may not 'look' native, but it has native performance, whereas Electron really doesn't.
thawaway1837#
Isn’t that more of an Electron issue?

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

outside123411 replies#
VSCode is indistinguishable from native, so not sure its Electron that's at fault here.

Continue this thread — 11 replies

madeofpalk4 replies#
I would argue that the web platform is one of the most optimised and performant platforms for apps.

Continue this thread — 4 replies

userbinator2 replies#
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.)

Continue this thread — 2 replies

jcelerier2 replies#
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...

PaulDavisThe1st13 replies#
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!

Continue this thread — 13 replies

irishcoffee3 replies#
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.

Continue this thread — 3 replies

ninjakeyboard3 replies#
I still can't believe bitwig is java. I'm a bitwig user. It even runs on linux.
hawaiianbrah1 reply#
Wasn’t that Java’s original selling point, it runs anywhere (there’s a JVM)?
suyash1 reply#
Yes, today you can use JavaFx to build cross platform desktop apps.

Continue this thread — 1 reply

ubercow13#
Only part of it will be Java, probably the UI logic layer
nitrogen1 reply#
Ossia looks pretty sweet! I'll be checking that out for sure.
jcelerier#
thanks ! it's still kinda in alpha but making progress :)
IvanK_net3 replies#
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.
PaulDavisThe1st1 reply#
Because you NEVER have to do that with browsers, right?
colordrops3 replies#
You don't have to sign and deploy your web app six times.

Continue this thread — 3 replies

irishcoffee#
CI/CD + uh... doing your job? I build one app (same codebase) on 4 different platforms often, it isn't terribly hard.
madeofpalk#
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?

Continue this thread — 4 more replies