Homework on EVM

1- Allows your CPU to read contracts on Ethereum

2- Solidity

3- Solidity is the Ethereum code, Bytecode runs EVM

4- Script is a very basic code

5- It is capable of running smart contracts. Unlimited abilities

  1. EVM, or Ethereum Virtual Machine, is a piece of code embedded whitin every Ethereum node which reads and executes smart contracts.

  2. Bytecode.

  3. The programming language Solidity is the high level programming language usually used to write smart contracts which then is compiled into Bytecode to be uploaded on the blockchain.

  4. Bitcoin cannot run the same type of complex programs like Ethereum can because Bitcoin programming language Script is not Turing Complete.

  5. A Turing Complete programming language is a programming language that can solve any computational problem.

The EVM can only understand Bytecode

  1. An EVM reads and executes smart contracts.
  2. The format the EVM uses is solidity programming language
  3. The EVM converts solidity programming language into bytecode for the cpu.
  4. Because of the looping factor.
  5. Touring complete language is capable of solving its own problems.
  1. EVM = Ethereum Virtual Machine, and is a security measure in between the smart contract code and te CPU that executes the code.
  2. Bytecode
  3. Solidity is a human readable language that translates instructions into bytecode for the EVM to read. You can thus use any other language that translates instructions into bytecode for creating Ethereum smart contract.
  4. Bitcoin uses a script language that is not turing complete.
  5. Turing complete means you can code anything you want to solve any problem. A crucial element in this is looping. In a non-turing complete language like bitcoin you cannot program loops and you have to completely write out each iteration which takes up a lot of space, which is limited on a blockchain.
1 Like
  1. What does the EVM do?
    EVM executes the program that you input into it.
  2. What is the format of the instructions that the EVM can read?
    The format is Bytecode.
  3. What is the relationship between the programming language Solidity and Bytecode?
    EVM can understand the Solidity language with Bytecode.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because Bitcoin have a programming language Script which is not Turing complete and Ethereum have Solidity which is.
  5. What is a Turing Complete programming language?
    Turing complete programming language can execute any mathematical problem and allow loops.
  1. The EVM executes contract bytecode and sends it to the CPU.
  2. The EVM can read bytecodes.
  3. Programming language Solidity is compiled into bytecode, in order to be read by the EVM.
  4. Bitcoin’s underlying blockchain scripting language does not support loops and is not Turing complete, while Sodility supports them and is Turing complete.
  5. The Turing Complete programming language means a language in which a program can be written that will find an answer. In theory, everything that is written should be executable.
1 Like

What does the EVM do?
The EVM is the Ethereum virtual machine and it runs programs on the Ethereum network.
The Ethereum consensus protocol verifies the execution of EVM applications.

What is the format of the instructions that the EVM can read?
The EVM runs programs stored in its own bytecode format.

What is the relationship between the programming language Solidity and Bytecode?
The Ethereum Solidity programming language compiles to Ethereum bytecode.

Why can’t Bitcoin run the same type of complex programs like Ethereum can?
By design, the Bitcoin programming language, Script, is incomplete, to discourage complex programs.

What is a Turing Complete programming language?
A Turing Complete programming language expresses all of the computational operations needed to implement algorithms.

1 Like
  1. Ethereum Virtual Machine. Runs smart contract
  2. Byte code
  3. Solidity is the programming language which then compile byte code in order to EVM to read it
  4. It can only perform basic instructions
  5. It is a language which can write any conceivable program
1 Like
  1. The Ethereum virtual machine (EVM) is the concensus protocol which the nodes in the ethereum network runs on. The EMV run smart contracts in an encapsulated environment and sends instructions to the CPU to be executed.

  2. Bytecode (machine language)

  3. Solidity is the high-level programming language of Ethereum which programmers use to construct smart contracts. Bytecode is machine language (low-level), which is compiled from Solidity.

  4. Bitcoins programming language (script) is not Turning Complete, which means that it can only perform simple operations.

  5. A Turing Complete programming language can computationally execute any mathematical statement. Thus, it is able to execute any idea which can be formed as an algorithm.

  1. What does the EVM do?
    The EVM is a program it runs in all ethereum network and reads the Smart Contrats .

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

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

Ethereum developer language is solidity, but the ethereum network only reads bytcode. Between them a compiler make the change from one to another.

  1. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because the language of ethereum is Turing complete and bitcoin leguague (script) isn’t turing complete.

  2. What is a Turing Complete programming language?
    Turing complete programming language, it means we can do everting we can think off .

1 Like
  1. An EVM reads the smart contract and is an application installed on all nodes to reach a consensus to check the result of the smart contract with all the other EVM results.

  2. Bytecode

  3. Solidity code can be compiled into bytecode so that the EVM can read the core.

  4. Because bitcoin is written in script which is not a Turing complete language meaning it is a very basic language (does not include loops) etc.

  5. Solidity is a Turing complete language.

1 Like
  1. The EVM interprets and executes smart contracts on the Ethereum network
  2. Bytecode
  3. Solidity is the language contracts are written in. Once they are compiled, they turn to bytecode
  4. Because script (BTC’s language) is not a turing complete programming language
  5. A programming language that allows complex applications and functionality
1 Like
  1. What does the EVM do?
    EVM stands for Ethereum Virtual Machine. It sits between the smart contract and CPU. EVM reads the smart contract and make sure the code doesn’t do any harm to the network, then compile into machine readable code.
  2. What is the format of the instructions that the EVM can read?
    EVM can read Solidity and Vyper.
  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is a high-level programming language than cannot be read directly by the CPU. Solidity code has to be compiled by EVM first for the CPU to read.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    It is because Bitcoin is positioned as digital money, therefore it is not Turing complete.
  5. What is a Turing Complete programming language?
    A turing complete programming language can do anything.
  1. What does the EVM do? - the EVM runs the smart contracts and ensures no malicious activity is happening in a smart contract. It is a security layer that allows code to not be run on the CPU.

  2. What is the format of the instruction that the EVM can read? - bytecode

  3. What is the relationship between the programming language Solidity and Bytecode? - the smart contract is written in Solidity and the compiler turns this into byte code for the EVM to read.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? - Bitcoin is not a Turing complete langue which allows for running loops and other complex logic.

  5. What is a Turing Complete programming language? - a programming language has complete programmability allowing for ‘Loops’ which reduce the need to write all instructions out line by line.

What does the EVM do?
The EVM reads the bytecode from a contract and converts them to machine instructions so they can be executed on the underlying hardware

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 is the high level programming language readable by humans. In order for it to run on the Ethereum blockchain a compiler converts it into bytecode which is then used by an EVM to actually execute the instructions.

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?
One that can execute any conceivable algorithm given unlimited resources

1 Like

The EVM can only understand Bytecode.
Your Solidity or viper code must be compiled to bytecode before the EVM can execute it

  1. An EVM reads and executes the smart contract.
  2. Even though the programming language for Ethereum is solidity or Viper, the EVM can only read the instructions in byte code. This conversion is enabled by using a compiler.
  3. A compiler converts solidity to byte code so that an EVM can read it and execute the smart contract.
  4. Bitcoin was always meant to be kept as digital gold and hence the programming language selected was Script - one that could perform only simple, limited problems i.e. Scripts is a non-turing complete language.
  5. A turing complete language anticipates any future scenarios and therefore, can be programmed to solve those problems. One of its features is something called looping which allows for recurring iterations.
1 Like
  1. EVM means that all nodes in the Ethereum network act on Ethereum Virtual Machines. A software on computers CPU.

  2. Bytecode.

3.Solidity is a high level programming language, like Java.

  1. Because Bitcoins network runs on computers CPU rather the an viruell machine.

  2. It allows you to do all kinds of computing and are only restricted by time duration and amount of memory.

1 What does the EVM do?
EVM – Ethereum Virtual Machine executes the smart contracts on the Ethereum network. It acts as a buffer between the SC and the computers CPU.
.
2. What is the format of the instructions that the EVM can read?
Ethereum contracts are written in the language solidity, which the EVM compiles into Bytecode.

  1. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the code used to program contracts on the ethereum network and is compiled into Bytecode by the EVM.

  2. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin uses a language called script which is not Turing complete, meaning it can not do the same level of contracts Ethereum can as it lacks the ability to execute looping with in its code.

  3. What is a Turing Complete programming language?
    Turing complete languages allow for the complex computational functions such recursive loop function. Examples of Turing complete languages include: Java, C, C++, Python.

1 Like