Title: Adding C-Python compatible API for embedding GraalPy by lokmeinmatz · Pull Request #382 · oracle/graalpython · GitHub
Open Graph Title: Adding C-Python compatible API for embedding GraalPy by lokmeinmatz · Pull Request #382 · oracle/graalpython
X Title: Adding C-Python compatible API for embedding GraalPy by lokmeinmatz · Pull Request #382 · oracle/graalpython
Description: This is a WIP as outcome from a project seminar at HPI, supervised by @timfel Main idea is: generate a new dylib from the com.oracle.graal.python.c_embed Cmake project link against pythonnative lib from "cext" as well as "pythonvm" lib from graalpy itself c_embed handles creating graal isolate calling to graalpy so it can set Builtins, create PythonLanguage context etc. taking the GIL because this is how C-python behaves Cleanup (not implemented yet) The rest of the API calls are made to the methods in cext (works because everything is in flat namespace when linked together) The example embedding was developed using Rust & pyo3. https://github.com/lokmeinmatz/pyo3/tree/graalpy_impl in Folder examples/basic_rust_to_py is an example that is configured to work with GraalPy (may need some extra config to link on other OS than OSX)
Open Graph Description: This is a WIP as outcome from a project seminar at HPI, supervised by @timfel Main idea is: generate a new dylib from the com.oracle.graal.python.c_embed Cmake project link against pythonnative li...
X Description: This is a WIP as outcome from a project seminar at HPI, supervised by @timfel Main idea is: generate a new dylib from the com.oracle.graal.python.c_embed Cmake project link against pythonnative li...
Opengraph URL: https://github.com/oracle/graalpython/pull/382
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2626a233-a32b-1471-12b4-97f023d214d1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C496:EE905:3CFE76:521B16:69696EB4 |
| html-safe-nonce | e278e138a3d49e4d792bd2a03a0651527607810b98eaa0d99ed9edf2e9d02d9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDk2OkVFOTA1OjNDRkU3Njo1MjFCMTY6Njk2OTZFQjQiLCJ2aXNpdG9yX2lkIjoiNjE2NDI2NjQ0MjI4NzU3NDcwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1aa9771dd53b65c6f54d66d5e2f8b945421b7624119bd663e3b5f1c50a6874f4 |
| hovercard-subject-tag | pull_request:1720414262 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/oracle/graalpython/pull/382/files |
| twitter:image | https://avatars.githubusercontent.com/u/21058206?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/21058206?s=400&v=4 |
| og:image:alt | This is a WIP as outcome from a project seminar at HPI, supervised by @timfel Main idea is: generate a new dylib from the com.oracle.graal.python.c_embed Cmake project link against pythonnative li... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/oracle/graalpython git https://github.com/oracle/graalpython.git |
| octolytics-dimension-user_id | 4430336 |
| octolytics-dimension-user_login | oracle |
| octolytics-dimension-repository_id | 129883600 |
| octolytics-dimension-repository_nwo | oracle/graalpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 129883600 |
| octolytics-dimension-repository_network_root_nwo | oracle/graalpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width