« first day (929 days earlier)      last day (2574 days later) » 

11:22 AM
The reddit announcement for 1.17 has far more upvotes than every other version (apart from 1.0, obviously). By now I'm really wondering whether or not it's the effect of the 🎉 emoji at the beginning. I thought the release wouldn't get that many upvotes as it doesn't contain anything "big" like 1.15 with custom derive.
 
 
2 hours later…
1:10 PM
People upvote on Reddit before they read. The contents of the update are irrelevant.
 
 
2 hours later…
3:36 PM
Hey folks! Want to bind a member function with overloads? No problem, just name one default(&self) and the other one new(&self, m: &Mat). github.com/kali/opencv-rust/blob/master/gen_rust.py#L120-L121
-_-
 
 
1 hour later…
4:46 PM
@E_net4 I'm not sure I'm following
 
5:03 PM
This is ugly, innit?
This is much better
 
@набиячлэвэли that's a recent addition, and the college students who did it weren't experienced designers :-) Carol would be happy to receive a PR though!
 
Right so I'm just gonna do a PR then cool
 
(I didn't ask her, but I remember us discussing that the styling was so-so, so I assume an update would be cool)
 
@Shepmaster The deed is done
 
5:19 PM
@Shepmaster The "best" OpenCV bindings currently around have adapted this into this.
`Mat cluster() const` into `fn default(&self) -> Result<Mat, String>` ;
and `Mat cluster(const Mat &descriptors) const` into `fn new(&self, descriptors: &Mat) -> Result<Mat, String>`.
I just broke markdown or soemthn.
Still, WWTT.
 
@E_net4 multiline -> no MD :eyeroll:
 
5:37 PM
@набиячлэвэли It looked ugly on a single line anyway.
 
 
3 hours later…
8:35 PM
@E_net4 I guess I'm not seeing the big bad thing with it...
 
@Shepmaster Aside from usurping default and new for something that used to be named cluster?
Am I really the only one who finds this messed up? :(
 
@E_net4 I was mostly looking at Result<_, String>
@E_net4 I think it's mostly I don't have the same context you do ;-)
so the renaming wasn't obvious
 
@Shepmaster Well, that could be worse... I don't believe OpenCV uses multiple exception types, so the message string is what tells them apart.
@Shepmaster new and default are tied to very specific idioms in Rust. They were used for something completely different, hence my disappointment.
 
@E_net4 right, but from the outside I don't know that cluster isn't a poorly named constructor
 
I might do a PR to address that and other things.
 
8:41 PM
I mean, it is a function that returns a thing
And that doc format (or just my lack of C++) doesn't clearly show what is a class method vs instance method
 
@Shepmaster How often do new and default take &self?
@Shepmaster Class methods would have the static keyword. These are all non-static methods.
 
I'm just telling you why I wasn't immediately up in arms
Context is required; context I didnt have
 
I understand that, don't worry. :)
Whelp. Time to get stuff done.
Are there any language proposals to enable the automatic promotion of integral literals (like, 0) to f64?
It almost amusing when I write let v: 64 = 0; and the compiler goes like OMG don't do that itz wrong!!!1
 
8:59 PM
@E_net4 I don't believe so
0.
do it
 
I did. :>
 

« first day (929 days earlier)      last day (2574 days later) »