Enhancement to `mlc.dataclasses.c_class`
@potatomashed is already working on this.
Since May 8, 2025.
Assessment
This issue has not been assessed yet.
Description
c_class is used to reflect a class defined on C++ side to Python in zero copy, without the overhead of pybind or any other 3rdparty FFI tools.
However, the features supported in c_class is not on parity with py_class yet. Namely:
- The default
__str__method is not as good looking aspy_class's #69 frozen=Trueis not supported- Per-field
init=Falseis not supported yet.
Those are easy features to implement but lacking. Contributions are welcome!
- Dominant language
- C++
- Stars
- 36
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mlc-ai/mlc-python
-
Doc
mlc-ai/mlc-python#32 · 2 comments · 1 assignee ·
All issues in mlc-ai/mlc-python
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-cli#6547 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·