Homework on EVM

Excellent answer Miss! really well documented! keep it like that please! :muscle:

Carlos Z.

1. What does the EVM do?

Not quite right sir(s), could you please redesign the question? That is not exactly what the EVM does.

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

Carlos Z.

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

Solidity will compile the instructions coded on an smart contract into Bytecode to be able to executed by the EVM.

5. What is a Turing Complete programming language?

Indeed sir, but it’s not only for Solidity, its for any kind of programming language that can execute complex operations, just keep it in mind :slight_smile:

Hope this give you a better understanding, let us know if you still have any doubt! :slight_smile:

Carlos Z.

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

Quite close sir, but the format of the instructions that EVM read is ByteCode .

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

Carlos Z.

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

The format of the instructions that EVM read is ByteCode .

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

Carlos Z.

1 Like

The ability to perform any computation required, basic maths, if else functions, translatable to other turing complete languages?

1 Like
  1. The EVM is a security gate between the code and the CPU. If there is malicious code in a smart contract it wouldn’t run it on the CPU. If the code is fine, it will tell the CPU to run it

  2. Bytecode produced in the programming language Solidity

  3. Solidity is the programming language in which you write the code. A compiler turns the programmed code into bytecode

  4. The programming language Script is not turing complete. This means things, such as loops are not programmable. These are important to program more complex smart contracts.

  5. It basically can compute any application you can think of.

1 Like

Execute smart contracts
Bytecode
Solidity is the coding language and bytecode is the instructions read by evm
BTC is turing incomplete
Solidity is an example of turing complete where complex math can be programmed

1 Like
  1. EVM is the Ethereum Virtual Machine that runs on top of all the computers in the network. It reads the smart contracts and will tell the CPU to execute them.
  2. The EVM reads compiled bytecode.
  3. Solidity is the programming language for Smart Contracts. It is compiled into bytecode to be processed by the EVM. EVM doesn’t care about the programming language, it only reads compiled code.
  4. Bitcoin uses a very basic programming language called script. Script is not Turing Complete. Solidity on the other hand is much more complex and Turing Complete.
  5. A Turing Complete language is a complex programming language that can handle a lot of difficult tasks, e.g. loops.
1 Like
1. What does the EVM do?
EVN , (Ethereum Virtual Machine), reads the smart contract made in Solidity and compiles it to Bytecode, which then can be read and executed by the CPU. Each node has it’s own EVM and CPU.
  1. What is the format of the instructions that the EVM can read?
See above
  1. What is the relationship between the programming language Solidity and Bytecode?
See above
  1. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
Bitcoin has a max size on 1mB and can run a simpler program named Script. It can run more simple programming like multi sign.
But it’s basically the max size limit that prevents Bitcoin from running more complex programs.
  1. What is a Turing Complete programming language?
It’s an advanced programming language which can program smart contracts.
  1. Ethereum Virtual Machine is an application (a piece of code) that all nodes run on their hardware. It executes smart contracts on the network. It provides an encapsulated secure environment for the byte code, so code doesn’t directly instruct the CPU.

  2. EVM can read byte code/smart contracts.

  3. Byte code are instructions. Solidity is the compiler that interprets the bytecode.

  4. Bitcoin can’t run the same programs as Ethereum because it’s script is not turing complete. It does not have loops to instruct software to do things several times.

  5. Turing complete programming language is one with loops like solidity.

1 Like
  1. Reads and executes contracts.
  2. Byte code.
  3. Solidity is the programming language used to establish the smart contract. Solidity exists for the EVM to execute instructions. The instructions are in Byte code.
  4. It uses an incomplete turing programming language so it cant do things like loops.
  5. A system of data manipulation rules.
1 Like
  1. It reads smart contracts and executes them.

  2. Byte code

  3. Solidity is a programming language witch is compiled to bytecode that the EVM can read

  4. Bitcoin has a simple programming language called Script. Bitcoin is not turing complete and can only execute simple operations

  5. A programming language without limitations. Ethereum has scalability issues but no limitations in its programming language

1 Like
  1. What does the EVM do?
    The EVM is running smart contracts, translating the instructions to CPU

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    You write in Solidity and then compile code to Bytecode so that EVM can read

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because the Bitcoin programming language, Script of non-turing complete

  5. What is a Turing Complete programming language?
    It’s when the language is programmable to your needs, without limitations

1 Like
  1. ETHERIUM is a network of computers that operate the same way in terms consensus algorithm as bitcoin. But the difference with ETH is that EVM which makes it possible for us to execute code on this network. In such a way that we are all in consensus

  2. Solidity and transfers that to Bite Code for the CPU to read

  3. EVM reads the Smart contract deciphers the solidity programme language and tells the CPU what to do via Bytecode

  4. Solidity is a Turning complete programming language. Meaning you can program anything to it.

1 Like
  1. What does the EVM do?
    EVM runs on all nodes on top of their existing hardware and executes instuctions through all nodes to reach a concensous and action a command

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

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the programming language used to create your instructions. Using a compiler you compile your instructions into Byte code

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin isnt Turing complete so can only execute basic code.

  5. What is a Turing Complete programming language?
    One that allows you to use loops and execute instructions several times over. Solidity and Viper are Turing Complete languages

2 Likes
  1. Evm is an application run on a node that and it will run and verify a smart contract

  2. Bytecode

  3. Solidity will be compiled into bytecode so that the evm can read it.

  4. Because bitcoin isn’t Turing complete . Bitcoin wasn’t build for that purpose, it just wants to be digital gold.

  5. It means that I can solve every problem you van create

1 Like

1. What does the EVM do?
The EVM reads smart contracts and conveys instructions to the CPU while also encapsulating the smart contract to help secure the Ethereum network.

2. What is the format of the instructions that the EVM can read?
Opcodes encoded to bytecodes.

3. What is the relationship between the programming language Solidity and Bytecode?
Solidity cannot be executed by the EVM without being compiled into opcodes first. In order to store opcodes efficiently they are encoded to bytecode. Solidity writes the smart contract and bytecode enables the smart contract to be read and processed by the EVM.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
Because its not Turing-complete and cannot run loops, branch statements, or enable local state storage.

5. What is a Turing Complete programming language?
A programming language that is computationally universal, able to process sophisticated logic, an abstract machine, where a program can be written that can find an answer. A language that can perform looping and branching statements as well as local state storage.

Article-1
Blog-1
StackExchange

1 Like
  1. The EVM acts as a CPU for exectuting the program in the smart contract. This is for security reasons.
  2. The format is in byte code
  3. Solidity (as like other programming languages) will create the bytecode.
  4. BTC can only run very simple programs, it is not turing complete
  5. A Turing Complete program can run any program by allowing loops in the program unlike BTC.
1 Like

1. What does the EVM do?

Ethereum Virtual Machine EVM is an application that runs on all the nodes on an Ethereum Network that reads and executes a smart contract then talks to the CPU’s on each node, all the nodes execute the same code through the EVM until they get the same result based on the instructions in the SC

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

Byte code, programmed with solidity or viper language

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

Solidity compiles the instructions written on the SC in Bytecode

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

Bitcoin has a simple script program for the most basic of instructions like multiple signature requirement, script is not turing complete

5. What is a Turing Complete programming language?

Can program anything in theory with a TC language, any instructions, not limited, one helpful instruction is loops (do this^ 1000 times)

1 Like