News for hackers. Stuff that matters.
Re:Learn Ethereum smart contract programming by masklinn on Monday July 24, 2017 @06:34AM (#14837267)
I understand the eth VM is pretty limited and limiting, but Solidity is just sad, it's like somebody saw Javascript and thought "ok that's a pretty terrible basis for writing contracts, but surely we can make it even worse?"

And then they succeeded at failing.

Re:Learn Ethereum smart contract programming by dallashoxton on Monday July 24, 2017 @11:28AM (#14839237)
Can't remember where I read it, but someone put it best during the DAO fiasco last year when they wrote "Imagine Javascript but your bank account accessible through the Document Object Model."
Re:Learn Ethereum smart contract programming by masklinn on Monday July 24, 2017 @12:27PM (#14839817)
Even that's only scratching the surface of how awful Solidity is. An example of minor security detail straight from the documentation is this:

    for(var i=0; i<arr.length; ++i) {
Solidity is a "statically typed language" with "type inference". In most of these, you'd expect i to be typed as whatever the type of arr.length is, but Solidity does not care, it sees `var i = 0`, 0 fits into a uint8 so a uint8 i is, it'll get promoted during the comparison and if arr has more than 255 elements it'll overflow and the loop is infinite.