From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,80b3e504140e89fd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-24 14:24:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D178E0F.998F4A81@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Config_Files proposal References: <3D0FAC67.A4861809@san.rr.com> <3D10B6B1.AFE9D4E8@san.rr.com> <3D10E046.E604231D@san.rr.com> <3D1204B5.4620F160@san.rr.com> <3D1215A8.719D39C5@nbi.dk> <3D123852.1040508@san.rr.com> <3D1289D2.9090107@telepath.com> <3D134669.5070000@san.rr.com> <3D173599.C515EE53@san.rr.com> <3D175DA2.D6F8F41D@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 24 Jun 2002 21:24:02 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1024953842 66.75.151.160 (Mon, 24 Jun 2002 14:24:02 PDT) NNTP-Posting-Date: Mon, 24 Jun 2002 14:24:02 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:26673 Date: 2002-06-24T21:24:02+00:00 List-Id: Stephen Leake wrote: > Right, I don't. I tend to be very picky; a file locking protocol is > either "right", or it's "wrong"; no room for "mostly right" :). Avoid Linux, then. Its file locking has starvation problems built into the kernel. ;-) > I was hoping for something technical, that would allow judging the > benefit against the cost of doing file locking right. Well, there ya have what I can give. :-) By "it's my opinion" I meant "it's my opinion that it's worth doing the merge." Technically, it's not especially difficult. Also technically, I guess one could really do this manually if one wanted to, loading up a second "config" object and doing the comparison oneself, so I guess I can withdraw my objections. I.e., one can "code around" the problem, and with the proper iterators built into the config API (allowing you to iterate over all keys, for example), one need only code this once. > It is smaller, but I'm willing to bet someone will hit it. For > example, when you shutdown the computer, all the active editor > instances will write to the config file at once. Maybe us "real" > programmers don't leave editors active when we shutdown, but a lot of > people do! Good point. I hadn't thought of that. Hmmm... Of course, there's no way to catch the system shutting down out from under you in a portable way either, so in reality it's more likely to lose *both* sets of changes. :-) Ok. Nevermind. Rock on. You have convinced me with your superior logic. :-) -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.