Live data from Hacker News

Understanding Ethereum Smart Contracts

gjermundbjaanes.com

1–10 of 162 posts

Re: Understanding Ethereum Smart Contracts

#2
Any other "gentle introductions" out there? Something with a complete walk-through both from contract creator's perspective and from some random node on the network.

This one failed to explain how contract calls are executed - is it by a single node, by multiple nodes, do nodes compete with each other for the execution, what's their incentive, etc.

Re: Understanding Ethereum Smart Contracts

#3
We had an SF crypto builders meet-up[0] where I gave a talk on Introduction to Solidity programming[1].

It's a pretty good primer to get from zero to smart contract in about 30 minutes. Learn from my suffering.

[0] https://www.meetup.com/sfhackdays/

[1] https://www.facebook.com/hackdays4all/videos/544008492611485...

Re: Understanding Ethereum Smart Contracts

#4

Any other "gentle introductions" out there? Something with a complete walk-through both from contract creator's perspective and from some random node on the network. This one failed to explain how contract calls are executed - is it by a single node, by multiple nodes, do nodes compete with each other for the execution, what's their incentive, etc.

I don't have a better article, but I can try to answer your question.

Ethereum contracts are executed everywhere that the blockchain is downloaded and verified. They are deterministic, so every execution should return the same result.

Re: Understanding Ethereum Smart Contracts

#5

Any other "gentle introductions" out there? Something with a complete walk-through both from contract creator's perspective and from some random node on the network. This one failed to explain how contract calls are executed - is it by a single node, by multiple nodes, do nodes compete with each other for the execution, what's their incentive, etc.

Contract calls are executed by all the nodes in the network.

And they will all update the contract state onto their own blockchain then broadcast the result and compete via proof of work.

Re: Understanding Ethereum Smart Contracts

#6
post #5

Any other "gentle introductions" out there? Something with a complete walk-through both from contract creator's perspective and from some random node on the network. This one failed to explain how contract calls are executed - is it by a single node, by multiple nodes, do nodes compete with each other for the execution, what's their incentive, etc.

Contract calls are executed by all the nodes in the network. And they will all update the contract state onto their own blockchain then broadcast the result and compete via proof of work.

I wonder how they can ever expect a system like this to scale given that every node has to execute every instruction in every called smart contract...

Re: Understanding Ethereum Smart Contracts

#7
post #6
post #5

Earlier quoted context omitted.

Contract calls are executed by all the nodes in the network. And they will all update the contract state onto their own blockchain then broadcast the result and compete via proof of work.

I wonder how they can ever expect a system like this to scale given that every node has to execute every instruction in every called smart contract...

Scaling is definitely a serious concern and is a large focus of Ethereum developers at the moment. I don't understand much about the proposed solutions, but they generally think the Ethereum network can be sharded in a way that allows only a small subset of the network to run any given contract and still guarantee reliability similar to as if the whole network had run it.

Re: Understanding Ethereum Smart Contracts

#8

Any other "gentle introductions" out there? Something with a complete walk-through both from contract creator's perspective and from some random node on the network. This one failed to explain how contract calls are executed - is it by a single node, by multiple nodes, do nodes compete with each other for the execution, what's their incentive, etc.

http://decypher.tv/series/ethereum-development

Re: Understanding Ethereum Smart Contracts

#9
Just over a month ago, HN user DennisP answered the question "How did you get into contract ethereum development?".

https://news.ycombinator.com/item?id=15496393

If you are starting back at the idea of the Bitcoin blockchain, see ahussain's recommendation of 3Blue1Brown a day later:

https://news.ycombinator.com/item?id=15504409

https://www.youtube.com/watch?v=bBC-nXj3Ng4

Post reply on HN