Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with the current ascend extension interface #582

Open
timholy opened this issue Jul 28, 2024 · 0 comments
Open

Issues with the current ascend extension interface #582

timholy opened this issue Jul 28, 2024 · 0 comments

Comments

@timholy
Copy link
Member

timholy commented Jul 28, 2024

Having recently written tests for SnoopCompile's extension, and a draft new extension for JET, I decided it was time to document the extension API. In #577 I had already noticed one potential issue, but the experience also led me to note other issues:

  • callstring (which calls method and specTypes) gets applied to both the original input object (or instance(obj)) and the edge items that come from iterating backedges(obj). This prevents edge from just being a state object that would let you extract the actual new node.
  • there isn't a very clear delineation between "node data" and "node with tree structure"
  • there isn't a good way to do "initialization" of the object, short of Cthulhu.treelist(userobj::ObjType) = Cthulhu.treelist(process(userobj)). But process should instead be an API call used after entering treelist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant