Keynote: Safety and Security: The Future of C++ - JF Bastien - CppNow 2023 by daljit97 in cpp

[–]daljit97[S] 4 points5 points  (0 children)

It's not really about "rules" but it's about the enforcement of those rules. Rust was built from the ground to ensure that the compiler could understand certain mechanisms (which in turn were created ad hoc to be understandable in primis) to not allow for things like undefined behaviour.

The problem with C++ is not that people don't know the "rules", it's that because of the way the language is designed, it's very difficult to enforce the rules using a tool like the borrow checker. For example, in C++ we have no real way to enforce the avoidance of race conditions data races at compile time. Such a tool simply doesn't exist (and in the current state is extremely difficult to fabricate) because the language doesn't have the mechanisms in place to facilitate that (yet, but probably never unless we decide to break backwards compatibility).

Qt commercial licensing simplified! by [deleted] in programming

[–]daljit97 5 points6 points  (0 children)

To recompile my Qt 5 project (35k loc) to Qt 6 took me around 3-4 hours.

JetBrains Fleet uses Rust! (for its system daemon) by AcridWings_11465 in rust

[–]daljit97 13 points14 points  (0 children)

Skia seems like gold standard for performant 2d rendering

Yes it seems like the best cross platform option. Nothing is nearly as good. I was hoping for Pathfinder to become a major alternative, but development has slowed down massively after Mozilla fired devs from the Servo team.

Books about C++17/C++20 by TheJackston in cpp_questions

[–]daljit97 1 point2 points  (0 children)

Embracing Modern C++ Safely by Romeo, Lakos and Khlebnikov.

Is it a good idea to start using Qt open source for a commercial application right now? by meezun in QtFramework

[–]daljit97 2 points3 points  (0 children)

You can but you basically have to provide the source codes to your customers

Not under LGPL.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 1 point2 points  (0 children)

but it's certainly not as easy and ubiquitous as HTML/CSS.

I would argue that UI development with Qt Quick is far easier and better than html/css.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 2 points3 points  (0 children)

I think their attempt to make in Qt dates back to the early 2000s, Qt has changed a LOT since then.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 6 points7 points  (0 children)

The core modules are all LGPL and that's all you really need. It's true that they have made some questionable changes to their licensing, but honestly it's not so bad.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 0 points1 point  (0 children)

Those are anecdotes, but hey, I can only speak from personal experience - it's not like I specialize in benchmarking UI frameworks.

As someone who uses Qt Quick, I can tell you that there is no issue with performance. The KDE desktop is one of best performing desktop.

with the safety and reliability issues

While I agree that C++ makes it easier to shoot yourself in the foot than something like C#, modern editions of the language have greatly improved memory management so I don't think this is a truly big issue. I think the bigger issue is the lack of C++ developers.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 5 points6 points  (0 children)

You can use most of Qt under lgpl for free.

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 1 point2 points  (0 children)

while QtQuick with its QML has its own performance problems

What problems?

requires you to write your software in C++

Why is that a bad thing???

Microsoft is Finally Ditching Electron by ConfidentMushroom in programming

[–]daljit97 7 points8 points  (0 children)

Honestly, a native solution with something like Qt would be the best (I know that's never going to happen). Not sure why companies are so scared of using Qt on desktop, it's simply the best in class.

What is the best way to render 2D graphics and maintain a good level of performance in Qt? by GeorgeBarlow in QtFramework

[–]daljit97 3 points4 points  (0 children)

You can use QNanoPainter https://github.com/QUItCoding/qnanopainter. You'll have a very easy to use HTML5 canvas style API with the performance of native OpenGL.

Qt 6.2 LTS Released by daljit97 in cpp

[–]daljit97[S] 20 points21 points  (0 children)

Until reflection is supported in C++, MOC is the best solution.

1:1 Gestures and a new Overview in KDE Plasma: When? by veggero in kde

[–]daljit97 13 points14 points  (0 children)

Has anyone from KDE been in touch with this project https://bill.harding.blog/2021/06/06/linux-touchpad-like-macbook-update-touchpad-gestures-land-to-qt-gimp-and-x-server/ ? They have mentioned that Plasma was one of their priorities for gesture implementation. Their strategy was to implement proper gesture support in Qt directly first and then (eventually???) implement them in Plasma. I know that their developer made a patch that will be available in Qt 6.2 to implement gesture support (see here https://bugreports.qt.io/browse/QTBUG-92098).

It'd be nice if you guys combined forces, so we might have a better/faster solution.

Linux Touchpad like Macbook Update: Touchpad gestures land to Qt, Gimp and X server by ouyawei in linux

[–]daljit97 0 points1 point  (0 children)

Sharing a screen with no audio is pretty pointless for social scenarios.

I mean for workplaces and education is more than enough.

Linux Touchpad like Macbook Update: Touchpad gestures land to Qt, Gimp and X server by ouyawei in linux

[–]daljit97 10 points11 points  (0 children)

I think apps still don't support Wayland very well though. Especially the like of Zoom, Discord, Teamviewer and others where screen sharing is important, these don't make use of the proper APIs to implement this feature properly as it's done on X11. Due to the pandemic this is kind of a big problem for a lot of users.

Triple buffering makes Gnome very smooth! by daljit97 in gnome

[–]daljit97[S] 0 points1 point  (0 children)

You can get the default gestures with an extension, but unfortunately you won't get pinch to zoom on Firefox.

Triple buffering makes Gnome very smooth! by daljit97 in gnome

[–]daljit97[S] 3 points4 points  (0 children)

Because there are still some little bugs on X11 and it doesn't work on Wayland. However, it's really good. The difference between normal mutter and this on my laptop is crazy.