Skip to content

Enhancement to mlc.dataclasses.c_class #67

Open
@potatomashed

Description

@potatomashed
Collaborator

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:

Those are easy features to implement but lacking. Contributions are welcome!

Activity

self-assigned this
on May 8, 2025
junrushao-openai

junrushao-openai commented on May 10, 2025

@junrushao-openai

Regarding __str__: would be nice to have a method under mlc.dataclasses. that prints like python dataclass format, plus their id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @potatomashed@junrushao-openai

      Issue actions

        Enhancement to `mlc.dataclasses.c_class` · Issue #67 · mlc-ai/mlc-python