tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

compiler: reimplement interface type asserts

Open aykevl opened this issue 1 year ago • 1 comments

This is a big reimplementation that simplifies the compiler a lot. Instead of storing the method set in metadata and lowering the type asserts as a whole program pass, this change just puts the list of methods in the type code (and a separate global for the interface type).

I'm still working on this. I'm not very happy with the binary size increase (~4%) but I have a few ideas how to reduce it. But I made a PR for initial review for those interested (@dgryski?)

This is also a step in the direction of #2870.

aykevl avatar Jul 31 '24 18:07 aykevl

Are you still thinking of working on this?

dgryski avatar Oct 27 '25 21:10 dgryski

cc @aykevl -- my assumption is no?

reteps avatar Dec 21 '25 17:12 reteps