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
{{ message }}
Repository navigation
Some parts of the language are not discussed in the tutorial #4
I also don't see any mention of instantiate in the tutorial. It turned out to be necessary for a spec that I wanted to write, which I hope to include in the archive via #49. That example turned out to be a good way for me and @septract to learn about the semantics of instantiate - perhaps it (or something like it) would be a good addition to the tutorial as well.
Would you be willing to write up the example in the style of the tutorial
and add an exercise or two (or three) to give readers a chance to try it
out themselves? (Just bullet points is fine if you are pressed for time,
but it's really helpful to capture the experience of "oh, here's what I
would have needed to be explained to understand how to use this for what I
wanted..." from the inside!)
Activity
bcpierce00 commentedon Apr 27, 2024
dc-mak commentedon May 8, 2024
rems-project/cerberus#230 (comment)
Just adding here so that it's logged somewhere. You can also have arguments, but the most common case is for constants.
dc-mak commentedon May 8, 2024
And this (MIN/MAX{u,i}{8,16,32,64})...
https://github.com/rems-project/cerberus/blob/02a6f66f57c9a28c683a3e3cb569a6300adae1a9/tests/cn/max_min_consts.c
peterohanley commentedon Jun 10, 2024
It's possible sometimes to write
Owned(p)instead ofOwned<...>(p)but this is only used in a malloc example, never explicitly mentioned.samcowger commentedon Jul 19, 2024
I also don't see any mention of
instantiatein the tutorial. It turned out to be necessary for a spec that I wanted to write, which I hope to include in the archive via #49. That example turned out to be a good way for me and @septract to learn about the semantics ofinstantiate- perhaps it (or something like it) would be a good addition to the tutorial as well.bcpierce00 commentedon Jul 22, 2024
samcowger commentedon Jul 22, 2024
Sure, I'll do that.
septract commentedon Aug 19, 2024
We have now disabled
pack/unpack, and declaredcn_functionexperimental. So I don't think we need to discuss them in the tutorial.This still leaves bitwise functions and
instantiate.