Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"So why don't you make like a tree, and get outta here." -- Biff in "Back to the Future"


devel / comp.lang.c / Re: Skybuck's Universal Memory Architecture

SubjectAuthor
o Re: Skybuck's Universal Memory Architectureskybuck2000

1
Re: Skybuck's Universal Memory Architecture

<e6755a55-6137-403c-9ec5-203738114203n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19994&group=comp.lang.c#19994

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:da8:: with SMTP id h8mr4874394qvh.50.1642314236124;
Sat, 15 Jan 2022 22:23:56 -0800 (PST)
X-Received: by 2002:a05:620a:ed1:: with SMTP id x17mr3802389qkm.100.1642314236024;
Sat, 15 Jan 2022 22:23:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 15 Jan 2022 22:23:55 -0800 (PST)
In-Reply-To: <b84ec559-3585-4fb2-9fc6-cd0c54436708n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.25.28.171; posting-account=np6u_wkAAADxbE7UBGUIOm-csir6aX02
NNTP-Posting-Host: 84.25.28.171
References: <b84ec559-3585-4fb2-9fc6-cd0c54436708n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e6755a55-6137-403c-9ec5-203738114203n@googlegroups.com>
Subject: Re: Skybuck's Universal Memory Architecture
From: skybuck2...@hotmail.com (skybuck2000)
Injection-Date: Sun, 16 Jan 2022 06:23:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 77
 by: skybuck2000 - Sun, 16 Jan 2022 06:23 UTC

Skybuck's Universal Memory Architecture Extension (16 january 2022)

There may be a problem with the Tron/Snake based approach/idea.

In Tron/Snake the motor cycles/snakes can only grow. Shrinking is not possible, except when they die.

To allow shrinking additional information would need to be recorded. For example where the snake cell came from.

To incorporate this functionality the following changes should be made:

DirectionBit0 is renamed to GrowDirectionBit0
DirectionBit1 is renamed to GrowDirectionBit1

Two new direction bits are added:

ShrinkDirectionBit0
ShrinkDirectionBit1

The meaning of combining two of the same direction bits to form a direction bit field remain the same:

Order of DirectionBits: DirectionBit0, DirectionBit1:
00 = up
01 = right
10 = down
11 = left

(DirectionBit0 is LSB=least significant bit, DirectionBit1 is MSB=Most Significant Bit)

The ShrinkDirectionBits should be set to where the snake cell came from, it's ancestor/predecessor.

So for example.

If the current snake cell is on x 200 y 100 and it came from x 199 y 100 the shrink bits would be set as follows:

ShrinkDirectionBit0 = 1
ShrinkDirectionBit1 = 1

This indicates that if the snake wants to shrink back into a safe memory cell that was allocated before the growth then it can do so
and go there.

This leaves one problem remaining indicating if there was a previous connected bit. Like in the ConnectionBit description.

This may and could also be updated or the head/tail pointers could be used to detect if it's already at the head/tail.
Or as defined as SourceX,SourceY.

If the connection bit feature is implemented/used it will also need to be updated and renamed:

ConnectionBit will be renamed to NextBitConnected

and a new bit will be introduced:

PreviousBitConnected

The maining of these bits are slightly altered:

For NextBitConnected it means:

0 = head of snake/last cell
1 = intermediate cell

For PreviousBitConnected it means:

0 = tail of snake/first cell
1 = intermediate cell

This extended version should allow shrinking (as well as growing) of snakes (a bit more easily) ! ;)

To go Left, Right, Down, Up is weakly defined, but I will give a suggestion here:

To go left means -1
To go right means +1
To go up means +1
To go down means -1

(Visualizing an image of the memory map may have to be inverted on vga/graphics systems where the y-axis is inverted.)

Bye for now,
Skybuck.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor