« first day (1773 days earlier)      last day (1706 days later) » 

7:06 AM
Does someone understand this comment?
this isn't necessarily the most efficient way if the file size is greater than the available memory — Awalias yesterday
 
 
2 hours later…
8:48 AM
@FrenchBoiethios The commenter is confused.
 
9:09 AM
@E_net4 I don't even know what to answer, but I guess that I must answer something since I don't want to newcomers to be confused.
 
@FrenchBoiethios Meh, you could choose for clarification. And if that don't work, ask for a comment clean-up.
 
10:02 AM
There really should be a method to transform a boolean to an Option<()> in the std...
I saw a discussion about that, but the Rust team didn't seem to be convinced.
 
Hmm. We've talked about this before, haven't we? :)
You might just have to stick to Some(()).filter(|| my_bool)
 
10:39 AM
@E_net4 I'd be tempted to write it as: my_bool.and(Some(())) -- I think it is slightly bit more straightforward
or at least my_bool.and_then(|| Some(())) -- if for some reason the some-unit would cause any kind of performance issue :D :D :D
 
10:50 AM
I mean my_bool.and_then(|_| Some(())) :rolling_eyes:
 
@PeterVaro Nice decorated toilet closure.
 
@E_net4 There's something in my toilet..
even better: around
:D
 
@PeterVaro ... With a creative definition of decorated.
After another look at this tweet, I think it would be a good idea to have a dictionary of Rust-related jargon and tropes.
 
@E_net4 argo init
 
You mean "create repo now", right? ;)
 
11:06 AM
@E_net4 hmm.. that's interesting.. I thought the word argo means the same thing as in hungarian.. which is "slang" or "language of the street"
and that could've been a nice pun on cargo -> argo init
but it looks like it isn't..
 
... Now I'm confused! :D
 
tell me 'bout it! :)
 
I also don't know Hungarian, so this is probably justified.
 
well, let's pretend the last 8 comments didn't happen :)
therefore..
@E_net4 yeah! let's do it!
 
I'm setting up a plain repository with some base entries that I believe would fit in the dictionary.
 
11:59 AM
@E_net4 Not super readable
 
Rust tropes. Contributions are more than welcome.
2
 
12:29 PM
@Stargateur ... why did you mention me? :)
 
that not the same purpose ?
 
12:41 PM
@Stargateur That repository contains functional programming jargon, not Rust community jargon.
 
12:55 PM
So now I just found an amazing crate for before-main plugin registration. And the owner had to be no other than dtolnay. Hey.
 
@E_net4 Out of curiosity, what is your usecase?
 
@FrenchBoiethios In DICOM-rs, I will need some kind of registry for keeping pixel data codec implementations, preferably in such a way that other crates can submit new codecs.
And this might be useful for more than the pixel encapsulation codec registry.
 
Ocarp, I need GATs again.
 
@E_net4 You're doing it on purpose...
 
1:08 PM
@FrenchBoiethios ... it just showed up. :(
I thought of an abstraction I can't make generic. play.rust-lang.org/…
I'll have to just pre-handshake the two parameters.
 
1:41 PM
@E_net4 fn adapt_writer<W>(reader: W) -> Self::Writer<W> => writer: W
(not that it matters.. but I love nitpicking..)
 
Aye, I noticed that some minutes after.
That doesn't give me GATs.
 
@E_net4 Be patient, we will have them soon
(Funniest joke of the last years)
 
:<<<<
 
2:37 PM
Is someone here to tell me that GATs are coming?
 
2:59 PM
@E_net4 I'm not saying it is a bad idea and there are certain situations where you might need it and there's no workaround, but overall I think in most of the cases it is when you think you need it you actually overengineering the solution to a given problem
 
3:53 PM
hm, is there a good reason this doesn't work?
originally hit me with two different funxions with the same signature but
works if you replace one arm with unimplemented!() or somesuch
@E_net4 hence the ole Peep the Patreon:tm: addage :Р
this seems a bug
 
@набиячлэвэли play.integer32.com/…
 
There's no guarantee that the 'w is the same for both the functions, I guess
 
thanks
but fuck dude I completely forgot about writing explicit for<'_>s
small price to pay for much better deduxions, but still
 
I had the idea from the compiler complaint
 
4:09 PM
yeah it completely didn't register that I could actually write a for<'_> anymore, despite the compiler telling me to
am I getting old?
 
 
3 hours later…
7:32 PM
@набиячлэвэли You probably missed this pun.
 
@E_net4 nice, added
 
 
1 hour later…
9:04 PM
user image
3
Work hard, make memes harder.
 

« first day (1773 days earlier)      last day (1706 days later) »