« first day (1683 days earlier)      last day (1789 days later) » 

2:34 AM
@ÖmerErden My expectation is that calling poll on a JoinAll will cause one or more of the child futures to also be polled on the same thread. However, the next time JoinAll is called, it might be from a different thread. Tokio's work stealing controls which thread does the poll
 
 
6 hours later…
9:00 AM
Anyone can suggest a suitable dupe for: stackoverflow.com/questions/56282982/… ?
There must be 100s
 
9:46 AM
Is there a simple and efficient way to iterate on chars of a str in reverse (given a end position in bytes) ?
Oh, Chars implements DoubleEndedIterator
 
10:05 AM
Quack!
 
@E_net4 well done
There are so many things in rust... I'd really like to be able to make it my main language and dive more into it :\
 
10:29 AM
I know the feel. I try to stick it in anywhere I can, but I'm far from using it as a main technology.
 
I can't even. I just checked, I wrote exactly zero line of rust in 2019 for my job. The real use is always postponed...
 
:/ Academic environments tend to be a bit more flexible, indeed.
 
I'm quite free but I can't decently launch projects in rust unless I've secured the hiring of a competent rust programmer (or a few ones). I don't want to be the only ones to be able to maintain the critical softwares of our company
 
That is fair. Hopefully the pool of experienced Rust developers will continue increasing to that of other modern technologies.
 
I've just seen your SO profile, you're a "Java enthusiast"
 
10:44 AM
I still hold to the hope that a competent programmer can easily become a competent Rust programmer.
@DenysSéguret perhaps they mean coffee?
 
I like coffee.
 
@Shepmaster I hope so. I can't see how one can be a Java enthusiast in 2019
 
@Shepmaster That might come around the same time people stop claiming to be f̩̣̝͔̬̯i̛̙̥̭͎̞̻g̲̣̰̹͎̣ͅh̳t̲̮̱i̶̗̖͕n̙̖̬ģ͎ ̹̱̤t͕̘̝h͙̺̺̘e͕̺̜̖̻̟̝ ̼͉͎͘b̵͉̥̙o̟̻͚̪͟r҉̠͍̬͚͖̟͓r̵̝̯̟o̻̞͕͈͚w̡̖ ͇̬̤̹̦c͓͚͍͖̳h͕̩̦̳͍͚e͖̙̘c̮̦̜̻k̜̠͘ͅe̜͙͓̬r̲̮͇̖̱͝
@DenysSéguret TBH I haven't updated by part in a while. You're right, my enthusiasm for Java is pretty low now.
'Tis off. Air them caches, folks.
 
11:20 AM
That feeling when your answer has been wrong for almost a year...
 
@Shepmaster where? *prepares downvote button*
 
6
A: What is the best approach to encapsulate blocking I/O in future-rs?

Shepmaster Ideally, an independent task would perform the I/O and the associated future would poll the I/O thread for the completion status. Yes, this is what Tokio recommends and what crates like futures-cpupool were created for. Note that this is not restricted to I/O, but is valid for any long-runni...

 
I'll downvote first and read second. (edit: oh shit, I can't do that, I don't know tokio)
 
@DenysSéguret That's my motto for questions, so seems fair here
 
11:56 AM
@Shepmaster And It's surprisingly accurate. There should be a Meta FAQ on the subject
 
 
3 hours later…
2:52 PM
Oh, another substrate question
 
 
1 hour later…
4:00 PM
Oops, I accidentally re-opened this question. Would you mind marking it as a duplicate of stackoverflow.com/questions/32338659/… ? — Shepmaster 1 min ago
In case any rust gold-badgers see this ^
 

« first day (1683 days earlier)      last day (1789 days later) »