News for hackers. Stuff that matters.
Re:Unreal Rust by ncmncm on Monday September 05, 2022 @01:57AM (#32721023)
Might a library call throw? Assume yes.

Next question.

Re:Unreal Rust by swiftcoder on Monday September 05, 2022 @03:51AM (#32721632)
And since about half of all game codebase are compiled with -fnoexcept... that means we are left assuming that all library calls may randomly crash or corrupt the stack
Re:Unreal Rust by ncmncm on Monday September 05, 2022 @05:16AM (#32722133)
Trivial to fix.
Re:Unreal Rust by jstimpfle on Monday September 05, 2022 @09:08AM (#32723890)
If you don't know what's exploding left and right, how are you going to fix it?
Re:Unreal Rust by ncmncm on Tuesday September 06, 2022 @03:09AM (#32733924)
Compile without -fno-except.

There is no substitute for engineering, if you care. So, engineer.

Re:Unreal Rust by lumost on Monday September 05, 2022 @10:04AM (#32724407)
so what am I to do? wrap all libraries in a try/catch call? Run tests and hope I've exhaustively verified all possible states?
Re:Unreal Rust by ncmncm on Tuesday September 06, 2022 @03:13AM (#32733949)
Catch exceptions at a few select spots where you actually know something meaningful to do about them. Keep cleanup code in destructors, where it always runs reliably.

Avoid triggering exceptions too hard to recover from. That might involve work, but less work than fielding error codes would have been. There is no free lunch.