Skip to content

Polymorphic code generation experiment #758

Description

@nxsaken
Metadata
Point of contact @camelid
Team(s) compiler, types
Goal document 2026/polymorphization

Summary

Implement experimental support in the Rust compiler for polymorphic code generation. Instead of monomorphizing generic code, the compiler will generate type-agnostic instances and add hidden vtable parameters where needed, which should reduce compile times and generated binary sizes.

Tasks and status

Activity

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions