• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Thursday, July 3, 2025
Techcratic
  • TC
  • AI
    Artificial Intelligence

    Transforming network operations with AI: How Swisscom built a network assistant using Amazon Bedrock

    Artificial Intelligence

    EgoDex: Learning Dexterous Manipulation from Large-Scale Egocentric Video

    Artificial Intelligence

    Instruction-Following Pruning for Large Language Models

    Artificial Intelligence

    How to Combine Streamlit, Pandas, and Plotly for Interactive Data Apps

    Artificial Intelligence

    Tailor responsible AI with new safeguard tiers in Amazon Bedrock Guardrails

    Artificial Intelligence

    Automate Data Quality Reports with n8n: From CSV to Professional Analysis

    Artificial Intelligence

    NewDay builds A Generative AI based Customer service Agent Assist with over 90% accuracy

    Artificial Intelligence

    5 Things You Need to Know About Agentic AI

    Artificial Intelligence

    Normalizing Flows are Capable Generative Models

  • App Zone
    Top 3 Launcher Apps for Apple: Features, Pros, and Cons

    Top 3 Launcher Apps for Apple: Features, Pros, and Cons

    Top 3 Launcher Apps for Android: Features, Pros, and Cons

    Top 3 Launcher Apps for Android: Features, Pros, and Cons

    Top 3 Card Game Apps of 2025: Features, Pros, and Cons

    Top 3 Card Game Apps of 2025: Features, Pros, and Cons

    Top 3 Medical Apps of 2025: Features, Pros, and Cons

    Top 3 Medical Apps of 2025: Features, Pros, and Cons

    Top 3 Travel Apps of 2025: Features, Pros, and Cons

    Top 3 Travel Apps of 2025: Features, Pros, and Cons

    Top 3 Casual Game Apps for 2025: Features, Pros, and Cons

    Top 3 Casual Game Apps for 2025: Features, Pros, and Cons

    Top 3 Food Apps for 2025: Features, Pros, and Cons

    Top 3 Food Apps for 2025: Features, Pros, and Cons

    Top 3 Sport Apps for 2025: Features, Pros, and Cons

    Top 3 Sport Apps for 2025: Features, Pros, and Cons

    Top 3 Productivity Apps for 2025: Features, Pros, and Cons

    Top 3 Productivity Apps for 2025: Features, Pros, and Cons

  • Apple
    Apple Music iOS 26 vs iOS 18: features compared

    Apple Music iOS 26 vs iOS 18: features compared

    New wallpapers from Apple now available for iPhone, iPad, Mac

    New wallpapers from Apple now available for iPhone, iPad, Mac

    Five new Apple products are coming soon in early 2025, here’s what to expect

    Apple to release Q3 2025 earnings results on Thursday, July 31

    Apple to reveal tariff-stricken Q3 results on July 31

    Apple to reveal tariff-stricken Q3 results on July 31

    Apple is right to ditch iPad Fold in favor of the iPhone Fold

    Apple is right to ditch iPad Fold in favor of the iPhone Fold

    iOS 26’s Messages app has a solution coming for unwanted texts

    iOS 26’s Messages app has a solution coming for unwanted texts

    Sorry Android users, these Google Photos features are coming to iPhones first

    Sorry Android users, these Google Photos features are coming to iPhones first

    Hands on: Spigen adds to C1 line with iMac G3 inspired Apple Watch stand

    Hands on: Spigen adds to C1 line with iMac G3 inspired Apple Watch stand

    Apple releases new wallpaper for iPhone, iPad, and Mac as store debuts

    Apple releases new wallpaper for iPhone, iPad, and Mac as store debuts

  • Retro Rewind
    Retro Rewind: Electronic Games April 1995

    Retro Rewind: Electronic Games April 1995

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

    Retro Rewind: Electronic Gaming Monthly Magazine Number 57 April 1994

    Retro Rewind: Blast from the Past – 35 Iconic Commercials of 1988!

    Retro Rewind: Blast from the Past – 35 Iconic Commercials of 1988!

    Retro Rewind: PC World Magazine August 1998

    Retro Rewind: PC World Magazine August 1998

    Retro Rewind: Computer Shopper Magazine September 1997

    Retro Rewind: Computer Shopper Magazine September 1997

    Retro Rewind: PC Magazine December 2015

    Retro Rewind: PC Magazine December 2015

    Retro Rewind: EDGE Magazine RETRO #1: The Guide to Classic Videogame Playing and Collecting

    Retro Rewind: EDGE Magazine RETRO #1: The Guide to Classic Videogame Playing and Collecting

    Retro Rewind: Computer Gaming World Magazine Issue 73 December 1998

    Retro Rewind: Computer Gaming World Magazine Issue 73 December 1998

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

  • Tech Deals
    Soundcore Anker Motion Boom Plus IP67 Outdoor Speaker with 80W Stereo Sound, Black

    Soundcore Anker Motion Boom Plus IP67 Outdoor Speaker with 80W Stereo Sound, Black

    ADATA 2TB Premium SSD for PS5 PCIe Gen4 M.2 2280 Internal Gaming SSD Up to 7400 MB/s…

    ADATA 2TB Premium SSD for PS5 PCIe Gen4 M.2 2280 Internal Gaming SSD Up to 7400 MB/s…

    MageGee Portable 60% Mechanical Gaming Keyboard, MK-Box LED Backlit Compact 68 Keys Mini…

    MageGee Portable 60% Mechanical Gaming Keyboard, MK-Box LED Backlit Compact 68 Keys Mini…

    Skytech King 95 Gaming PC Desktop, Ryzen 7 9800X3D 4.7 GHz (5.2 GHz Turbo Boost), NVIDIA…

    Skytech King 95 Gaming PC Desktop, Ryzen 7 9800X3D 4.7 GHz (5.2 GHz Turbo Boost), NVIDIA…

    Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI,…

    Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI,…

    Minecraft – PlayStation 3 (Renewed)

    Minecraft – PlayStation 3 (Renewed)

    Carcassonne Board Game (BASE GAME) – Classic Tile-Laying Strategy for All Ages, Medieval…

    Carcassonne Board Game (BASE GAME) – Classic Tile-Laying Strategy for All Ages, Medieval…

    SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card – C10, U3, V30, 4K UHD, SD Card -…

    SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card – C10, U3, V30, 4K UHD, SD Card -…

    Vantec USB 3.0 Multi-Card Reader UHS-II, SD 4.0, Multi-LUN (UGT-CR615), Black

    Vantec USB 3.0 Multi-Card Reader UHS-II, SD 4.0, Multi-LUN (UGT-CR615), Black

  • Tech Eats
    Cheesy Broccoli Rice Mug: 5-Minute Super Comfort Food

    Cheesy Broccoli Rice Mug: 5-Minute Super Comfort Food

    Top 10 Vegetarian Recipes for 2025: Easy and Nutritious Meals for Busy People

    Top 10 Vegetarian Recipes for 2025: Easy and Nutritious Meals for Busy People

    Bacon Mug Lasagna: 5-Minute Microwave Meat Lover’s Dream

    Bacon Mug Lasagna: 5-Minute Microwave Meat Lover’s Dream

    Bacon Fried Rice Mug: 5-Minute Microwave Meal

    Bacon Fried Rice Mug: 5-Minute Microwave Meal

    Bacon & Cheddar Mug Biscuit: 2-Minute Savory Comfort

    Bacon & Cheddar Mug Biscuit: 2-Minute Savory Comfort

    Loaded Bacon Cheesy Potato Mug: 5-Minute Comfort Food

    Loaded Bacon Cheesy Potato Mug: 5-Minute Comfort Food

    Peanut Butter Banana Mug Muffin: 5-Minute Protein Snack

    Peanut Butter Banana Mug Muffin: 5-Minute Protein Snack

    Oreo Mug Cake: 2-Minute Cookie & Cake Combo!

    Oreo Mug Cake: 2-Minute Cookie & Cake Combo!

    Tiramisu Mug Cake: Coffee Lover’s Dream in 2 Minutes!

    Tiramisu Mug Cake: Coffee Lover’s Dream in 2 Minutes!

  • Tesla
    Tesla employees try to oust Elon, new Volvo, and Micah’s close call

    Tesla sold 5000 Cybertrucks in Q2 and Optimus is in Chaos

    2 PCS Bike or Motorcycle Chain Washer, Motorcycle Chain Cleaning Brush Tool Kit,…

    2 PCS Bike or Motorcycle Chain Washer, Motorcycle Chain Cleaning Brush Tool Kit,…

    Tesla launches Oasis Supercharger with solar farm and off-grid batteries

    Tesla launches Oasis Supercharger with solar farm and off-grid batteries

    5PCS Wheel Lock Nut Key Removal Kit for Tesla Model 3 & Model Y & Model X & Model S &…

    5PCS Wheel Lock Nut Key Removal Kit for Tesla Model 3 & Model Y & Model X & Model S &…

    2 PCS Trailer Hitch Coupler Lock, Dia 1/4 Inch 3/4 Inch Span Trailer Hitch Lock with…

    2 PCS Trailer Hitch Coupler Lock, Dia 1/4 Inch 3/4 Inch Span Trailer Hitch Lock with…

    Center Console Dashboard Organizer for 2024-2025 2026 Tesla Cybertruck Accessories,…

    Center Console Dashboard Organizer for 2024-2025 2026 Tesla Cybertruck Accessories,…

    Motor Trend Grand Prix Tire Tread Rubber Car Floor Mats for Autos SUV Truck & Van -…

    Motor Trend Grand Prix Tire Tread Rubber Car Floor Mats for Autos SUV Truck & Van -…

    Center Console Cover for Tesla Model 3 Model Y Leather Armrest Box Cushion Protector…

    Center Console Cover for Tesla Model 3 Model Y Leather Armrest Box Cushion Protector…

    Femuar Car Trunk Organizer with Large Capacity Waterproof Car Accessories for Women &…

    Femuar Car Trunk Organizer with Large Capacity Waterproof Car Accessories for Women &…

  • UFO
    GPS Drones with Camera for Adults 4K, Brushless Motor FPV RC Quadcopter with Auto Return, Follow Me, Headless Mode, 50 Mins Long Flight, Lightweight and Foldable Drone for Beginner

    GPS Drones with Camera for Adults 4K, Brushless Motor FPV RC Quadcopter with Auto Return, Follow Me, Headless Mode, 50 Mins Long Flight, Lightweight and Foldable Drone for Beginner

    Ancient Aliens and UFOs: 5 UFO sightings in same month July 1952 in different world places

    Ancient Aliens and UFOs: 5 UFO sightings in same month July 1952 in different world places

    Linen Shirts for Men Casual Short Sleeve Button Down Shirt Cool Summer Beach Wedding Vacation Tops

    Linen Shirts for Men Casual Short Sleeve Button Down Shirt Cool Summer Beach Wedding Vacation Tops

    We Discovered an Alien-Like World Below in Antarctica!

    We Discovered an Alien-Like World Below in Antarctica!

    Zengjo Mens Workout Shirts Quick Dry Short Sleeve Athletic Tee Moisture Wicking Top for Running Gym Fitness Training

    Zengjo Mens Workout Shirts Quick Dry Short Sleeve Athletic Tee Moisture Wicking Top for Running Gym Fitness Training

    Ancient Aliens: The Amphibious Gods of Ancient Babylon (Season 14) | History

    Ancient Aliens: The Amphibious Gods of Ancient Babylon (Season 14) | History

    The Hidden Hand

    The Hidden Hand

    A Brief History Of The UFO Contactee Movement…

    A Brief History Of The UFO Contactee Movement…

    Roswell New Mexico Alien T-Shirt

    Roswell New Mexico Alien T-Shirt

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    Transforming network operations with AI: How Swisscom built a network assistant using Amazon Bedrock

    Artificial Intelligence

    EgoDex: Learning Dexterous Manipulation from Large-Scale Egocentric Video

    Artificial Intelligence

    Instruction-Following Pruning for Large Language Models

    Artificial Intelligence

    How to Combine Streamlit, Pandas, and Plotly for Interactive Data Apps

    Artificial Intelligence

    Tailor responsible AI with new safeguard tiers in Amazon Bedrock Guardrails

    Artificial Intelligence

    Automate Data Quality Reports with n8n: From CSV to Professional Analysis

    Artificial Intelligence

    NewDay builds A Generative AI based Customer service Agent Assist with over 90% accuracy

    Artificial Intelligence

    5 Things You Need to Know About Agentic AI

    Artificial Intelligence

    Normalizing Flows are Capable Generative Models

  • App Zone
    Top 3 Launcher Apps for Apple: Features, Pros, and Cons

    Top 3 Launcher Apps for Apple: Features, Pros, and Cons

    Top 3 Launcher Apps for Android: Features, Pros, and Cons

    Top 3 Launcher Apps for Android: Features, Pros, and Cons

    Top 3 Card Game Apps of 2025: Features, Pros, and Cons

    Top 3 Card Game Apps of 2025: Features, Pros, and Cons

    Top 3 Medical Apps of 2025: Features, Pros, and Cons

    Top 3 Medical Apps of 2025: Features, Pros, and Cons

    Top 3 Travel Apps of 2025: Features, Pros, and Cons

    Top 3 Travel Apps of 2025: Features, Pros, and Cons

    Top 3 Casual Game Apps for 2025: Features, Pros, and Cons

    Top 3 Casual Game Apps for 2025: Features, Pros, and Cons

    Top 3 Food Apps for 2025: Features, Pros, and Cons

    Top 3 Food Apps for 2025: Features, Pros, and Cons

    Top 3 Sport Apps for 2025: Features, Pros, and Cons

    Top 3 Sport Apps for 2025: Features, Pros, and Cons

    Top 3 Productivity Apps for 2025: Features, Pros, and Cons

    Top 3 Productivity Apps for 2025: Features, Pros, and Cons

  • Apple
    Apple Music iOS 26 vs iOS 18: features compared

    Apple Music iOS 26 vs iOS 18: features compared

    New wallpapers from Apple now available for iPhone, iPad, Mac

    New wallpapers from Apple now available for iPhone, iPad, Mac

    Five new Apple products are coming soon in early 2025, here’s what to expect

    Apple to release Q3 2025 earnings results on Thursday, July 31

    Apple to reveal tariff-stricken Q3 results on July 31

    Apple to reveal tariff-stricken Q3 results on July 31

    Apple is right to ditch iPad Fold in favor of the iPhone Fold

    Apple is right to ditch iPad Fold in favor of the iPhone Fold

    iOS 26’s Messages app has a solution coming for unwanted texts

    iOS 26’s Messages app has a solution coming for unwanted texts

    Sorry Android users, these Google Photos features are coming to iPhones first

    Sorry Android users, these Google Photos features are coming to iPhones first

    Hands on: Spigen adds to C1 line with iMac G3 inspired Apple Watch stand

    Hands on: Spigen adds to C1 line with iMac G3 inspired Apple Watch stand

    Apple releases new wallpaper for iPhone, iPad, and Mac as store debuts

    Apple releases new wallpaper for iPhone, iPad, and Mac as store debuts

  • Retro Rewind
    Retro Rewind: Electronic Games April 1995

    Retro Rewind: Electronic Games April 1995

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

    Retro Rewind: Electronic Gaming Monthly Magazine Number 57 April 1994

    Retro Rewind: Blast from the Past – 35 Iconic Commercials of 1988!

    Retro Rewind: Blast from the Past – 35 Iconic Commercials of 1988!

    Retro Rewind: PC World Magazine August 1998

    Retro Rewind: PC World Magazine August 1998

    Retro Rewind: Computer Shopper Magazine September 1997

    Retro Rewind: Computer Shopper Magazine September 1997

    Retro Rewind: PC Magazine December 2015

    Retro Rewind: PC Magazine December 2015

    Retro Rewind: EDGE Magazine RETRO #1: The Guide to Classic Videogame Playing and Collecting

    Retro Rewind: EDGE Magazine RETRO #1: The Guide to Classic Videogame Playing and Collecting

    Retro Rewind: Computer Gaming World Magazine Issue 73 December 1998

    Retro Rewind: Computer Gaming World Magazine Issue 73 December 1998

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

    Retro Rewind: Electronic Gaming Monthly Magazine Number 55 February 1994

  • Tech Deals
    Soundcore Anker Motion Boom Plus IP67 Outdoor Speaker with 80W Stereo Sound, Black

    Soundcore Anker Motion Boom Plus IP67 Outdoor Speaker with 80W Stereo Sound, Black

    ADATA 2TB Premium SSD for PS5 PCIe Gen4 M.2 2280 Internal Gaming SSD Up to 7400 MB/s…

    ADATA 2TB Premium SSD for PS5 PCIe Gen4 M.2 2280 Internal Gaming SSD Up to 7400 MB/s…

    MageGee Portable 60% Mechanical Gaming Keyboard, MK-Box LED Backlit Compact 68 Keys Mini…

    MageGee Portable 60% Mechanical Gaming Keyboard, MK-Box LED Backlit Compact 68 Keys Mini…

    Skytech King 95 Gaming PC Desktop, Ryzen 7 9800X3D 4.7 GHz (5.2 GHz Turbo Boost), NVIDIA…

    Skytech King 95 Gaming PC Desktop, Ryzen 7 9800X3D 4.7 GHz (5.2 GHz Turbo Boost), NVIDIA…

    Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI,…

    Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI,…

    Minecraft – PlayStation 3 (Renewed)

    Minecraft – PlayStation 3 (Renewed)

    Carcassonne Board Game (BASE GAME) – Classic Tile-Laying Strategy for All Ages, Medieval…

    Carcassonne Board Game (BASE GAME) – Classic Tile-Laying Strategy for All Ages, Medieval…

    SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card – C10, U3, V30, 4K UHD, SD Card -…

    SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card – C10, U3, V30, 4K UHD, SD Card -…

    Vantec USB 3.0 Multi-Card Reader UHS-II, SD 4.0, Multi-LUN (UGT-CR615), Black

    Vantec USB 3.0 Multi-Card Reader UHS-II, SD 4.0, Multi-LUN (UGT-CR615), Black

  • Tech Eats
    Cheesy Broccoli Rice Mug: 5-Minute Super Comfort Food

    Cheesy Broccoli Rice Mug: 5-Minute Super Comfort Food

    Top 10 Vegetarian Recipes for 2025: Easy and Nutritious Meals for Busy People

    Top 10 Vegetarian Recipes for 2025: Easy and Nutritious Meals for Busy People

    Bacon Mug Lasagna: 5-Minute Microwave Meat Lover’s Dream

    Bacon Mug Lasagna: 5-Minute Microwave Meat Lover’s Dream

    Bacon Fried Rice Mug: 5-Minute Microwave Meal

    Bacon Fried Rice Mug: 5-Minute Microwave Meal

    Bacon & Cheddar Mug Biscuit: 2-Minute Savory Comfort

    Bacon & Cheddar Mug Biscuit: 2-Minute Savory Comfort

    Loaded Bacon Cheesy Potato Mug: 5-Minute Comfort Food

    Loaded Bacon Cheesy Potato Mug: 5-Minute Comfort Food

    Peanut Butter Banana Mug Muffin: 5-Minute Protein Snack

    Peanut Butter Banana Mug Muffin: 5-Minute Protein Snack

    Oreo Mug Cake: 2-Minute Cookie & Cake Combo!

    Oreo Mug Cake: 2-Minute Cookie & Cake Combo!

    Tiramisu Mug Cake: Coffee Lover’s Dream in 2 Minutes!

    Tiramisu Mug Cake: Coffee Lover’s Dream in 2 Minutes!

  • Tesla
    Tesla employees try to oust Elon, new Volvo, and Micah’s close call

    Tesla sold 5000 Cybertrucks in Q2 and Optimus is in Chaos

    2 PCS Bike or Motorcycle Chain Washer, Motorcycle Chain Cleaning Brush Tool Kit,…

    2 PCS Bike or Motorcycle Chain Washer, Motorcycle Chain Cleaning Brush Tool Kit,…

    Tesla launches Oasis Supercharger with solar farm and off-grid batteries

    Tesla launches Oasis Supercharger with solar farm and off-grid batteries

    5PCS Wheel Lock Nut Key Removal Kit for Tesla Model 3 & Model Y & Model X & Model S &…

    5PCS Wheel Lock Nut Key Removal Kit for Tesla Model 3 & Model Y & Model X & Model S &…

    2 PCS Trailer Hitch Coupler Lock, Dia 1/4 Inch 3/4 Inch Span Trailer Hitch Lock with…

    2 PCS Trailer Hitch Coupler Lock, Dia 1/4 Inch 3/4 Inch Span Trailer Hitch Lock with…

    Center Console Dashboard Organizer for 2024-2025 2026 Tesla Cybertruck Accessories,…

    Center Console Dashboard Organizer for 2024-2025 2026 Tesla Cybertruck Accessories,…

    Motor Trend Grand Prix Tire Tread Rubber Car Floor Mats for Autos SUV Truck & Van -…

    Motor Trend Grand Prix Tire Tread Rubber Car Floor Mats for Autos SUV Truck & Van -…

    Center Console Cover for Tesla Model 3 Model Y Leather Armrest Box Cushion Protector…

    Center Console Cover for Tesla Model 3 Model Y Leather Armrest Box Cushion Protector…

    Femuar Car Trunk Organizer with Large Capacity Waterproof Car Accessories for Women &…

    Femuar Car Trunk Organizer with Large Capacity Waterproof Car Accessories for Women &…

  • UFO
    GPS Drones with Camera for Adults 4K, Brushless Motor FPV RC Quadcopter with Auto Return, Follow Me, Headless Mode, 50 Mins Long Flight, Lightweight and Foldable Drone for Beginner

    GPS Drones with Camera for Adults 4K, Brushless Motor FPV RC Quadcopter with Auto Return, Follow Me, Headless Mode, 50 Mins Long Flight, Lightweight and Foldable Drone for Beginner

    Ancient Aliens and UFOs: 5 UFO sightings in same month July 1952 in different world places

    Ancient Aliens and UFOs: 5 UFO sightings in same month July 1952 in different world places

    Linen Shirts for Men Casual Short Sleeve Button Down Shirt Cool Summer Beach Wedding Vacation Tops

    Linen Shirts for Men Casual Short Sleeve Button Down Shirt Cool Summer Beach Wedding Vacation Tops

    We Discovered an Alien-Like World Below in Antarctica!

    We Discovered an Alien-Like World Below in Antarctica!

    Zengjo Mens Workout Shirts Quick Dry Short Sleeve Athletic Tee Moisture Wicking Top for Running Gym Fitness Training

    Zengjo Mens Workout Shirts Quick Dry Short Sleeve Athletic Tee Moisture Wicking Top for Running Gym Fitness Training

    Ancient Aliens: The Amphibious Gods of Ancient Babylon (Season 14) | History

    Ancient Aliens: The Amphibious Gods of Ancient Babylon (Season 14) | History

    The Hidden Hand

    The Hidden Hand

    A Brief History Of The UFO Contactee Movement…

    A Brief History Of The UFO Contactee Movement…

    Roswell New Mexico Alien T-Shirt

    Roswell New Mexico Alien T-Shirt

