5

Will Move (on the Diem platform), like Ethereum, be turing complete? I have read the white paper but have been unable to decide.

This is the white paper: https://developers.libra.org/docs/assets/papers/libra-move-a-language-with-programmable-resources.pdf

TylerH
  • 20,799
  • 66
  • 75
  • 101
Aminadav Glickshtein
  • 23,232
  • 12
  • 77
  • 117

3 Answers3

2

It is a Turing-complete programming language. It supports while loops and Recursion.

See the Move Basics documentation for more information.

TylerH
  • 20,799
  • 66
  • 75
  • 101
jolestar
  • 1,285
  • 15
  • 21
1

Yes, Move is Turing complete which means that Libra is Turing complete. Because of this, determining if a given Move program terminates cannot be decided statically. However, by ensuring that (1) every bytecode instruction has a non-zero cost, and (2) the amount of gas that any program can be started with is bounded, we get this termination property for programs almost free of cost.

Check out more details in the official blog: https://www.diem.com/en-us/blog/how-gas-works-on-libra-blockchain/

Sahil
  • 461
  • 1
  • 9
  • 24
-1

It is either a turing complete or not a turing complete smart contract programming language.

Until now, there is no documentation mentioned this.

Charles Brown
  • 917
  • 2
  • 10
  • 20