Homework on EVM

  1. It reads the smart contract and send it to the CPU to be exicuted
  2. Bytecode
  3. Solidity reads bytecode
  4. It is not Touring Complete
  5. A launguage that in theory you can do whatever you can think of.
1 Like
  1. What does the EVM do?
    Encapsulates the CPU, execute code on computer indirectly, permits for multiple EVM to independently execute code on multiple computers then produce result for consensus.

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is a high level programming language which must first be compiled to Bytecode before EVM can execute it

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because it is Turing incomplete and thus cannot run loops

  5. What is a Turing Complete programming language?
    One in which conditional loops can be programmed

1 Like
  1. An EVM reads and executes the smart contract
  2. The instructions have to be compiled into byte code.
  3. Solidity is the code used to write smart contracts it is then compiled into bytecode for the EVM to read.
  4. Bitcoin code is not turing complete
  5. A turing complete programming language can solve any problems, it has loops.
1 Like
  1. What does the EVM do?
    It reads and executes smart contracts on the Etherium network.
  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 program used to write smart contracts, which are compiled into bytecode and read / executed by the EVM
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    BTC uses a simpler, more limited script in capable of complex instructions.
  5. What is a Turing Complete programming language?
    Turing complete programming can solve all problems, and enable functions such as loops
1 Like

Questions:
. EVM is a piece of code which runs on the hardware of all computers and executes code in smart contracts so that there can be a consensus on the network’s actions.
. EVM can read bytecode.
. Solidity contains a compiler which allows for the reading of bytecode.
. The programming language of Bitcoin is non Turing complete so no iterations can be programmed meaning that it would result in spamming of the network.
. It is a programming language which can solve any type of problem and allows for iteration loops to be programmed.

1 Like
  1. What does the EVM do?
    Can read smart contract and makes sure the instructions are followed
  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 Ethereum uses. It compiles the information and makes it into Bytecode for the EVM to read.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because it is not Turing Complete
  5. What is a Turing Complete programming language?
    It is a programming language that can solve any mathematical issue.
1 Like
  1. What does the EVM do?
    the evm serves as the middle man from the blockchain to the CPU so nobody can take control of you or my computer it also reads and execute smart contracts
    the evm tells the CPU what to do and to read each instruction in order as well as execution of them and the evm shrinks it to the evm byte code it reads all instructions then finnaly reaches some outcome

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    solidity can be compiled and compressed into bytecode so the EVM can read it and send it to the CPU

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    because bitcoins proggraming language script is not turing complete whereas the evm for ethereum is turing complete
    5 What is a Turing Complete programming language?
    Solidity or a language where any condition can be programmed to execute any command and in theory program anything

1 Like
  1. What does the EVM do? It protects physical computer from malicious code by providing a virtual environment for the smart contract code to execute in.
  2. What is the format of the instructions that the EVM can read? Bytecode.
  3. What is the relationship between the programming language Solidity and Bytecode?Solidity code is compiled into Bytecode which is then executed by the EVM. The Bytecode is what teh EVM runs. Solidity code is just the language used for humans to write the contracts.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? Bitcoin’s programming language (Script), is not a Turing complete language.
  5. What is a Turing Complete programming language? At a loose definition - Any modern day programming language would be Turing Complete . For example; Solidity is a Turing complete language. Turing complete languages employ conditions, loops e.t.c, that allow programmers to create programs that make complex decisions.
  1. EVM -Ethereum Virtual Machine executes smart contracts in isolated environment on the nodes which execute byte codes got after the compilation from Solidity.
  2. Byte code after the compilation from Solidity or Vyper.
  3. Solidity program are compiled to get Bytecode.
  4. Bitcoin language is script which is not aimed to create complex programs.
  5. Turing language is very flexible and has loops which allows to make a lot of different applications.
  1. the EVM secures and executes SC.
  2. byte code
  3. Solidity is the Etherium language (at the moment of the video) and assume it is still or Viper has taken over (while is was developed). Solidity will therefore translate the secured SC into byte code just as Viper would.
  4. because BTC’s language “Scrip” is not touring complete - it cant create “loops” just as solidity.
  5. Solidity is a TC language - it can loop a tousand time if need and adjust codes when needed but it can’t scale well - to my understanding.
  • What does the EVM do?
    The EVM executes the instructions of a Smart Contract on the different nodes on the Ethereum Network. This is how consensus is reached.

  • What is the format of the instructions that the EVM can read?
    The EVM reads codes in Bytecode format.

  • What is the relationship between the programming language Solidity and Bytecode?
    The relationship between Solidity and Bytecode is that of written code and executable code. The EVM can only read bytecode to execute instructions from a smart contract. After code is originally written in Solidity, the Compiler then reads that programming language and converts it into bytecode. It is at this point that it becomes readable by the EVM.

  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin is not smart contract enabled. It does have a programming language called Script, but it is not able to write all possible instructions (it is not Turing Complete).

  • What is a Turing Complete programming language?
    A Turing Complete programming language can write all possible instructions (in Theory).

1 Like
  1. The EVM (Ethereum Virtual Machine) is like a translator between the smart contracts and CPU. Acts as a security barrier to not allow malicious attack on CPUs. EVM is distributed on the nodes and computers.
  2. EVM is used to read the bytecode.
  3. The EVM reads the bytecode to execute instructions from a smart contract. The compiler reads Solidity and then converts it into bytecode, then the EVM is able to read the instructions.
  4. Because Bitcoin language uses script language (primitive language) Not turning complete
  5. Meaning you can program an application to perform a same set of instructions numerous times. Can write all possible (but not always practicable) programs
1 Like

1.The EVM is the Ethereum Virtual Machine. It is the network of computers that executes smart contracts on the Ethereum Blockchain.

  1. Byte code.

  2. Solidity is the language that a person uses to write code that will then the complied to byte code so that it can be executed by the EVM.

  3. Because Bitcoin does not use a turing complete programming language.

  4. A turing complete language is an “unlimited” programming language, allowing for any possible mathematical operations to be performed. Turing complete languages allow for more complicated processes like loops.

  1. Programs- are instructions for cpu to execute lines of code. Instead Ethereum is a network of computers with no individual CPU computer controlling everything, instead individual computers can run the EVM application which is running on top of the Nodes running through the network, it give smart contracts the ability to execute programs within the network.

  2. The Format of Bytecode is in Solidity, the program language for Ethereum

  3. Solidity can allow an EVM to interact with the Bytecode.

  4. Bitcoin is not Turing complete, therefore does not have enough solutions for full world programming.

  5. Turing complete language would be Solidity, because it has tools like loops that allow developers the possibility to take on harder programming problems.

1 Like

1 - EVM - Etherium Virtual Machine is a software program that resides on each ETH computer node and executes the code of the smart contracts. It also assure that the code is not malicious and does not effect the computer node its executed in.

2 - the format is bytecode

3 - the ETH code is writen in Solidity programming langauge. Once Solidity code is compiled it turns into bytecode, which can be read and executed by EVM.

4 - Because the BTC programming language , Script is not Turning Complete. It only allows you to program very simple instructions.

5 - Turning Complete programming language is a language that allows you to program most anything.

1 Like
  1. EVM is the Ethereum Virutua Machine. It is a global singleton machine. The state is maintained by the nodes in the network that accept an verify the transactions. Each of those nodes runs the EVM. The EVEM that is running on those nodes creates an isolated invironment to run smart conrats and transaction request that have been submitte to it. OP codes and gas prevent it from spam attack
  2. The EVM reads byte code
  3. Solidity is compiled into byte code using a compiler, ad the byte code then runs through the EVM on the cpu of a node
  4. Bitcoin’s programming language is Script and is not turing complete
  5. A turing complete programming language is a programming language thats flexible enough that you can write whatever program you want on it.
1 Like
  1. What does the EVM do?
    The EVM makes it possible to execute code in the form of a smart contract. Which also allows nodes to reach consensus and execute the payments.

  2. What is the format of the instructions that the EVM can read?
    Anything that can be compiled into Bytecode.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the programming language used to write smart contracts, it has a compiler that compiles the code into bytecode that the EVM can understand and execute the instructions from the smart contract.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    BTC’s script language is very basic and not Turing Complete.

  5. What is a Turing Complete programming language?
    A Turing Complete programming language is a coding language that can for example hand loops and perform the instructions of the loop a set amount of time. Theoretically what you can build is limitless.

1 Like
  1. What does the EVM do?
    The Ethereum Virtual Machine allows for smart contracts to be executed on the nodes of the network. It encapsulates the contracts to protect the cpu of the computer from being subjected to malicious code.

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

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

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    The Script language that Bitcoin uses is not turing complete. This is a decision made by the developers of Bitcoin.

  5. What is a Turing Complete programming language?
    A language where you can write any conceivable program.

1 Like
  1. What does the EVM do?
    Ethereum Virtual Machine is what interprets and executes the instructions in smart contracts in a decentralized environment. It is a complete and robust system that can facilitate investment and contracts, handle transactions, pay fees, and handle other projects within the same system.

  2. What is the format of the instructions that the EVM can read?
    The instructions are written using a coding language called Solidity before it gets compiled into bytecode, which allows EVM to read and understand the code before it executes commands as per the instructions written in the smart contract.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the language in which the programer uses to write code, which then code gets pushed into a compiler, which then scans and translates the entire program into a machine-readable bytecode, bytecode relies on the compiler to interpret the code before it can execute commands that the computer’s processor will understand.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin’s language called script is not a Turing complete language that does not have the capability of loop. A loop in a computer is an instruction that repeats or in other words an iteration is asked over and over until no further action is required or until a specified condition is reached and if the answer requires an action then it is executed. Scripts gives the Bitcoins software instructions on how coins in a UTXO can be spent. It does not allow infinite loops, which has its advantages and disadvantages.

  5. What is a Turing Complete programming language?
    A Turing complete refers to a system capable of performing any logical step of a computational problem. One specific feature of having a Turing complete language is loops and with loops you can tell a program to do a set of instructions over and over again.

1 Like
  1. The EVM interacts and gives commands to the smart contract.
    2.Solidity
  2. Solidity turns the program into bytecode
  3. Bitcoin runs a coding language called script and it is not Turing
  4. A Turing complete language will in theory run any code that is imput into it
1 Like