Homework on EVM

1: The EVM reads the smart contracts.

2: Byte code

3: I dont understand the question? I have looked thru other peoples answers and still feel that the answer is not there. I understand that the smart contracts are written in Solidity, it get compiled into byte code and the EVM reads it. BUT what is the relationship between them? am i missing something? (Feeling stupid)

4: It is not Turing complete and that is how they want BTC to be.

5: Solidity. it can program complex smartcontracts.

1 Like
  1. EVM - ethereum virtual machine: makes it possible to execute code on the network in consensus.
  2. bytecode
  3. solidity compiles the code’s logic and instructions and the EVM will read all of the instructions.
  4. Bitcoin’s programming language is script and you can’t do much with it like Ethereum’s blockchain. It’s not turing incomplete.
  5. Turing complete allows you to solve any computational problem and allow loops.
1 Like

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

Indeed sir, but that is not correct answer to the question. That is part of the EVM definition.

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

  1. What does the EVM do?
    A: The EVM is something that each node in the network runs. The EVM can read and execute smart contracts.

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    A: The programmer (human) writes instructions in Solidity, and a compiler converts it to Bytecode (which is read by the EVM).

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    A: Because Bitcoin’s programming language (Script) is not Turing Complete; Solidity (Ethereum’s programming language) is Turing complete.

  5. What is a Turing Complete programming language?
    A: A Turing Complete language is one in which you can program anything you want. For example, a TC language has loops (which instructs the computer to do one thing many times). Bitcoin’s language (Script) does not allow loops.

1 Like
  1. What does the EVM do?
    The Ethereum Virtual Machine is a hardware abstraction layer that executes smart contract algorithms expressed in EVM bytecode.

  2. What is the format of the instructions that the EVM can read?
    The EVM reads EVM bytecode compiled by a higher level language like Solidity or Viper.

  3. What is the relationship between the programming language Solidity and Bytecode?
    A smart contract is programmed in English style language like Solidity and then it gets compiled into specific bytecode to execute the algorithm.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin was not designed to allow for Turing complete programming and it would not be efficient to store such smart contracts on the bitcoin blockchain.

  5. What is a Turing Complete programming language?
    A programming language is Turing complete if it has conditional branching and can mathematically modify data.

1 Like
  1. EVM receives transactions, broadcasts to miners for Proof of Work, executes the code on the network so there is a consensus about what the results should be.
    2.Format of instructions that the EVM can read: CPOU looks inside program step by step; EVM looks at instructions and tells the CPU what to do;EVM reads the contract, goes into EVM Bytecode and comes to same results as CPU for consensus
  2. Solidity compiles down to Bytecode and EVM reads the Bytecode.
    4.Bitcoin only has Script language which cannot solve
    problems the same as Solidity which is the Ethereum
    language.
    5.Viper
  1. EVM execute codes on the Ethereum network.

  2. Bytecode.

  3. Solidity is the programming language that is use to write code for Smart Contracts which is in turn complied into Bytecode to be read and executed by EVM.

  4. The vision of Satoshi is to create a digital currency which act as a store value equivalent to gold. Adopting a turing complete programme will make the BTC network more vulnerable to fraud and hacking which defeats Satoshi’s vision.

  5. A Turing complete programme allows programmability, scripting and gives developers the opportunity to create everything they want on top of Ethereum.

1 Like
  1. The Ethereum Virtual Machine provides a means for the Ethereum network to execute actions with money. Ethereum is the blockchain, and the EVM is the layer that executes commands using resources from the network.
  2. Smart contracts in Bytecode.
  3. Solidity is the programming language that is mostly in English that can send compiled instructions to Bytecode so that the EVM can execute smart contracts.
  4. “Script”, the programming language of Bitcoin, is not a Turing Complete language, limiting it from performing certain complex operations.
  5. In a Turing Complete language, you can do anything you want, such as loop instructions within a program.
1 Like
  1. What does the EVM do?
    It is an isolated virtual machine that allows people to program smart contracts within the EVM, while protecting the local CPU from being attacked by malicious codes or smart contracts. The EVM then becomes the one reading/interpreting and executing the codes within a smart contract.

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is written in human programming language while Bytecode is a language that is readable and executable by the EVM. The compiler is the one translating the human language of Solidity into Bytecode so that the EVM can execute the actions laid out in the contract written in Solidity.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because Bitcoin uses a programming language called Script is not Turing Complete. It is not able to execute loops, for example.

  5. What is a Turing Complete programming language?
    Solidity is an example of a Turing Complete programming language. It is able to solve complex mathematical problems, which are necessary to create meaningful smart contracts. It allows for multiple layers, applications, and loops, which allow you to program it to do anything (assuming there is no time and gas constraints).

1 Like
  1. Ans should be Byte code via Solidity.
1 Like
  1. EVM is Ethereum Virtual Machine in each node which its function is to read the smart contracts by instructing the CPU to do it. It ensures no malicious activity is happening in the smart contract and act as a security layer for the network.

  2. EVM can read solidity format

  3. The programming language Solidity of the EVM compiled into byte code to run to interact with EVM

  4. Because the programming language Bitcoin, Script, is not turing complete. So it’s only able to program simple things

  5. It means it’s able to solve any computational problem

  1. EVM ensures no malicious behavior on the network and provides consensus with the smart contracts written on the chain.

  2. Byte code

  3. Solidity is compiled to bytecode that is executable on the EVM

  4. Btc uses a language called Script but it isn’t touring complete and Solidity is. Script is a very primitive language.

  5. Touring complete is when a language can complete objectives on its own given the authority or ability to do so.

1 Like
  • What does the EVM do?
    EVM allows you to execute programmable code (such as smart contracts) that can be deployed on the Ethereum network
  • What is the format of the instructions that the EVM can read?
    bytecode like solidity
  • What is the relationship between the programming language Solidity and Bytecode?
    A compiler is used to compile the solidity into bytecode. Then it runs the the EVM on to the CPU
  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because Bitcoin has a simplified version that is limited and Ethereum is a turing comple programming language
  • What is a Turing Complete programming language?
    It is a language to be used to program anything abd solve computation problem
  1. What does the EVM do?
    The EVM is an application that is designed to read and execute the CPUs instructions

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity translates the programmer’s instructions (which might be written in English) into bitecode which is the EVM’s language.

  4. Bitcoin’s programming was primarily designed for conducting financial transactions. It does not have the capacity to accommodate smart contracts and other complex programming

  5. What is a Turing Complete programming language?
    A Turin Complete means that in theory anything is possible

1 Like

Quite right, but that is a Turing Complete programming language, could you please describe it in general terms?

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

Bytecode is Binary Code, Solidity is the programming language. EVM does not read Solidity, it read compiled solidity into Bytecode.

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

2 Likes
  • What does the EVM do?

An Ethereum Virtual Machine allows smart contracts to interact with each other in that virtual environment.

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

EVM can read bytecode format.

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

Solidity translates code into bytecode.

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

Bitcoin uses a language protocol called Script which is not Turing complete.

  • What is a Turing Complete programming language?

Everything that can be computed and solved can be done using a Turing complete language.

1 Like
  1. The EVM surrounds the bytes that hold the smart contracts and communicate with the CPU to execute them
  2. The EVM can read solidity
  3. Solidity is like English words that are translated into byte code
  4. BTC can’t run as complex of programs as ethereum because it is intended to be digital gold and the programers didn’t want software loops spamming the network
  5. Turing complete means it solves all the problems that we might have to solve & will have loops
1 Like
  1. The EVM executes the byte code on the CPU or GPU.

  2. Bytecode

  3. Solidity is compiled into Bytecode. Solidty is human readable and byte code is machine readable.

  4. It is Turing complete and cannot run loops.

  5. A Turing complete language can simulate any computer algorithm no matter how complicated.

1 Like

1.EVM will ensure that nothing will happend not leagal or smart contract will not brake lose.
2.EVM Byte code instructions.
3.solidity is TC etherrium programing languauge and Byte code is for EVM.
4.Bitcoin uses scripts and can not loop the orders.
5. when you can programing anything on that languauge, other ways it means fully completed programing language

1 Like