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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions