Skip to content

Expose num_to_roughnum from runtime #1393

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

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

ZacharyEspiritu
Copy link
Contributor

@ZacharyEspiritu ZacharyEspiritu commented Aug 17, 2018

This PR exposes the num_to_roughnum function on the Pyret runtime.

This function is heavily used in the TensorFlow addition (see brownplt/code.pyret.org#287), but should be relatively easy to swap out if there are better alternatives. There might be a better way to create Roughnums from a JavaScript library that I'm missing, so let me know if this is unnecessary.

@jpolitz
Copy link
Member

jpolitz commented Oct 14, 2019

This is fine to expose and makes sense to have it conveniently on runtime.

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

Successfully merging this pull request may close these issues.

2 participants