Title: ctypes: unify the foreign-call path on a single host_env `call()` API by youknowone · Pull Request #8235 · RustPython/RustPython · GitHub
Open Graph Title: ctypes: unify the foreign-call path on a single host_env `call()` API by youknowone · Pull Request #8235 · RustPython/RustPython
X Title: ctypes: unify the foreign-call path on a single host_env `call()` API by youknowone · Pull Request #8235 · RustPython/RustPython
Description: Summary
Introduce a single libffi-hiding foreign-call entry point in host_env
(ctypes::call) and route the VM _ctypes module through it, replacing the
per-call libffi Type/Arg marshalling. On top of that, pass and return
Structure/Union by value, and delete the now-unused pre-call scaffolding.
Commits
host_env: add unified high-level call foreign-call API — a
call(addr, &[CallArg], CallRet, CallOptions) -> Result
Open Graph Description: Summary Introduce a single libffi-hiding foreign-call entry point in host_env (ctypes::call) and route the VM _ctypes module through it, replacing the per-call libffi Type/Arg marshalling. On top o...
X Description: Summary Introduce a single libffi-hiding foreign-call entry point in host_env (ctypes::call) and route the VM _ctypes module through it, replacing the per-call libffi Type/Arg marshalling. On top o...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8235
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:08cd4cc3-fb18-9769-2074-a1d7d845ff4e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 93EC:348628:BC89B9:FE568D:6A601BA2 |
| html-safe-nonce | ff651ddca37baf26274798675e951860c5d0160e3b55fea7b0ff892c82716f99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0VDOjM0ODYyODpCQzg5Qjk6RkU1NjhEOjZBNjAxQkEyIiwidmlzaXRvcl9pZCI6IjY1OTI3NzkyNTUwMjU3NjkzNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ca6c10ec66a8313f2d04e22bca255b0679303aa0f5e72396f64cb29aa6496d2e |
| hovercard-subject-tag | pull_request:4008300142 |
| 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/RustPython/RustPython/pull/8235/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | Summary Introduce a single libffi-hiding foreign-call entry point in host_env (ctypes::call) and route the VM _ctypes module through it, replacing the per-call libffi Type/Arg marshalling. On top o... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7e86a727ba4abf81d0638c5ead57286c17d3b2706f57813445c4316d8e848673 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | f13d8ac548fb76838b3d703c7fe2100887547d0e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width