1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
ton/crypto
tolk-vm d9dba320cc
[Tolk] Get rid of ~tilda with mutate and self methods
This is a very big change.
If FunC has `.methods()` and `~methods()`, Tolk has only dot,
one and only way to call a `.method()`.
A method may mutate an object, or may not.
It's a behavioral and semantic difference from FunC.

- `cs.loadInt(32)` modifies a slice and returns an integer
- `b.storeInt(x, 32)` modifies a builder
- `b = b.storeInt()` also works, since it not only modifies, but returns
- chained methods also work, they return `self`
- everything works exactly as expected, similar to JS
- no runtime overhead, exactly same Fift instructions
- custom methods are created with ease
- tilda `~` does not exist in Tolk at all
2024-11-02 03:44:14 +04:00
..
block More precise calculation of expected shard blocks in checkload (#1279) 2024-10-15 17:59:12 +03:00
common celldb in-memory mode, stats for actors, perf counters, minor fix in rldp2 (#1164) 2024-09-23 17:34:37 +03:00
ellcurve TVM Upgrade (#686) 2023-05-24 21:14:13 +03:00
fift [Tolk] v0.6 syntax: fun, import, var, types on the right, etc. 2024-11-02 03:44:13 +04:00
func [FunC] Fix a bug with << operator to zero value (#1262) 2024-10-09 16:03:58 +03:00
funcfiftlib [Tolk] Rewrite lexer, spaces are not mandatory anymore 2024-11-02 01:33:08 +04:00
keccak TVM Upgrade (#686) 2023-05-24 21:14:13 +03:00
openssl celldb in-memory mode, stats for actors, perf counters, minor fix in rldp2 (#1164) 2024-09-23 17:34:37 +03:00
parser Various changes in TVM, github builds and tests (#793) 2023-11-03 14:43:34 +03:00
smartcont [Tolk] Get rid of ~tilda with mutate and self methods 2024-11-02 03:44:14 +04:00
smc-envelope Extra currencies (#1122) 2024-10-01 10:22:49 +03:00
test Use parallel write to celldb (#1264) 2024-10-11 15:31:59 +03:00
tl celldb in-memory mode, stats for actors, perf counters, minor fix in rldp2 (#1164) 2024-09-23 17:34:37 +03:00
util Merge branch 'SpyCheese-mintless-util' into testnet 2024-09-13 20:44:47 +03:00
vm Improve gas consumption in VmState::jump_to (#1276) 2024-10-15 17:43:46 +03:00
CMakeLists.txt celldb in-memory mode, stats for actors, perf counters, minor fix in rldp2 (#1164) 2024-09-23 17:34:37 +03:00
Ed25519.cpp bugfixes + decreased archive slice size 2020-04-08 23:49:28 +04:00
Ed25519.h emergency update 2020-03-24 03:32:16 +04:00