3 ms·
it seems pretty trivial to just have some kind of "begin/end atomic section" flag or function rather than jamming in a whole special purpose scripting enviromen
by throwaway2048 5y ago
it seems pretty trivial to just have some kind of "begin/end atomic section" flag or function rather than jamming in a whole special purpose scripting enviroment.
- infogulch 5y agobegin() loop {}
- Hackbraten 5y ago> If the channel program exhausts an instruction or memory limit, a fatal error will be generated and the program will be stopped
- Hackbraten 5y agoBut what is the API supposed to do when it comes across a `begin` flag? Stop all filesystem activity in all programs until yours sends the `end` flag? What if that flag never arrives, e.g. due to a bug in your client code?
- throwaway2048 5y agodelay all commits to disk until a fixed timeout is reached for command submission, if the timeout is reached the call returns failed, the same problem exists with this special purpose scripting environment just in other forms.