-
Notifications
You must be signed in to change notification settings - Fork 13
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
Propoal: PHP C standard function Code usage/porting #74
Comments
ok looks like chris has gone the similar way too: (Feels like a pat on my back) |
-- Chris (Messaging him on twitter) |
One of the next steps is to write proof of concepts to demonstrate
For instance, can you demonstrate that a transcompiler approach works |
It was previously mentioned here #57 (comment)
on how to use or implement PHP functions in Graal,
One approach is using re-implementing the PHP function in Java, I am slightly in favour of this approach as it brings some other major IO related real world performance benefits with the combination of https://openjdk.java.net/jeps/353 and http://cr.openjdk.java.net/~rpressler/loom/loom/sol1_part1.html. The obvious downside being the time taken to re-implement those methods. There are good transpilers available these days to do most of the heavy lifting though.
The second option is going the route that is described here https://chrisseaton.com/truffleruby/cext/ , There is no source code made available and hence difficult to see how complicated, practical or time consuming this would be when applied to a large project like PHP.
The third option which I would propose is,
How easy is all this? See the video for yourself,
https://youtu.be/zvsR90T_4ME?t=255 (it covers the first three points)
The obvious drawback would be the IO performance, if I can make an assumption that Graal/Sulong cannot inject instructions for co-operative scheduling.
Any feedback is appreciated 🙂
[1] https://github.com/oracle/graal/tree/master/sulong
The text was updated successfully, but these errors were encountered: