Rust has traits and reference counting which map nicely to COM objects.
By the way, the Linux Kernel is OOP. That’s a good choice for things like queues, file systems, and device drivers.
Comment on Microsoft wants to replace its entire C and C++ codebase, perhaps by 2030
ZILtoid1991@lemmy.world 1 week ago
Will this finally be the end of Windows?
Also fun fact: Windows uses a lot of COM Interfaces for API, which in my opinion often makes developing for Windows a better experience, than developing for Linux. Rust does not have anything OOP related by default, and are often emulated with macros instead, like in C.
Rust has traits and reference counting which map nicely to COM objects.
By the way, the Linux Kernel is OOP. That’s a good choice for things like queues, file systems, and device drivers.
That’s a crazy take. I hate com and oop with a passion.
I hate everything GTK/GNOME, they didn’t even call it gnobject.
SuperSpruce@lemmy.zip 1 week ago
I work for a company developing software for Windows and deal with COM all the time. How do you communicate across dynamic libraries and languages in Linux?
ZILtoid1991@lemmy.world 1 week ago
Linux usually just uses C API, most of which reads horribly. Libevdev is quite notorious for using files and the docs not telling you that the reading is blocking. Some additional things use C++ classes though.
SuperSpruce@lemmy.zip 6 days ago
Could you provide a link to the documentation? It’s strange that it’s so barebones.
ZILtoid1991@lemmy.world 6 days ago
www.freedesktop.org/software/libevdev/…/latest/