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
Ideally we should not introduce extra dependencies ...
Maybe using a custom section and injecting it in the .meta file?
We already have the type info in the type section, the missing piece of information, I think, is only the Group number
We are producing a .meta file which is a valid Wasm payload, we can write, in it, a Custom Section containing this information.
Haven't thought deeply about it ... just a proposal.
Activity
chirino commentedon Jul 8, 2025
@andreaTP what would you like the interface to get that information look like? Maybe a json resource file:
Maybe something like:
namespace.MyModuleMachine.json:
{ "function_groups": { "namespace.MyModuleMachineFuncGroup_0": { "func_123": { "index": 123, "args": ["int", "long"], "return": "long" } } } }andreaTP commentedon Jul 8, 2025
Ideally we should not introduce extra dependencies ...
Maybe using a custom section and injecting it in the
.metafile?We already have the type info in the type section, the missing piece of information, I think, is only the Group number
chirino commentedon Jul 8, 2025
So are you saying something like a .meta section that is an array of int where the index is the function id and value is the group number?
andreaTP commentedon Jul 8, 2025
We are producing a
.metafile which is a valid Wasm payload, we can write, in it, a Custom Section containing this information.Haven't thought deeply about it ... just a proposal.
feat: add chicory-function-groups section to the meta wasm module.
chirino commentedon Jul 9, 2025
Started a branch at https://github.com/chirino/chicory/tree/func-group-section that adds that data the annotation processor would need.