If your Zig code has a for loop in a deinit method, you're using computers wrong.
If your C++ destructor is doing O(N) work thanks to RAII, you are using C++ correctly, but you are still using computers wrong.
@andrewrk sorry I am a bit of a newbie in programming. What about having multiple objects in the gpu ? Is there anything possible for OpenGL or Vulkan for example ?