News for hackers. Stuff that matters.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by airza on Tuesday February 08, 2022 @11:41AM (#30260628)
Not 100% on topic, but are there other cryptocurrencies that avoid ETH's very painful 'more instructions cost more money to run' problem? I understand that some kind of anti-abuse system is needed, but the current system doesn't seem great either.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by whatshisface on Tuesday February 08, 2022 @12:28PM (#30261383)
It costs real-world money to run the instructions, so fundamentally all you can do is ask for it to be cheap.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by OskarS on Tuesday February 08, 2022 @12:38PM (#30261568)
Isn’t the computational cost of running the smart contracts absolutely miniscule in comparison to actually doing the proof-of-work computation? Or is the proof-of-work part of the smart contract in some way?

(geniuine question, I know very little of how Ethereum works)

Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by wesleyfsmith on Tuesday February 08, 2022 @02:53PM (#30263662)
Yes, you are correct that the computational of running the smart contracts is very small in relation to the proof of work.

But actually, the main cost is not computation, but storage. Storage (any variable that is holding data inside the contracts) is extremely expensive because there is very little of it, and has to be persisted on the blockchain forever.

In fact, view functions that don't change the state of the blockchain can be executed for free at any time.

Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by Bayart on Tuesday February 08, 2022 @05:22PM (#30265695)
Related to that, people have started using old procedural generation tricks to store "large" amounts of data on-chain. For example, as far as I understand it, Aavegotchi [1] stores base layer SVGs, metadata and functions to use these and render the actual end-product at view-time.

Blockchain constraints are eerily reminiscent of the demoscene [2][3][4] (just using the opportunity to share stuff I like, don't mind it).

[1]: https://github.com/aavegotchi/aavegotchi-contracts

[2]: https://www.youtube.com/watch?v=bD1wWY1YD-M

[3]: https://www.youtube.com/watch?v=qJegM2UgEZU

[4]: https://www.youtube.com/watch?v=0w_xEUoK79o

Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by SilasX on Tuesday February 08, 2022 @04:01PM (#30264623)
This: If you don't have some noteworthy transaction cost, the network gets flooded with spam past its other scalability limits.

You can shrink it somewhat in absolute terms, but you need to throttle them somehow.

Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by syzygyhack on Tuesday February 08, 2022 @01:11PM (#30262100)
Yes, but you also need to store and compute over a massive global state, and any execution is replicated across every full node on the network. Too cheap = DoS.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by saurik on Tuesday February 08, 2022 @02:48PM (#30263591)
The proof of work is unrelated to smart contracts or transactions in general. Even if no one were using Ethereum at all today, the proof of work done would be the same as if it were used to capacity. The proof of work merely protects the consensus: it is not a cost of use.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by gowld on Tuesday February 08, 2022 @08:45PM (#30267580)
consensus on the distant past isn't very interesting. The proof of work is like a data center, or by sharing a whole cow's meat -- it costs almost all or nothing, not linear in usage, but the cost is borne by some method of division across the contents.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by amanj41 on Tuesday February 08, 2022 @12:03PM (#30261001)
Solana, Algorand, and Cardano are examples of smart contract blockchains whose fees are extremely low relative to the Ethereum gas model.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by woah on Tuesday February 08, 2022 @12:09PM (#30261078)
The fees are low partially because of more efficient execution, but mostly because not many people use them. Nothing so far has fundamentally solved the problem.
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by Entwickler on Tuesday February 08, 2022 @02:43PM (#30263502)
Isn't this the whole purpose of Layer 2 solutions for ethereum, e.g. ZK and optimistic rollups? https://l2fees.info/
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by pazimzadeh on Tuesday February 08, 2022 @12:10PM (#30261089)
I don't think that's what he was asking
Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by 22c on Tuesday February 08, 2022 @09:53PM (#30268123)
That is like asking for a car that doesn't have the "going further uses more gas" problem.

You can make more efficient cars that use less gas (optimise the EVM) or you can make them use a different gas that doesn't cost as much money (sidechains).

Re:MadMax: Analyzing the Out-of-Gas World of Smart Contracts... by ATsch on Tuesday February 08, 2022 @01:51PM (#30262695)
There can never be, for two simple reasons:

1. Making the whole world agree on something is inherently slow so there is limited capacity.

2. Every decision has to be made by a computer so the only solution available is some variant of auctioning to the highest bidder. Some number must compare larger than another and the only number you can't lie about is wallet balance (directly or indirectly via resource waste for PoW).

These are fundamental properties of the tech and one reason why these systems can never actually be usable for anything except a playground of a few wealthy hobbyists.