« first day (2660 days earlier)      last day (821 days later) » 

12:09 AM
@Stargateur yeah, I thought a small Vec might be able to compete, but no.
 
 
3 hours later…
2:53 AM
stackoverflow.com/questions/68767869/…: that short period of time where int was named isize but the suffix for literals was is (int and uint were renamed fairly close to 1.0)
 
 
3 hours later…
5:50 AM
Hey, is anyone online? I need some pointers
I can't seem to overcome an E0502(cannot borrow as mutable because it is also borrowed as immutable) Error. It's origins are also somewhat cloudy to me as well, which doesn't help.
let child = &mut compositor.root_frame.child(frame).unwrap();

if compositor.root_frame.has_child(frame) {
    &mut compositor.root_frame.paint(child);
} else {
    &mut compositor.root_frame.parent(frame).unwrap().paint(child);
};
The snippet above can be simplified to the following: I didn't edit it quickly enough
compositor.root_frame.paint(compositor.root_frame.child(frame).unwrap());
 
 
3 hours later…
8:39 AM
@FrancisGagné thanks Francis, I'll look into some of these.
 
8:50 AM
The issue is overall memory consumption and Go's map seems to be smaller than Rust's HashMap (?), I'm not sure yet. This is for many nodes, so if the size of it can somehow be reduced that would be great. I' suppose I'll try to measure Go and Rust's memory footprint later with a small example.
 
 
4 hours later…
1:19 PM
@J-Cake It looks like the child method on root_frame returns a reference borrowing itself, which conflicts with the exclusive (&mut) borrow required by paint. But that's only what the error itself probably tells you
 
 
2 hours later…
 
1 hour later…
4:22 PM
Image being 4 answers away from the gold badge and all questions that pop up are baaaaaaaad.
 
 
2 hours later…
5:54 PM
can't know the title alone prevent me to even open them
 

« first day (2660 days earlier)      last day (821 days later) »