Holy war (was: libpager multi-client support)

2016-10-22 Thread Olaf Buddenhagen
Hi, On Mon, Oct 17, 2016 at 09:51:41PM -1000, Brent W. Baccala wrote: > I've been thinking more about the data structures involved with the new > libpager code, and they're complex enough that I'd like to write them in > C++11. Yay, flamebait! ;-) Two years ago, I would have said something

Re: libpager multi-client support

2016-10-18 Thread Richard Braun
On Tue, Oct 18, 2016 at 01:56:48PM -1000, Brent W. Baccala wrote: > Can it be done in C? Sure. But following my principle of asking how to > write the code in the simplest manner, this one is obvious: STL containers > win. I'm not saying it can't be done. I'm saying it's not that hard. --

Re: libpager multi-client support

2016-10-18 Thread Brent W. Baccala
On Tue, Oct 18, 2016 at 2:37 AM, Richard Braun wrote: > > From my fifteen years or so experience working in various projects with > C++ and other languages, my opinion is that C++ is never the best > choice. It makes you trade lines of code for increased complexity in >

Re: libpager multi-client support

2016-10-18 Thread Richard Braun
On Mon, Oct 17, 2016 at 09:51:41PM -1000, Brent W. Baccala wrote: > What do you guys think? >From my fifteen years or so experience working in various projects with C++ and other languages, my opinion is that C++ is never the best choice. It makes you trade lines of code for increased complexity

Re: libpager multi-client support

2016-10-18 Thread Brent W. Baccala
Aloha - I've been thinking more about the data structures involved with the new libpager code, and they're complex enough that I'd like to write them in C++11. The pagemap has to contain a list of all clients with copies of a page, and a queue of clients waiting to access the page. To keep the

Re: workflow with Debian patches and Git repositories (was: libpager multi-client support)

2016-10-17 Thread Brent W. Baccala
On Sat, Oct 15, 2016 at 11:17 PM, Kalle Olavi Niemitalo wrote: > > I also have a "hurd-debian" working tree. I extracted that from > the Debian source package, so that I got a .pc directory with the > correct state information. I then added a .git directory cloned > from

workflow with Debian patches and Git repositories (was: libpager multi-client support)

2016-10-16 Thread Kalle Olavi Niemitalo
"Brent W. Baccala" writes: > My first question is for advice on managing my workflow. I'm using the > Debian hurd package, which adds patches on top of a snapshot taken from > savannah's git tree. I think I want to work on the Debian-ized code, since > that's what's

Re: libpager multi-client support

2016-10-14 Thread Kalle Olavi Niemitalo
"Brent W. Baccala" writes: > Second, I can't find anywhere in the hurd source tree where this function > is actually used. Commit 84cf9c0f312637b670cc87224ff7e7c4da659e36 on 2013-09-17 removed the ufs directory, in which the offer_data function used to call

libpager multi-client support

2016-10-13 Thread Brent W. Baccala
aloha - I've started looking at adding multi-client support to libpager. My first question is for advice on managing my workflow. I'm using the Debian hurd package, which adds patches on top of a snapshot taken from savannah's git tree. I think I want to work on the Debian-ized code, since