@steffo
Something about a dentist,

wolvericcatkin@tech.lgbt
@wolvericcatkin@tech.lgbt
Some girl on an unhinged Hitman posting binge...
""Beloved*"" shitposter and "Mastoqueer", who occasionally posts about Warhammer and musings on tech!
(*She had two shitposts that went viral, and she hates they got so big π΅βπ«)
- Unprofessional Minesweeper speedrunner
- The No. 1 SovietWomble fan in your area
- Tumbleweed user
- Lady of the Void
- Understands the basics of SCP object ratings.
I have opinions on pickles.
My name is Willow, and I am a basilisk. Fear me.
π³πΊπ΅
Call me Wolvie/Wolveric or Willow! β₯οΈ
Ultimi post creati da wolvericcatkin@tech.lgbt
-
Idk why, but YouTube's had a weird habit of repeatedly recommending me an old trailer for Payday 2, despite never showing interest in Payday related content and the fact Payday 3 is already a thing...??
Idk why, but YouTube's had a weird habit of repeatedly recommending me an old trailer for Payday 2, despite never showing interest in Payday related content and the fact Payday 3 is already a thing...??
-
RE: Just remembered you can also do vec![value; length], and not just vec![value1, value2, value3...] to create a Vec.
@steffo Bruh- ok, apparently looking at where
Vec::from_iterator
ends up, it does end up running into the same bug asvec!
eventually, just in a different method...Iterator handling with
Vec
is so frustratingly indirected...It does still pre-allocate with
Iterator::size_hint
though. -
RE: Just remembered you can also do vec![value; length], and not just vec![value1, value2, value3...] to create a Vec.
@steffo
vec!
ends up expanding out into a function that usesVec::extend_with
, which explicitly notes it has to compensate for compiler bugs, but otherwise has quite similar implementation... -
RE: Just remembered you can also do vec![value; length], and not just vec![value1, value2, value3...] to create a Vec.
@steffo
std::iter::repeat_n
has a guaranteed size, because it has a set number of iterators, and is cloning the item until the last iteration, so it's alsoExactLenIterator
.Depending on the provider,
Vec::from_iterator
can take advantage ofIterator::size_hint
. -
RE: Just remembered you can also do vec![value; length], and not just vec![value1, value2, value3...] to create a Vec.
@steffo Tbh, reading the methods
vec!
ends up expanding out to, they seem like a bit of a mess...repeat_n
may be the better option from a technical standpoint... -
RE: Just remembered you can also do vec![value; length], and not just vec![value1, value2, value3...] to create a Vec.
@steffo Also of note:
std::iter::repeat_n
, andIterator::take
andIterator::collect
...