What is Nostr?
Adrian Cochrane /
npub186l…nt98
2024-06-29 20:01:38

Adrian Cochrane on Nostr: Today I'll study a couple more core components of Ruffle's Rust/WebASM ...

Today I'll study a couple more core components of Ruffle's Rust/WebASM reimplementation of Flash AVM1!

It includes a tagged enum holding an interpreted data value (undefined, null, bool, double, string, object with properties, or movie clip. Which can be converted to/from the Rust equivalent types, including parsing numbers from strings. Or call builtin type-coercion & comparison methods.

There's a register machine with methods for the different opcodes, & (looped) methods to dispatch to them!
Author Public Key
npub186lgefknfnkgychnfjancqnv4k4yrdzxal486lw0p80z6vmley9qgsnt98