Skip to content

Expose num_to_roughnum from runtime#1393

Merged
jpolitz merged 1 commit intobrownplt:horizonfrom
ZacharyEspiritu:expose-num-to-roughnum
Oct 14, 2019
Merged

Expose num_to_roughnum from runtime#1393
jpolitz merged 1 commit intobrownplt:horizonfrom
ZacharyEspiritu:expose-num-to-roughnum

Conversation

@ZacharyEspiritu
Copy link
Copy Markdown
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
Copy Markdown
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