You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add note to the FFI section to make it explicit that our intention is that foreign function are pure (i.e., do not have observable side effects).
The text was updated successfully, but these errors were encountered:
yav
added
the
docs
LaTeX, markdown, literate haskell, or in-REPL documentation
label
Feb 6, 2023
The RefMan in the cryptol repository gives its readers no hint as to the fact that the order in which FFI calls are evaluated can influence the meaning of an expression. For example, suppose there is a C function called count that has some internal state, and it increments an integer with each call, ignores its input, and returns the integer. After loading this into cryptol
and typing seq ! 2; seq you get a different answer than had you started by typing seq.
Please expand the FFI section in the RefMan to help readers understand why this happens so they understand why one should not load functions with observable state.
We should add note to the FFI section to make it explicit that our intention is that foreign function are pure (i.e., do not have observable side effects).
The text was updated successfully, but these errors were encountered: