News for hackers. Stuff that matters.
Re:Making bracket pair colorization faster by sudosysgen on Wednesday September 29, 2021 @12:48PM (#28696311)
Unless you need to run on mobile, Qt is the answer.
Re:Making bracket pair colorization faster by finiteseries on Wednesday September 29, 2021 @01:08PM (#28696661)
That’s the dream, and it stays a dream most of the time. Business concerns pop up again when it comes to building out teams for Qt based desktop apps.

Electron comes with an enormous, deep, absolutely stupid big pool of web developers. I genuinely can’t emphasize enough how big it is, and how easy it is to hire from.

Montevideo, Montenegro, Monterrey, doesn’t matter. Hot, not particularly expensive developers are ready to churn out React UIs in your area!

Re:Making bracket pair colorization faster by a1369209993 on Wednesday September 29, 2021 @08:14PM (#28701713)
> Electron comes with an enormous, deep, absolutely stupid big pool of web developers.

Looks at the web.

As Linus Torvalds put it, it's worth writing the whole thing in C for no other reason than to prevent those 'developers' from 'contributing' to it.

Re:Making bracket pair colorization faster by npigrounet on Wednesday September 29, 2021 @06:17PM (#28700705)
Qt runs like shit compared to Electron, and its license prices are way too expensive. Moreover it's C++ so a deprecated, unsafe, un-cool and uninteresting dying language no one wants to write anymore.
Re:Making bracket pair colorization faster by sudosysgen on Wednesday September 29, 2021 @10:06PM (#28702427)
Really? Make a fully featured modern DE/WM/Compostor in electron that fits into 128MB of RAM and runs at 60fps on a Pentium III in daily usage then with a suite of apps.

Or better yet, make a web engine from scratch, that is, write the rendering engine, compositing engine and so on using Electron primitives.

Because both of these work very well when using Qt as a base, see LXQt and KHTML.

Re:Making bracket pair colorization faster by npigrounet on Thursday September 30, 2021 @02:27AM (#28703736)
You do know very well that all of this is going to happen someday. Everything will be re-written in JS just because it's possible. And numbers will show that those solutions beat C++ in speed and resource usage, like VSCode does.
Re:Making bracket pair colorization faster by sudosysgen on Thursday September 30, 2021 @07:23AM (#28705108)
What does VS Code beat in speed and resource usage? Be fair and compare it to other software with only colourization, Git support and extension support.

JS can get close to C++ in speed but the same program in JS will always need more memory.

Re:Making bracket pair colorization faster by npigrounet on Thursday September 30, 2021 @08:09AM (#28705400)
I doubt that. C++ programs have always tons and tons of memory leaks.
Re:Making bracket pair colorization faster by sudosysgen on Thursday September 30, 2021 @09:04AM (#28705807)
Which you can fix if you're competent. If we're looking at bad programs, JS programs are famous for importing 15MB+ of code for simple functions.
Re:Making bracket pair colorization faster by pjmlp on Thursday September 30, 2021 @05:52AM (#28704631)
While using a runtime written in C++.....
Re:Making bracket pair colorization faster by npigrounet on Thursday September 30, 2021 @08:06AM (#28705377)
In a few years or so, the runtime itself will be in JS. It's unavoidable, this is the way things are.
Re:Making bracket pair colorization faster by pjmlp on Thursday September 30, 2021 @08:35AM (#28705578)
Until JavaScript has the language features to be able to bootstrap itself, that won't happen.
Re:Making bracket pair colorization faster by gpderetta on Thursday September 30, 2021 @09:16AM (#28705916)
As long as JS is jitted/interpreted at runtime, I don't even know how that would work!!
Re:Making bracket pair colorization faster by nyanpasu64 on Wednesday September 29, 2021 @11:02PM (#28702723)
Correction: LXQt uses Openbox (not Qt) for windowing, and offers a choice between no compositor (by default) or one like picom (not Qt) or KWin (Qt Quick, JS-based, I wish it wasn't JS-based but it's too late to change that).
Re:Making bracket pair colorization faster by sudosysgen on Thursday September 30, 2021 @07:20AM (#28705097)
Qt Quick is not based on JS. JS is merely an option for Qt Quick.
Re:Making bracket pair colorization faster by pjmlp on Thursday September 30, 2021 @05:52AM (#28704627)
That must be why WinUI is written in C++, Metal uses C++ shaders, or CUDA hardware is designed according to C++ semantics, then.
Re:Making bracket pair colorization faster by npigrounet on Thursday September 30, 2021 @08:10AM (#28705411)
Let's just wait for JS bindings for all these things and let's see what competent people will use. You already know the answer, do you? Yes, it'll be the JS bindings.
Re:Making bracket pair colorization faster by pjmlp on Thursday September 30, 2021 @08:37AM (#28705596)
Someone has to write those bindings, and they won't live forever.
Re:Making bracket pair colorization faster by gpderetta on Thursday September 30, 2021 @06:46AM (#28704902)
As per parent post, C++ it is not cool and hip anymore, so it won't keep CADT programmers interested long enough to get the work done.
Re:Making bracket pair colorization faster by pjmlp on Thursday September 30, 2021 @08:36AM (#28705587)
Well, 99% of most programming languages fit that as well.
Re:Making bracket pair colorization faster by gpderetta on Thursday September 30, 2021 @09:12AM (#28705886)
That's why according to the parent, everything is going to be rewritten in JS very soon! /rollseyes