« first day (1744 days earlier)      last day (1749 days later) » 

5:28 AM
I feel like they're more interested in indicators we don't care for, like the usual growth indicators of startups for which nothing's more important that the number of new users
 
5:50 AM
People...
 
Using bots also gives you a higher score
I guess they need to know SO is not an mmorpg
 
 
2 hours later…
7:46 AM
@ÖmerErden TIL
 
@FrenchBoiethios today you learned ?
 
Yes, that SO is not a MMORPG
 
 
3 hours later…
10:38 AM
@Shepmaster No hot take, although I believe it can move things in the wrong direction.
@Shepmaster Currently in a more serious stance until things happen tomorrow.
 
 
1 hour later…
11:47 AM
@E_net4 things you say
 
Does someone has an example on how to use a futures Stream?
BTW, is it planed to have this trait in std?
 
@FrenchBoiethios it’s not really hard, it’s like an iterator.
@FrenchBoiethios maybe. I think it needs something (maybe GAT?) to be fully powered.
And there’s some argument that it could be composed of other things instead, I forget.
 
12:04 PM
@Shepmaster I should have push my attempt because I cannot use it correctly.
I've found this blog article: blog.yoshuawuyts.com/rust-streams
 
There's certainly lots of things here on SO
 
@Shepmaster In fact, I've an UnboundedReceiver (that implements Stream). It streams some events and I'd like to listen to those events until the senders are all dropped.
But I'm not sure if an UnboundedReceiver is the right type for doing that
 
Jul 20 at 10:10, by E_net4
(O right. Yes, I'm defending my PhD thesis next Thursday.)
 
12:31 PM
@E_net4 hooray! make sure to bring a sword and shield!
The answer doesn't answer the Q
but it's from the damn author
 
It's excessively specific. You can do so many things with proc macros anyways...
 
1:03 PM
@FrenchBoiethios that feels like a correct usage; what issue are you experiencing
 
@Shepmaster My receiver returns TryRecvError immediatly. Does it mean that the stream is closed? I'm not even sure of that, due to the lacking of doc
 
@fadedbee No, I won't make it an answer, it's too general and vague. But I'm happy to know I helped you ;) — Denys Séguret 1 min ago
what to do now ? ask him to vote to close ?
if it's not deleted, it might help somebody even if there's no way that "look at ECS" can be seen as a valid answer
 
1:18 PM
0
Q: Getting a reference to a struct field

FallenWarriorAs someone who only recently started looking into Rust, I've been pretty overwhelmed by all the ways to accomplish one and the same thing. In this case, getting a reference to a struct field from a reference to a struct object. struct Foo { bar: i32 } let foo = &Foo { bar: 123 }; let bar1 = &...

Wut -_-
let Foo { bar: ref bar7 } = *foo; looks perfect
 
Maybe throw a @ in the lot ?
Can somebody give the last close vote to stackoverflow.com/questions/57181466/… ?
 
@DenysSéguret I'm like you, I don't understand its usecase
 
> 18.2k
 
We programmers are lazy; whichever requires the least number of keystrokes. — Shepmaster 3 mins ago
I'd say more like: "whatever is the more readable"
 
@FrenchBoiethios That would be ideal, but would it be true?
 
1:27 PM
Good point.
 
I made an answer
be gentle
 
/me is getting the downvotinator out
 
@FrenchBoiethios look like a good one to close at opinion
IT'S HOT
 
@Stargateur Can confirm
 
You mean the weather?
 
1:40 PM
I didn't sleep well
and I like sleep well :p
so many question today
 
@Stargateur Didn't spot any interesting one (apart the game engine one but SO isn't the right place)
 
4
Q: How to disable loop unrolling in Rust?

StringerI am looking at Rust to rewrite a C++ codebase and I would like to know how to disable loop unrolling/vectorizing and control unroll count as well. In Clang we would use: #pragma clang loop unroll(disable) #pragma clang loop unroll(disable) vectorize(disable) #pragma clang loop unroll_count(2) ...

this is sucks
@DenysSéguret well the game one don't have definitive and clear answer
 
"Not having control over loop codegen could be a showstopper." -> I don't trust you
 
@DenysSéguret clearly
This feature of clang is more to control the size of the binary and maybe the use of the stack
more kernel and embedded code
because clang will unroll every loop it can
as rust because llvm
 
1:57 PM
@Shepmaster I edited as per your recommendations
 
 
1 hour later…
3:02 PM
> How is warp “correct”?
There's a reason I try to edit the word "correct" out of SO question titles, and this is basically it.
Would a project that wants to be used ever state that it's incorrect? No. Therefore the modifier "correct" is useless.
> What's the correct way to combine strings
If someone provides an incorrect answer, we downvote it.
Would you ever ask for an incorrect way to do something?
</rant>
 
3:49 PM
@Shepmaster what was the rule you talk about auth problem, you know when you allow access to something, the user do thing and submit the payload but he lost the right to do it but can do it because the api check the privilege before ?
 
@Shepmaster thank you ^^
 
 
6 hours later…
10:15 PM
> that need to be uptime ninenines percent
heh
 
101% is better
 

« first day (1744 days earlier)      last day (1749 days later) »