Homework on EVM

Read the program and then pass it on to the cpu at the same time sending it out the instructions to all other EVM’s on the network to do the exact same.

EVM bytecode

The EVM compiles all the instructions written in solidity into bytecode

its a non turing complete program

turing complete program can be designed to do anything like solidity.

1 Like

1. What does the EVM do?
a. The EVM allows to execute smart contracts in a secure fashion on a computer running on the Ethereum network
2. What is the format of the instructions that the EVM can read?
a. The format is Bytecode
3. What is the relationship between the programming language Solidity and Bytecode?
a. In order for the EVM to run the code written in Solidity, it needs to be compiled into Bytecode
4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
a. Bitcoin’s native programming language Script is not Turing complete, thus severely limited in scope in terms of what kind of programs can be run on the network
5. What is a Turing Complete programming language?
A Turing Complete programming language offers the capabilities to basically solve any kind of computational problem (sans the travelling salesman problem :wink:)

2 Likes

1. What does the EVM do?
EVM’s sit on top of nodes in thw Etherium network. They read the bytecode instructions in the smart contract and translate it to the CPU.

2. What is the format of the instructions that the EVM can read?
Byte code

3. What is the relationship between the programming language Solidity and Bytecode?
Solidity is the programming language of Etherium and Bytecode is the language in which the instructions of a smart contract are broadcast to the network.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
Bitcoin is unable to do this because it is written in the programming language Script. Script is non Turing Complete which means it can not solve every problem and is limited in the functions it can perform. Etherium is written in the Turing Complete language of Solidity. It is possible to program any function in a Turing complete language.

5. What is a Turing Complete programming language?
It means that the language can understand and carry out complex instructions.

1 Like
  1. What does the EVM do?
    It creates an environment where allows smart contracts and DAPPS to interact with each other. Adds another layer of for POW.
  2. What is the format of the instructions that the EVM can read?
    It runs on Solidity format, a Turing complete language, written in byte code. It puts the EVM in the middle of smart contracts and CPU for security. tells CPU what to do in byte code.
  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity code is run thu the complier and turns smart contract into byte code to be executed.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because the Bitcoin script is not Turing complete. Ethereum allows people to build smart contracts and Dapps in an environment where smart contracts live and interact using blockchain technology.
  5. What is a Turing Complete programming language?
    It is a language that has Loops. A feature that allows a program to tells the software to do one thing over several times.
1 Like
  1. What does the EVM do?
    The Ethereum Virtual Machine makes it possible to execute code on the network in such a way that everyone is in consensus on what the results should be.

  2. What is the format of the instructions that the EVM can read?
    Byte Code

  3. What is the relationship between the programming language Solidity and Bytecode? Solidity, which is a smart contract program language, is changed or translated into Bytecode using a compiler. The Bytecode is then read by the EVM to execute the instructions at hand.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin is not Turing complete, meaning that the bitcoin code can not solve all problems, making it limited.

  5. What is a Turing Complete programming language?
    A Turing Complete programming language a language that can execute a multitude of operations or mathematical calculations. An example of this would be Solidity.

1 Like
  1. What does the EVM do?

EVM read and executes smart contracts. It also there for security reason between smart contract and CPU.

  1. What is the format of the instructions that the EVM can read?

EVM can read Byte code.

  1. What is the relationship between the programming language Solidity and Bytecode?

Byte code is compiled from solidity or viper.

  1. Why can’t Bitcoin run the same type of complex programs like Ethereum can?

Bitcoin use a “Not turing-complete” language it is limited and allows no loops.
Ethereum has a “turing-complete” language and has not this limits.

  1. What is a Turing Complete programming language?

Turing-complete language allows loops and can do in theory anything you need to solve.

1 Like

1. What does the EVM do?

EVM stands for Ethereum Virtual Machine. The EVM acts as a middleman between the CPU and The Blockchain.

2. What is the format of the instructions that the EVM can read?

The EVM reads the instructions in bytecode written on the smart contract.

3. What is the relationship between the programming language Solidity and Bytecode?

The programmer writes the code in Solidity. Then uses a Solidity compiler to translate it into bytecode.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?

Bitcoin is written in script. Script is not turing complete, it is limited on what it can do.

5. What is a Turing Complete programming language?

An example of a turing complete language would be Solidity. When something is turing complete you can basically program anything you can think of.

1 Like

Evm is the ethereum virtual machine that is connected to the blockchain and verifies smart contracts, tx.

EVM is isolated from the node/computer running virtual program to protect the network

EVM reads the byte code and can execute instructions of smart contracts

Bitcoin has a different programming language called script which is NOT turing complete

A turing complete programming language is flexible to program any applications or program you want.

1 Like
  1. Does some cool stuff, like run programs decentralized.
  2. Bytecode.
  3. program in Solidity, read in byte code.
  4. Because it’s not “Turing complete” which I’m not totally sure what that is.
  5. One that can loop, and run full programs … not really sure.
1 Like

1- EVM run on a full Ethereum node and excute smart contract.
2- EVM read the bytecode instructions from contract.
3- Instructions are writtin using Solidity language then compiled to obtain byetcode used by EVM.
4- Btc cant because the limit of the script language.
5- Turing language is a complete languages that can be used many, fonctions. loops is one of them.

1 Like
  1. EVM executes the instructions in the smart contract and relays the various programming steps to the CPU of every participating node of the ethereum network of computers. EVM encapsulates the instructions and acts as an interspaced safety measure between the CPU and the SmartContract to assure no malicious software can access the CPU resources directly.
  2. EVM reads the byte code which is compiled from Solidity Smart Contract programming language.
  3. Smart Contract programming is written in solidity and then processed by a compiler into bytecode.
  4. BTC’s scripting language is not turing complete and as such is a much more limited programmable code.
  5. With a turing complete language, in theory, anything can be written in code and executed.
2 Likes
  1. What does the EVM do?
    It turns human readable code to bytecode that the vitrual machine uses to execute the operations instructed.

  2. What is the format of the instructions that the EVM can read?
    EVM reads bytecode only.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the human readable code that develops use that then gets compiled to bytecode so that the machine may read and execute.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin’s language, script, is not turning complete and the community want to keep it spam resistant.

  5. What is a Turing Complete programming language?
    Turning complete means that loops are able to be implemented giving us the flexability to create more complex and dynamic programs .

1 Like
  1. What does the EVM do?
    Answer: Executes programcode that implement smart contracts
  2. What is the format of the instructions that the EVM can read?
    Answer:Bytecode
  3. What is the relationship between the programming language Solidity and Bytecode?
    Answer: Solidity is for programming what the smart contract should implement. When compiling this becomes Bytecode
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Answer: Bitcoin does not implement a complete Turing complete set of instuctions, meaning it cannot be used for complex calculations
  5. What is a Turing Complete programming language?
    Answer: A Turing Complete programming language implements instructions to any kind of computations, and instructions including loops
1 Like
  1. The EVM (Etherium Virtual Machine) can read and execute smart contracts.
  2. The format of the instructions that the EVM can read is called Bytecode.
  3. Solidity is the language that the program is written in and a compiler is used to create the Bytecode that will be executed by the EVM.
  4. Bitcoin cannot run the same type of complex programs like Ethereum can because it is not Turing Complete.
  5. A Turing Complete programming language is capable of various and more complex instructions, such as loops etc.
2 Likes

5. What is a Turing Complete programming language?

Hello sir, the Turing Complete programming language it have the ability to solve any kind of problem and the capacity to use loops., meaning it can solve complex problems/operations.

Keep the good work! Any doubt you may have, we are here to give you a hand! :slight_smile:

Carlos Z.

  • What does the EVM do?
    • Reads Bytecode and can execute smart contracts.
  • What is the format of the instructions that the EVM can read?
    • Bytecode.
  • What is the relationship between the programming language Solidity and Bytecode?
    • Solidity takes human readable code and compiles it to Bytecode.
  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    • Bitcoins programming language Script is not Turing Complete.
  • What is a Turing Complete programming language?
    • A programming language that can solve any computation.
1 Like

Thanks! Carlos, you’re the best.

What does the EVM do?

Ethereum Virtual Machine (EVM) is a operating system sandbox that reads, verifies, executes smart contracts within each Ethereum node.

Once read, it then advises the CPU within that node to execute the smart contract.

EVM are imbedded within each Ethereum node to agree on consensus and also secure the network.

What is the format of the instructions that the EVM can read?

Solidity and Vyper.

What is the relationship between the programming language Solidity and Bytecode?

Smart contracts are written in Solidity, the EVM converts it into Bytecode.

Why can’t Bitcoin run the same type of complex programs like Ethereum can?

Bitcoins programming language runs on Script which is limited and not turing complete.

What is a Turing Complete programming language?

A programming language that is extremely flexible without any limitations.

Ethereum Virtual Machine executes smart contract code

Bytecode

SOlidity is the programming language that compiles into Bytecode

Because Bitcoin’s programming language Script is not turining complete, but solidity is.

a programming language that (in theory) can solve all mathematical problems you want it to solve

1 Like
  1. What does the EVM do? Etherum Virtual machine. The EVM makes it possible to execute code on the network in such a way that all computers are in consensus about results. The EVM runs the smart contracts
  2. What is the format of the instructions that the EVM can read? solidity
  3. What is the relationship between the programming language Solidity and Bytecode? Using a compiler, solidity instructions are complied to byte code and EVM will read the instructions
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? Bitcoin is not turing complete - it cannot solve all problems
  5. What is a Turing Complete programming language?Turing complete program can solve any problem. anything you can think of can be created
1 Like