Actual neural net being trained in the EVM. 200K gas inference, about 340K gas training step, including loading and storing all weights to storage with MIP-8. Still room to optimize.
I might be paranoid, but I think we all need to prepare for a large-scale temporary breakdown of the internet
Something like a network partition caused by a major BGP-like incident, or so much infrastructure being down / compromised that large parts of the network stop communicating with each other for a few hours / a day. We have been operating under the assumption that the internet is a reliable layer, but I think that assumption might break in the next 12/24 months
For defi protocols, we need to prepare for a scenario where Ethereum mainnet does not finalize for a day, with 2-3 competing forks being built in parallel
You can think about:
- Containing exposure. How do you trigger your circuit breakers across different networks? Can you have geographic redundancy?
- Maintaining critical operations. If you rely on bots, what happens if they are all running in a network that becomes unreachable?
- Avoiding unsafe transactions. For example, if two forks A and B are being built, and you send a swap transaction on A, but B becomes canonical, your transaction on A could be replayed on B. So you need to be mindful of replay risks, inconsistent chain states, etc.
- Off-chain code. How robust is your offchain code to reorgs and temporary loss of finality?
- Chain finality / L2s. What happens if the L2 sequencer is unreachable? How does finality work on non-EVM chains you use?
This might sound like sci-fi and far-fetched. But given everything we have been seeing over the past days/months, I think such an incident, while still unlikely, is now plausible
You don't need to go full doomsday, but I would recommend including this as a worst-case scenario in your incident response plan
5 completely separate critical infrastructure failures in a single week is unprecedented.
- NSA internal classified comms network down
- JPMorgan Chase and US banking network software bug
- United Airlines system outage system outage
- Federal Aviation Administration malfunctioning router
- Microsoft 365 Global outage software bug
what is going on?
I certainly don't think zero dependancies is always the right number, but the right number for a skilled team is a closer to zero than current common practice.
Using an external dependency usually brings in 50x the code that I actually need. More in deep tree package management world. That extra code today has bugs, and dependency code that I actually end up using is more complicated because of all that extra code. Much harder to be sure you are correct.
Please stop suggesting companies rewrite all their dependencies in house. It adds such overhead, it turns one problem into many and there is no guarantee of any security benefit.
@79jke Miladies are like people, some good, some bad, all unique. No shade on Milady PFPs.
But the text here was a dumb thing to have in an "agree or fire" document. Zero endorsement.
@dankrad I agree that "never break a contract" is a bad rule, but "break contracts whenever doing so would make the runtime better", is epicly worse.
The problem with 8037+ isn't the storage repricing (though it goes a little far there), it's the fact that gasLeft no longer tracks gas.
@owocki@ethcforg No, EIP-8037+friends deeply change how gas works, and does so in very weird, non-intuitive ways.
It's not just a matter of instruction pricing changing.
It seems likely that the risk of a supply chain attack will often exceed the risk of a coding agent making a new vulnerability.
Open source will shift away from helping you find already-working code to finding already-secured code, or finding new ideas altogether.
I appreciate details this soon.
Sharing like this reduces hacks, because other companies can learn. DeFi got good at this early on, but CEX's and old school companies have lagged far behind.