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

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

Open
vkottler opened this issue Jul 27, 2024 · 5 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@vkottler
Copy link
Owner

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 vkottler added the enhancement New feature or request label Jul 27, 2024
@vkottler vkottler self-assigned this Jul 27, 2024
@vkottler
Copy link
Owner Author

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

@vkottler
Copy link
Owner Author

See also: vkottler/homestead#6.

@vkottler
Copy link
Owner Author

vkottler commented Aug 2, 2024

#66 can continue implementing business logic for Python code generation.

@vkottler
Copy link
Owner Author

vkottler commented Aug 7, 2024

Generate code/config for vkottler/runtimepy#262.

@vkottler
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant