RustPython / RustPython/RustPython

[RFC] How much of the standard library should be supported

Open
#1,204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-stdlib RFC
Dominant language
Rust
Stars
22.4k
Forks
1.5k
Avg merge
16h 33m
Merged PRs (30d)
165

Description

Summary

Given the recent discussions about the size of CPython's standard library, and proposals to drop a few modules, splitting the core standard library from the extra batteries, and so on, perhaps would it be a good idea to define the extent of the standard library to be implemented/provided in rustpython.

Detailed Explanation

Issue #8 calls for the expansion of the standard library, but I feel that a blind call might not be the best idea. Instead, a more directed call for help would provide more cohesiveness of the work.

However, more importantly, discussions about the size of CPython have been surfacing here, a view of the future here, suggestion on how to approach a kernel-python PEP-594 to remove modules (https://www.python.org/dev/peps/pep-0594/).

The question is, where does rustpython want to be with this current context.

Drawbacks, Rationale, and Alternatives

The main rationale would be to allow rustpython to be an example of how a minimal modern Python interpreter could be when given the freedom from the ground up. This would also reduce the maintenance burden and the required work to produce a working interpreter by focusing effort.

This issue is somewhat linked in spirit with issue #1192 and #1125.

Unresolved Questions

How to define what would be the minimal standard library to be shipped with rustpython?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing issue #8 and the related issues #1192 and #1125, then read the linked discussions about CPython's standard library and PEP 594. Done means reaching and documenting a project decision about the minimal standard library RustPython should provide.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.