Top Tweets for #Iterator



I am revising Java and found out I never used Iterator in my whole life.
An iterator produces values one at a time, while iterator adapters let us build a pipeline of operations.
Interesting part:
Most iterator adapters are lazy. They don't process all the elements immediately. The work happens when the iterator is consumed such as by collect().
But what if you could describe what you want to do with the data, instead of manually controlling every step?
That's where Rust iterators come in.
Instead of memorizing iter(), map(), filter(), and collect(), I want to understand the idea behind them

Rust core concepts #16
Iterators: how do you process data without writing loops everywhere?
Imagine you're building a backend service. you have 1000 users you need to filter active users, IDs, and calculate something from the results
You could write a loop for every operation
@PythonDvz the iterator keeps the old nums, but the filter reads the rebound nums later. that split is where the silent bug hides.
@desteffiong one refinement: .collect() is one way to drive the iterator. .sum() and a for loop also consume it and run the map closure as items are requested. https://t.co/Lo5p356AlP
Complete system utility map of 17 built-in Python functions for backend teams. Architectural deep dive into sorting overhead vs lazy iterators:
https://t.co/qg2X4gIqlM
A clean, visual reference of 17 built-in Python functions every beginner should master—especially how functions like range(), sorted(), and zip() handle boundaries and mutability under the hood.
However, if you are architecting large-scale data pipelines, there is one major performance trap hidden in the implementation of #13 (sorted) vs #16 (enumerate) and #17 (zip):
1. Sorting Overhead (#13): sorted() always creates a brand-new list in memory and uses the Timsort algorithm with O(n log n) time complexity. Running this inside a heavy loop layer can instantly kill your processing speed.
2. Lazy Iterators (#16 & #17): Both enumerate() and zip() return lazy iterator objects in Python 3. They consume zero extra memory upfront because they yield pairs on demand, one element at a time.
For experienced backend developers: which built-in Python function do you find yourself writing the most inside production microservices? Drop your daily driver below!

Python built-in function cheatsheet for data analyst pipelines—understanding memory allocation differences between sorted() and lazy iterators:
https://t.co/qg2X4gIqlM
A clean, visual reference of 17 built-in Python functions every beginner should master—especially how functions like range(), sorted(), and zip() handle boundaries and mutability under the hood.
However, if you are architecting large-scale data pipelines, there is one major performance trap hidden in the implementation of #13 (sorted) vs #16 (enumerate) and #17 (zip):
1. Sorting Overhead (#13): sorted() always creates a brand-new list in memory and uses the Timsort algorithm with O(n log n) time complexity. Running this inside a heavy loop layer can instantly kill your processing speed.
2. Lazy Iterators (#16 & #17): Both enumerate() and zip() return lazy iterator objects in Python 3. They consume zero extra memory upfront because they yield pairs on demand, one element at a time.
For experienced backend developers: which built-in Python function do you find yourself writing the most inside production microservices? Drop your daily driver below!

@dinwwwh Progress from async iterators is a useful addition. Does client cancellation propagate back to the procedure too? For long-running tools, “the agent stopped waiting” and “the server stopped doing work” need to be distinguishable.
Every procedure becomes an MCP tool:
- name, title, description from your OpenAPI meta
- GET → readOnlyHint, PUT/DELETE → idempotentHint
- JSON Schema from Zod, Valibot or ArkType
- errors the model can read and act on
- async iterators report progress
How to use Command Line Arguments in Zig. How std.process.Init hands you the arguments in Zig 0.17, why toSlice() wants an arena and how to walk them with an iterator and no allocator at all. https://t.co/rLEirAtlyf #ziglang #Zig #SystemsProgramming

I found a drawing template... So I made it with LTTM and NSH :)
#rainworldfanart #rainworld #lookstothemoon #nosignificanthassement #iterator
(One is the version with shadow and the other without shadow)

BST Iterator, Medium level

Tuesday:
- Rust: macros & types, annotations, serde, borsh, lifetimes in rust,iterators, libs & binaries, cargo workspaces ✅
- DSA: started sliding window with LC 209 & LC 485 ✅
- System Design: Microservices, APIs, Load Balancing, Networking, Caching, CDN, Rate Limiting & Scaling ✅
This is actually cool; you can use Iterator::chunks() instead of a manual for loop to split the array into equal parts.

ECMAScript excitement 😉
Congrats to @smooshMap on advancing the Iterator Chunking proposal to Stage 4 @TC39 today 🎉
It can make iterators that chunk & window content.
[0,1,2,3].values().chunks(2); // [0,1], [2,3]
[0,1,2,3].values().windows(2); // [0,1], [1,2], [2,3]

auto in C++ isn't just laziness, it's how you avoid writing std::vector<std::pair<int, std::string>>::iterator twice in one line
@repojournal const iterator for range is the one i've been waiting on. half my const fn code is the while-loop-with-manual-index dance just to build a lookup table at compile time. crc tables, bit masks, all of that gets readable again
Completed the custom Vec<T> in Rust from scratch
Implemented:
→ push()
→ pop()
→ get()
→ Drop + heap memory deallocation
→ Iterators
Now taking it further with:
reserve() · clear() · first() · last() · iter_mut() · IntoIterator · DoubleEndedIterator · FromIterator
The interesting part is right now, we're trusting our unsafe code to maintain the invariants that make this a valid vector.
Next step -> is making those guarantees much more rigorous.
From a test implementation → deeper understanding of how Rust collections actually work.

Building my own dynamic array in Rust from scratch.
Implemented so far:
> Generic MyVec<T> using raw pointers
> Manual heap memory allocation with alloc
> len and capacity tracking
> Automatic capacity growth (1 → 2 → 4 → 8...)
> push() implementation
> Basic new(), len(), capacity(), and is_empty()
Next:
> Drop for proper memory cleanup
> pop()
> Indexing / get()
> Iterators
> Insert / remove

A rollup of 10 pull requests is carrying const Iterator for Range in rust-lang/rust.
The change implements const Iterator for Range, which allows the use of `for i in i..n` in `const`.
Separately, rustc_resolve is being changed to correctly keep all reexports in `ModChild::reexport_chain`, per a rollup merge. Another rollup merge detangles Session and CodegenBackend construction, which the PR describes as intertwined and confusing and error prone.
This Week in Rust published issue 669. #rustlang
https://t.co/k5jp9a74Yq
Ohhh, I only did this where Hunter was created for another reason, a little comic
#iterator #rainworlddownpour #rainworld #rainworldfanart #slugcat

@ranjitd18755665 That single range keyword turning ugly callback boilerplate into clean control flow makes functional iterators actually readable in Go.
Finally understood range-over-function iterators in Go.
Instead of writing a callback:
count(func(x int) bool {
fmt.Println(x)
return true
})
You can simply write:
for x := range count {
fmt.Println(x)
}
range handles the callback plumbing.
Another Go concept unlocked.
Go patched a known_hosts revocation gap. Host key checks could silently pass revoked keys. Fix shipped overnight.
flag adds All iterators and Flag.IsSet. No more hand-rolled loops over the flag set.
crypto/internal/fips140/aes gets loong64 LSX assembly for CTR and block ops. AES on the architecture was software-only until now.
hash/crc32 unrolls loong64 CRC32 to 32 bytes per iteration. Small, contained speedup.
cmd/compile fixes sign/zero-extension removal on loong64. A correctness fix, not a benchmark.
The loong64 push is real. Go keeps treating it as a first-class target. #golang
https://t.co/9dBWC2T5TE
one warning before you go and build this
an Iterator multiplies everything after it. 50 records with 4 modules sitting after the iterator is 200 operations from ONE run lol
so filter before the iterator, never after. cut the list down before it gets split up
for a normal week though? 20 signups times 4 modules is 80 operations for your whole monday digest. thats nothing, free plan handles your Automated intake system easily.
Builders, Automate your work so you have more time to focus on building and Marketing!
One of the biggest time savers as a builder is not having to go and check things yourself, for example: every monday morning one email lands with everybody who signed up last week, each of them summarised in a line….and you never opened your database once.
This is Day 19 of 60 where we learn all the aspects of building with AI right from the foundation you missed (Prompt Engineering to Agentic Systems). The topic of concern is "Aggregators & Iterators"
The array problem and how to spot it in your execution log, then the Iterator that unpacks a list into individual runs, all three aggregators and which one you actually need, plus the full Weekly Digest built live….you wake up and its just sitting there
chapters:
00:00 Introduction
00:22 Arrays and Bundles
07:22 What is an Iterator?
10:18 Using Iterators
19:02 Aggregators Explained
20:44 Text Aggregator Demo
28:30 Table and Numeric Aggregators
31:11 Task and Conclusion
Day 75 of #100DaysOfCode
Continuing DSA:-
-Doing STL from Striver's
-Vectors: iterators, auto, forEach loop, deletion in a vector
#LearnInPublic #buildInPublic
Day 74 of #100DaysOfCode
JavaScript:-
-Built a text-based RPG battle engine
-Base character class + 3 classes via inheritance
-Warrior/Mage/Archer, each with unique abilities and resources
DOM battle UI with animated HP bars next
#JavaScript #learningInPublic

explored the iterator functions that helped to perform a calculation before aggregation. This goes beyond what normal aggregation functions can do and functions like SUMX, AVERAGEX and RANKX helps to do just that
used the RANKX function to rank the products by their total sales

Day 7 of 100 Days of Statistics, Data Science, and Python
Learned:
➡️that map in Python 3 is an iterator
➡️about standard score
#100daysofstatistics #100daysOfCode #datascience #python
I don't know when I'll finish. Because right now I want to get 112% of the HK...(This is my first playthrough)
#rainworld #iterator #sevenredsuns #fivepebbles #nosignificantharassment #graywind #lookingtothemoon

Trying to draw and experiment again.. Drew this on my phone, in Ibis paint X)
This art is inspired by Northflowo's animation "Sliver of Straw (Rain World animation)", check it out, it's amazing!
#rainworld #rainworlddownpour #lookstothemoon #sliverofstraw #fanart #art #iterator


...Whoops
Alternative version :'v
#Rainworld #rainworlddownpour #echo #rainworldecho #oc #rainworldfanart #iterator #iteratoroc #rainworldoc #rainworlditerator

Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M 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
92M 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.2M 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.6M followers

X 
@x
60.6M followers





















































