The author has another blog post about Flow Effects[0]. They propose an open-ended set of effects you could attach to functions, and then verify, at compile time, that certain functions either do or do not invoke certain effects.
So if I had some functions like:
foo_1 (must NOT access the HDD)
foo_2
foo_3
foo_4 (does access the HDD)
Only 2 of them are annotated with effects related to HDD access, but we can verify at compile time that foo_1 does NOT invoke foo_4, either directly or indirectly (we can verify this recursively).
Perhaps foo_3 calls foo_4, but we forgot to annotate foo_3 with the proper effect. No matter, because foo_3 would automatically inherit the effects of foo_4 by virtue of calling it.
This is just one of the feature the blog advocates for, and I think this feature alone would be quite simple and helpful in wrangling LLM code.
A nice thing about this is that it's optional. You can annotate the effects gradually into existing systems.
If it makes you feel better, I'm working on formalizing a type system which allows you to do this with full inference. There are a few others who are trying it too, but I can literally count them and I've met or talked to half of them.
So if I had some functions like:
Only 2 of them are annotated with effects related to HDD access, but we can verify at compile time that foo_1 does NOT invoke foo_4, either directly or indirectly (we can verify this recursively).Perhaps foo_3 calls foo_4, but we forgot to annotate foo_3 with the proper effect. No matter, because foo_3 would automatically inherit the effects of foo_4 by virtue of calling it.
This is just one of the feature the blog advocates for, and I think this feature alone would be quite simple and helpful in wrangling LLM code.
A nice thing about this is that it's optional. You can annotate the effects gradually into existing systems.
[0]: https://blainehansen.me/post/flow-effects/
Replies (1)
Replies (2)