No Result
View All Result
Techcratic
No Result
View All Result
Home Hacker News

Bitbanging 1D Reversible Automata

Hacker News by Hacker News
December 12, 2024
in Hacker News
Reading Time: 15 mins read
125
A A
0

2024-12-12 13:41:00
richiejp.com

One Dimensional Reversible Automata

I created a demo for the GFXPrim library. It
implements and displays a nearest-neighbor, one-dimensional, binary
cell automata. Additionally it implements a reversible automata,
which is almost identical except for a small change to make it
reversible. The automata is displayed over time in two dimensions,
time travels from top to bottom. Although in the reversible case
time could be played backwards.

A reversible rendition of rule 73
A reversible rendition of rule
73

The automata works as follows:

  • Each cell has a state, which is on or off, black or white,
    boolean etc.
  • At each time step, the state of a cell in the next step is
    chosen by a rule.
  • The rule looks at a cell’s current value and the values of its
    left and right neighbors.
  • There are 23 = 8
    possible state combinations (patterns) for 3 binary cells.
  • A rule states which patterns result in a black cell in the next
    time step.
  • There are 28 = 256
    possible rules. That is, 256 unique combinations of patterns.
Rule 105
Rule 105

So a pattern is a 3 digit binary number, where each digit
corresponds to a cell. The middle digit is the center cell, the high
order bit the left cell, the low order bit the right cell. A rule
can be display by showing a row of patterns and a row of next
states.

Above is rule 110, 0x6e or
01101110. It essentially says to match patterns
110, 101, 011,
010, 001. Where a pattern match results in
the cell being set to 1 at the next time step. If no pattern is
matched or equivalently, an inactive pattern is matched, then the
cell will be set to 0.

Again note that each pattern resembles a 3bit binary number. Also
the values of the active patterns resemble an 8bit binary number. We
can use this to perform efficient matching of the patterns using
binary operations.

Let’s assume our CPU natively operates on 64bit integers (called
words). We can pack a 64 cell automata into a single 64bit
integer. Each bit corresponds to a cell. If a bit is 1
then it is a black cell and 0 for white. In this case
we are using integers as bit fields. We don’t care about the integer
number the bits can represent.

Rule 94 Reversible
Rule 94 Reversible

The CPU can perform bitwise operations on all 64bits in parallel
and without branching. This means we can perform a single operation
64 times in parallel.

If we rotate (wrapped >>) all bits to the right by one,
then we get a new integer where the left neighbor of a bit is now in
its position. Likewise if we shift all bits to the left, then we get
an integer representing the right neighbors. This gives us 3
integers where the left, center and right bits are in the same
position. For example, using only 8bits:

left:0100 1011>>
center:1001 0110
right:0010 1101

Each pattern can be represented as a 3bit number, plus a 4th bit
to say whether it is active in a given rule. As we want to operate
on all 64bits at once in the left, right and center bit fields. We
can generate 64bit long masks from the value of each bit in
a given pattern.

