3 ms·
It's bad software. "Smart contracts" should never have been general purpose byte-code programs. They should have been something much simpler and more declarativ
by Animats 8y ago
It's bad software. "Smart contracts" should never have been general purpose byte-code programs. They should have been something much simpler and more declarative, like a decision table.[1] Those simple tables are readable and predictable. They can even be tested exhaustively.
Yes, someone will have a use case where this can't do (obscure thing) nobody really needs to do. The way to design this is to try to express common contract forms - buying, selling, lending, renting, betting, derivatives - and make sure you have the expressive power for that. Then stop.
A decision table would be an improvement over some current written contracts. A friend once asked me to read over a complex currency swap derivative contract, written in English and I found a clause that was the opposite of what it should have been.
(And no, layering another language layer on top of the byte code, and a proof system on top of that, is not the answer.)
[1] https://en.wikipedia.org/wiki/Decision_table https://en.wikipedia.org/wiki/Decision_table
- chrisco255 8y agoYou have no idea how smart contracts are going to be used and implemented. A platform that makes a bunch of assumptions is DOA. I think that the answer is something more akin to what Ethereum already does, you open source protocols like ERC20 (tokens) and most dapps use those to achieve that functionality. You don't limit yourself and by extension, innovation with non-Turing complete expressiveness.
- Animats 8y agoWhen you're talking about serious money, you do. Remember the DAO.