vkottler / ifgen

An interface generator for distributed computing.
MIT License
1 stars 0 forks source link

Add support for generating Python code for CPython and CircuitPython #65

Open vkottler opened 3 months ago

vkottler commented 3 months ago

A runtimepy variant that generates a Protocol implementation should be reasonably straight-forward (for host-side messaging implementation).

For CircuitPython, use: https://docs.circuitpython.org/en/latest/docs/library/ctypes.html.

Does this mean we need to multiplex output types / support multiple output-file configurations (or would "Python" vs. "C++" selection be better?).

vkottler commented 3 months ago

Generating unit tests / unit-testing this behavior would be useful (probably impossible for CircuitPython? does https://circuitpython.org/blinka help with this?

vkottler commented 3 months ago

See also: https://github.com/vkottler/homestead/issues/6.

vkottler commented 2 months ago

https://github.com/vkottler/ifgen/pull/66 can continue implementing business logic for Python code generation.

vkottler commented 2 months ago

Generate code/config for https://github.com/vkottler/runtimepy/issues/262.

vkottler commented 2 months ago

Can now specify byte_order for any struct definition, we should integrate a byte order parameter (with a good default, network order since it's the default in runtimepy?)

would also make sense to generate C++ code that will perform the "default" byte swap action