Ben (@7_7Bitcoin) header
Ben (@7_7Bitcoin) profile picture

不对任何新事物抱有偏见

Joined October 2022
Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)Photo by Ben (@7_7Bitcoin)
Replying to @mert
With my Move maxi hat on, it's tempting to drop a shallow "Move is great + more Move in more places can't be bad" take. But I would broadly agree because: 1. From the programmer perspective, a lot of the benefits of the Move rely on Move being the only language supported by the execution layer. In particular, when all contracts in the system can rely on the strong invariants enforced by the bytecode verifier, it's safe for structured types to flow across trust boundaries without losing their integrity. This is why Move functions can directly accept/return objects (including in cross-contract calls), put objects in data structures/global storage, etc. If your runtime supports both Move and another language without the verifier guarantees, you get those guarantees inside a Move contract and across Move <-> Move contract calls, but as soon as you do a (e.g.) Move -> eBPF call, all bets are off and you can only pass bytes in/accept bytes out--structured types cannot safely flow across the trust boundary because the verifier does not (and cannot) check the code on the other side. This limitation is not specific to Solana--the same issue will arise with Move/EVM or Move/WASM hybrids. This point is made very nicely + in a lot more detail in Section 6 of this piece medium.com/@kklas/smart-cont…; I copied one relevant excerpt below. 2. Similar from the system designer perspective)--if the global storage and transactions have nice structure that is directly connected to Move (e.g., global storage is a collection of typed objects with native ownership, transactions have explicit object inputs/outputs), you can squeeze a lot of optimizations and devX wins out of that structure (e.g., a lot Sui's nice perf/devX features come from exposing typed objects w/ ownership as a common abstraction throughout the stack and leveraging that wherever possible). It's definitely worth mentioning that Solana already does some similar things (PDAs, explicit R/W locks in txes) that work well and would probably fit reasonably well with adding Move. I'm not an expert on Solana's runtime v2, but my understanding is that it's going further down the road of more type information/structure in the data model, which I think is great and could bring a lot of devX wins with or without Move. To end on a more Move maxi note, this purely technical opinion should not be viewed as discouraging Move on Solana (or any other platform)--more Move chains/programmers advances the vision of safe smart contract programming for the masses, so I'm always in favor. But can't resistant a nerd snipe on what characteristics of a Move integration are (in my view) important to get the most out of the language.
5
12
2
75
5,955