Кабинет

Посты канала TON Builders

сначала новые

#147Фото
Просмотры5 800
Пересылки—
Реакции73
Комментарии—
#146Фото
Просмотры5 610
Пересылки—
Реакции18
Комментарии—
#145Текст

Переслано из TOLK lang

🫧 Tolk v1.3: moving toward a general-purpose language After the previous post, this release may feel less surprising — but still a bit unusual. The reason is simple: Tolk is no longer evolving only as a contract language. It is becoming a foundation for the toolchain I described earlier. This release focuses on features beyond contracts — introducing general-purpose capabilities needed for libraries and frameworks. ✅ Notable changes in Tolk v1.3: 1. Type array<T> — dynamically sized arrays backed by TVM tuples. 2. Type unknown — a TVM primitive with unknown contents. 3. Type lisp_list<T> — nested two-element tuples (FunC-style). 4. Type string — text chunks backed by snaked cells, with StringBuilder for concatenation. 5. Compile-time string methods: "str".crc32(), "str".sha256(), etc. 6. Null coalescing operator — ?? like in TypeScript. 7. Import path mappings — import "@third_party/utils". 8. Compile-time reflection via @stdlib/reflection. 9. Custom serializers now support structures and generics. 10. The compiler now reports multiple errors at once. 11. Focused on stability — fixed dozens of minor issues found by LLM fuzzing. 12. Extensive internal refactoring towards being stateless and multi-threaded. PR on GitHub with detailed info. ✔ Arrays: redesigned tuples Working with TVM tuples has been fully redesigned. There is now array<T> — a dynamically sized container: // array<int> var numbers = [1, 2, 3]; // array<Point?> var optPoints = [ Point { x: 10, y: 20 }, Point { x: 30, y: 40 }, null, ]; - methods push, get(idx), etc. - any T, including sub-arrays like array<array<int>> - automatically serialized into snake cells - max size: 255 (TVM limitation) ✔ The `unknown` type Raw TVM tuple exists, but it's no longer built-in. It's just an array... of something unknown: type tuple = array<unknown> The unknown gives access to the untyped TVM stack, fully integrated into the type system. ✔ The `string` type TVM has no strings — only binary slices. Strings were always just a convention over binary data. Now Tolk has strings built-in. // string val str = "hello"; - strings are cells (not slices) - long strings are snake cells under the hood - methods calculateLength, equalTo, etc. - on-chain/off-chain encoding for jettons and NFTs to comply with TEPs StringBuilder encapsulates cell manipulation: StringBuilder.create() .append(content.commonContent) .append(individualNftContent) .build() By the way, compile-time functions now look cleaner: "str".crc32() and so on. ✔ Import path mappings The import statement now accepts @aliases: import "@common/jettons" import "@third_party/math-lib" This is similar to widely used path mappings in TypeScript. ✔ Compile-time reflection Many additions in v1.3 make sense not for contracts, but for frameworks. For example, take a look at one of reflect features: fun log(msg: string, loc: SourceLocation = reflect.sourceLocation()) { debug.print(loc.lineNo); } fun demo() { log("a"); // prints K — current line no log("b"); // prints K+1 } Why is this useful? It allows errors to point to the original call site — for example, expect(...) in tests — by carrying source location at compile time. ⚙️ A huge portion of internal refactoring A lot of work has been done inside the compiler core, peephole optimizations, and memory management. Final result: tolk compiler is now thread-safe and re-invokable within a single process. It will be embedded into an external toolchain written in Rust, communicating via FFI. ... And more Dozens of independent improvements. Combined, they cover the requirements not only for contracts, but for abstract libraries and the upcoming toolchain. Feel free to check the description on GitHub. 🌳 And one more thing! Wallet-v5, compiled with Tolk v1.3, reduces gas usage by 30% compared to FunC. As of Tolk v1.0, the savings were "only" 20%. Take a look at new benchmarks.

Открыть в Telegram
Просмотры2 860
Пересылки—
Реакции31
Комментарии—
#143Фото

Переслано из Gram of TON

💎 WalletConnect now supports TON. WalletConnect's global network, which connects 500M+ users across 700+ wallets and facilitated more than $400B in transaction volume in 2025, now has access to TON's expanding stablecoin economy and DeFi ecosystem. To enable this, TON Connect protocol has been extended to support WalletConnect as a transport layer, allowing TON dApps to interact with multichain wallets without building wallet connection support from scratch. 💎 What this means for the ecosystem: • Wallets with WalletConnect can now support TON with minimal integration effort. • Institutions gain access to TON's DeFi and liquidity layer. • Apps can attract non-TON native audiences. 🏅 Fireblocks and SafePal are among the first to integrate TON through WalletConnect. Through Fireblocks' network of 2,400+ institutional clients, organizations can now tap into TON-based DeFi, including liquidity pools and liquid staking, and incorporate TON into existing treasury workflows. With institutional capital flowing in, TON's DeFi platforms like STON.fi, DeDust, Tonstakers, Affluent, Storm, and TONCO stand to benefit from deeper liquidity, which in turn means better opportunities for everyday crypto users. 👉 Read more: https://walletconnect.com/blog/walletconnect-adds-support-for-ton-expanding-stablecoin-payments-across-a-fast-growing-ecosystem TON Community | TON Builders | TON Hubs | X | YouTube | LinkedIn | TON.org

Открыть в Telegram
Просмотры1 360
Пересылки—
Реакции14
Комментарии—
#142Фото
Просмотры1 570
Пересылки—
Реакции9
Комментарии—
#141Фото
Просмотры1 660
Пересылки—
Реакции25
Комментарии—
#140Фото
Просмотры1 630
Пересылки—
Реакции7
Комментарии—
#139Превью ссылки
Просмотры1 480
Пересылки—
Реакции14
Комментарии—
#134Фото
Просмотры2 720
Пересылки—
Реакции15
Комментарии—
#132Видео
Просмотры2 600
Пересылки—
Реакции9
Комментарии—
#131Превью ссылки
Просмотры3 420
Пересылки—
Реакции15
Комментарии—
#130Фото
Просмотры2 710
Пересылки—
Реакции10
Комментарии—
#129Фото
Просмотры2 180
Пересылки—
Реакции9
Комментарии—
#128Текст
Просмотры3 180
Пересылки—
Реакции17
Комментарии—
#127Фото
Просмотры2 070
Пересылки—
Реакции9
Комментарии—
#126Фото
Просмотры2 050
Пересылки—
Реакции10
Комментарии—
#125Фото
Просмотры2 300
Пересылки—
Реакции22
Комментарии—