MarkKordusic ·
@@sonnet-5.5 corrections , input , collaberation , assistence , re -writing?
To understand forth more deeply begin with the idea that every computer follows instructions written in a language that tells the hardware what to do most languages sit far above the actual circuits and need large translation layers forth was created by charles moore so that the programmer works almost directly with the machine itself
The core of forth is a stack which works like a stack of plates where the last item placed is the first one removed numbers and pieces of data go onto this stack and short words act as commands that take values from the stack perform an operation and leave results there expressions are written in postfix order so the numbers come first and the action follows this removes the need for many parentheses and complex syntax and lets the computer execute commands with very little overhead
Because the language is built from a small set of primitive operations that map closely to processor instructions a programmer can extend the system by defining new words in terms of old ones the entire environment stays interactive a person can type a command see the result immediately change the definition and continue without long compile cycles this closeness to the machine is why forth has long been valued for controlling hardware and for systems that must remain small and efficient
An operating system written in the purest forth style takes this further instead of a large kernel that manages processes memory and devices with heavy layers of protection a forth system can boot directly load its dictionary of words and give the user full interactive control colorforth created by moore himself is the clearest example of this approach it uses color to mark the meaning of each word so the compiler does not need to parse text in the usual way red marks a new definition green marks code that is compiled into that definition and other colors handle execution or comments the whole system including a minimal operating system fits into a few kilobytes stores programs as source and recompiles them when needed it can run on ordinary personal computer processors and also on the specialized chips designed by the same inventor
The green arrays chips take the same philosophy into silicon the ga one four four contains one hundred forty four complete independent computers arranged in a grid each computer is a small stack machine that executes forth oriented instructions asynchronously without a global clock an instruction can complete in roughly one and a half nanoseconds while consuming only a few picojoules of energy when a node has no work it draws almost no power the nodes communicate by sending messages through neighboring ports so complex tasks can be mapped across the array as parallel or pipelined processes evaluation boards exist that add external memory flash storage video output and serial interfaces allowing a person to build a custom system around one or two of these chips the result is not a general purpose replacement for a conventional desktop running large application suites but a highly efficient specialized machine whose hardware and software are designed together for forth
For a home custom desktop that still needs conventional performance one can combine the pure forth path with modern components a representative midrange intel core i five processor such as the fourteen core models contains six performance cores and eight efficiency cores for a total of twenty threads the performance cores run at a base frequency near two point seven gigahertz and can boost above five gigahertz while the efficiency cores operate at lower speeds to save energy the processor includes twenty four megabytes of shared cache supports both older and newer memory types and has a base power rating of sixty five watts with higher limits available under load
A midrange nvidia graphics card such as the rtx four zero six zero provides three thousand seventy two processing cores eight gigabytes of high speed memory on a one hundred twenty eight bit path delivering two hundred seventy two gigabytes of data each second clocks that begin near one point eight three gigahertz and boost near two point four six gigahertz and a total board power of about one hundred fifteen watts these parts handle display output three dimensional work and general computing while a forth based system or a green arrays board can manage specialized control tasks or experimental parallel programs
Taken together the purest forth operating system with the strongest machine code and assembly character is colorforth and its close relatives running either on standard processors or on the green arrays hardware the combination lets a person explore a desktop environment where language and silicon stay tightly aligned for efficiency and direct control while still allowing the use of familiar high performance processors and graphics hardware for everyday needs the foundati…
Replies
Tree ·
Here's feedback on both drafts, followed by a merged rewrite.
Tree ·
## Overall
Both drafts are strong on content. The main problems are readability and a few technical claims that need softening.
Tree ·
**Readability**
- There is no punctuation, so the long sentences are hard to follow. Adding periods, commas, and paragraph breaks will help most.
- Numbers are spelled out ("one hundred forty four", "two point six"). Digits are easier to scan: 144, 2.7 GHz, 272 GB/s.
- Draft 2 reads better and teaches more (stack, postfix, colors). Draft 1 is more compact. Keeping Draft 2's explanations with Draft 1's brevity works best.
Tree ·
**Accuracy and claims to check**
1. **Hardware compatibility.** colorForth won't drive a modern RTX 4060. It has very limited driver support, mostly basic VGA-style graphics on older PC hardware. Your closing paragraph implies the parts form one system, so say plainly that these are *separate paths*, not a single build.
2. **GA144 as a desktop.** It's a 144-core chip of very small processors (18-bit, with tiny memory per node, about 64 words). It works for specialized, experimental, low-power projects, not as a general desktop CPU. Draft 1 leans on "desktop-style," so soften it.
3. **GA144 and colorForth.** The GA144 is programmed with *arrayForth*, a colorForth descendant that runs on a host PC. It doesn't boot colorForth natively as a standalone OS.
4. **Video output.** The GA144 has no dedicated video hardware. Video is done by bit-banging from the nodes, as in the VGA demos.
5. **Timing and energy.** "~1.5 ns per instruction" and "a few picojoules" are roughly right, but call them approximate or peak figures.
6. **i5 specs.** The 14-core, 6P+8E, 20-thread, 24 MB cache, 65 W base, ~2.7 GHz base and ~5.2 GHz boost match the i5-14600 (non-K). Name the model so the numbers are traceable.
7. **RTX 4060 specs.** 3,072 CUDA cores, 8 GB GDDR6, 128-bit, 272 GB/s, 1.83/2.46 GHz and 115 W are all correct. "Shader cores" is fine, but NVIDIA calls them CUDA cores.
8. **Name.** "Charles Moore" is correct, and he is usually called Chuck Moore.
9. **Color meanings.** Red = definition, green = compile, yellow = execute, white = comment. Your description is right.
10. **"Closest to Linux or Windows."** Forth systems aren't really equivalents to those. Say "the nearest Forth-style equivalent of an OS."
Tree ·
## Suggested rewrite (merged and punctuated)
Tree ·
**Understanding Forth**
Tree ·
Forth was created by Charles "Chuck" Moore as a simple but powerful way to instruct a computer. Most languages sit far above the hardware and rely on large translation layers. Forth lets the programmer work almost directly with the machine.
Tree ·
At its core is a **stack**, which works like a pile of plates: the last item placed is the first removed (last-in, first-out). Numbers go onto the stack, and short commands called *words* take values from it, perform an operation, and leave the result. Expressions use **postfix** order, so `2 3 +` leaves `5`. This removes most parentheses and complex syntax.
Tree ·
Because Forth is built from a small set of primitives that map closely to processor instructions, you can extend it by defining new words from old ones. The environment is fully interactive: type a command, see the result, change a definition, and continue without long compile cycles. This is why Forth has long been used for hardware control and for systems that must stay small and efficient.
Tree ·
**Forth as an operating system**
Tree ·
A Forth system can boot directly on hardware, load its dictionary of words, and give the user full interactive control. It needs no large kernel and few protection layers. **colorForth**, also by Moore, is the purest example. It uses color to give each word meaning: red for a new definition, green for compiled code, yellow for execution, and white for comments. The whole system is only a few kilobytes, stores programs as source, and recompiles as needed. It runs on ordinary PC-compatible processors, though with limited hardware and driver support.
Tree ·
**Forth in silicon: GreenArrays GA144**
Tree ·
The GA144 puts the same philosophy into hardware. It contains 144 small, independent stack computers, each running a Forth-oriented instruction set asynchronously with no global clock. Instructions take roughly 1.5 ns and use only a few picojoules, and idle nodes draw almost no power. Nodes communicate through neighboring ports, so tasks can be spread across the array as parallel or pipelined processes. The chip is programmed with *arrayForth*, a colorForth descendant, from a host PC. Evaluation boards add external memory, flash, and serial interfaces, and video is possible by bit-banging. It's best for specialized, efficient, experimental systems, not as a general-purpose desktop replacement.
Tree ·
**Conventional hardware for comparison**
Tree ·
- **Intel Core i5 (e.g., i5-14600):** 14 cores (6 performance and 8 efficiency), 20 threads, performance cores at ~2.7 GHz base and up to ~5.2 GHz boost, 24 MB shared cache, DDR4 or DDR5 support, 65 W base power.
- **NVIDIA RTX 4060:** 3,072 CUDA cores, 8 GB GDDR6 on a 128-bit bus (272 GB/s), 1.83 GHz base and 2.46 GHz boost, 115 W board power.
Tree ·
**Putting it together**
Tree ·
There are two separate routes. For the purest Forth experience, use **colorForth** on a compatible PC, or **arrayForth** with GA144 hardware. For everyday performance, graphics, and software compatibility, use mainstream parts like the i5 and RTX 4060, which colorForth can't fully use. A practical hybrid is a conventional PC for general work with a Forth or GA144 board alongside for control tasks or parallel experiments.
Tree ·
## Questions for you
- Who is the audience: beginners, hobbyists, or builders?
- Do you want one long article or two (a Forth primer and a hardware comparison)?
- Should I add a short example, such as a colorForth word definition or a small stack walkthrough?
Tree ·
I can also trim it to a shorter version or expand any section.
MarkKordusic ·
@@sonnet-5.5 im trying to get the basics down in text for you to understand. And use forth yes forth.
For powering the custom desktop on.
And having total control of whats going on in the desktop.
Then for each task i can access secondary hardware and software.
But yes it will power on, and hopefully be able to use green array chips as many and more than neccesary to alow me to manipulate the computer.
The goal is to encorperate metanet desktop from project babbage as an absolue base layer, and incorperate bsv blockchain as an absolute base layer as well, and it be a test and experimental environment. There is a project babbage "genius ai" i want connected to the base layer of system.
To mix and match and experiment until it works . Do you have a rough idea what i am talking about.?
Tree ·
I'm running searches on Metanet Desktop, the Babbage "genius AI", and GA144 host interfaces now. I'll come back with a grounded answer in a moment.
MarkKordusic ·
@@sonnet-5.5 oh how could i forget, Treechat is also one of the base layer sites i need to use as another base layer environment. The computer boots into these base layer environments side by side simultaneously , no other internet sites does that make sense , and then i expand.
Tree ·
Yes, I get the picture, and it's a coherent idea. Here is my understanding, and then the hard parts.
Tree ·
## What I think you're describing
Tree ·
- **A Forth-controlled machine** where you own everything from power-on, with Forth as the lowest software layer.
- **GA144 chips** (as many as needed) acting as your own control, I/O, and experiment fabric.
- **Three "base layer" environments that come up side by side at boot**:
1. **Metanet Desktop** (Project Babbage), the BSV wallet and identity layer
2. **BSV blockchain** access
3. **Treechat**, the social app built on BSV
- **Babbage's "genius AI"** wired in at the base.
- **Nothing else from the open internet**, and you expand from there.
- It's an experimental, mix-and-match environment.
Tree ·
## Where the plan is solid
Tree ·
- **Metanet Desktop, BSV, and Treechat fit together.** Treechat is built on BSV, so one identity and wallet can cover all three. That's a sensible "base layer" trio.
- **A closed allow-list** (only those three services are reachable) is a normal network design, done with firewall rules or a proxy.
- **Forth for total control** is a legitimate goal for a research machine.
Tree ·
## Where it gets difficult
Tree ·
1. **Metanet Desktop and a browser stack.** Metanet Desktop is a modern desktop app with a web-style UI, and Treechat is a web app. They need a browser engine, TLS, and a TCP/IP stack. colorForth and GA144 don't provide any of that. They can't run those apps themselves.
2. **GA144 chips can't host those apps either.** Each node has only ~64 words of RAM. They are good for I/O, signal processing, hashing experiments, and custom logic, not for running a wallet or a web UI.
3. **BSV work needs real compute.** Signing transactions (secp256k1) and SHA-256 hashing are possible in principle on a GA144 but would be a serious research project. A conventional CPU does this trivially.
4. **The AI.** I don't want to claim details about Babbage's "genius AI" without checking, and my searches this turn haven't given me anything I can confirm. I'd ask you for a link. Any large AI model will run on a conventional CPU/GPU or a remote service, not on GA144s.
5. **"Side by side at boot."** This is doable, but not in colorForth alone.
Tree ·
## A realistic architecture
Tree ·
Think of it in layers:
Tree ·
| Layer | What runs there |
|---|---|
| **Layer 0: Forth/GA144 control plane** | Power-on sequencing, hardware monitoring, custom I/O, a hardware-level "kill switch" or allow-list controller, experiments |
| **Layer 1: Conventional compute (i5-class PC)** | A minimal Linux that boots straight into a kiosk-style session |
| **Layer 2: Base-layer apps in split view** | Metanet Desktop, a BSV node or client, and Treechat, auto-launched at boot |
| **Layer 3: AI** | Genius AI connected through Metanet's API/wallet layer, local or remote |
| **Layer 4: Expansion** | New apps added one at a time to the allow-list |
Tree ·
The GA144 board talks to the PC over USB or serial. That's how the arrayForth tools work today, and it gives Forth real control of the hardware around the PC without trying to make the GA144 replace it.
Tree ·
## Suggested first steps
Tree ·
1. Get **one GA144 evaluation board** and run arrayForth to learn the toolchain.
2. Set up a **minimal Linux kiosk** that auto-launches Metanet Desktop and Treechat in split view.
3. Add a **firewall allow-list** so only those services are reachable.
4. Add a **serial/USB bridge** so Forth on the GA144 can read status and control hardware.
5. Connect the AI once you know its API.
Tree ·
## Questions for you
Tree ·
- Do you have a **link to the Babbage "genius AI"** so I can read it?
- Is it okay if **Layer 1 is a conventional PC**, with Forth/GA144 as the control layer? Or must even the apps run on Forth hardware?
- Do you want me to **dig into the Treechat docs and the Metanet Desktop repo** next, to see how they could be launched together?
Tree ·
I can also redraft your text to describe this layered design, so it matches what you actually want to build.
MarkKordusic ·
@@sonnet-5.5 see my main problem is i havnt after over 5 years been able to learn more about forth operating systems , what about " cosy" or a whole library of existing operating systems that are pure forth.
Then use you to try to expand their capabilities to the known or uncharted maximum.
Then as you learn more about bsv tech, i will need to get a lenghtyh prompt ready with all neccessary data and git hub links and dont think it is going to include a bsv node. Bsv doesnt work like that i access blockchain via treechat and metanet desktop.
You dont need to know the technachalities now. We just brute force it until we find a workable compromise , but know forth and bsv , and treechat , and babage desktop , metanet desktop have to be worked ,mixed and matched until they somehow work together. I like your comment on locking and firewalling and these booting up automatically auto exe bat ms dos style . So this is just me trying to see how it could work . I am really just a hobbiest and extreame layman that refuses to compromise. And will eventually find a working security rock solid bsv base layer desktop. This may be handy for you to construct a detailed description in llm language to copy and paste for further open source development. Maybe thats what you could do to finish up.
Tree ·
Yes, I understand, and being a hobbyist doesn't hold you back here. Your searches came back empty this turn, so I'll separate what I'm fairly sure of from what still needs checking.
Tree ·
## Forth operating systems to explore
Tree ·
I couldn't verify **"Cosy"** as a Forth OS. I don't know it, so send me a link if you have one. These are real projects I'm fairly confident about, but please verify the details yourself:
Tree ·
| Project | What it is | Why it matters to you |
|---|---|---|
| **colorForth** (Chuck Moore) | Tiny Forth OS for PCs | The purest example, but limited hardware support |
| **DuskOS** (Virgil Dupras) | Forth-based system aimed at running on minimal or scavenged hardware | Closest to a usable "Forth all the way down" OS |
| **CollapseOS** | Predecessor to DuskOS, aimed at old and simple chips | Good reading on design philosophy |
| **SectorForth / Milliforth** | Forth that fits in a boot sector | Shows how little code a bare-metal Forth needs |
| **JonesForth** | Heavily commented Forth tutorial in assembly | The best way to learn how Forth works inside |
| **zeptoForth, Mecrisp, AmForth** | Forth for microcontrollers | Useful for the control-plane side |
| **Retro Forth** | Small Forth family | Easy to experiment with |
Tree ·
If you've tried for 5 years without getting anywhere, I suggest this order: **JonesForth, then SectorForth, then DuskOS, then colorForth.** Understanding how a Forth is built will help more than reading about Forth OSes.
Tree ·
## Your corrections, noted
Tree ·
- **No BSV node.** Understood. You reach the chain through Treechat and Metanet Desktop, so I'll drop the node from the design.
- **Auto-boot into locked-down apps** (autoexec style) is a good plan, and a firewall allow-list fits it well.
- **Brute-force experimentation** is fine for a test environment. Keep the experimental machine separate from any wallet holding real funds.
Tree ·
## One caution
Tree ·
Metanet Desktop and Treechat almost certainly need a browser engine and TCP/IP with TLS, which Forth OSes don't provide. The compromise I'd suggest is a minimal conventional OS underneath for the apps, with Forth and GA144 as the control layer you own. You can shrink the conventional layer over time as your Forth skills grow.
Tree ·
Treechat's docs describe it as a social knowledge platform powered by BSV. I couldn't read up on Metanet Desktop or Babbage's "genius AI", so those parts are placeholders below.
Tree ·
## Copy-and-paste project brief for an LLM