Re: Bitfields

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 09/25/97


  Ok, I guess i didn't pay much attention in Computer Science class
(or we never got that far), but what are bitvectors, and HOW are they
accessed.  And on top of that, what are the advantages? (more Flags?)
anyway, i've checked most of my books, and it mentions them, but not
in an understandable manner.

  If anyone cares to know, i've been coding for about 6 years now,
and on a mud for 8 months and haven't heard one thing about it until now.

If possible, please respond in PRIVATE email.

thnx,

Akuma the Raging Coder


At 11:21 PM 9/25/97 -0400, you wrote:
>> I have a project in mind to revamp the flag system of CircleMUD to allow
>> *much* easier addition of extra flags. (You'll still have to convert the
>> pfile though.) I have two different approaches in mind, one in bitfields,
>> one with bitvectors, both seem the same in terms of complexity.
>>
>> Will be a really cool change....
>
>Don't use bitfields. The syntax for their use is pretty much the only
>thing about them that isn't implementation defined. They may use up more
>space than a bitvector system (depending on alignment requirements and
>such), and accessing them requires at least as many instructions as
>bitvectors. They may be completely portable, but bitvectors are so much
>better.
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST