-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[RFC] split rustpython_stdlib from rustpython_vm #3102
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
Comments
Question on this since #3132 got me thinking. Doesn't vm require minimal support from the stdlib? I can see how a subset of the stdlib could be separated but not really seeing how all could be yanked and placed in a new crate with could be a |
I think modules defined in I also think the name |
Something I've been thinking about - oh which it seems also @DimitrisJim brought up - some things should be core to the interpreter, right? Like |
Oh, right - like
|
Maybe the distinction we could have, if we kept these in |
#3129 is now working version. it solves native modules, but not pylib |
|
I don't remember which PR it was, but Jim commented about sys.stdlib_module_names. @coolreader18 In the sense of contrasting |
As an interested (very) minor contributor I really like the idea of defining a The list from So RustPython might needs its own versions of those modules but trying to port them doesn't seem useful and they shouldn't block a |
Running Python (3.8) with increased verbosity (
Launching the REPL does entail some additional imports: |
This is finished by #3620 |
Summary
Split rustpython_stdlib from rustpython_vm which contains non-necessary rust modules for vm itself.
Detailed Explanation
Advantages:
stdlib
can be a feature. Without it, the binary size will be smaller than now.Drawbacks, Rationale, and Alternatives
Unresolved Questions
The text was updated successfully, but these errors were encountered: