BagOfPistchios
Re:Rust at speed – building a fast concurrent database [video]
on Sunday January 06, 2019 @01:15AM (#18836877)
As I understand it, it achives lockfree reads by having two caches: One for modifying and one for reading, and atomically swaps them after modifications (and applies the changes to what was previously the read cache).
Am I missing something or doesn't this reduce the overall memory available for cache by a factor 2x?
Re:Rust at speed – building a fast concurrent database [video]
on Sunday January 06, 2019 @01:10AM (#18836865)
Yes you need both compiler barriers for the ordering, as well as memory fences to ensure the global visibility of previous operations in order.
It is possible that the mutex implementation he used does no spinning in case of contention and just context switches each time. That could explain the poor performance of mutexes but I don't know the implementation.
Re:There’s a Hole in the Bottom of the C: Effectiveness of Allocation ...
on Wednesday November 14, 2018 @04:26PM (#18454126)
The const keyword really doesn't mean anything. It is not checked at runtime, so a buffer-overrun could change the const member regardless
Re:HermitCore-rs – A Rust-based, lightweight unikernel
on Tuesday November 13, 2018 @07:25PM (#18446220)
That was my point - a lot more people know C
Re:HermitCore-rs – A Rust-based, lightweight unikernel
on Tuesday November 13, 2018 @06:47PM (#18445982)
It may or may not be easier to "maintain and extend" a Rust implementation, but it will surely be even easier to find people to do those things if they keep it in C.
EDIT: Rephrased the sentence
Re:Timercpp: JavaScript-like setTimeout and setInterval for C++
on Wednesday October 24, 2018 @05:13AM (#18290831)
agreed, it is dangeorus if newbies try to use this
Re:Pause/unpause any X11 application
on Thursday September 20, 2018 @07:32AM (#18031427)
The only times I have ever wanted to freeze an application it was for the purpose of it not hogging CPU time in favor of some interactive program, and had no better way of doing that.
On Linux, the Con Kolivas MuQSS CPU scheduler introduces a new scheduling policy called SCHED_IDLEPRIO which runs a program only if there is absolutely nothing else to run. It is perfect for long-running programs that don't need interactive performance.
EDIT: The example given in this article is also IMO better solved by using SCHED_IDLEPRIO >Other example may be some heavy processing. For example you started RawTherapee or Darktable processing of large amount of photos and you are not able to smoothly watch a video. Just pause it, watch the video and unpause it again to finish its work.