Homework on EVM

1. what does the EVM do?
Makes it possible for us to execute cod on the network, that we all are in consensus about what the result must be.
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 Byte-code?
Solidity compiles the instructions into byte-code so the EVM can read it.
4.Why can’t btc run the same type of complex programs like eth?
because the programming language for btc is SCRIPT, it is very basic, it is made to make BTC digital money, gold nothing more while with ETH we make that with the smart contracts and the programming language Viper or solidity who is Turing complete language who allows us to write SC on ETH network
5. What is a Turing complete programming language?
is a feature of a programmer language that allows you to tell software to do it multiple times

1 Like
  1. What does the EVM do? Reads the instructions from smart contracts and tells CPU what to do.

  2. What is the format of the instruction that the EVM can read? Smart contract

  3. What is the relationship between the programming language Solidity and Bytecode? Solidity helps to create bytecode. Like a bridge.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? It is not turning complete language, does not have TC loops. BTC developers didn’t want the network to get spammed.

  5. What is a Turing Complete programming language? language that can solve all problems it might have to solve. Its not limited.

1 Like

1.Ethereum Virtual Machine. where Smart Contracts can run.
2. runs on virtual sandbox to protect network (computer) from malicious code.
3.

1 Like

1. What does the EVM do?
The EVM reads the smart contracts and tell the CPU what to do. It also prevents direct operations on the CPU written in the smart contract -> extra security.
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?
After coding our program in Solidity we use a compiler that transforms it into Bytecode so that the EVM can read it.
4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
Because Bitcoin is built with Script which is a very limited language that is not Turing Complete.
5. What is a Turing Complete programming language?
It’s a language that has the ability to code anything we could think of

1 Like
  1. Adds security by acting as a bridge between the code and the cpu.
  2. Byte code.
  3. solidity is the language and bytecode converts it to code.
  4. Because Script is not turing complete.
  5. A turing complete language basically means that anything is programmable.
1 Like

1.What does EVM do?
EVM is a security application to make sure a smart contract doesn’t take over the computer, every ETH node runs on it. The EVM reads and executes instructions on the smart contract and maintains consensus across the blockchain.

2. What is the format of the instructions that the EVM can read?
EVM can read code in Solidity and VIPER

3. What is the relationship between the programming language Solidity and bytecode?
Bytecode is the end result of Solidity Compilation written by a human.

4. Why cant Bitcoin run the same type of complex programs like Ethereum?
Bitcoin is limited in the fact it cant run loop program orders due to the different more simpler programing language.

5. What is a Turing Complete programming Language?
A Turing complete programming language is a program language that you can implement any possible algorithm with it.

1 Like

Homework on EVM:

  1. EVM reads smart contracts and transfer instructions to CPU.
  2. EVM can read the byte-code only.
  3. Between Solidity and byte-code is friendly relationship. Programmes on Solidity are compiled into byte-code.
  4. Bitcoin can’t run the same type of complex programs like Ethereum because it has different purpose, its block size is limited and its language isn’t Turing complete.
  5. Turing complete language can resolve any mathematical tasks.
1 Like
  1. Once the Smart Contract is initiated the EVM tells the CPU what to do.
  2. Byte Code.
  3. The code is written is Solidarity but then transferred to Bytecode so the EVM can read it.
  4. Because it has a different programming language
  5. A programming language that can do more things than a non-Turing Complete.
1 Like
  1. EVM is where all Ethereum accounts and contracts live. It will ensure the contract cannot take over your computer and steal information or data, that’s why it does not go through the CPU directly.
  2. EVM on smart contract is written on solidity program. Then the program will read the bytecode.
  3. Solidity is compiled of bytecode that is subsequently executed on the EVM.
  4. Bitcoin uses Script which is too primitive.
  5. Turing complete programming tells you how powerful a program language is. It is Turing complete if you can implement any possible algorithm with it.
1 Like

An EVM reads smart contracts via byte code and sends appropriate commands to the node it is associated with. This is a benefit because if smart contract commands were sent directly to the node, the node’s security would be compromised.

Bytecode

Solidity is a programming language that an individual uses to make smart contracts. Once the smart contract is put into the Ethereum network, it gets compiled into Bytecode for the EVM to interpret.

Because Bitcoin is not Turing Complete. The reason being is that the developers did not want Bitcoin to get spammed with commands and overinflate the blockchain with unnecessary data.

A Turing Complete programming language is a programming language that any command can be executed on, no matter how complex.

1 Like

The ethereum virtual machine runs on top of & creates an environment where the smart contracts run. Th he solidity codes are turned into byte code then the evm executes that byte code on to CPUS

Evm does not allow smart contracts to interact with host computer

1 Like
  1. Reads instructions and passes them of to the CPU to do the work.
  2. Byte code.
  3. Solidity transforms programs in to bytecode that can be read by the EVM.
    4.Bitcoin is a non-Turing complete programming language.
  4. A Turing complete language is allowing smart contracts to preform any action.
1 Like
  1. read the compiled bytecode of solidity and execute the instructions on CPU

  2. compiled bytecode of solidity

  3. we can use solidity to write smart contract code, and use the compiler of solidity to generate the corresponding bytecode

  4. the bitcoin script language is not turing complete, thus is not able to solve complex problem

  5. contains the complex syntax as loops to solve any problem as we can imagine

1 Like

1 Ethereum Virtual Machine, runs smart contracts on the Ethereum network.
2 The EVM reads Bytecode.
3 Written in Solidity (though potentially you can have other programming languages eg Viper)and then compiled into Bytecode.
4 Script, bitcoins programming language is Not Turing Complete…Limited programmability.
5 Turing complete means anything you can think of you can program…Thanks to features like “loops” and others for example.

1 Like
  • What does the EVM do?

EVM allows the execution of code on the network in such a way that all nodes are in consensus about the results.

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

The format of the instructions the EVM can read is called EVM Bytecode.

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

Bytecode is derived by the compiler from the Solidity programming language.

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

Bitcoin’s Script language can’t run the same complex programs as Ethereum because it is not a Turing complete programming language.

  • What is a Turing Complete programming language?

A Turing Complete programming language allows you to in theory program anything that your heart desires without limits.

1 Like
  1. What does the EVM do?

EVM allows programs to be executed through smart contracts.
All nodes will consume the smart contract in byte code and follow the consensus algorithm.
The EVM reads the byte code language through smart contracts. the smart contract is compiled down to byte code and executed inside the EVM.
The EVM also acts as a security layer which ensures no malicious code will get executed.

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

  2. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is a high level programming language that allows us to write awesome programs to do amazing things like send and receive tokens (NFTS & Money). in order for ethereum to process the program and execute all the amazing things you want to do, the EVM compiles the high level language down to machine langauge (bytes) and then the EVM can understand and execute all the amazing stuff you wrote in the smart contract.

  3. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin is not turing-complete. Bitcoin can run scripts to do some limited actions, but cannot do all the amazing things the Ethereum can do.

  4. What is a Turing Complete programming language?

Turing complete language basically means it can compute and solve complex problems. With a given amount of runtime memory and time… In theory it is a language that can theoretically run any program no matter how complex it is. there is no guarantee how long it will take to solve but with a given amount of time and memory a problem can be solved. for example we wanted to calculate all the stars in the known universe by using Nasa’s cameras it can take 100 years to solve… if we let the computer run for 100 years then we will have solved the problem and get a the answer to our question of how many stars are in the known universe.

long story short… bitcoin doesnt have loops and Eth can compute loops.

1 Like
  1. What does the EVM do?
    It executes code on the ethereum network.

  2. What is the format of the instructions that the EVM can read?
    It uses a smart contract programming language such as Solidity.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity compiles to bytecode which are the machine instructions, usually not as human friendly as computer code such as the case in Solidity here that the computer can understand and run.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    It is not Turing Complete.

  5. What is a Turing Complete programming language?
    A computer language that can solve any kind of mathematical problem.

1 Like

1- EVM runs and executes smart contract on the Ethereum blockchain in a way that all nodes can see the result.

2- Bytecode.

3- Solidity or viper can transform a program into bytecode which can read by EVM.

4- Cause it’s a non Turing complete.

5- A computer program that allow smart contract to perform and execute any command or action unlike BTC (non Turing complete)

1 Like
  1. EVM is between the smart contract and CPU ensuring security by reading the smart contract and making sure everything is correct.
  2. The instructions are in Bytecode.
  3. Solidity is the programming language used for smart contracts. A compiler takes this information and transforms into Bytecodes that EVM understands.
  4. Because Bitcoin language is not Turing Complete and don’t use loops, it is digital gold and not intended for smart contracts.
  5. Turing Complete is a language that can implement loops - the same thing happening over and over again and can solve any problem that Bitcoin can’t.
1 Like

1.) An EVM allows the execution of a smart contract’s code and network to reach consensus, and gives its computer partner step-by-step instructions from there on out.
2.) The format of the instructions that the EVM can read is the byte code, and it executes these instructions step-by-step.
3.) The relationship between the programming language Solidity and Bytecode is that Solidity gives its computer partner instructions directly; the smart contract using solidity can possibly break free if the instructions are problematic in any way. Bytecode, on the other hand, works together with an EVM to ensure that these network instructions are all correct before the smart contract’s execution fully takes place.
4.) Bitcoin can’t run the same type of complex programs like ethereum because bitcoin’s scripting isn’t turing complete (doesn’t have connections with things like Solidity), meaning it can’t solve as many problems by building things like dapps.
5.) A Turing Complete programming language is a program that can solve complex problems by innovating things like dapps.

1 Like