SwayLang Profile Banner
Sway Profile
Sway

@SwayLang

Followers
125K
Following
1K
Media
300
Statuses
1K

Sway is a Rust-based, domain specific language for writing smart contracts, created by @fuel_network.

Joined November 2021
Don't wanna be here? Send us removal request.
@SwayLang
Sway
2 years
Sway is a language purpose-built for blockchains. It combines the best of Solidity and Rust, providing a full suite of tools for creating secure, high-performance Dapps. đŸ§”
58
170
594
@SwayLang
Sway
12 hours
Sway community call | November'25
0
1
10
@SwayLang
Sway
12 hours
RT @nazeeh: going live in the next 10 minutes on the @SwayLang with the Sway Community Call for November. Join in!
0
1
0
@FTMO_com
FTMO.com
1 month
10 Years of experience with simulated trading. Turn your skills into rewards now!
0
5
16
@SwayLang
Sway
5 days
Sway’s treasure chest ⭐: → forc → Standard Libs → Sway Standards → LSP
0
0
13
@SwayLang
Sway
7 days
Want to try it? Check out this example:
0
0
0
@SwayLang
Sway
7 days
Simply deploy as normal and it’s handled atomically. No rework, no bugs, just a smoother developer experience. Developing in Sway: ✅ Reduces overhead ✅ Minimizes bugs ✅ Makes smart contracts easy
1
0
1
@SwayLang
Sway
7 days
In our 400KB example, Forc splits it into: 4 contracts (100KB each) + 1 loader contract
1
0
1
@SwayLang
Sway
7 days
Sway? It’s a game-changer. Hit the 100KB limit? No sweat. Forc automatically splits your oversized contract into multiple “blobs” and uses a loader contract to stitch them together. Your contract works as just by calling the loader contract. Zero rewriting needed!
1
0
0
@SwayLang
Sway
7 days
In Solidity, hitting the 24KB limit is a headache. You’re forced to use techniques to work around this limitation like: 🔁 Use proxy patterns đŸȘšÂ Split logic into multiple contracts 🔧 Replace modifiers with functions Then, rewrite all your tests to avoid new bugs. Terrible
1
0
0
@SwayLang
Sway
7 days
Why are there contract size limits? Every node has to store and process contract code. Limits prevent: đŸš«Â DDoS attacks 📉 Poor network performance đŸ’ŸÂ Blockchain bloat Limits also push devs to write modular, efficient code. (Spurious Dragon’s EIP-170 set this standard in
1
0
0
@SwayLang
Sway
7 days
Solidity caps contracts at 24KB. Sway? 100KB. But what happens when your contract is too big? Let’s dive into how Sway solves this painlessly compared to Solidity đŸ§”
2
0
1
@SwayLang
Sway
10 days
📚 Below are additional resources. The Sway standard library is a great reference for more complex examples on how to build a library, and the full FuelVM instruction set includes most of the instructions you’d find in the EVM plus more! âžĄïžÂ Sway standard library examples:
0
0
0
@SwayLang
Sway
10 days
Want to return multiple values? You can modify a tuple within the assembly block:
1
0
1
@SwayLang
Sway
10 days
🔍 Understanding the asm Block: This simply uses the add instruction to add one to register r1 and stores the result in register r2, then returns it. The return register is specified at the end, after all assembly instructions. It consists of the register name and optional
1
0
0
@SwayLang
Sway
10 days
Here's how it looks in Sway:
1
0
0
@SwayLang
Sway
10 days
✅ Just like Solidity, Sway also has `assembly` blocks: But the main user facing form is `asm {}`.
1
0
0
@SwayLang
Sway
10 days
🔧 Why use Assembly? → Gas Optimization: Writing logic directly in asm blocks reduces gas costs by avoiding high-level abstractions → Low-Level Control: Direct access to FuelVM instruction set perfect for library authors or power users who need custom memory management or
1
0
0
@SwayLang
Sway
10 days
Assembly in Sway is optional, but it's there when you need to squeeze out every bit of performance and take direct control of the FuelVM. Let's break it down đŸ§”
1
0
2
@SwayLang
Sway
13 days
Sway is an open source language, purpose-built for blockchain development. Written in Rust, it combines the best features of Solidity and Rust to enable secure, high performance smart contracts. Come explore what Sway has to offer https://t.co/8XJM3GEDQ4
1
1
7
@nazeeh
Nazeeh 🔜 Devconnect đŸ‡ŠđŸ‡·
15 days
FuelVM is the most underrated VM out there!
@bajpaiharsh244
harshbajpai
16 days
I still think FuelVM is the most GOATED virtual machine design out there!
2
2
15
@SwayLang
Sway
16 days
Come see what he has to say https://t.co/9sqcNXz9vS
0
0
11