News for hackers. Stuff that matters.
Re:RustDesk – Open-source TeamViewer alternative by rowanG077 on Tuesday July 26, 2022 @01:15PM (#32241040)
You don't have to throw out the baby with the bathwater. A few Arcs to hold onto a Users metadata is hardly going to be in the critical path of the app.
Re:RustDesk – Open-source TeamViewer alternative by moldavi on Tuesday July 26, 2022 @03:13PM (#32242615)
That's where the discipline comes in: one has to know when it's okay to use the simpler approach (indices into a Vec), and when it's better to use Arcs such as to prevent privacy problems.
Re:RustDesk – Open-source TeamViewer alternative by rowanG077 on Tuesday July 26, 2022 @03:53PM (#32243114)
The point is that we disagree that indices into a Vec is the simple approach. It's much harder. It infects the entire code. Whereas just using a reference count is basically set and forget.