Draft:Move (language)
Draft article not currently submitted for review.
This is a draft Articles for creation (AfC) submission. It is not currently pending review. While there are no deadlines, abandoned drafts may be deleted after six months. To edit the draft click on the "Edit" tab at the top of the window. To be accepted, a draft should:
It is strongly discouraged to write about yourself, your business or employer. If you do so, you must declare it. Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
Last edited by Citation bot (talk | contribs) 3 months ago. (Update) |
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
Typing discipline | |
---|---|
Implementation language | Rust |
License | Apache 2.0 |
Filename extensions | .move |
Website | github |
Influenced by | |
Move is a programming language for writing safe smart contracts.
Syntax and features[edit]
Move's syntax is similar to Rust
Hello World program[edit]
Below is a "Hello, World!" program in Move. The fn
keyword denotes a function, and the println!
macro prints the message to standard output.[1] Statements in Move are separated by semicolons.
fn main() {
println!("Hello, World!");
}
Bytecode interpreter[edit]
Move bytecode instructions are executed by a stack-based interpreter similar to the Common Language Runtime (CLR) and Java Virtual Machine (JVM). An instruction consumes operands from the stack and pushes results onto the stack. Instructions may also move and copy values to/from the local variables of the current procedure (including formal parameters[2]
Adoption[edit]
Move and its virtual machine are powering multiple blockchains, most of which are still in the early development phase.[3][4]
- Sui - A next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language (in devnet).
- 0L - A reference implementation of a neutral replicated state machine. Forked from the Libra/Diem technologies (in mainnet).
- Starcoin - A smart contract blockchain network that scales by layering (in mainnet).
- Aptos - Aptos-core strives towards being the safest and most scalable layer one blockchain solution (in mainnet).
- Pontem - Substrate-based parachain with MoveVM onboard (in testnet).
- Celo - Blockchain with EVM and MoveVM (coming soon).
- Diem - The original Move-based blockchain from Meta (form. Libra by Facebook) (discontinued).
- ChainX - Bitcoin's layer2 smart contract network has already supported WebAssembly and EVM, and is supporting MoveVM (in mainnet).
Books[edit]
- Move Book - Move book maintained by the Move core team.
- Move Book - Move book maintained by damirka.
- Move Patterns - A book on Move software design patterns maintained by villesundell.
- Sui Move by Example - A book on the Sui Move variant maintained by MystenLabs.
See also[edit]
References[edit]
- ^ Klabnik & Nichols 2019, pp. 5–6.
- ^ Blackshear, Sam; Cheng, Evan; Dill, David L.; et al. "Move: A Language With Programmable Resources" (PDF). pp. 1–26. Retrieved 2024-01-08.
{{cite web}}
: CS1 maint: multiple names: authors list (link) This article incorporates text available under the CC BY 4.0 license. - ^ Sundell, Ville (2022). "Move Patterns: Design Patterns for Resource Based Programming". Move Patterns. Retrieved 2024-01-08. This article incorporates text available under the CC BY 4.0 license.
- ^ "Awesome Move". GitHub. Retrieved 2024-01-08. This article incorporates text available under the CC BY 4.0 license.
External links[edit]