Announcement
Collapse
No announcement yet.
April Fools' Or Should Wayland Switch Away From Using C?
Collapse
X
-
Originally posted by Xorg View PostHa ha. What if I told you my favorite language is ASM? I'm joking, I prefer C.
A skilled C developer runs his program with Valgrind, and admires absence of errors and memory leaks.
cipri
- Likes 2
Leave a comment:
-
Originally posted by Xorg View PostHa ha. What if I told you my favorite language is ASM? I'm joking, I prefer C.
A skilled C developer runs his program with Valgrind, and admires absence of errors and memory leaks.
As long as it is fast and memory efficient (because you wrote it of course; hello security issues) nothing else matters.
- Likes 3
Leave a comment:
-
Originally posted by phoronixWayland in [your favorite language]
A skilled C developer runs his program with Valgrind, and admires absence of errors and memory leaks.
- Likes 2
Leave a comment:
-
Finish the dam thing before rewriting it, april fools or not.
- Likes 5
Leave a comment:
-
This is like I do my c++17 gui framework. The wayland part I hide in a "unsafe class". It's very sad, that wayland is forcing me to use "reinterpet_cast", which is something like a little time-bomb. At least I found a way to put the unsafe stuff more tightly together instead of spreading it all over the framework.
It means if something goes wrong (likes leaks and crashes) it will be because of the framework, and not because of the user of the framework.
With c++ you can have the same speed (or faster!) and having at the same time more safety.
The c example of wayland clients/servers could look in c++ easier to follow with less code, better structured....
There is a good reason why you barely find applications based on wayland directly! Gnome and KDE are working since years on wayland support and it's still not ready. If lib-wayland would be done with c++14 and being well designed, writing wayland clients would be a triviality! It would be easier than using QT [since QT has old style c++ api].
cipri
- Likes 2
Leave a comment:
Leave a comment: