13 ms·
I wonder when people will realize that the complexity inherent in human financial transactions will not go away just because you write code instead of natural l
by Barrin92 6y ago
I wonder when people will realize that the complexity inherent in human financial transactions will not go away just because you write code instead of natural language and 'decentralized finance' will reinvent everything it tried to get rid off (but shoddily) because nobody likes to lose their live savings because they missed a semicolon.
- seibelj 6y agoThere are plenty of Defi protocols that have not been hacked with many billions locked in them. Among them are Uniswap, Compound, Aave, and Synthetix. And in the traditional finance world plenty of mistakes have been made, like when Knight Capital accidentally ran their unit test algos in production and lost $500mil https://en.m.wikipedia.org/wiki/Knight_Capital_Group https://en.m.wikipedia.org/wiki/Knight_Capital_Group
- paulpauper 6y agothose are somewhat different. these are intermediaries when doing a hack. the hackers target smaller defi protocols with flash loans for example
- shoto_io 6y agoI think you have point. And, a key advantage I can imagine is that "checklists" could be implemented into code over time and that is potentially superior to natural language. I am not a crypto expert though.
- qeternity 6y agoIf it were this easy, software would not have bugs.
- terenia 6y agoStark reminder on the importance of quality control and checking the work twice. I think people sometimes become complacent with work completed in the virtual environment vs the physical world.
- shoto_io 6y agoyes. Reminds me of something a friend said a while ago: "You know how I became a great coder after 3 years? By being a bad coder for 3 years."
- LightG 6y agoExcept checklists often ... just get checked. c.f. people checking t&c's becuase they can't be bothered to read them (/sympathetic).
- redis_mlc 6y agoIt's an autistic thing, especially visible on HN. You get the same argument for eliminating airline pilots, yet when an engine explodes, I want pilots to deal with the emergency.
- chriswait 6y agoDoes anyone else feel like replacing all the legacy finance infrastructure with decentralised code is going to produce a worrying number of stories like this? Most of the examples I've seen so far it's happening to someone who works in tech, has disposable income, and is generally a proponent of cryptocurrency. I haven't written a lot of decentralised code in production, but I get the impression there is generally more to consider, and a fun new class of failure modes to worry about.
- dnautics 6y agoHow would exactly the same argument not be applicable to any sort of public code repo?
- deleted 6y ago[deleted]
- jollybean 6y agoIt's worse than that. Contracts are not code. It's a complete misunderstanding to posit them as such. Contracts depend first and foremost upon the legal regime in which they are valid. Every jurisdiction has rules, precedence, language means specific things. There is quite a bit of variability in this stuff, which is why we have lawyers. And Judges. Putting a contract into a crypto ... is basically pointless. There's possibly more transparency, akin to publishing contracts on the web or something like that. And of course, there is a 'narrow range of agreement possibilities' that could take place on crypto contracts, for example, things like stock options etc.. But generally speaking, even the contract cryptos are 'technologies looking for application'. We don't want to 'nay say' new, dreamy ideas, but these new dreamy ideas, combined with a bit of hubris, arrogance, greed, lack of self awareness can create problems.
- crooked-v 6y agoThe most obvious example for 'contracts are not code': the most airtight contract in the world can get quickly voided in court if it turns out one of the parties was actually a minor at the time of signing, even if they hid that fact or didn't actually know it.
- tshaddox 6y agoBut also, surely the traditional legal system will still handle disputes over smart contracts just like it does with traditional contracts. I can’t imagine that a missing line of code (intentional or not) would be treated any differently by the legal system than a vaguely-worded clause in a traditional contract. The legal system almost certainly will not say “your contract was just code and the code executed properly according to its technical specifications and therefore the outcome stands.”
- arilotter 6y agoIt's not necessarily true that a smart contract is controlled or operated by an individual or corporation. Once deployed, many have no provisions for administration or ownership tools. If you're using one of these contracts and there's a bug, suing the creator would be like suing someone because they put a random legal contract template online & you didn't proofread it well enough.
- lottin 6y agoI'm pretty sure a "smart contract" isn't a legally-binding contract. A smart contract is a piece of software code, like a text editor or a web browser.
- tshaddox 6y agoYes, and if you use a smart contract to hire someone to build a deck on your house, I suspect any resulting legal disputes would be treated by the courts the same as if you had used a traditional contract.
- vladimirralev 6y agoThere is place for both systems. Most crypto people have made peace with the fact that they can lose it all. People overestimate conventional finance. Conventional finance is incredibly flimsy if you dig into it. Leveraged beyond repair, ductaping one unprecedented monetary experiment after another. No conventional currency has preserved substantial purchasing power over a span of say 100 years maximum. The mathematical proof of supply limits alone is an unbeatable feature. Myself, not a crypto fan at all, I am sure crypto will be banned at some point, but just on the merit it's as good as anything.
- paulpauper 6y agoconventional finance has ways of insuring money and getting back stolen funds. it also is more idiot proof. nothing like that exists with cryto. crypto way less forgiving of errors..
- vladimirralev 6y agoNot quite accurate. The insurance you are talking about is for the custodial services of financial institutions. You can get custodial service for crypto with insurance too (https://custody.coinbase.com/faq https://custody.coinbase.com/faq). Outside of your narrowly worded agreement you don't have anything except perhaps the justice system which rarely works out in these cases. $20B were stollen in phone scams alone in the US last year, not recovered or insured, outside the insurance terms.
- TimJRobinson 6y agoBecause crypto is the first layer. It's like dealing with paper money and trades while living >200 years ago. Eventually "Trusted Institutions" will come along with insurance to keep your crypto safe for those with less risk tolerance. The advantage then is that you get to choose how much control you want to give up for safety. Unlike the current system where you have to use these institutions to participate.
- lottin 6y agoI think you're confusing "money" with "finance". Finance is about lending resources to carry out projects, whereas money is a means of exchanging things.
- duxup 6y agoFirst thing I do when changing or creating a thing. Try to figure out WHY things are the way they are and run through some scenarios. It's not a bullet proof system, I don't always do it well... but it can help having to re-invent some of the more obvious aspects of the wheel. The whole blockchain ecosystem seems like a long drawn out lesson as to why at least some systems we have are kinda big, bulky, involve a lot of checking / overhead ... and why some rules and regulations exist. Every new blockchain company that posts a blog and complains about "Why can't we just..." often has me thinking "Well yeah you shouldn't... wtf"
- ZephyrBlu 6y agoThis reminds me of Chesterton's Fence: https://fs.blog/2020/03/chestertons-fence/ https://fs.blog/2020/03/chestertons-fence/.
- duxup 6y agoTY I hadn't read this before, but it is worded way better than I did.
- alkonaut 6y ago> First thing I do when changing or creating a thing. Try to figure out WHY things are the way they are and run through some scenarios. As a developer I often stumble across code and systems that are superficially idiotic. I just think "Why isn't this doing X instead?". Here there are two approaches 1) blindly change the thing to make it better 2) Try to understand why it is wrong, and what led to the legacy design. The sensible thing might be 2, but its also soul-crushingly boring. So I obviously always do 1. After ripping out some code and replacing it with shiny new code, you invariably find the edge cases that led to the legacy design. They will show up as bugs, or edge cases missing. After a while, you will have iterated so that your solution might look something like the original (hopefully slightly better) but the important thing is you now have a system you understand fundamentally. You basically traded a few regressions for fundamental understanding of a system
- JadeNB 6y ago> 'decentralized finance' will reinvent everything it tried to get rid off Matt Levine wrote about exactly this in a recent Money Stuff column: https://www.bloomberg.com/news/newsletters/2021-05-11/money-stuff-crypto-markets-are-where-the-fun-is https://www.bloomberg.com/news/newsletters/2021-05-11/money-... . First paragraph: > A model that I often use for cryptocurrency is that it is rediscovering traditional finance: In its early days, crypto was a brand-new financial system, unsullied by the old evils of central banking, leverage, regulation, etc.; eventually people realized that some of those things were good, and started reinventing them. One way to reinvent finance is for idealistic crypto technologists to invent banking, leverage, regulation, etc., from first principles, with cursory or no knowledge of how the traditional financial system addressed these issues or why it rejected other solutions. You would expect this to lead to flawed but interesting results, whole new ways of doing things that might blow up horribly but that might instead point the way to a better future.
- ZephyrBlu 6y agoI find the fact that crypto is re-inventing finance from first principles to be really interesting. As he says, "You would expect this to lead to flawed but interesting results, whole new ways of doing things that might blow up horribly but that might instead point the way to a better future".
- Consultant32452 6y agoCompanies have canned contracts, like when you buy a house your mortgage company just plugs in a few variables and voila, contact. Commonly used smart contracts will converge in a similar way before they make it into common usage.
- agumonkey 6y ago> will reinvent everything it tried to get rid off I started to have this feel already. DeFi projects creates projects that create projects .. it's gonna be a potential spaghetti bowl of intermediate layers. Either the mass is gonna make it survive on the side or it's gonna fade off xml style.
- sva_ 6y ago> because nobody likes to lose their live savings because they missed a semicolon. Yeah, but shouldn't it be possible that these things will be avoided by confirming the validity of the code with theorem provers such as Coq, Lean, or something similar, at some point in the not too distant future? That's what I've been wondering, without currently having any stakes in the game (and probably not until there's compelling mathematical proof of security)
- Daishiman 6y agoTheorem provers require code for defining what you want to prove and the method through which you reach said proof. Proofs and theorems can have bugs.
- sva_ 6y agoBut aren't proofs exact in what they state? So it wouldn't be the proof that would be faulty. It'd be the interpretation of what somebody thinks the proof means to them, and that'd be something you could entirely objectively reason/work on.
- astrange 6y agoProofs are programs and programs are proofs of themselves. The ways proofs might help you show that a program is "correct" (what you meant to say) are 1. the effect of writing it twice in different languages 2. that proofs may be more abstract and you can refine the program from them. But a proof/formal methods can't actually prevent you from being wrong because you can be wrong at any meta level.
- astrange 6y ago> "correct" (what you meant to say) Oh, this is a definition of "correct", it's not me correcting the OP.
- Daishiman 6y agoBut the human world is not exact and full of context. Even mathematical.proofs exist within a context of an axiomatic system, known proofs, and various domain assumptions. I remember that in my computability theory class, defining the right proof was by far the most difficult task. And this was in very small, closed systems.
- pm90 6y agoCode won't make the complexity go away but it can definitely inform humans of various little things that would be too tedious or expensive to do manually. There's a reason we don't have lawyers review every ecommerce or in-store purchase that's made: the process of shopping has been standardized to such an extent that most parties (merchants and buyers) don't need to sign a bespoke agreement for every transaction. If we can get more complex agreements automatically hammered out, it represents not just large cost savings, but potentially creating more business for smaller players easily.
- anonytrary 6y agoAt least a smart contract can be unit tested thoroughly, whereas a 20 page legal document cannot be.
- masklinn 6y agoThat’s not actually useful, thorough unit testing can not prove the absence of bugs in the contract.