forked from M-Labs/artiq
fb2b634c4a
With support for polymorphism (or type erasure on pointers to member functions) being absent in the ARTIQ compiler, code generation is vital to be able to implement abstractions that work with user-provided lists/trees of objects with uniform interfaces (e.g. a common base class, or duck typing), but different concrete types. @kernel_from_string has been in production use for exactly this use case in Oxford for the better part of a year now (various places in ndscan). GitHub: Fixes #1089. |
||
---|---|---|
.. | ||
__init__.py | ||
core.py | ||
environment.py | ||
scan.py | ||
types.py | ||
units.py |