Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rework the vtable implementation embedding the vtable array directly with new strictions on methods #22991

Merged
merged 24 commits into from
Nov 28, 2023

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Nov 27, 2023

TODO

  • fixes changelog
    With the new option nimPreviewVtables, methods are confined in the same module where the type of the first parameter is defined

  • make it opt in after CI checks its feasibility

In the following-up PRs

@ringabout ringabout changed the title rework the vtable implementation embedding the vtable array directly rework the vtable implementation embedding the vtable array directly with new strictions on methods Nov 27, 2023
@ringabout ringabout marked this pull request as ready for review November 27, 2023 12:06
@Araq
Copy link
Member

Araq commented Nov 28, 2023

Merging for now but it needs to be behind experimental:vtables instead of a define and it's more complex than it needs to be.

@Araq Araq merged commit 30cf33f into devel Nov 28, 2023
19 checks passed
@Araq Araq deleted the pr_vtable_restrict branch November 28, 2023 14:11
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 8cad6ac

Hint: mm: orc; opt: speed; options: -d:release
176854 lines; 7.777s; 766.094MiB peakmem

Araq added a commit that referenced this pull request Nov 30, 2023
…ure (#23004)

follow up #22991

- [x] turning it into an experimental feature

---------

Co-authored-by: Andreas Rumpf <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants