Homework on EVM

  1. It makes it possible to execute code on the network to reach consensus on small contracts.

  2. The format of the instructions are in byte code.

  3. Solidity is a programming language used to write instructions. These instructions are then converted into bytecode which is in turn read by the EVM.

  4. Bitcoin has a programming language but it is not Turing complete.

  5. A Turing complete is a language that allows you to do practically anything in the realm of computing.

1 Like
  1. Ethereum virtual machine is a blockchain based software program that interprets and executes smart contracts through bytecode. EVM runs on top of the CPU and creates an environment where smart contracts can run. It acts as a security layer for the ETH network.
  2. Reads in bytecode.
  3. Solidity is composed of byte code.
  4. Bitcoin is not a turning complete language. Therefore, it has limiting programming abilities.
  5. A TC programing language allows an individual to write whatever he or she wants without limitations.
1 Like
  1. EVM is an application that all nodes run on the Ethereum network. EVM makes it possible to execute code on the network.

  2. The EVM reads instructions in Byte code.

  3. Smart contracts are written in Solidity and then compiled in Byte code so the EVM can read and execute the code or smart contracts.

  4. Bitcoin’s language it uses is called Script which is not Turing complete.

  5. A Turing complete language can solve all problems. It can handle and perform loops.

1 Like

Homework on EVM - Questions (Updated on Dec 3 2019)

1. What does the EVM do?
The Ethereum Virtual Machine reads and executes smart contracts.

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

3. What is the relationship between the programming language Solidity and Bytecode?
Smart contracts are written in the programming language Solidity. It is then compiled into Byte code so it can be read by the EVM.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
The programming language used for Bitcoin is script. This language is not able to execute complex programs. It is called a not turing complete language.

5. What is a Turing Complete programming language?
A turing complete language is a programming language able to programme complex smart contracts. It is for example able to programme loops so certain actions can be repeated.

1 Like
  1. What does the EVM do?

The Ethereum Virtual Machine is responsible to read the instructions from the smart contract, converted in byte code and instruct all the CPUs on the network on the required tasks to perform.

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

Byte code

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

Solidity is the language the programmer use to compile a smart contract. This contract is then compiled in byte code to communicate with the ETV

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

Because the language Bitcoin uses is not Turing complete. Bitcoin can’t implement loops.

  1. What is a Turing Complete programming language?

A Turing complete language is a fully completed language which is able to also implement loops

1 Like

1 - The EVM executes smart contracts. Each node on the Ethereum network has a copy of the EVM as well as a CPU. The smart contract code is written using the Solidity language, the code is then compiled into byte code which the EVM will read then execute. To achieve consensus the EVM on each node will have to execute the code and produce the same result.
2 - The EVM will read the byte code.
3 - Solidity is the programming language that smart contracts are written in. Solidity will then compile the code into byte code which the EVM will read and execute.
4 - Bitcoin uses the Script language which is a language that is not Turing complete. This prevents Bitcoin from being able to run complex programs. The Bitcoin network will also most likely suffer from excessive spam if it was Turing complete.
5 - Turing complete languages allows for an abundance of things to be coded. Turing complete languages allow for the use of loops, this allows the software to execute 1 thing several times.

1 Like
  1. What does the EVM do?
    It executes code from smart contracts.
  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 what smart contracts are written in. When compiled, it is turned into byte code that the EVM can understand.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    It is not a tiring complete language.
  5. What is a Turing Complete programming language?
    A language that can be used to program complex instructions.
1 Like
  1. What does the EVM do? The EVM reads the byte code instructions written in smart contracts and tells the tells the cpu on nodes to execute.

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

  3. What is the relationship between the programming language Solidity and Bytecode? Byte code is created when the solidity instructions are compiled.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? Script is not turing complete and solidity is.

  5. What is a Turing Complete programming language? A language that can answer/solve any computable problem.

1 Like
  1. Secures smart contract. Reads byte code and sends it to CPU.
  2. Byte code.
    3.Solidity compiles byte code that EVM can read.
  3. Bitcoin uses Script and it’s not turing complete.
  4. In theory you can code anything with turing complete language because of its flexibility.
1 Like
  1. What does the EVM do?
    EVM reads all instructions in byte code and gives them to CPU, and EVM will make sure that code dont break any rule
  2. What is the format of the instructions that the EVM can read?
    Byte code that are written in Solidity
  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the source of the smart contract, easy to write, and Solidity is then compiled into Byte code so the EVM can understand it
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin programming language is not truly complete and its simple and undeveloped
  5. What is a Turing Complete programming language?
    A language that can handle any task, whether its simple or complex
1 Like

Homework: EVM

  1. What does EVM do?
    EVM makes it possible to code on the network as it is a blockchain-based software platform, that allows for the creation of decentralized applications.
  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 code is used for programming and then translated into bytecode for the EVM to understand.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because Bitcoin uses script that is not a Turing complete programming language.
  5. What is a Turing complete programming language?
    It is a programming language that can be used to simulate any Turning Machine. Because of Loops it allows for complex programming
1 Like

1.Translates the bytecode and sends instructions to the CPU for processing
2. Bytecode
3. Solidity is the programming language which gets compiled into Bytecode for EVM’s
4.Script is not Turing Complete - no loops
5. Can be used to simulate a Turing machine - If/Else/ loops etc are necessary

1 Like
  1. the evm (Ethereum virtual machine) is an application running on all nodes that can read and execute smart contracts on cpu.
    2.format of instructions that the evm can read is byte code called solidity, looks like english. (smart contracts)
    3.programming smart contracts
  2. bitcoin uses script and ethereum uses emv which uses solidity language to make it turing complete
    with this almost anything can be done.
  3. the programming language for turing complete is solidity.
1 Like
  1. What does the EVM do?

EVM reads and executes smart contracts

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

byte code

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

A compiler converts Solidity to byte code which the EVM will read

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

It uses script which is no turing complete and limited

  1. What is a Turing Complete programming language?

You can program anything you want

1 Like
  1. What does the EVM do?

A) EVM sits on top of cpu, it takes the smart contract and breaks the language into bitcode before interacting with cpu to execute the code, it also makes sure nothing malicious happens

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

A) Bitecode

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

A) solidity is a readable langue by humans and is transformed into byte code

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

A) Not based on solidity and does not support smart contracts

  1. What is a Turing Complete programming language

A) A tuning complete language allows for loop feature
And can program anything

1 Like
  1. EVM can read smart contracts and will tell the CPU what to do + will ensure that nothing malicious happens
  2. Byte code
  3. a compiler converts solidity to byte code wich the EVM will read
  4. because it is not turing complete
  5. it allows the loop feature
1 Like
  1. EVM can read smart contracts and will tell the CPU what to do + will ensure that nothing malicious happens
  2. Byte code
  3. a compiler converts solidity to byte code which the EVM will read
  4. because it is not turing complete
  5. it allows the loop feature
1 Like

[quote=“filip, post:1, topic:8443”]

  • What does the EVM do?
    Makes possible to execute code in the network, can read and execute smart contracts, serves as a layer of security from malicious instructions in smart contracts.

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

  • What is the relationship between the programming language Solidity and Bytecode?
    solidity code is taken by the compiler app and turned into byte code, which is read by the EVM.

  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    it is not Turing Complete

  • What is a Turing Complete programming language?
    solidity is an example, you can basically write whatever you want on it .

1 Like
  1. What does the EVM do?
    The EVM is the part of Ethereum that handles smart contract deployment and execution. EVM sits between smart contacts and cpu it executes the smart contacts into byte code which later will be run on 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?
    The Ethereum Virtual Machine (EVM) is a powerful, sandboxed virtual stack embedded within each full Ethereum node, responsible for executing contract bytecode. Contracts are typically written in higher level languages, like Solidity, then compiled to EVM bytecode.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin does not have the capability to run smart contracts. Ethereum is a blockchain that was developed to support scripting and the creation of decentralized applications and ‘smart contracts’ through its virtual machine (EVM).

  5. What is a Turing Complete programming language?
    A Turing Complete system means a system in which a program can be written that will find an answer.

1 Like
  • What does the EVM do?
    The EVM runs as a separate layer on top of the computers in the Eth network. It can read and execute smart contracts and serves as a layer of security due to its separation from the node computers.
    .

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

  • What is the relationship between the programming language Solidity and Bytecode?
    Instructions for smart contracts can be writter in Solidity and then run through a compiler to translate into Bytecode so the EVM can read them.

  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin Script is not turing complete and therefore only able to perform simple tasks eg Multi sig wallets.

  • What is a Turing Complete programming language?
    Turing complete programming language means you can (in theory) give instructions to the network to perform anything.

1 Like