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
The nockma backend currently outputs a nockma function, i.e a cell with the following structure:
[code args context]
Where:
code - is the code that's evaluated when the function is called
args - is a placeholder for arguments to the function. The caller replaces this with the actual arguments before they call the function.
context - some other data that's used by the function.
The nockma backend current stores the compiled functions from the module, information about closures, the anoma standard library and other things in the context:
Do not include the standard library nock code in the compiled output, just set the StandardLibrary slot to nil. (We will still use the standard library nock code in tests).
The text was updated successfully, but these errors were encountered:
The `StandardLibrary` constructor of `AnomaCallablePathId` must be last.
This is because Anoma will replace the tail of the main function with
the resource machine standard library when it calls it.
See:
* #3106
for more details.
Current Situation
The nockma backend currently outputs a nockma function, i.e a cell with the following structure:
Where:
code
- is the code that's evaluated when the function is calledargs
- is a placeholder for arguments to the function. The caller replaces this with the actual arguments before they call the function.context
- some other data that's used by the function.The nockma backend current stores the compiled functions from the module, information about closures, the anoma standard library and other things in the context:
juvix/src/Juvix/Compiler/Nockma/Translation/FromTree.hs
Lines 162 to 167 in f1bb0e5
New requirement from Anoma
Anoma requires the transaction function nock
context
to have the following structure:where:
juvix-specific-placeholder
is a0
that will be replaced with the Anoma standard library when it is called by the Anoma.i.e the whole structure of the nock function should be:
TODO
nil
. (We will still use the standard library nock code in tests).The text was updated successfully, but these errors were encountered: