LearnEVM's profile picture. The comprehensive EVM deep dive for Solidity developers. Made by @0xMacroSecurity

⚙️ LearnEVM.com

@LearnEVM

The comprehensive EVM deep dive for Solidity developers. Made by @0xMacroSecurity

置頂

Visit learnevm.com to deep dive on the EVM. Follow to get updates on new chapters. Like/RT to show your appreciation 🤖 It's the little things that matter 🫡


Adding to this, the 1 word used for the dynamic array is the length of the array Specifically, the length is zero, so there is no more data in memory following it! If the length were (for example) three, then the total size of the dynamic array would be 4 words in memory 😀

Solidity memory lesson 9 (for Fantasy top fans): Implicit memory allocation of dynamic vs static arrays. - Dynamic array is initialized to 0x60, pointing to the zero pointer. No memory is allocated. - Static array is initialized by setting it to the location of newly allocated…

optimizoor's tweet image. Solidity memory lesson 9 (for Fantasy top fans):

Implicit memory allocation of dynamic vs static arrays.

- Dynamic array is initialized to 0x60, pointing to the zero pointer. No memory is allocated.
- Static array is initialized by setting it to the location of newly allocated…


⚙️ LearnEVM.com 已轉發

All EVM opcodes in one diagram by @LearnEVM

shafu0x's tweet image. All EVM opcodes in one diagram

by @LearnEVM

⚙️ LearnEVM.com 已轉發

Building on the Solana virtual machine (SVM) is very different than building on the EVM. Differences include: - Data cannot be encapsulated - External call depth capped at 4 - All account reads and writes must be known ahead of time and much more (tighter transaction limits,…


⚙️ LearnEVM.com 已轉發

The Solidity Developer Survey 2024 has gotten 500+ responses so far. If you're yet to take the survey, you've got one last week to let us know... ✨ how you are using Solidity. 🆕 which recent changes impact(ed) you the most. 🔮 which features you anticipate the most. It takes…

solidity_lang's tweet image. The Solidity Developer Survey 2024 has gotten 500+ responses so far.

If you're yet to take the survey, you've got one last week to let us know...
✨ how you are using Solidity.
🆕 which recent changes impact(ed) you the most.
🔮 which features you anticipate the most.

It takes…

Eth is moving forward 🫡

EIP-7907 was just approved It will more than 10X the contract size limit, significantly improving the developer experience on Ethereum. I expect it will be included in the next upgrade after Pectra

CupOJoseph's tweet image. EIP-7907 was just approved

It will more than 10X the contract size limit, significantly improving the developer experience on Ethereum. 

I expect it will be included in the next upgrade after Pectra


this may seem like a lot of opcodes but that's just how expensive the keccak256 operation can be 👀

Compile-time zero-cost abstraction for Solidity. When compiled (with or without --via-ir), this function gives very optimized bytecode that is faster than using `keccak256` to compare two strings.

optimizoor's tweet image. Compile-time zero-cost abstraction for Solidity.

When compiled (with or without --via-ir), this function gives very optimized bytecode that is faster than using `keccak256` to compare two strings.


Gas efficiency *without* writing in opcodes? Have to admit this is kind of impressive🙈🙊🙉

Zolidity ERC20 is 52 lines of code. But still very gas efficient without assembly, vs. Solady ER20 (613 LOC):

z0r0zzz's tweet image. Zolidity ERC20 is 52 lines of code. But still very gas efficient without assembly, vs. Solady ER20 (613 LOC):


missing from the list: S - CODECOPY A - CREATE2 - EXTCODECOPY B - KECCAK256 C - CALLDATALOAD D - DIFFICULTY F - PREVRANDAO

EVM opcodes ranked

0xkarmacoma's tweet image. EVM opcodes ranked


⚙️ LearnEVM.com 已轉發

I have a monopoly on arranging EVM opcodes beautifully and optimally. And it’s free and open source. Milady.


⚙️ LearnEVM.com 已轉發

The simplicity of the EVM is beautiful.


you can use bytecode as storage.

Diamond compat is complete! The grand total is... 889 bytes! This is 5x smaller than the Solidity equivalent 🤯 And thanks to my previously conservative math, the router contract *still* supports over 4000 function selectors! 😁 As wise @optimizoor once said, "you can use…

0xgib's tweet image. Diamond compat is complete!

The grand total is...

889 bytes!

This is 5x smaller than the Solidity equivalent 🤯

And thanks to my previously conservative math, the router contract *still* supports over 4000 function selectors! 😁

As wise @optimizoor once said, "you can use…


⚙️ LearnEVM.com 已轉發

you can use bytecode as storage

you can use bytecode as storage.



Loading...

Something went wrong.


Something went wrong.