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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.242.1 with SMTP id b1mr5667409ywf.151.1474893545386; Mon, 26 Sep 2016 05:39:05 -0700 (PDT) X-Received: by 10.157.59.194 with SMTP id k60mr1318966otc.10.1474893545340; Mon, 26 Sep 2016 05:39:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!m9no2833898qte.0!news-out.google.com!b4ni12974iti.0!nntp.google.com!u18no4622267ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 26 Sep 2016 05:39:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.111.71.252; posting-account=Ies7ywoAAACcdHZMiIRy0M84lcJvfxwg NNTP-Posting-Host: 50.111.71.252 References: <11ee98f5-d373-4c72-8562-c310cc76817d@googlegroups.com> <5560c627-b10b-4693-adc0-662776cbdb6c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4fe41881-1dc4-4381-9246-27f86c49186d@googlegroups.com> Subject: Re: Question on bounded / unbounded strings From: brbarkstrom@gmail.com Injection-Date: Mon, 26 Sep 2016 12:39:05 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31900 Date: 2016-09-26T05:39:04-07:00 List-Id: On Monday, September 26, 2016 at 3:29:20 AM UTC-4, Dmitry A. Kazakov wrote: > > > I expect Dimitry wouldn't like putting Bounded_Strings into > > Direct_IO files, where they're useful for fields in records that act like > > variable length character strings in databases. > > Surely not. Bounded string is a private type (A.4.4). > > You *never* use such for any external activity, that would make your > program non-portable and thus the DB too. > > Therefore a text field of Direct_IO element record should always be a > subtype of String and never bounded or unbounded string. > > BTW, in many cases it is better to use Direct_IO rather as a block I/O > medium. You never know if all application level objects would fit into a > single block. My implementation of external B-trees keeps tree nodes in > Direct_IO blocks with indices pointing to the blobs spread over other > blocks arranged as a persistent memory pool. So there is no limitation > to how large an item could be and no space loss of underfilled blocks. > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de I wouldn't copy a Direct_IO file from my Windows machine to my Linux box and expect to use it without reconstructing the file. But then I'm not working in a corporate environment with heterogeneous systems. I've got enough problems with getting the math in the algorithms to work properly, whether doing critical path calculations or Bayesian analysis of user properties. Thanks for the interest, even so. Bruce B.