Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Marco van de Voort
Subject: Zodiac, Linux, sparse sets [Was: GPC/SET bug[64 bit Alpha]: new
Date: 15 Nov 2001, 18:35:30
> Mirsad Todorovac wrote: > ... snip ... > > > > However, SPARSE SETs seem to me like an excellent challenge for a > > programmer, but they *do* introduce new issues, for example memory > > allocation problems - since their size can't be computed at compile time > > since it depends on actual # of set members; and so on and so on ... > > > > Frank, what do you think of these thoughts of mine? Anybody? > > I am a crusty old conservative when it comes to Pascal. I don't > think it should be extended to do everything. This is an implementation detail, so not an extension. I however agree that the features suggested (notable sparse sets) are somewhat over the top. > I don't even > believe in sets of over 256 items. The code generation should be > kept simple and accurate. I do. Problem is that otherwise code that relies on set of an enumeration type doesn't scale too well. Tokenizers, parsers and symboltables often use this. The simple settype should get dynamic beyond a certain size (support can probably get created on top of schemata for extended Pascal compilers, en on dynamic arrays for e.g. FPC). The sethandling will get slower than, if it goes beyond 256 elements, and binary writing them to files will be different, but at least you don't have to redesign your working program. > If you want a sparse set you can build > it yourself, probably out of linked lists of subsets. If you > really want large sets an array of subsets is quite adequate. Agree. > These are NOT items you use every day. However, SET OF ['0'..'9'] > is. Agree too, but as said, I would like to be able to go beyond 256, otherwise for some applications one would have to avoid sets, because it doesn't scale beyond 256 chars. Also charsets that are larger than 256 chars are rapidly getting more important, so even for chars the 256 elements limits could get problematic.
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| CBFalconer | Zodiac, Linux, sparse sets [Was: GPC/SET bug[64 bit Alpha]: new bug] | 15 Nov 2001, 04:38:12 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).