5.What is a Turing Complete programming language?
Quite right sir, but, could you please describe it in general terms?
If you have any more questions, please let us know so we can help you!
Carlos Z.
5.What is a Turing Complete programming language?
Quite right sir, but, could you please describe it in general terms?
If you have any more questions, please let us know so we can help you!
Carlos Z.
Sorry sir, but I do not speak dutch, If you want me to review your homework, might suggest to post them on english?
If you have any more questions, please let us know so we can help you!
Carlos Z.
Ethereum Virtual Machine is like a security. It secures transactions in a node to keep it from being spammed or hacked. It runs Solidity and Byte codes into the node and spread out through the network.
Byte Code
Once a Solidity code is compiled, it will be translated to Bytecode which only EVM can understand.
Because the programming language Bitcoin uses is not turing complete. It cannot do loops.
Everything that is needed to be computed can be computed by using it.
Touring complete you can program what ever you can think of, Touring incomplete is limited
Sorry
2.What is the format of the instructions that the EVM can read?
EVM can read code written in Solidity (or Viper)
What is the relationship between the programming language Solidity and Bytecode?
Solidity code gets compiled by the EVM into bytecode, so that it can be executed by the CPU (which accepts bytecode instructions)
Why canāt Bitcoin run the same type of complex programs like Ethereum can?
Bitcoin has itās own language called āScriptā which is not Turing complete and cannot run loops, thatās why itās impractical for a lot of use cases.
What is a Turing Complete programming language?
A Turing Complete language must support (besides basic logical and mathematical operations) loops. Examples of such loops are: āDo Whileā, āForā, āWhileā
Smart contracts are executed to the CPU & the network with Ethereum Virtual Machine. (EVM) Is ingrained on each node in the Ethereum network. A smart contract is executed on Ethereum, the EVM reads the code within the smart contract, checks that everything within the smart contract is valid & translates the Solidity code to byte code for the CPUās to process. Shares it to the network of nodes and once they all have the same result they broadcast & execute it & the smart contract follows its instructions.
Byte Code , the solidity code is translated to byte code via a compiler application into byte code for EVM to read.
Smart contracts are written in Solidity , this is then translated by a compiler application into byte code so the EVM can look over the contract using math & logic to ascertain the validity of the contract & keep it secure by checking for malicious code etc before executing.
Bitcoin canāt run a Turing complete program because it includes loops which could cause issues with block size, possibly cause hash rate issues , Tx speeds & in turn have a roll on effect causing higher transaction fees. Security could also be compromised.
It is a language that can take any program and run it .Considered Turing complete if it is able to recognise or decide other data manipulation rule sets.
Homework on EVM - Questions (Updated on Dec 3 2019)
#1.- EVM or Ethereum Vitual Machine is used for designing
Smart Contracts.
#2.- EVM uses solidity and small pieces of code
#3.- Solidity is the programmable software which are translated into
bytecodes that is run by EVM.
#4.- Bitcoin uses script for transactions, not turing complete
#5.- turing complete language uses loops which makes it more
programmable.
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!
Carlos Z.
Excellent answers, Itās easy to understand. Please keep them like that
Carlos Z.
Thank you it helps knowing Iām on the right track