Closed salaheldinsoliman closed 2 weeks ago
This PR adds static string print functionality to Soroban contracts. This serves the following:
print()
However, the following findings might be interesting: In both Solana and Polkadot, the VM execution capacity can grasp a call to vector_new in the stdlib: https://github.com/hyperledger/solang/blob/06798cdeac6fd62ee98f5ae7da38f3af4933dc0f/stdlib/stdlib.c#L167
vector_new
stdlib
However, Soroban doesn't. That's why Soroban would need Solang to implement a more efficient way of printing dynamic strings. @leighmcculloch
@seanyoung Can I get a second look on this one?
LGTM, thank you!
This PR adds static string print functionality to Soroban contracts. This serves the following:
print()
statementsHowever, the following findings might be interesting: In both Solana and Polkadot, the VM execution capacity can grasp a call to
vector_new
in thestdlib
: https://github.com/hyperledger/solang/blob/06798cdeac6fd62ee98f5ae7da38f3af4933dc0f/stdlib/stdlib.c#L167However, Soroban doesn't. That's why Soroban would need Solang to implement a more efficient way of printing dynamic strings. @leighmcculloch