Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adapt float type in language level by renjin #61

Closed
gaocegege opened this issue May 15, 2017 · 2 comments
Closed

Adapt float type in language level by renjin #61

gaocegege opened this issue May 15, 2017 · 2 comments

Comments

@gaocegege
Copy link
Member

ref #16

R does not have float type, but Processing heavily uses float as the built-in functions' parameters. To solve the problem, Processing.R defines a abstract layer called BuiltinApplet, which cast float to double explicitly by function overloading.

Function overloading requires a lot of manual work, so it is better to find a way to finish the job in language level, via renjin.

Maybe we could ask renjin community for help.

@gaocegege gaocegege changed the title [Feasibility Research] Adapt float type in language level by renjin Adapt float type in language level by renjin May 20, 2017
@gaocegege gaocegege added this to the Evaluation 1 milestone May 26, 2017
@gaocegege
Copy link
Member Author

gaocegege commented May 28, 2017

https://github.com/bedatadriven/renjin/blob/master/core/src/main/java/org/renjin/sexp/DoubleVector.java

It seems that it is hard to hack DoubleVector. And I think maintaining a special fork for Processing.R. is not the right, so I will file a post in renjin-dev email group and try to get some suggestions from the community.

https://groups.google.com/forum/#!topic/renjin-dev/ULu9tI26KIY

@gaocegege
Copy link
Member Author

bedatadriven/renjin#319

Renjin supports float in the new release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant