Homework on EVM

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

Quite close sir, but Solidity is the programming language that you use to create/design smart contracts, after that, it will be compiled into ByteCode, so the format of the instructions that EVM reads is Bytecode.

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

Carlos Z.

1 Like

Hello miss, great answers! I guess you mistype EVM, maybe you want to edit it :upside_down_face:.

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

Carlos Z.

  1. The virtual machine runs the smart contracts
  2. Runs the code separately to the CPU’s.

It can process pieces of code like loops which brings automation to a smart contract. Turing languages can do more which improves scalability but runs the risk of spam when a process can be coded to be on a loop.

1 Like
  1. What does the EVM do?
    The Etherium Virtual machine interprets and executes code between smart contracts and nodes
    on the Eth blockchain
  2. What is the format of the instructions that the EVM can read?
    Bytecode translated from Solidity.
  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the language that is translated into Bytecode for the EVM to read
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because Script is not Turing complete.
  5. What is a Turing Complete programming language?
    A Turing Complete language is a language that in theory has no limitations which include loops
    that are repeatable instructions.
1 Like
  1. & 2. An EVM is a program that runs on top of hardware. It reads bytecode and through this executes smart contracts. It protects the noedes from being manipulated.
  2. Solidity is the programming language that compiles into bytecode. The EVM then reads and executes bytecode.
  3. Bitcoins runs a language called script which is not turing complete. Developers wanted it this way to protect the blockchain from being spammed and crowded.
  4. A turing complete programming language enables the developer to program any outcome thinkable. As we learned this includes loops.
1 Like
  1. What does the EVM do?
    EVM can read and control the smart contract. It reads byte code and then works across the network to gain consensus on the state of the contract.

  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 much like Java. It’s used to create the program and then has a compiler with compiles it into byte code to be read and contragolpes by the EVM

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    BTC is not Turing complete. The BTC program programming language is more simplistic and transaction based.

  5. What is a Turing Complete programming language?
    It is a language with latitude that can be used to program infinite scenarios

1 Like

What does the EVM do?

From what I’ve gathered the EVM excutes the smart contracts and updates the other nodes.

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

From what I’ve understood, the EVM reads and calculates the results in the smart contract and then tells the CPU to execute the contract then a final result will be updated into the smart contract through the EVM.

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

From my understanding, the relationship programming language solidity and bytecode goes as follows, the information stored in the smart contract is the bytecode, the bytecode is complied/decoded by the instructions put into the solidity lanaguage,after its done compling the code, the evm reads the code out so it can be executed by the cpu.

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

From my understanding the reason why BTC can run the same type of complex programs is because it isn’t turing complete. it is very limited in its programming potential whereas eth is, it is very open as options such as looping instructions.

What is a Turing Complete programming language?

From my understanding, a turing complete programming language is a computer language that can compute whatever function thrown at it. any math algorithm passed through it will be read and hopefully have its information processed and executed.

1 Like

EVM is a virtual machine to run smart contracts on the nodes in the network it makes sure there is no bad activity happening within it its almost another layer of security

the EVM reads byte code

solidarity programs compiled into a bycode

bitcoin is not a turning language which means it is very limited to make programation

it says you can program anything you want without a limit

1 Like
  1. The EVM is an application that runs on all nodes, which reads instructions to tell the CPU what to do.

  2. EVM reads any programming language that can be compiled in to bytecode.

  3. Solidity is the programming language in which the smart contracts are written, Bytecode is the language it is then compiled in to, to be read by the EVM.

  4. Bitcoin uses a non-turing complete programming language, restricted to the types of calculations it can do.

  5. A turing complete language is a language that can solve any mathematical equation (theoretically!)

:smiley:

1 Like
  1. The EVM sits between the smart contract and the node’s CPU, it reads instructions from the smart contract and tells the CPU how to execute them and prevents security breaches if malicious smart contracts are programmed to take over a node’s CPU.

  2. EVM can read bytecode.

  3. Solidity is the programming language used to write the smart contract, this is then compiled in to bytecode.

  4. A Turing Complete programming language theoretically allows a programmer to program anything they want or solve any mathematical equation. It can use Loops which can tell software to to do something several times instead of writing instructions by hand or if yuo need the instructions to adapt to a changed state.

1 Like
  1. What does the EVM do? Allows smart contracts to be implemented - it’s like an interpreter for all the code of the smart contract; and it shields the nodes
  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 the programming language which then is compiled into bytecode instructions that the EVM executes
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can? Because bitcoin does not support programming - it is not Turing complete
  5. What is a Turing Complete programming language? It’s a language that can execute loop instructions
1 Like
  1. The EVM is the Ethereum Virtual Machine, which interprets and runs smart contracts. Every computer in the Ethereum network runs it.
  2. The EVM reads bytecode
  3. Solidity is compiled into bytecode, which is then read by the EVM
  4. Bitcoin has very limited smart contract features and a non-Turing Complete programming language
  5. Turing Complete means no limitations on the kinds of problems that can be solved in the language
1 Like

[quote=ā€œfilip, post:1, topic:8443ā€]

  • What does the EVM do?
    EVM executes and reads the smart contract
  • What is the format of the instructions that the EVM can read?
    The format of the instructions is byte code.
  • What is the relationship between the programming language Solidity and Bytecode? Solidity writes the smart contract into Bytecode
  • Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoins language is script which means it cannot solve all problems because the script language is not turin complete
  • What is a Turing Complete programming language?
    A turin complete language such as Solidity is able to solve all problems and has loops which allows the language to tell the software to do things several times.
1 Like
  1. EVM reads the smart contracts and translates the code as instructions to the cpu of the nodes. At the sametime it also protects the cpus from any melicious code entering the ethereum network.
  2. Byte code
  3. programmers write the smart contracts in solidity which is then compiled into byte code then the EVM will read the instructions and pass the info onto the cpu.
  4. Bitcoin uses script language which is not turing complete so can’t run complex languages.
  5. A turing complete language means it can program anything you can conceptualize.
1 Like
  1. EVM reads the instructions of the smart contract written that have been compiled into bytecode and communicates these instructions to be executed by the features of the CPU that it encapsulates
  2. They are formatted in bytecode which is complied from Solidity
  3. Solidity is more of a straightforward language that is used to write the code which is then compiled into bytecode so that the EVM can interpret it
  4. BTC uses script which is not turing complete, meaning that it does not have the capacity to process more complex requests that may be incorporated in a smart contract
  5. A turing complete language is more sophisticated and able to more efficiently processes complex or involved instructions written into smart contracts
1 Like

Homework on EVM

  1. The EVM is the Virtual Machine that runs code or smart contracts on the protocol.
  2. Solidity is the code language that it reads made up of byte codes. Not sure if that’s the answer your looking for don’t know if I understand the question correctly
  3. Best guess Solidity uses bytecodes in the language. I might be totally wrong.
  4. Bitcoin is a very basic blockchain web 1.0. Even though you can build on bitcoin it’s very basic things that you can program.
  5. Is a system that recognize or decide other data-manipulation rule sets
1 Like
  • An EVM is a controlled environment that all nodes on the ETH blockchain have. Its function is to handle smart contract code on the ETH network and to safe guard nodes hardware components. It runs the smart contract code and produces a result. If all other nodes EVM’s have the same result the consensus is reached.

  • The format that EVM’s is a language called Solidity which is simialr to JavaScript. There is also work on a language call Viper based on the popular Python language.

  • The EVM takes Solidity and coverts it to Bytecode

  • Bitcoin dev’s did not want the network to become clogged with smart contract code and so only have a script language which is not Turing complete.

  • Turing complete language means you can program anything you can imagine.

  1. EVM executes smart contract code.
  2. EVM can execute bytecode, usually compiled from Solidity language.
  3. Solidity is the programming language that a contract developer would use to write their logic in. Bytecode is a compiled (ā€œmachine codeā€) that EVM can understand, but it is not practical for a developer to code directly in it.
  4. Bitcoin’s scripting language is not turing complete and lacks the usual programming language functionality like loops.
  5. A Turing complete language is a language that provides an ability to process data in almost any imaginable way.
1 Like
  1. What does the EVM do?
    EVM stands for Ethereum Virtual Machine. It executes the smart contracts

  2. What is the format of the instructions that the EVM can read?
    Byte code. It is something like python bytecode

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is a programming language close to english. Bytecode is a compiled version to be fed to EVM for execution more similar to asm language.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    In Bitcoin there is only a simple language script. It is not turning complete. It can only do simple scripts. It is like that to avoid Turing complete programming language problems and keep it simple for its purpose basically digital money

  5. What is a Turing Complete programming language?
    As an example a programming language that can make loops is turing complete. More technically a language is Turing complete if can emulate any turing machine (It isa machine that can execute instructions written on a tape and can write/read and move the tape forward and backward)

1 Like