Title: Is it possible to make VirtualMachine Sync? · Issue #2718 · RustPython/RustPython · GitHub
Open Graph Title: Is it possible to make VirtualMachine Sync? · Issue #2718 · RustPython/RustPython
X Title: Is it possible to make VirtualMachine Sync? · Issue #2718 · RustPython/RustPython
Description: I am trying to integrate RustPython into a game using Bevy and although I am able to find a solution using exclusive systems it is not very flexible and prevents other unrelated systems from running in parallel. The core issue is that Sy...
Open Graph Description: I am trying to integrate RustPython into a game using Bevy and although I am able to find a solution using exclusive systems it is not very flexible and prevents other unrelated systems from runnin...
X Description: I am trying to integrate RustPython into a game using Bevy and although I am able to find a solution using exclusive systems it is not very flexible and prevents other unrelated systems from runnin...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2718
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is it possible to make VirtualMachine Sync?","articleBody":"I am trying to integrate RustPython into a game using Bevy and although I am able to find [a solution using exclusive systems](https://gist.github.com/allsey87/5b0db1a218604394c5deaf2b31ddbe1e) it is not very flexible and prevents other unrelated systems from running in parallel.\r\n\r\nThe core issue is that `Sync` is not currently implemented for `VirtualMachine`, or more precisely for the `RefCell` wrapping `std::vec::Vec\u003cPyRef\u003crustpython_vm::frame::Frame\u003e\u003e`.\r\n\r\nIs it possible to use a `Mutex` internally instead of a `RefCell`? Or if this is not desirable, perhaps just when RustPython's threading feature is enabled?","author":{"url":"https://github.com/allsey87","@type":"Person","name":"allsey87"},"datePublished":"2021-06-22T14:36:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2718/RustPython/issues/2718"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6efac078-4353-2dd9-a246-667ee00b1d4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E448:24571B:12881BC:1915163:6A595B95 |
| html-safe-nonce | 318ae58f44d9e913f89b5b391cff049dbfce8fbec58998250b409fe7524f9b55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDQ4OjI0NTcxQjoxMjg4MUJDOjE5MTUxNjM6NkE1OTVCOTUiLCJ2aXNpdG9yX2lkIjoiNjg4MDc2ODI0NTQyNTA2ODk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c73c21ba85cfeb9d06ed3663f5a8923ccc1969be81391f50ab8b0d4588beb886 |
| hovercard-subject-tag | issue:927305013 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/RustPython/RustPython/2718/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85f981c686dfc9b5542bec9c7a8c4ceec0b52f96830aa9a212302270b7cad018/RustPython/RustPython/issues/2718 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85f981c686dfc9b5542bec9c7a8c4ceec0b52f96830aa9a212302270b7cad018/RustPython/RustPython/issues/2718 |
| og:image:alt | I am trying to integrate RustPython into a game using Bevy and although I am able to find a solution using exclusive systems it is not very flexible and prevents other unrelated systems from runnin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | allsey87 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f4669eb12cd81bf213b8907a42667725d1583c79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width