So if we have a pattern where the left cell should be one, then
we can create a 64bit mask of all ones. If it should be
zero, then all zeroes. Likewise for the center and right cells. The
masks can be xor’ed (^)
with the corresponding cell fields to show if no match occurred.
That is, if the pattern is one and the cell is zero or the cell is
one and the pattern is zero. We can invert this (~) to
give one when a match occurs.

To see whether all components (left, right, center) of a pattern
matches we can bitwise and (&) them
together. We can then bitwise or
(|) the result of the pattern matches together to
produce the final values.

Rule 193, inverted rule 110
Rule 193, inverted rule
110

If we wish to operate on an automata larger than 64 cells, then
we can combine multiple integers into an array. After performing the
left and right shifts, we get the high or low bit from the next or
previous integers in the array. Then set the low and high bits of
the right and left bit fields. In other words we chain them together
using the end bits of the left and right bit fields.

For illustration purposes, below is the kernel of the
the automata algorithm.

/* If bit n is 1 then make all bits 1 otherwise 0 */
#define BIT_TO_MAX(b, n) (((b >> n) & 1) * ~0UL)

/* Numeric representation of the current update rule */
static uint8_t rule = 110;

/* Apply the current rule to a 64bit segment of a row */
static inline uint64_t ca1d_rule_apply(uint64_t c_prev,
                                       uint64_t c,
                                       uint64_t c_next,
                                       uint64_t c_prev_step)
{
    int i;
    /* These are wrapping shifts when c_prev == c or c_next == c */
    uint64_t l = (c >> 1) ^ (c_prev  63);
    uint64_t r = (c  1) ^ (c_next >> 63);
    uint64_t c_next_step = 0;

    for (i = 0; i  8; i++) {
        uint64_t active = BIT_TO_MAX(rule, i);
        uint64_t left   = BIT_TO_MAX(i, 2);
        uint64_t center = BIT_TO_MAX(i, 1);
        uint64_t right  = BIT_TO_MAX(i, 0);

        c_next_step |=
            active & ~(left ^ l) & ~(center ^ c) & ~(right ^ r);
    }

    /* The automata becomes reversible when we use c_prev_state */
    return c_next_step ^ c_prev_step;
}

