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 }}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
The compiler itself must consume gas, like the type-checker does.
Of particular concern is the monomorphizer which specializes polymorphic code and must charge for each specialization. It also has a complex type-flow analysis that needs to charge gas as it progresses.
The text was updated successfully, but these errors were encountered:
One way to do this is to run the compiler itself in a VM. For example using a custom version of the OCaml bytecode interpreter that charges gas per instruction. However, this was found to be ~10x slower than native OCaml code execution.
The compiler itself must consume gas, like the type-checker does.
Of particular concern is the monomorphizer which specializes polymorphic code and must charge for each specialization. It also has a complex type-flow analysis that needs to charge gas as it progresses.
The text was updated successfully, but these errors were encountered: