Title: [RFC] Add frozen python Lib to WASM build · Issue #1142 · RustPython/RustPython · GitHub
Open Graph Title: [RFC] Add frozen python Lib to WASM build · Issue #1142 · RustPython/RustPython
X Title: [RFC] Add frozen python Lib to WASM build · Issue #1142 · RustPython/RustPython
Description: Summary In the current WASM build we can import the stdlib libraries written in Rust (time, hashlib for example) but we cannot import any python libs (collections for example). I would suggest to freeze all the modules in the Lib/ folder...
Open Graph Description: Summary In the current WASM build we can import the stdlib libraries written in Rust (time, hashlib for example) but we cannot import any python libs (collections for example). I would suggest to f...
X Description: Summary In the current WASM build we can import the stdlib libraries written in Rust (time, hashlib for example) but we cannot import any python libs (collections for example). I would suggest to f...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[RFC] Add frozen python Lib to WASM build","articleBody":"## Summary\r\n\r\nIn the current WASM build we can import the stdlib libraries written in Rust (`time`, `hashlib` for example) but we cannot import any python libs (`collections` for example). I would suggest to freeze all the modules in the `Lib/` folder to allow them to be imported in WASM.\r\n\r\n## Detailed Explanation\r\n\r\nWhen building the WASM build we will add all the modules in `Lib/` to the hashmap in `frozen.rs`.\r\n\r\n## Drawbacks, Rationale, and Alternatives\r\n\r\n- This will increase the WASM build size.\r\n\r\n## Unresolved Questions\r\n\r\n- Should we add libraries like `io` and `os`?\r\n- Should we add this as a feature flag to the regular build?","author":{"url":"https://github.com/palaviv","@type":"Person","name":"palaviv"},"datePublished":"2019-07-13T13:34:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1142/RustPython/issues/1142"}
| 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:0360aeb6-0d4f-ca47-6497-67ad0a2c6145 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B952:380B24:19E9756:2540B83:6A58D69A |
| html-safe-nonce | 301b5f8aad2468a68308fcb3cbd588919c08d1f94eece5d735a2bbf14a41bf60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTUyOjM4MEIyNDoxOUU5NzU2OjI1NDBCODM6NkE1OEQ2OUEiLCJ2aXNpdG9yX2lkIjoiNjQ1Mjg1MDgxMzk1NDQ3OTc3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f3da8898a4e7a2f79456bb49b178e46e5dac838dae69b6319d1db37905e6b259 |
| hovercard-subject-tag | issue:467721153 |
| 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/1142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56945362578d0c85931249ed5020e2b6ae6be9b2eb1ca62097f437441aaa9d67/RustPython/RustPython/issues/1142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56945362578d0c85931249ed5020e2b6ae6be9b2eb1ca62097f437441aaa9d67/RustPython/RustPython/issues/1142 |
| og:image:alt | Summary In the current WASM build we can import the stdlib libraries written in Rust (time, hashlib for example) but we cannot import any python libs (collections for example). I would suggest to f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | palaviv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width