« first day (1996 days earlier)      last day (1497 days later) » 

2:09 AM
BjarneS. === @MatthieuM.
 
 
3 hours later…
5:10 AM
@E_net4theWFHjanitor Tell us more! What kind of UI for example ?
 
 
2 hours later…
7:16 AM
Hum... Why is there no safe way to build a boxed slice without starting with a vec ?
 
7:30 AM
@Shepmaster You cereal?
@DenysSéguret Still working on the core mechanics, so I did no UI so far. I might experiment with Rust on the entire stack though.
 
 
2 hours later…
9:44 AM
ferris ball
 
 
3 hours later…
1:09 PM
Re-raising OP's dupe concern: stackoverflow.com/q/60951064/155423
Any feedback? I recall Stargateur's
 
Hmm. Let's see if they followed the general guidelines for duplicate questions. meta.stackoverflow.com/q/252252/1233251
Bah, the edit is very minor.
 
@Shepmaster I am not sure on the dupe thing, but the answer is totally conflicts with the question, OP doesn't want to use loop by stating this so I would have to call it in an annoying loop
and surprise there is a while in OP's answer
As long as i know while is a loop, if i am not mistaken :P
 
I don't see a problem with the proposed duplicate, the solution is in the second posted answer.
 
@ÖmerErden if the post doesn't fit the requirements of the question (and doesn't explain why), then a downvote would seem to be warranted ;-)
 
People may however, have an unfounded problem with having their questions closed as duplicates.
 
1:20 PM
Sorry i stucked on 3999, i don't downvote anyone :P
 
@E_net4theferrisball Recently, it was said that two questions should be dupes if the set of possible answers is the same. I think that's a reasonable view (although I widen it to be fuzzier as "mostly the exact same set")
 
@ÖmerErden ಠ_ಠ
 
so would OPs answer fit on the thing I have marked as a dupe?
 
@E_net4theferrisball but i can let OP disocver that maybe OP can accept the answer on dupe
 
Heck, the differences between the two questions are so minor that it's not worth getting upset over it. I have flagged the OP's last comment on the Q as NLN.
 
1:31 PM
2
Q: Get wakeup to multiple futures for same underlying socket

Gurwinder SinghI have following code which sends data to multiple UDP endpoints using same local UdpSocket: use futures::stream::FuturesUnordered; use futures::StreamExt; use std::{ future::Future, net::{Ipv4Addr, SocketAddr}, pin::Pin, task::{Context, Poll}, }; use tokio::net::UdpSocket; #[to...

Btw OP probably accepted this answer because of the suggestion in the rust forum
Because the answer is not correct
And suggestion doesn't even related with the question, it is all related with UDP socket, not even related with future or executor, so i should downvote this too i guess
but i will not, you know the reason ^^
 
1:55 PM
I wonder if an analysis was made on the 32 byte buffer for Take, though.
 
@E_net4theferrisball that a low number I would greatly increase it
 
Yeah, AFAIK cache pages are much larger than this these days.
 
@PeterHall being the bigger person today, eh?
 
@E_net4theferrisball github.com/rust-lang/rust/…
didn't find an open issue
 
I found the PR which introduced the current impl. github.com/rust-lang/rust/pull/52939
 
2:05 PM
@Shepmaster haha it's comment and mine get deleted :p
I hate this
I still totally agree with the duplicate
 
@Stargateur Don't worry, your comment just lost its context after the other one was removed.
 
@E_net4theferrisball I will try to write a comment on it
 
@Stargateur the comment removal I was surprised at was on the shadowing one. If I recall correctly, your comments weren't too bad, mostly saying "it's zero-cost" and "I wouldn't do that"
My comment was "you didn't quote the article title correctly"
 
Rule of thumb, folks. Comments can go away at any time, regardless of how important they are.
 
@Shepmaster oh these one also get removed
not important
I separated them because each sentence was caring a different point of view.
guess it's was considered as spam
@E_net4theferrisball yeah, these one was 1d all I don't mind OP read them
 
2:10 PM
@E_net4theferrisball sure, we know that, but it's still surprising when the comment hasn't been addressed
@Stargateur I often split comments to multiple like that so I can delete relevant ones myself if they are addressed.
 
Well, that isn't a necessary condition.
 
Yes yes, I know.
That doesn't mean it can't be surprising.
 
@E_net4theferrisball added a review but I think it's ok, one can call read to end with a preallocated buffer and allocation strategy could allocate more than 32 at the time but I'm not sure
would be better if people could choice the reservation_size
 
2:41 PM
@Shepmaster How so?
 
@PeterHall fixing your competitor's non-valid answer to make it valid
 
@Shepmaster Oh. I don't think I see other answers as competition exactly. In this case, it's a slightly different solution, but valid (with a minor edit)
Weird though that Jmb wrote that without even checking that it compiled.
 
3:04 PM
@PeterHall or that there was a damned space before the parenthesis :stare:
 
@Shepmaster that was the reason that I didn't also format it. I assumed someone would only use that formatting on SO if they are militantly against the standard formatting
 
@PeterHall surprisingly, the only time they've mentioned it to me is when I mis-pasted and added an extra level of indention
 
 
1 hour later…
4:34 PM
Is it possible to build a static array using a const function ?
 
@DenysSéguret Do you mean this?
 
About the same but the array has size about 42000 and most elements are their index apart about 1000 of them
Right now I generate the rs file but it would be more elegant to generate the array in a const function
 
5:21 PM
@DenysSéguret wtf
why ?
why not a hashmap so ?
 
For performances
!!afk
 
@DenysSéguret not yet AFAIK. I think you are unfortunately held back by limitations of const eval. Specifically, you'd need the ability to iterate
 
@DenysSéguret is not docs.rs/phf/0.8.0/phf perfect for this and will be a lot more small ?
I mean even a small array of 42 is better than a 42000 array --
your index are too sparse to use that much space
actually depend on what is stocked
but a match could be better !
 
5:36 PM
heh
match v {
    1 => 2,
    i => i,
}
Could indeed be smaller :-)
but a match of 100 arms... hm
 
@Shepmaster versus a 42000 size array with 42 true index ?
if the match is on index llvm will make crazy optimization
 
I mean, even if they are u128, it's < 750 kb / ko
So it's not that big
 
I really think it's overkill xd
to conclude I think we need the list of index and what there link for
maybe a math reduction is possible
 
5:53 PM
Filling the cargo.toml
keywords = ["stupid", "unicode", "thingie"]
 
@DenysSéguret ["keep", "it", "stupid", "simple"]
@Shepmaster BTW, I starting to mastering nom, error system is just trash and mostly useless. But crates.io/crates/nom-trace look amazing, just a little overhead(almost nothing) (and a lot when tracing... but that for debug)
 
6:55 PM
> How do I guide type inference in code that has multiple chained type conversions with an Into-like trait?
tittle alone make me sick
 
@Stargateur well, that title is all me
I wanted to improve on "Type inference in rust generics"
so feedback welcome
 
read as this give me headache
 
 
2 hours later…
8:42 PM
@trentcl my cold heart is warmed this day
haha, I just wanted to upvote my old comment
 
lol
 
9:09 PM
@Shepmaster happen to me sometime :p
haha I NEVER EVER do this convention
 

« first day (1996 days earlier)      last day (1497 days later) »