Top Tweets for #structs
Adopting Swift 6 strict concurrency. The pattern: immutable Sendable structs for data, @MainActor classes for UI state, actors for shared mutable state. The hard part wasn't the compiler errors — it was figuring out which state needs sharing. #Swift #SwiftConcurrency #iOSDev
@nikhilgohil11 good question. its lightweight as it doesn't spawn any subshells like top or ps. It picks VM stats through direct mach traps reading in-memory structs. I also added a benchmark stats script for others to try.
Rust Core Concepts #5 🦀
Structs & Enums
How do we represent real-world things in code without turning everything into a collection of variables?
Imagine building a user system. A user has a name, email, and age. These values belong together.
Instead of keeping them separate Rust gives us structs.

Today :
- rust borrowing rules, structs,enums,error handling,generics and trait bounds ✅
- 7 LeetCode questions
Gn
Day 7 of learning Rust in public. Two lessons today: structs and enums.
Struct = a school registration form. The blank form lists the fields, and every filled-in copy has real answers. Leave a box empty and Rust refuses to compile. https://t.co/wHpPZKZ9ju

Day 7 of learning Rust in public. Two lessons today: structs and enums.
Struct = a school registration form. The blank form lists the fields, and every filled-in copy has real answers. Leave a box empty and Rust refuses to compile. https://t.co/wHpPZKYBtW

I’ll also be implementing small examples instead of only writing explanations.
Starting with:
→ Ownership
→ Borrowing
→ References
→ Lifetimes
→ Structs & Enums
→ Traits
→ Smart Pointers
→ Error Handling
→ Concurrency
→ Async Rust / Tokio
If there’s a Rust concept you think belongs here drop it below 👇
@astratechx @ScrynStore A lot of people think the hard part is knowing Swift, but shipping Scry & Store after learning structs says the real unlock is staying with the idea long enough to make it real. SwiftUI plus SwiftData plus Scryfall is a great first stack for that kind of focused app.
@tetsuoai I'm not that far along yet (currently learning structs) but I look forward to the challenges.
One thing I’m really starting to like about Rust:
you can write it almost like a scripting language — structs, free functions and a straightforward main() — without inventing an object model for everything.
But when the problem actually needs abstraction, you can introduce impl, traits and trait objects and build something much closer to OOP.
Simple procedural code when that’s enough.
Encapsulation and polymorphism when they’re actually useful.
And somehow you get a lot of the ergonomics I associate with high-level languages while keeping the performance and low-level control I associate with C/C++.
That feels like a very sane balance.
Stop passing big structs by value in C. You're silently killing your program's performance and you don't even know it.
You Must Read This Thread!

One of the small but useful changes in Go 1.27:
With Go 1.27, promoted fields can now be initialized directly when creating the parent struct.
✨ instead of initializing https://t.co/lGByagRBxu or https://t.co/HP8Tz42VDG through nested structs, you can set City, State, and...

Days 3 & 4 of Rust + AI/ML:
Combining both updates today.
Rust:
- Dug deeper into enums and pattern matching
- Worked with Option, Some and None
- Practiced structs, ownership and move semantics through Rustlings
- Now at 34/94 Rustlings exercises
AI/ML:
- Continued linear algebra
- Worked through a few examples on linear independence, basis and rank
- Started solving more problems on paper instead of just following along with videos
Still need more practice with both.
Next: more Rustlings + MML exercises.

@ikechukwuokalia Thanks! Configs use packed binary structs written to flash into static buffers (0 heap). For OTA, the HAL simply streams signed binary blobs to the silicon's native secure bootloader for A/B swapping.
Day 2 of Rust:
- Revised Ownership and Borrowing concepts
- Learned about slices
- Went through structs
- Covered enums and pattern matching
Didn't get much time for Rustlings today because of work. Managed 2 exercises.
Progress so far: 25 (24 exercises + 1 quiz) out of 94.

Day 13 of learning @solana
Took a six-day break from the journey because life got busy. Back to learning today.
Spent the day revisiting Rust:
> Structs
> Methods
> Enums
> Pattern matching
Slowly connecting the Rust fundamentals to Solana development.
Day 44/100
✅ Learned
• Fixed & Dynamic Arrays
• Adding elements using push()
• Mappings & Key-Value Storage
• Structs for grouping differ data types
• Combining Arrays, Mappings & Structs
• How these data structures are used in Smart Contracts
#Blockchain #Web3 #Solidity
Struct in a List<object>? You just allocated on the heap.
Boxing copies the value into a heap object every time. In a hot loop that's millions of allocations and a busy GC.
Use generics, Span<T>, and avoid casting structs to object or interfaces in tight paths.
.
.
.
Structs are cheap until you make them pretend to be objects.
After learning Go, I started building my own projects (without AI)
Today I built a Go CLI contact manager from scratch. (In Progress)
It can add, list, find, update, and delete contacts in memory. I also learned Go structs, slices, maps, pointers, terminal input, functions, packages, imports, exported names, and basic command-line arguments.
Next: improve validation and error handling, then save contacts to a JSON file.
-- it is a simple project, just to build muscle memory for Golang syntax
#golang #fullstack

@swarnitghule All large rust codebases today, once began with small structs, enums and few impls.
Core topics of Rust:
1). Cargo (Build & package manager)
2). Ownership & Borrowing
3).Structs & Enums (Custom data types)
4). Pattern Matching (Powerful control flow)
5).Error Handling (Result & Option types)
@Kartiktechpeace Agree! even more especially for structs, using `sizeof()` is always a no brainer and a good habit to have
Bloated frameworks and padded structs destroy cache locality during emergency hardware scans.
SAVITAR bypasses this. It’s a bare-metal C++17 isolation kernel that packs raw metrics into un-padded 25-byte contiguous memory frames for maximum speed.
https://t.co/Qxpb4LkKv0
Last Seen Hashtags on Sotwe
publicchupa
Seen from Philippines
ometv
Seen from United States
12Kharimultimedia
Seen from United States
母���
Seen from United States
footworship
Seen from Italy
ควยตุง
Seen from Thailand
brondongcoli
Seen from Indonesia
femboy
Seen from New Zealand
outdoor sục cặc
Seen from Vietnam
tears
Seen from United States
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.7M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers



















