Higher RAII is indeed very similar to linear typing. There are some subtle differences w.r.t. panic handling, so I can't say for sure if they're the exact same thing.
Currently yes, and cross-machine compatibility is in Vale's future!
We can actually control floating point behavior (Java floating point behavior is the same across all machines IIRC) with a slight performance overhead, which is acceptable for record/replay mode.
I believe LLVM lets us specify integer overflowing behavior too.
However, if there are ever things we can't control, we could capture those with a "profile" at the beginning of the recording, and then do some tests in replay mode to make sure the replaying machine acts similarly to how the recording machine did. For example, recording mode would write the result of 1.0 / 3.0 to the first 8 bytes, and the replaying mode would check that it gets the same result, to know if they're compatible.
Thanks! Forcing long-term behavior is super useful once you know it's there and available. As I'm getting used to it, I'm finding more and more ways for higher RAII to enforce invariants and assumptions in my code.
That's good feedback, and others have suggested renaming it to something else. The ! means negation here, so that directive is saying "Don't automatically define a drop function for this type".
In Vale, if you unpack a &UnitController (a non-owning reference to UnitController) then it will alias all the members. However, the code in the article is sending a UnitController (an owning reference) which destroys the UnitController and rescues its innards into locals.
It's a distinction that makes sense at all levels of the compiler and language except the user-facing syntax, which... isn't ideal. I've been thinking of changing it to [unit, locToUnitToken, view] = destruct self; or something more understandable.
Author here! Perfect Replayability and determinism were a pretty awesome help in the 7-Day Roguelike Challenge.
Back then, I used an invincible pseudo-random AI player to play my game thousands of times overnight, writing down the run's seed every time it crashed (or hit an assertion failure). In the morning, I would just wake up, grab the crashed seeds, and use perfect replayability to reproduce the bug instantly, no fuss.
That was a toolkit on top of C# back then, where it was pretty tricky to set up. (Did you know that string.GetHashCode() is nondeterministic? Fun!)
Now we've finally brought it to Vale as a first-class feature! That and Higher RAII make it a lot easier to prototype games fast enough for 7DRL's speed. It should be pretty good for RTS or anything with lock-step simulation too, I'd imagine.
Unfortunately, in our tests, people have shown that they do not understand "objective" and "subjective". They understand claim and topic only a little bit better, but that could have been because of other factors.
Indeed, nothing is purely objective besides math and logic, so the site has a standard of "objectively true beyond a reasonable doubt". It seems to work for most cases.
Some of my requests are getting through, looks like things might be getting better.
My Claude is also having trouble right now. It logged me out and I keep hitting server errors when it tries to log back in.
I suspect it's a problem on their end. Hopefully they resolve it soon.
Higher RAII is indeed very similar to linear typing. There are some subtle differences w.r.t. panic handling, so I can't say for sure if they're the exact same thing.
Currently yes, and cross-machine compatibility is in Vale's future!
We can actually control floating point behavior (Java floating point behavior is the same across all machines IIRC) with a slight performance overhead, which is acceptable for record/replay mode.
I believe LLVM lets us specify integer overflowing behavior too.
However, if there are ever things we can't control, we could capture those with a "profile" at the beginning of the recording, and then do some tests in replay mode to make sure the replaying machine acts similarly to how the recording machine did. For example, recording mode would write the result of
1.0 / 3.0to the first 8 bytes, and the replaying mode would check that it gets the same result, to know if they're compatible.Glad you like Vale's goals!
Thanks! Forcing long-term behavior is super useful once you know it's there and available. As I'm getting used to it, I'm finding more and more ways for higher RAII to enforce invariants and assumptions in my code.
That's good feedback, and others have suggested renaming it to something else. The
!means negation here, so that directive is saying "Don't automatically define adropfunction for this type".In Vale, if you unpack a
&UnitController(a non-owning reference to UnitController) then it will alias all the members. However, the code in the article is sending aUnitController(an owning reference) which destroys theUnitControllerand rescues its innards into locals.It's a distinction that makes sense at all levels of the compiler and language except the user-facing syntax, which... isn't ideal. I've been thinking of changing it to
[unit, locToUnitToken, view] = destruct self;or something more understandable.Author here! Perfect Replayability and determinism were a pretty awesome help in the 7-Day Roguelike Challenge.
Back then, I used an invincible pseudo-random AI player to play my game thousands of times overnight, writing down the run's seed every time it crashed (or hit an assertion failure). In the morning, I would just wake up, grab the crashed seeds, and use perfect replayability to reproduce the bug instantly, no fuss.
That was a toolkit on top of C# back then, where it was pretty tricky to set up. (Did you know that
string.GetHashCode()is nondeterministic? Fun!)Now we've finally brought it to Vale as a first-class feature! That and Higher RAII make it a lot easier to prototype games fast enough for 7DRL's speed. It should be pretty good for RTS or anything with lock-step simulation too, I'd imagine.
that's brilliant!
Thanks for the reply!
Unfortunately, in our tests, people have shown that they do not understand "objective" and "subjective". They understand claim and topic only a little bit better, but that could have been because of other factors.
Indeed, nothing is purely objective besides math and logic, so the site has a standard of "objectively true beyond a reasonable doubt". It seems to work for most cases.
This helps a ton, thank you so much! I never considered applying the 7+2 rule to the lists.
So, do you think it's asking the user too much to identify the difference between objective and subjective?
thanks! can you point me to an online guide, or give me some google keywords? i don't exactly have a shippable address, lol.
End of this list.
Back to top