by siraben · 6y ago · 0 comments
The switch to eWASM would greatly improve security, efficiency and perhaps allow a diversity of languages to be used on Ethereum. It should be a matter of exposing the appropriate primitives to call other contracts, generate log events, write to the store and so on.
[0] For instance, see a PR that reduces codegen from 55K to 1.6K bytes on an innocuous contract https://github.com/vyperlang/vyper/pull/1488
[1] I'm guilty of it too; https://github.com/ActorForth/evm-assembler/blob/master/docs...
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2315.m...
Your evm-assembler looks pretty interesting. It's crossed my mind before to write an evm Forth, just for fun, and the lack of a return stack so far has dissuaded me.
eWASM does look interesting, though!
Seems like there's discussion of scrapping the whole phase 2 "execution environments" and just allowing heterogenous execution on rollups.