News for hackers. Stuff that matters.
Re:Rust in QEMU Roadmap by IshKebab on Tuesday December 03, 2024 @05:53PM (#42312559)
I don't think he literally means templates and classes. Rust has equivalents that do the things you want templates and classes for (generics and structs/traits respectively).

I completely agree with his point about reimplementing C++ badly in C. GNOME does this too in their libraries. He will be much happier with Rust.

Re:Rust in QEMU Roadmap by Neywiny on Tuesday December 03, 2024 @07:04PM (#42313123)
Hmmm I think I actually really want classes. Something that combines data and methods together without more function pointers. Template vs generic I don't care about
Re:Rust in QEMU Roadmap by rascul on Tuesday December 03, 2024 @08:51PM (#42313767)
Rust structs are in some ways similar to C++ classes. You can combine data and methods together with them without worrying about things like function pointers.
Re:Rust in QEMU Roadmap by IshKebab on Wednesday December 04, 2024 @02:21AM (#42315186)
Rust structs do bind data and methods together.
Re:Rust in QEMU Roadmap by justahuman74 on Tuesday December 03, 2024 @06:41PM (#42312952)
On the other hand it seems like gobject was good for gnome as it made it easier to bind GTK to other languages