To make the automata “reversible” an extra step can be added. We
look at a cell’s previous (in addition to the current, left and
right) and if it was one then invert the next value. This
is equivalent to xor’ring the previous value with the next.

Rule 193 again, but reversible
Rule 193 again, but
reversible

It is not entirely clear to me what the mathematical implications
are of being reversible. However it is important to physics and
makes some really cool patterns which mimic nature. Also entropy and
the second rule of themodynamics, yada, yada…

The automata definition is taken from Stephen Wolfram’s “A new
kind of science”. He proposes at least one obvious C implementation using arrays of
cells. He also provides a table of binary expressions for each rule.
E.g. rule 90 reduces to just the l^r binary expression.
It may be possible for the compiler to automatically reduce my
implementation to these minimal expressions.

To see why, let’s consider rule 90 for each pattern.

Rule 90 reversible
Rule 90 reversible

01011010 = 90

First for pattern 000.

  active & ~(left ^ l) & ~(center ^ c) & ~(right ^ r);
= 0 & ~(0 ^ l) & ~(0 ^ c) & ~(0 ^ r);
= 0.`

Active is zero so the whole line reduces to zero. Now for
001. Note that 1 here actually means
~0UL, that is 64bit integer max.

   1 & ~(0 ^ l) & ~(0 ^ c) & ~(1 ^ r);
= ~l & ~c & r.

As expected pattern 001 matches
l=0, c=0, r=1. Let’s just list the remaining patterns
or’ed together in their reduced state. Then reduce that further.
Note that the for loop in ca1d_rule_apply
will be unrolled by the compiler when optimising for
performance. It’s also quite clear that c_next_step is
dependant on an expression from the previous iteration or zero. So
all the pattern match results will get or’ed together.

  l & c & ~r | l & ~c & ~r | ~l & c & r | ~l & ~c & r;
= l & ~r | ~l & r;
= l ^ r.

See on the top row that
(l & c & ~r | l & ~c & ~r) or’s
together c and not c. So we can remove it.
Then we get an expression equivalent to xor’ring l and
r.

In theory at least, the compiler can see that rule
only has 256 values and create a reduced version of
ca1d_rule_apply for each value. Whether it actually
does is not of much practical concern when the rendering code is the
bottle neck. However it’s interesting to see if the compiler can
deduce the best solution or whether anything trips it up.

Judging from the disassembly from
gcc -O3 -mcpu=native -mtune=native, it may actually do
this. Additionally it vectorizes the code packing four
64bit ints at a time into 256bit registers and operating on those. I
don’t know which part of the code it is vectorising or how. It’s
possible that what I think is the rule being reduced is something
related to vectorisation.

Rule 210
Rule 210

To render the automata we take the approach of iterating over
each pixel in the image. We calculate which cell the pixel falls
inside and set the color of the pixel to that of the cell. That’s
it.

/* Draws a pixel */
static inline void shade_pixel(gp_pixmap *p, gp_coord x, gp_coord y,
                               gp_pixel bg, gp_pixel fg)
{
    gp_pixel px;
    size_t i = (x * (64 * width)) / p->w;
    size_t j = (y * height) / p->h;
    size_t k = 63 - (i & 63);
    uint64_t c = steps[gp_matrix_idx(width, j, i >> 6)];

    c = BIT_TO_MAX(c, k);
    px = (fg & c) | (bg & ~c);

    gp_putpixel_raw(p, x, y, px);
}

GFXPrim makes drawing very simple. The above code is fast enough
for my purpsoses, but a significant improvement can be had. Integer
division is much slower than floating point multiplication on most
newer CPUs. It’s actually much faster (2x at least) on my CPU to
calculate a pair of ratios in floating point, then convert them back
to integers.

However, you may ask why we are even drawing on the CPU in the
first place? This is because GFXPrim targets embedded systems with
no graphics processor. Additionally the CPU may not even support
floating point natively. So integer division may actually be faster
in this case. Still better would be to limit the size of the pixmap
to be 2x larger
than the dimensions of the automata, where x ∈ ℕ then we can use shifts
instead of division.

Rule 210 Reversible
Rule 210 Reversible
Rule 105 Reversible
Rule 105 Reversible


Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.

Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!


Start your free Amazon Prime trial
today and unlock unlimited streaming and more!

Source Link

Support Techcratic

If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.

Bitcoin Address:

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Please verify this address before sending funds.

Bitcoin QR Code

Simply scan the QR code below to support Techcratic.

Bitcoin QR code for donations

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: Hacker News
Share162Share28ShareShare4ShareTweet101
Previous Post

Get this Dell laptop with Core i5 for the super-budget price of $300

Next Post

This is Samsung’s first Android XR headset

Hacker News

Hacker News

Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.

Related Posts

Parallelizing SHA256 calculation on FPGA
Hacker News

Parallelizing SHA256 calculation on FPGA

July 3, 2025
1.3k
misorrek/ViscaCamLink: Camera control application for PTZ cameras using the VISCA protocol
Hacker News

misorrek/ViscaCamLink: Camera control application for PTZ cameras using the VISCA protocol

July 3, 2025
1.3k
Apache Tomcat and Camel Vulnerabilities Actively Targeted in Cyberattacks
Hacker News

Apache Tomcat and Camel Vulnerabilities Actively Targeted in Cyberattacks

July 3, 2025
1.3k
Threat Actors Exploit .COM TLD to Host Widespread Credential Phishing Sites
Hacker News

Threat Actors Exploit .COM TLD to Host Widespread Credential Phishing Sites

July 3, 2025
1.3k
Kazedaa/eBAF: You wouldnt Download an Ad. But you would block one.
Hacker News

Kazedaa/eBAF: You wouldnt Download an Ad. But you would block one.

July 3, 2025
1.3k
Azure API Vulnerabilities Expose VPN Keys and Grant Over-Privileged Access via Built-In Roles
Hacker News

Azure API Vulnerabilities Expose VPN Keys and Grant Over-Privileged Access via Built-In Roles

July 3, 2025
1.3k
12-Year-Old Sudo Vulnerability Exposes Linux Systems to Root Privilege Escalation
Hacker News

12-Year-Old Sudo Vulnerability Exposes Linux Systems to Root Privilege Escalation

July 3, 2025
1.3k
Ransomware Attacks on Organizations Surge 213% in Q1 of 2025
Hacker News

Ransomware Attacks on Organizations Surge 213% in Q1 of 2025

July 3, 2025
1.3k
Load More
Next Post
Smartphone

This is Samsung's first Android XR headset

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Forbes
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Gaming
  • I Like Cats ™
  • I Like Dogs ™
  • MacRumors
  • Macworld
  • Tech Deals
  • Techcratic ™
  • Techs Got To Eat ™
  • Tesla
  • UFO
  • Wired