00:09 | <devsnek> | in practice this kind of code already exists in wasm libraries |
00:11 | <devsnek> | also do any implementations even attempt to perform scalar replacement across function boundaries? i would be very surprised if any did |
01:46 | <jschoi> | Is there a basic, gentle, up-to-date introduction on JS decorators that I can show beginners? The proposal explainer isn’t quite aimed for beginners, and the resources I’m finding are mostly about the old proposal version (or at least are seemingly somewhat out of date). |
01:53 | <Jack Works> | As I know the usage of decorator doesn't change so much. The underlying semantics changed so if you're not aimed to teach someone to write their own decorators, old tutorial might work too. |
15:34 | <iain> | devsnek: SM does scalar replacement post-inlining, so it's technically across function boundaries, but we're quite conservative. In particular, we don't reason about individual fields; either an object is completely scalar-replaced, or it escapes and we do nothing. this escapes in the linked example, so we would not do scalar-replacement in this case. |