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

Python to Crystal converter #116

Closed
alexanderadam opened this issue Jul 20, 2020 · 3 comments
Closed

Python to Crystal converter #116

alexanderadam opened this issue Jul 20, 2020 · 3 comments

Comments

@alexanderadam
Copy link

I just stumbled over py2rb and thought that it might be especially helpful for people who're coming from a scientific background if there would be a Python to Crystal converter, too.

This issue is more meant as an idea.

Disclaimer: I'm pretty sure that it will be more difficult to create Crystal converter than a Ruby converter (typing alone…).

@nanobowers
Copy link

I'm playing with this right now as a work-in-progress based on my variant of py2rb with fixes and type annotation support for Crystal. These types of code translators are never going to be 100%, but might be useful in mapping over code or tests.

Unfortunately python's unitTest isn't a great 1:1 mapping for Crystal's stdlib Spec.
And I'm not sure a NumPy equivalent exists in Crystal, so those mappings from py2rb will have to go on hiatus.

@nanobowers
Copy link

An early version with some rudimentary type support is here:
https://github.com/nanobowers/py2cr

Would welcome any feedback or contributions.

@alexanderadam
Copy link
Author

Awesome, I'll close this issue then since all further things should be done on issues on that project.

Thank you so much! 🙌

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

2 participants