handle host objects #33
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#33
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M-Labs/nac3-spec#5
KernelInvariants
Added simple support for host values. Object support would be added soon.
We can now compile something like:
No constant folding for now except ints/floats/bools.
Just to confirm, we expect host variables to be constant right? Can their fields/elements change?
Is constant folding a high priority task? It may be a bit hard to do with the current code, we may need to do constant folding on the AST (or graph if we want to, but this may require quite a lot of code as we have to change all AST code to use a new IR).
Great!
Constant folding for scalar values is high-priority, but that works already, correct?
Also your demo code is actually #41
Only if they are just constants. Object fields, list elements would not be constant folded for now.
That is the prerequisite of this.
That should cover many practical cases.
Sorry, forgot that generic is not yet handled now. It should not be too hard though.
Done
Does not seem to work. This simple example (with the min_artiq code in
5749141efb
):crashes with:
No, the implementation works, the problem is how you compile the code.
You did not set the self argument and the SymbolResolver has no way to get what the
self
argument is... In addition to that, the codegen method signature (takes no argument) does not match with the method signature (takes a self argument).