-
Notifications
You must be signed in to change notification settings - Fork 74
Consider splitting out typed function pointers #60
Comments
AFAICT, there are no downcasts from |
I actually just proposed splitting out typed function references from the GC proposal at last weeks CG meeting. See this branch for a tentative sketch of such a standalone proposal. |
That's what I would propose, yes. Yes, it will be slow. But similar to interior pointers in #59, I don't think this should be part of a MVP. (And if this is part of the MVP, why not interior pointers?)
Great! And good to hear there is ongoing work! |
Typed function references has been moved to its own repo, here: https://github.com/webassembly/function-references. Closing. |
Reading through the overview, I saw that there is a proposal for typed function pointers.
Is there anything that typed function pointers provide that is not already covered by
anyfunc
? I have a feeling that the part of the spec that describes typed function pointers is leaning a bit too much towards supporting the full Java type system. While I think that typed function pointers can be very useful for performance reasons, I don't see how they are related to GC except for making the type system even more complex. Falling back toanyfunc
(with a small performance hit) and simply requiring the language to perform its own language-dependent downcasts if needed seems like a simpler solution right now.Possibly related: #32
The text was updated successfully, but these errors were encountered: