192 points · by RabbitmqGuy · 9y ago · 123 comments
Sorry, since the DAO fiasco I don't see Ethereum having any purpose. If a poorly written/unfair contract should be invalidated, I would rather have e the judicial system with hundreds of years of jurisprudence make that decision, than a few people at Ethereum.
The fact that the people running the nodes stopped seeing that fork of the chain as the interesting one is distributed consensus at work. Anyone that wants to keep observing that original fork can do so, that fork is actually alive in the form of Ethereum Classic.
Ethereum was forked after the DAO fail because people saw more value in a forked chain with new rules. Speaking about contract reversals or invalidations is misleading. That is simply not possible, because Blockchain. And while anyone can decide to fork a blockchain, building consensus around the fork is what gives it its value.
The DAO was a marketing horror because it promised a world ruled by code, built on top of blockchain tech. Blockchains, though, don't run on code but on consensus.
Which hard social/computer science problems are solved through a "consensus" algorithm that essentially constitutes denying the existence of those who disagree?
With Bitcoin, determining whether a fork is successful is very simple: are the tokens on its blockchain as liquid as those on the Bitcoin one? If they are, they are just as useful for transferring value as the "original" Bitcoin.
What metric would we use to determine whether an Ethereum fork is successful or not? If nothing is lost when a consensus algorithm fails to establish consensus, what value did it provide in the first place?
Market cap is an arbitrary measure because, in and of itself, it solves nothing. At any time, I can fork Ethereum with a buddy of mine, trade the resulting tokens at whichever price the original Ethers trade at, and the market cap would be the same. Or, alternatively, trade them at 1/1000 the Ether price, but change the protocol such that 1000 times as many exist.
Don't give splits such importance. The nature of blockchains means that the network is being constantly forked into many chains at its tip. It doesn't matter which protocol is running on that blockchain.
>Which hard social/computer science problems are solved through a "consensus" algorithm that essentially constitutes denying the existence of those who disagree?
Existance is not being denied. The chain is still there. The problem is that the rest of the people, a majority of nodes, prefer another version of the chain.
>With Bitcoin, determining whether a fork is successful is very simple: are the tokens on its blockchain as liquid as those on the Bitcoin one? If they are, they are just as useful for transferring value as the "original" Bitcoin.
>
>What metric would we use to determine whether an Ethereum fork is successful or not? If nothing is lost when a consensus algorithm fails to establish consensus, what value did it provide in the first place?
Proof of Work consensus algorithms don't "fail" to establish consensus. They are designed to swiftly choose one of many possible chains, based on a few simple parameters (the most important one being the amount of work needed to create the chain). That said, value is an off-chain concept. Just as US dollars have value because we all know they are widely accepted, Ethereum has value because there is a team of developers plus a big community plus a lot of nodes, and all that together allows some use cases that make Ethereum have value. Ethereum Classic has less value because it is not as widely accepted. Bitcoin has a lot of value because as of now it is the most popular cryptocurrency. Nothing about this has to do with the tech itself, but with the way we see the tech.
If you have two consensuses, you don't have consensus.
(Edit: Yes, I know, my quote is misleading, but I claim that this distorted version does somewhat represent the gist of the author's words.)
From the point of view of speculators in Ethers, the purpose of Ethereum's continued existence is to avoid losing money. Exactly the same motivation that caused them to redefine the core protocol, in order to accommodate those who invested in a badly written contract.
Also, to be fair, Ethereum Classic still exists. Just because some couldn't accept reality doesn't mean the benefits of a Turing-complete blockchain are gone.
You should also be aware that Ethereum Classic did not implement the DAO hack fork and continues to be used, and that this language should work just as well there.
Not to say that this language is known to not have important bugs (idk), but, y'know, it is definitely work towards contract safety.
But it does not follow that all useful algorithms can be implemented on a language that "guarantees productivity". Turing proved that the halting problem cannot be solved on a Turing machine. This opens the possibility for the existence of programs that might be "productive" in your sense, but might also never stop, and it is not possible to know in advance.
> The only thing you can do with a non-productive algorithm is convert electricity to heat.
I am not convinced of this at all. Perhaps true if you are talking about banking systems or web applications, but probably not true if you are talking about AI. Intermediary states of an endless computation might be interesting. Maybe this is a way to obtain unbounded creativity. Maybe this is the way to build minds. We don't know enough.
A more general observation: I find that we live in an era that is too obsessed with productivity at the cost of fundamental research, dreaming and imagination. I am convinced that the latter mindset is the only one that can bring qualitative changes to our culture and civilisation, and I think that our long-term survival depends on such qualitative jumps.
Of course, I also understand that someone has to take care of the plumbing...
10 PRINT "Enter your name"
20 INPUT NAME$
30 PRINT "Hello ", NAME$
40 IF NAME$ <> "Ralph" THEN
41 GOTO 10
42 END IF
50 PRINT "Goodby Ralph"
That program, because it might loop indefinitely isn't decidable and isn't possible to describe with Viper by design. This kind of program is pretty analogous to basically every program that communicates with the network, user, or some other external system.I'm gonna have to call "not quite" on that one. There's some zeroth-order truth and appeal to that statement, but there are certainly stochastic algorithms that have virtually guaranteed to be awesome, but have a nonzero likelihood, unbounded worst case scenario.
Are those programs not useful?
If I recall correctly, Pascal-style languages have counting for loops where you cannot modify the loop counter or the loop bound inside the loop. That is, you must use a while or repeat loop or recursion to have non-termination. A Pascal compiler would be trivial to extend with syntactic checks for the absence of such loops and recursion. But I don't think it's been done.
You could go towards more programming flexibility but a higher proof burden and use Spark/Ada (for Ada) or Frama-C (for C), but you would need to annotate loops with variant expressions to help the system prove termination.
Note that if you find languages without general loops and without recursion impractical, you might be disappointed by Viper as well. According to the grammar given on GitHub, Viper only has counting loops and no function calls at all except to a few built-in functions. The latter might just be an oversight, though. Functions are too useful to get rid of completely.
I like that one. Anyone know any widely adopted languages that do this?
Overflow checking is a bit more rare:
* Swift has it by default (error)
* So do Python, Ruby, Erlang (promotion to arbitrary precision)
* C# has an optional Checked Context though I don't know how common it is
* Rust has checked operations (opt-in, both error and saturating), will check (error) by default in debug mode, it can optionally check (error) in release mode
It is a pretty special case though, you have to jump through a number of hoops using dependent types to get it.
Indeed it does, but I'm guessing it doesn't come close to qualifying for "widely adopted language", my list is already stretching it.
GCC: https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins...
clang: https://clang.llvm.org/docs/LanguageExtensions.html#checked-...
C# has the ability to opt-into default checked arithmetic. I don't know of anyone that uses it...
It could be that they're making it a little safer, and a little easier, but not really too much safer. The features are described, and they look mostly like security?
Educational transcript / lab reports / gov transp.: How is it an efficiency for this to be on a blockchain. Do we now not trust archive.org?
And if you do end up trusting some non-blockchain entity, then the whole effort is pointless. (You might just as well directly trust them with your patent filings, reports, etc instead).
Of course, this is not exclusive to ethereum, but they seem to be the blockchain which is both highly adopted and the one with the most features (I think they'll be the first to offer a turing complete language for programming smart contracts)
A service for coordinating resistance against central american drug cartels.
These kinds of things are liable to get you killed if you attach your name to them. Better to just write the recipe and let the network do the administration.
What is wei? Another name for gas?
o_O twitch
calibre calibre-bin clang-format-3.8 creduce duplicity gimp gvfs-backends
inkscape libatk-bridge2.0-dev libatk1.0-dev libatspi2.0-dev libcairo2-dev
libgail-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgnomecanvas2-dev
libgtk-3-dev libgtk2.0-dev libgtksourceview-3.0-dev libgtksourceview2.0-dev
libpango1.0-dev libsmbclient mercurial mercurial-common prosper rubber samba-libs
texlive-latex-extra texlive-pictures texlive-pstricks virtualbox
virtualbox-qt virtualenv-clone virtualenvwrapper vlc-plugin-samba
aisleriot apparmor apport apport-gtk aptdaemon apturl apturl-common
checkbox-converged checkbox-gui command-not-found compiz compiz-gnome
dh-python firefox foomatic-db-compressed-ppds gconf2 gedit gir1.2-ibus-1.0
gnome-menus gnome-orca gnome-software gnome-terminal hplip hplip-data ibus
ibus-table inkscape language-selector-common language-selector-gnome
libbonoboui2-0 libgnome-2-0 libgnome2-0 libgnome2-bin libgnome2-common
libgnomeui-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra
lsb-release nautilus-share onboard onboard-data openprinting-ppds
plainbox-provider-checkbox plainbox-provider-resource-generic
plymouth-theme-ubuntu-text printer-driver-foo2zjs
printer-driver-foo2zjs-common printer-driver-postscript-hp
printer-driver-ptouch printer-driver-pxljr qml-module-io-thp-pyotherside rhythmbox
rhythmbox-plugin-zeitgeist rhythmbox-plugins sessioninstaller snap-confine
snapd software-properties-common software-properties-gtk
system-config-printer-common system-config-printer-gnome
system-config-printer-udev totem-plugins ubuntu-core-launcher ubuntu-desktop
ubuntu-drivers-common ubuntu-minimal ubuntu-release-upgrader-core
ubuntu-release-upgrader-gtk ubuntu-software ubuntu-standard
ubuntu-system-service ufw unattended-upgrades unity unity-control-center
unity-control-center-signon unity-lens-photos unity-scope-calculator
unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-devhelp
unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
unity-scope-manpages unity-scope-openclipart unity-scope-texdoc
unity-scope-tomboy unity-scope-virtualbox unity-scope-yelp
unity-scope-zotero unity-webapps-common update-manager update-manager-core
update-notifier update-notifier-common usb-creator-common usb-creator-gtk
Your mileage may vary, but the prospect of a Python-less system doesn't appear tantalizingly close :-)On the other hand, this language seems to take a subset of Python's syntax and interpret it with different semantics. I find that both theoretically neat and pragmatically smart. Making up a new syntax and writing a reliable parser is boring busywork that takes time better invested elsewhere.
mentioned in a different comment in this thread!
Specifically, Viper has two glaring flaws, both of which are not suffered by E, Monte, etc. The first is a lack of correct encapsulation. Viper appears to have a Python-style object model, which means that it's not possible to closely hold a value. As a test, how would you build an object with a value in its closure which no other object can access?
Second, Viper doesn't have mitigation for plan interference, which means that it's possible for certain kinds of recurrences to alter your program's security guarantees. As a test, how would you mitigate the DAO attack in Viper?
Finally, I fear that these flaws may be inherent to Ethereum, meaning that any language on Ethereum inherits these flaws structurally and cannot mitigate them. In that case, maybe it's time to design a capability-safe Ethereum!
I haven't looked into Viper and how it might address these matters.