Lunduke
News • Science & Tech
Make Computers Fun Again - Linux, UNIX, Alternative Operating Systems, Computer History, and Retro Computing. Also dad jokes.
Interested? Want to learn more about the community?
September 19, 2022

I got a mad idea, and I blame DOS week for. The background for this is special_snowflake, the FOSH computer I've been building/writing for the last 5 years. Without going into all the details (because then I'll be here for two days), its new CPU is registerless and directly reads and writes into main memory for all instructions. To make it performant, the "main memory" is 0.5-8 KiB is size and treats the actual RAM as expanded memory, copying bits of it in and out. Like a disk. Now, that leaves me with the question of organization of this expanded memory. I decided I won't go the normal route and I won't implement a virtual memory system. Which leaves me with the question of what to do.

And then it occured to me yesterday. What IF you treated your expanded memory as a literral disk and put FAT on it? To allocate memory, processes create a file of some size. Processes can pass memory objects to each other by passing filesystems paths around. All memory objects are dynamically sized. Some implementations of FAT (DR-DOS 6.0 and others) track user&group ID as well as access permissions for them. You could literally implement the well-understood-by-sysadmins Unix filesystem permissions model for all memory! Super important: a single categorization unites ALL of memory which means ALL of memory is always accounted for. Modern systems have all kinds of weird kinks. Inodes, sysfs, procfs, netlink, ioctl, device nodes, semaphores, muliple kinds of sockets, multiple namespaces for all those kinds of sockets, acl, quotas, memory maps, process trees, uids and guids, mounts, etc, etc... If you put all of those into a filesystem, you suddenly make them all observable and manipulable. Another benefit: it's now possible to dump the entire contents of memory to real disks and examine them or change them. Messing with system internals is now easier than ever! And the best part? Both the running memory and the disk image of it can be manipulated with normal filesystem tools!

This can be made to play real nice in a microkernel design with lots of system daemons offering services. I already checked the extensive Wikipedia article on FAT and I found that it practically nativelly supports being used for this purpose. You would need to repurpose some fields from what Microsoft uses them for, but this is a long and time-honoured tradition. The article (linked below) lists several mutually incompatible standards for various data structures that were all used in parallel by several operating systems from several vendors.

Besides breaking the Microsoft's non-standard on FAT, there are two other problems I can see. The first is that my CPU is big-endian and FAT is used on little-endian machines which means the multi-octet fields will be messed up. That can be lived with - this will only come into effect if somebody attempted to mount the memory image on a little-endian machine, but that can be fixed by the appropriate filesystem driver.

The much bigger problem - and the only serious problem I've so far seen - is that FAT keeps track of file contents in a singly linked list. That's.... inapropriate for quick access. :) Since the use of this scheme implies there is only one daemon which manages the memory filesystem for all other applications, and since this is the only place where file handles (or whatever) is handed out, this limitation can be worked around. The filesystem daemon could keep a special structure for all open files/assigned file handles which has a map to all clusters that are part of the file. So if you want to randomly access parts of a large file, the FS daemon doesn't have to read the entire FAT from the start, it can just read from its map. But the problem is that, since this is a memory management scheme, most files can be expected to be open. Which would mean most files would have an associated fast-access map. But then the question is why have the FAT, if most access is going through the map?

Another mitigation strategy is to take care to have the memory defragmented, and then try to assign memory in large contiguous blocks of clusters. That way, if the random access happens inside such a large block, working out the sector (=page) that is to be accessed should be straightforward. The access map cache from the previous paragraph then only needs to keep track of starts and lenghts of blocks. The scheme is simpler, requires less overhead, and should benefit from the last four decades (!) of improvements to FAT drivers and algorithms.

This manage-memory-as-a-filesystem idea can BTW also be implemented on normal registered CPUs, by having some pages (in the reserved section between the sector 0 and the first FAT table xD ) function as faux main memory for currently running processes and the rest used in the FAT.

Wikipedia page on FAT: https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system

Interested? Want to learn more about the community?
What else you may like…
Videos
Podcasts
Posts
Articles
XLibre 25.1 - The Future of X11 Adds New Platforms, New Features

The latest release of the Xorg fork, clocking in at over 1,500 commits, adds support for FreeBSD, NetBSD, Win32, & Dragonfly BSD. Plus systemd-free seat management & more.

More from The Lunduke Journal:
https://lunduke.com/

00:21:03
December 18, 2025
NeoFetch But in Rust and More Gay

HyFetch, a Rust re-write of the discontinued NeoFetch, asks users to choose their flag (Trans, GenderFluid, FemBoy, etc.) at first launch. Becomes defacto on several Linux distros.

More from The Lunduke Journal:
https://lunduke.com/

00:22:28
December 17, 2025
Memory Corruption Vulnerability in Linux "Memory Safe" Rust Code

Rust programmers re-wrote a portion of the Linux kernel in Rust. That Rust code had a crashing vulnerability in an "unsafe" chunk of code... which Linux is littered with.

More from The Lunduke Journal:
https://lunduke.com/

00:18:23
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044
December 21, 2025
Lunduke's Nerdy Q&A, Lifetime Sub for $89

Two quick tidbits on this glorious Sunday:

Reminder: $89 Lifetime Subscriptions

Lifetime Subscriptions to The Lunduke Journal are currently discounted to $89. For life. Which is… insane. That’s less than 1/3rd of the regular price.

Monthly and Yearly subscriptions are 50% off. Which is also pretty darned snazzy.

Submit Questions for Lunduke’s Nerdy Q&A!

On Tuesday I will be recording a long-overdue episode of “Lunduke’s Nerdy Q&A”.

Got questions you’d like asked in the show? No guarantees, but I’ll get to as many as I can!

Retro computing. Current computer news. Ridiculous hypotheticals. Any question is fair game... just make sure it’s good and nerdy.

To make it simple for me, there are two ways you can submit questions for this week’s Q&A:

  1. Add a comment to this thread on Forum.Lunduke.com.

  2. Reply to this thread over on X.

  3. Ok. I lied.  There are three ways.  You can also reply to this post, right here, on Locals.

Note: Only Lunduke Journal subscribers can access to Forum.Lunduke.com. All of the details on how to gain access are on the Lunduke Journal Subscriber Perks page.

-Lunduke

Read full Article
December 17, 2025
The FOMO of not having a Lifetime Subscription to The Lunduke Journal

Time for some Fun Lunduke Journal Facts of Fact-ly-ness!

  1. The “per-month” cost of a Lifetime Subscription to The Lunduke Journal is an asymptotic line. The longer you have that subscription, the closer it gets to $0.00.

  2. The Lifetime Subscription was first introduced 3 1/2 years ago… and is still going strong.

  3. The price of a Lifetime Subscription is currently discounted to $89. For life. That’s less than 1/3rd the normal price.

The earlier you pick one up, the quicker that asymptotic line begins approaching zero. Which is fun.

We Don’t Have Time Machines

If you think you might ever want a Lifetime Subscription, now is the time.

Imagine missing this discounted price and missing out on months of, mathematically certain, asymptotic line fun. This is one of those scenarios where Future You (tm) would want to travel back in time to tell Present You (tm) to snag a Lifetime Subscription.

Go. Grab the Lifetime Subscription for $89. That deal is good all December long.

There’s a video of me yammering about it too. Just for good measure.

You’re welcome.

-Lunduke

Read full Article
December 13, 2025
Lunduke Journal Lifetime Wall 2 almost full, plus Lifetime Sub as a gift

Two quick tidbits!

First: Lifetime Wall 2 Almost Full

The 2nd Lunduke Journal Lifetime Subscriber Wall of Shame… err… I mean “Wall of Awesomeness” (which shows at the end of each video) is almost full! Holy cow! So many people have signed up over the last few days and asked to be added! Awesome!

There’s room for maybe 3 or 4 more names on there before I need to start Wall Number 3. So if you want to be on the 2nd wall, grab a Lifetime Sub quickly. (Though, really, being on the 3rd wall will be cool too.)

Plus, hey! You can snag one for $89 this month. Which is pretty sweet.

Second: Sending a Lifetime Sub as a Gift

Several of you have asked if it’s possible to send someone a Lifetime Subscription as a gift (at the discounted $89 / $99 price).

The answer is yes! And, instead of sending instructions to each of you, individually, I am including a Step-by-Step rundown on how to send someone a Lunduke Journal Lifetime Sub as a gift.

There are two options — Locals & Bitcoin — and both work equally well.

(Note: A gifted Lifetime subscription can also be applied to Substack accounts… it just can’t be purchased via Substack because of the way the system works for gifting it to another person.)

How to give a gift Lifetime Subscription via Locals:

  1. Go to Lunduke.Locals.com/support.

  2. Select “Give Once“.

  3. Enter “99“ (or more) into the amount field.

  4. Email “bryan at lunduke.com”. Include the following in that email:

    1. Have the words “Gift Sub” somewhere in the subject line.

    2. Include the email you used to make the purchase and the email address of gift recipient.

    3. Include any special instructions or requests, such as: A special message you would like included, when you would like an email sent to the recipient, or if you would prefer to let the recipient know yourself.

  5. Lunduke will send you a confirmation email after that. This usually happens within a few hours.

How to get a Lifetime Subscription with Bitcoin:

You can also send a gift Lifetime Subscription via Bitcoin.  (And it's $10 cheaper thanks to the lower processing fees of Bitcoin.)

  • Send $89 worth of Bitcoin (or more) to the following address:

bc1qyjakve8fywm8pz2v99v57yhjj0vzr2vjze6fcq

  • Email “bryan at lunduke.com”. Include the following in that email:

    1. What time you made the transaction, & how much was sent (in Bitcoin).

    2. Have the words “Gift Sub” somewhere in the subject line.

    3. Include the email address of gift recipient.

    4. Include any special instructions or requests, such as: A special message you would like included, when you would like an email sent to the recipient, or if you would prefer to let the recipient know yourself.

  • Lunduke will send you a confirmation email after that. This usually happens within a few hours.

Note: The Lifetime Subscription only applies to Substack, Locals, and the Lunduke Journal Forum. Other platforms (such as X, Patreon, & YouTube) do not provide the functionality necessary to create Lifetime Subscriptions.

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals