3 ms·
Is that really error-prone for a physics simulation engine? That's pretty common to only refer to data by indices in other places - sure, there are languages th
by gf000 2y ago
Is that really error-prone for a physics simulation engine? That's pretty common to only refer to data by indices in other places - sure, there are languages that can deal with it a bit better (e.g. operator overloading, manual memory management and/or value types), but as far as I know this is even often done in Rust, which has the previous properties (it's done to avoid the borrow checker there).
Also, Minecraft was famously written famously inefficiently.
- kgeist 2y agoBy "error-prone," I mean that if you accidentally stored a reference to a pooled vector and used it after it was returned to the pool, all sorts of unexpected things could happen since everything is by reference. You had to be very careful.