Let's say I'm going to write a simple smart-contract to be executed in wasm. Is there any inherit overhead by the language I will use? In particular I'm interested of overhead between following languages:
- Go
- C++
- TypeScript
- Rust
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityTheoretically C++ is the most efficient language, since it is the native language for wasm, no one thinks of writing assembly by hand.
Next are Rust and Go, these probably add some overhead since they provide additional help for the programmer. TypeScript would probably add the most overhead but it really depends on the use case.
There are not a lot of benchmarks since this is all quite new. You can start with whatever language you're most comfortable with and replace with C++ if needed.
Most dApps are not complicated and you can update your code even after it is deployed.
main()
.
Aug 8, 2018 at 11:04