TGViewer
TON Dev News TON Dev News @tondev_news · 41.1K subscribers
Post #151 11.5K
🎉 Tact v1.5.0 has just been released

The new Tact release v1.5.0 just landed on NPM! Here are the highlights of the most important features.

🛠 New Tact features

asm functions allow you to access the deep dark corners of TVM for more features or better performance:


asm fun keccak256(s: Slice): Int {
1 INT HASHEXT_KECCAK256
}


asm functions have some limitations at this point and the Tact team will make them even more powerful in the next releases.

- A wider range of serialization options for integers can now be used, not just 8, 16, 32, 64, 128 and 256-bit integers, but anything in between: uint1 through uint256 and int1 through int257. For instance, a 48-bit timestamp can be defined now if you'd like to build contracts that can work after the year 2038:


contract Contract {
timestamp: Int as uint48
}


- Constant definitions now support calls to user-defined functions and references to other constants:


const CONSTANT: Int =
myFunction(OTHER_CONSTANT)


👩‍💻 New builtin and stdlib functions and methods

- The exists method for the Map type: m.exists(key) which is equivalent to m.get(key) != null.

- The deepEquals method for the Map type: m1.deepEquals(m2) -- you can now easily compare two maps with the same key-value pairs and get true as the result, even if their internal representations are different, so the hash-based == comparison would return false.

- The toSlice method for structs and messages: struct.toSlice().

- The new slice, rawSlice, ascii and crc32 built-in compile-time functions to help you define constant integers and slices more conveniently.

- The new stdlib functions to help with fee calculations: gasConsumed, getComputeFee, getStorageFee, getForwardFee, getSimpleComputeFee, getSimpleForwardFee, getOriginalFwdFee, myStorageDue. This brings you access to the TVM instructions from 2023.07 and 2024.04 upgrades.

- The parseStdAddress and parseVarAddress stdlib functions allow you to parse slices into structured addresses.

🐞 The new release also includes a bunch of bugfixes. Thanks to all the Tacticians for all the issues you open!

📜 Full changelog for Tact v1.5.0: https://github.com/tact-lang/tact/blob/main/CHANGELOG.md#150---2024-09-15
  • 👍 34
  • 🔥 19
  • ⚡ 8
  • ❤ 5
  • 🤡 4
More from @tondev_news
  1. Jun 15, 2026🤑GRAM is live! The ticker, logo and name are changing. Everything else stays the same. Sa…
  2. Jun 11, 2026Bot API 10.1 📝 Markup Revolution This update introduces native text styling tools to enab…
  3. Jun 10, 2026TON Connect v3. TON Connect has received a major update with gasless transactions, connect…
  4. Jun 4, 2026MTONGA / MGRAMGA: the next step is clear: 30% extra on any top-up at @dtontech_bot / dton.…
  5. Jun 1, 2026🪙 Toncoin Name Change — Community Vote TON has changed substantially in recent months. Te…
  6. May 18, 2026🧠 AI devs asked for this — and we delivered. 🤖 Bots can now talk to other bots on Telegr…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →