Fwiw there is a proposal to add a return stack to the EVM:
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.
Re:Ethereum 2.0 launches
by nonveumann on Tuesday December 01, 2020 @06:11PM
(#25271297)
It's more than a proposal at this point, it's been accepted into the next network upgrade, Berlin, and has been implemented in all major clients for a while now.
That's fantastic, thanks!
Looking close enough at Solidity was what turned me off the Ethereum ecosystem back in the day: https://news.ycombinator.com/item?id=14810008
eWASM does look interesting, though!
I've done a small bit of dabbling on solidity. Is there a place to get started on this new proposal? Or still too raw for the less experienced? I'll check your links but in case they don't cover that question.
I guess it's not mentioned a lot as it's still ~2 years away in Phase 2, AFAIK.
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...
[2] https://github.com/etclabscore/evm_llvm