• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Wednesday, August 27, 2025
Techcratic
No Result
View All Result
  • AI
    Artificial Intelligence

    7 Python Built-ins That Seem Like a Joke (Until You Use Them)

    Artificial Intelligence

    Learn Python (+ AI) and Become a Certified Data Analyst for FREE This Week

    Artificial Intelligence

    From JSON to Dashboard: Visualizing DuckDB Queries in Streamlit with Plotly

    Artificial Intelligence

    The “Super Weight:” How Even a Single Parameter can Determine a Large Language Model’s…

    Artificial Intelligence

    10 Python One-Liners to Optimize Your Machine Learning Pipelines

    Artificial Intelligence

    Streamline employee training with an intelligent chatbot powered by Amazon Q Business

    Artificial Intelligence

    Writing Your First GPU Kernel in Python with Numba and CUDA

    Artificial Intelligence

    Build a scalable containerized web application on AWS using the MERN stack with Amazon Q…

    Artificial Intelligence

    Introducing Amazon Bedrock AgentCore Identity: Securing agentic AI at scale

  • Apple
    The iPad mini is back down to just $399 today

    The iPad mini is back down to just $399 today

    Eddy Cue wanted Apple to acquire two big companies, but Tim Cook said no

    Eddy Cue wanted Apple to acquire two big companies, but Tim Cook said no

    Apple loyalty softens with carrier switches but outpaces Android

    Apple loyalty softens with carrier switches but outpaces Android

    iPhone 17 Pro display rumor could be a great differentiator in lineup

    iPhone 17 Pro is coming, here’s every rumored new feature

    Apple Music radio stations are now available outside of Apple Music for the first time

    Apple Music radio stations are now available outside of Apple Music for the first time

    Kuxiu debuts tiny smart connector charger for iPad: meet the M30

    Hands-on: Kuxiu debuts tiny smart connector charger for iPad: meet the M30 [Updated]

    Rumor: AirPods Pro 3 design will borrow two changes from AirPods 4

    Rumor: AirPods Pro 3 design will borrow two changes from AirPods 4

    Logitech MX Master 4 flagship mouse to offer haptic feedback

    Logitech MX Master 4 flagship mouse to offer haptic feedback

    This $30 stylus is a budget-friendly alternative to the Apple Pencil

    This $30 stylus is a budget-friendly alternative to the Apple Pencil

  • ComputerWorld
    Anthropic invites enterprises to test letting Claude operate Chrome browser

    Anthropic invites enterprises to test letting Claude operate Chrome browser

    LLMs easily exploited using run-on sentences, bad grammar, image scaling

    LLMs easily exploited using run-on sentences, bad grammar, image scaling

    Dropbox to offer its genAI service Dash for download

    Dropbox to offer its genAI service Dash for download

    Intel warns US govt equity stake could disrupt its global business and strategic deals

    Intel warns US govt equity stake could disrupt its global business and strategic deals

    US threat of sanctions on EU officials over tech law raises risks for enterprises

    US threat of sanctions on EU officials over tech law raises risks for enterprises

    As US takes 10% stake in Intel, new questions arise for enterprise buyers

    As US takes 10% stake in Intel, new questions arise for enterprise buyers

    AI bigwigs bow to US gov’t demands on pricing, but could see long-term benefits

    AI bigwigs bow to US gov’t demands on pricing, but could see long-term benefits

    Why IT leaders think generative AI will create jobs

    Why IT leaders think generative AI will create jobs

    Developers who don’t document code? Blame the bosses

    Developers who don’t document code? Blame the bosses

  • Gaming
    Forspoken Has The Bones Of Something Good | Forspoken Preview

    Forspoken Has The Bones Of Something Good | Forspoken Preview

    Rambling Review: Sonic Frontiers

    Rambling Review: Sonic Frontiers

    REVIEW HONESTA DE GOD OF WAR RAGNAROK! SEM SPOILERS

    REVIEW HONESTA DE GOD OF WAR RAGNAROK! SEM SPOILERS

    Gotham Knights: Beast Mode Extra Review

    Gotham Knights: Beast Mode Extra Review

    The many-chambered PC cases at Gamescom really showed up my old banger of a chassis

    The many-chambered PC cases at Gamescom really showed up my old banger of a chassis

    Pal Pods & Rescue Pals – Pros and Cons in Palworld Raids

    Pal Pods & Rescue Pals – Pros and Cons in Palworld Raids

    God of War Ragnarok : Le retour du roi ? (Epic Test) {SANS SPOIL}

    God of War Ragnarok : Le retour du roi ? (Epic Test) {SANS SPOIL}

    impressions Scars Above un souls sauce returnal ?

    impressions Scars Above un souls sauce returnal ?

    Steam Deck Review: 1 YEAR LATER…

    Steam Deck Review: 1 YEAR LATER…

  • Retro Rewind
    Retro Rewind: Game Players Issue 80 Magazine January 1996

    Retro Rewind: Game Players Issue 80 Magazine January 1996

    Retro Rewind: Video Game Trader Winter 2014

    Retro Rewind: Video Game Trader Winter 2014

    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

  • Tech Art
    Pixel Art Tutorial – Character Sprite (32×32)

    Pixel Art Tutorial – Character Sprite (32×32)

    Decohere.ai | Generative ART | SK Designs

    Decohere.ai | Generative ART | SK Designs

    “Battle of the Carmens” by Artist Ellen R Hanson

    “Battle of the Carmens” by Artist Ellen R Hanson

    AI Tool For Polished UI UX Design | Better Than Figma AI?

    AI Tool For Polished UI UX Design | Better Than Figma AI?

    Februllage 2023 Challenge – A Month of Collage!

    Februllage 2023 Challenge – A Month of Collage!

    The Secret Technique for 3D Drawings! – How to Draw an Anamorphic Rose in 3D

    The Secret Technique for 3D Drawings! – How to Draw an Anamorphic Rose in 3D

    Color Theory Basics for Digital Painters

    Color Theory Basics for Digital Painters

    3D Cube design in Illusion – 3D Optical Illusion Explained in illustrator 2025

    3D Cube design in Illusion – 3D Optical Illusion Explained in illustrator 2025

    HOW I RENDER in IBISPAINT | My MOST UPDATED RENDERING TUTORIAL

    HOW I RENDER in IBISPAINT | My MOST UPDATED RENDERING TUTORIAL

  • Tech Deals
    KingSpec Z5 1TB External SSD – 2100MB/s, Portable Solid State Hard Drives with RGB…

    KingSpec Z5 1TB External SSD – 2100MB/s, Portable Solid State Hard Drives with RGB…

    intel Core i7-4770 Quad-Core Desktop Processor 3.4 GHZ LGA 1150 8 MB Cache BX80646I74770…

    intel Core i7-4770 Quad-Core Desktop Processor 3.4 GHZ LGA 1150 8 MB Cache BX80646I74770…

    Sata HDD & SSD Hot Swap Cage, 6 Bay Hard Drive Dock for 5.25” Enclosure, 6 Bay Hard…

    Sata HDD & SSD Hot Swap Cage, 6 Bay Hard Drive Dock for 5.25” Enclosure, 6 Bay Hard…

    GIGASTONE 128GB Micro SD Card 2-Pack, A1 V30 4K Video Recording, Compatible with…

    GIGASTONE 128GB Micro SD Card 2-Pack, A1 V30 4K Video Recording, Compatible with…

    S660 PCIe 4.0 2TB SSD for PS5 with Heatsink, Up to 5000MB/s, NVMe M.2 SSD Internal…

    S660 PCIe 4.0 2TB SSD for PS5 with Heatsink, Up to 5000MB/s, NVMe M.2 SSD Internal…

    Dell S2725HS 27 Inch Monitor, FHD (1920×1080) Display, 100Hz Refresh Rate, 1500:1…

    Dell S2725HS 27 Inch Monitor, FHD (1920×1080) Display, 100Hz Refresh Rate, 1500:1…

    CableCreation Cat6 RJ45 Connectors, 100-PACK Cat6 RJ45 Ends, Ethernet Cable Crimp…

    CableCreation Cat6 RJ45 Connectors, 100-PACK Cat6 RJ45 Ends, Ethernet Cable Crimp…

    ASRock AMD Radeon RX 9070 XT Steel Legend 16GB, Boost Clock Up to 2970 MHz / 20 Gbps,…

    ASRock AMD Radeon RX 9070 XT Steel Legend 16GB, Boost Clock Up to 2970 MHz / 20 Gbps,…

    Apple iPad Air 2, 64GB, 4G + Wi-Fi – Gold (Renewed)

    Apple iPad Air 2, 64GB, 4G + Wi-Fi – Gold (Renewed)

  • Techs Got To Eat
    Spicy Chickpea Shakshuka Mug: 5-Minute Vegetarian Fuel

    Spicy Chickpea Shakshuka Mug: 5-Minute Vegetarian Fuel

    Bacon & Spinach Mug Quiche: 3-Minute Gourmet Breakfast

    Bacon & Spinach Mug Quiche: 3-Minute Gourmet Breakfast

    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

  • Tesla
    J1772 to Tesla Charging Adapter 60 Amp / 250V AC Compatible with SAE J1772 EV Charger…

    J1772 to Tesla Charging Adapter 60 Amp / 250V AC Compatible with SAE J1772 EV Charger…

    Pickup Truck Cover Waterproof All Weather, Outdoor Indoor Truck Protection Cover for…

    Pickup Truck Cover Waterproof All Weather, Outdoor Indoor Truck Protection Cover for…

    Car LED Hood Light,Waterproof LED Light Strips Cool Monochromatic Car LED Light for CCar…

    Car LED Hood Light,Waterproof LED Light Strips Cool Monochromatic Car LED Light for CCar…

    3-Piece Car Multi-Purpose Protective Cover Set, Leather Gear Lever, Handbrake & Rearview…

    3-Piece Car Multi-Purpose Protective Cover Set, Leather Gear Lever, Handbrake & Rearview…

    Tow Hook Covers Fit for Tesla Cybertruck Accessories 2024 2025, Hitch Cover Front…

    Tow Hook Covers Fit for Tesla Cybertruck Accessories 2024 2025, Hitch Cover Front…

    Tera 2025 New Level 2 Charger for Tesla 40A 25FT NACS ETL FCC Most Compact NEMA 14-50…

    Tera 2025 New Level 2 Charger for Tesla 40A 25FT NACS ETL FCC Most Compact NEMA 14-50…

    BestEvMod Center Console Armrest Pad Cover Compatible with Tesla Cybertruck 2024 2025…

    BestEvMod Center Console Armrest Pad Cover Compatible with Tesla Cybertruck 2024 2025…

    Carwiner Center Console Cover for Tesla Model 3 Model Y, PU Leather Armrest Box Cushion…

    Carwiner Center Console Cover for Tesla Model 3 Model Y, PU Leather Armrest Box Cushion…

    Tesla announces Cybertruck expansion into South Korea

    Tesla announces Cybertruck expansion into South Korea

  • UFO
    Roswell, NM Tourism | Funny Alien Extraterrestrial UFO Saucer Men Women T-Shirt

    Roswell, NM Tourism | Funny Alien Extraterrestrial UFO Saucer Men Women T-Shirt

    Sam & Colby’s Night At The Conjuring House

    Sam & Colby’s Night At The Conjuring House

    X1 PROMAX 8K Action Flying Camera, Foldable Drone with Camera with 42 KM/H Follow Speed, 10+ Fully Automatic Flight Modes, Fly Anywhere with OmniTerrain, SmoothCapture 2.0(Cycling Combo)

    X1 PROMAX 8K Action Flying Camera, Foldable Drone with Camera with 42 KM/H Follow Speed, 10+ Fully Automatic Flight Modes, Fly Anywhere with OmniTerrain, SmoothCapture 2.0(Cycling Combo)

    Top 5 MOST BEAUTIFUL SKY PHENOMENON IN THE WORLD!

    Top 5 MOST BEAUTIFUL SKY PHENOMENON IN THE WORLD!

    Aliens Earrings Beaded Green Aliens UFO Drop Dangle Earrings Cute Fun Earring for Girls

    Aliens Earrings Beaded Green Aliens UFO Drop Dangle Earrings Cute Fun Earring for Girls

    Scary Peppa Pig UFO Alien Story PEPPA.EXE HORROR

    Waluigi is an ALIEN #supermario #mariobros #mariomovie #nintendo #wario

    Waluigi is an ALIEN #supermario #mariobros #mariomovie #nintendo #wario

    Retro Vintage KAWASAKI Green City for Men or Women Pullover Hoodie

    Retro Vintage KAWASAKI Green City for Men or Women Pullover Hoodie

    UFO evidence finally revealed!

    UFO evidence finally revealed!

  • AI
    Artificial Intelligence

    7 Python Built-ins That Seem Like a Joke (Until You Use Them)

    Artificial Intelligence

    Learn Python (+ AI) and Become a Certified Data Analyst for FREE This Week

    Artificial Intelligence

    From JSON to Dashboard: Visualizing DuckDB Queries in Streamlit with Plotly

    Artificial Intelligence

    The “Super Weight:” How Even a Single Parameter can Determine a Large Language Model’s…

    Artificial Intelligence

    10 Python One-Liners to Optimize Your Machine Learning Pipelines

    Artificial Intelligence

    Streamline employee training with an intelligent chatbot powered by Amazon Q Business

    Artificial Intelligence

    Writing Your First GPU Kernel in Python with Numba and CUDA

    Artificial Intelligence

    Build a scalable containerized web application on AWS using the MERN stack with Amazon Q…

    Artificial Intelligence

    Introducing Amazon Bedrock AgentCore Identity: Securing agentic AI at scale

  • Apple
    The iPad mini is back down to just $399 today

    The iPad mini is back down to just $399 today

    Eddy Cue wanted Apple to acquire two big companies, but Tim Cook said no

    Eddy Cue wanted Apple to acquire two big companies, but Tim Cook said no

    Apple loyalty softens with carrier switches but outpaces Android

    Apple loyalty softens with carrier switches but outpaces Android

    iPhone 17 Pro display rumor could be a great differentiator in lineup

    iPhone 17 Pro is coming, here’s every rumored new feature

    Apple Music radio stations are now available outside of Apple Music for the first time

    Apple Music radio stations are now available outside of Apple Music for the first time

    Kuxiu debuts tiny smart connector charger for iPad: meet the M30

    Hands-on: Kuxiu debuts tiny smart connector charger for iPad: meet the M30 [Updated]

    Rumor: AirPods Pro 3 design will borrow two changes from AirPods 4

    Rumor: AirPods Pro 3 design will borrow two changes from AirPods 4

    Logitech MX Master 4 flagship mouse to offer haptic feedback

    Logitech MX Master 4 flagship mouse to offer haptic feedback

    This $30 stylus is a budget-friendly alternative to the Apple Pencil

    This $30 stylus is a budget-friendly alternative to the Apple Pencil

  • ComputerWorld
    Anthropic invites enterprises to test letting Claude operate Chrome browser

    Anthropic invites enterprises to test letting Claude operate Chrome browser

    LLMs easily exploited using run-on sentences, bad grammar, image scaling

    LLMs easily exploited using run-on sentences, bad grammar, image scaling

    Dropbox to offer its genAI service Dash for download

    Dropbox to offer its genAI service Dash for download

    Intel warns US govt equity stake could disrupt its global business and strategic deals

    Intel warns US govt equity stake could disrupt its global business and strategic deals

    US threat of sanctions on EU officials over tech law raises risks for enterprises

    US threat of sanctions on EU officials over tech law raises risks for enterprises

    As US takes 10% stake in Intel, new questions arise for enterprise buyers

    As US takes 10% stake in Intel, new questions arise for enterprise buyers

    AI bigwigs bow to US gov’t demands on pricing, but could see long-term benefits

    AI bigwigs bow to US gov’t demands on pricing, but could see long-term benefits

    Why IT leaders think generative AI will create jobs

    Why IT leaders think generative AI will create jobs

    Developers who don’t document code? Blame the bosses

    Developers who don’t document code? Blame the bosses

  • Gaming
    Forspoken Has The Bones Of Something Good | Forspoken Preview

    Forspoken Has The Bones Of Something Good | Forspoken Preview

    Rambling Review: Sonic Frontiers

    Rambling Review: Sonic Frontiers

    REVIEW HONESTA DE GOD OF WAR RAGNAROK! SEM SPOILERS

    REVIEW HONESTA DE GOD OF WAR RAGNAROK! SEM SPOILERS

    Gotham Knights: Beast Mode Extra Review

    Gotham Knights: Beast Mode Extra Review

    The many-chambered PC cases at Gamescom really showed up my old banger of a chassis

    The many-chambered PC cases at Gamescom really showed up my old banger of a chassis

    Pal Pods & Rescue Pals – Pros and Cons in Palworld Raids

    Pal Pods & Rescue Pals – Pros and Cons in Palworld Raids

    God of War Ragnarok : Le retour du roi ? (Epic Test) {SANS SPOIL}

    God of War Ragnarok : Le retour du roi ? (Epic Test) {SANS SPOIL}

    impressions Scars Above un souls sauce returnal ?

    impressions Scars Above un souls sauce returnal ?

    Steam Deck Review: 1 YEAR LATER…

    Steam Deck Review: 1 YEAR LATER…

  • Retro Rewind
    Retro Rewind: Game Players Issue 80 Magazine January 1996

    Retro Rewind: Game Players Issue 80 Magazine January 1996

    Retro Rewind: Video Game Trader Winter 2014

    Retro Rewind: Video Game Trader Winter 2014

    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

  • Tech Art
    Pixel Art Tutorial – Character Sprite (32×32)

    Pixel Art Tutorial – Character Sprite (32×32)

    Decohere.ai | Generative ART | SK Designs

    Decohere.ai | Generative ART | SK Designs

    “Battle of the Carmens” by Artist Ellen R Hanson

    “Battle of the Carmens” by Artist Ellen R Hanson

    AI Tool For Polished UI UX Design | Better Than Figma AI?

    AI Tool For Polished UI UX Design | Better Than Figma AI?

    Februllage 2023 Challenge – A Month of Collage!

    Februllage 2023 Challenge – A Month of Collage!

    The Secret Technique for 3D Drawings! – How to Draw an Anamorphic Rose in 3D

    The Secret Technique for 3D Drawings! – How to Draw an Anamorphic Rose in 3D

    Color Theory Basics for Digital Painters

    Color Theory Basics for Digital Painters

    3D Cube design in Illusion – 3D Optical Illusion Explained in illustrator 2025

    3D Cube design in Illusion – 3D Optical Illusion Explained in illustrator 2025

    HOW I RENDER in IBISPAINT | My MOST UPDATED RENDERING TUTORIAL

    HOW I RENDER in IBISPAINT | My MOST UPDATED RENDERING TUTORIAL

  • Tech Deals
    KingSpec Z5 1TB External SSD – 2100MB/s, Portable Solid State Hard Drives with RGB…

    KingSpec Z5 1TB External SSD – 2100MB/s, Portable Solid State Hard Drives with RGB…

    intel Core i7-4770 Quad-Core Desktop Processor 3.4 GHZ LGA 1150 8 MB Cache BX80646I74770…

    intel Core i7-4770 Quad-Core Desktop Processor 3.4 GHZ LGA 1150 8 MB Cache BX80646I74770…

    Sata HDD & SSD Hot Swap Cage, 6 Bay Hard Drive Dock for 5.25” Enclosure, 6 Bay Hard…

    Sata HDD & SSD Hot Swap Cage, 6 Bay Hard Drive Dock for 5.25” Enclosure, 6 Bay Hard…

    GIGASTONE 128GB Micro SD Card 2-Pack, A1 V30 4K Video Recording, Compatible with…

    GIGASTONE 128GB Micro SD Card 2-Pack, A1 V30 4K Video Recording, Compatible with…

    S660 PCIe 4.0 2TB SSD for PS5 with Heatsink, Up to 5000MB/s, NVMe M.2 SSD Internal…

    S660 PCIe 4.0 2TB SSD for PS5 with Heatsink, Up to 5000MB/s, NVMe M.2 SSD Internal…

    Dell S2725HS 27 Inch Monitor, FHD (1920×1080) Display, 100Hz Refresh Rate, 1500:1…

    Dell S2725HS 27 Inch Monitor, FHD (1920×1080) Display, 100Hz Refresh Rate, 1500:1…

    CableCreation Cat6 RJ45 Connectors, 100-PACK Cat6 RJ45 Ends, Ethernet Cable Crimp…

    CableCreation Cat6 RJ45 Connectors, 100-PACK Cat6 RJ45 Ends, Ethernet Cable Crimp…

    ASRock AMD Radeon RX 9070 XT Steel Legend 16GB, Boost Clock Up to 2970 MHz / 20 Gbps,…

    ASRock AMD Radeon RX 9070 XT Steel Legend 16GB, Boost Clock Up to 2970 MHz / 20 Gbps,…

    Apple iPad Air 2, 64GB, 4G + Wi-Fi – Gold (Renewed)

    Apple iPad Air 2, 64GB, 4G + Wi-Fi – Gold (Renewed)

  • Techs Got To Eat
    Spicy Chickpea Shakshuka Mug: 5-Minute Vegetarian Fuel

    Spicy Chickpea Shakshuka Mug: 5-Minute Vegetarian Fuel

    Bacon & Spinach Mug Quiche: 3-Minute Gourmet Breakfast

    Bacon & Spinach Mug Quiche: 3-Minute Gourmet Breakfast

    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

  • Tesla
    J1772 to Tesla Charging Adapter 60 Amp / 250V AC Compatible with SAE J1772 EV Charger…

    J1772 to Tesla Charging Adapter 60 Amp / 250V AC Compatible with SAE J1772 EV Charger…

    Pickup Truck Cover Waterproof All Weather, Outdoor Indoor Truck Protection Cover for…

    Pickup Truck Cover Waterproof All Weather, Outdoor Indoor Truck Protection Cover for…

    Car LED Hood Light,Waterproof LED Light Strips Cool Monochromatic Car LED Light for CCar…

    Car LED Hood Light,Waterproof LED Light Strips Cool Monochromatic Car LED Light for CCar…

    3-Piece Car Multi-Purpose Protective Cover Set, Leather Gear Lever, Handbrake & Rearview…

    3-Piece Car Multi-Purpose Protective Cover Set, Leather Gear Lever, Handbrake & Rearview…

    Tow Hook Covers Fit for Tesla Cybertruck Accessories 2024 2025, Hitch Cover Front…

    Tow Hook Covers Fit for Tesla Cybertruck Accessories 2024 2025, Hitch Cover Front…

    Tera 2025 New Level 2 Charger for Tesla 40A 25FT NACS ETL FCC Most Compact NEMA 14-50…

    Tera 2025 New Level 2 Charger for Tesla 40A 25FT NACS ETL FCC Most Compact NEMA 14-50…

    BestEvMod Center Console Armrest Pad Cover Compatible with Tesla Cybertruck 2024 2025…

    BestEvMod Center Console Armrest Pad Cover Compatible with Tesla Cybertruck 2024 2025…

    Carwiner Center Console Cover for Tesla Model 3 Model Y, PU Leather Armrest Box Cushion…

    Carwiner Center Console Cover for Tesla Model 3 Model Y, PU Leather Armrest Box Cushion…

    Tesla announces Cybertruck expansion into South Korea

    Tesla announces Cybertruck expansion into South Korea

  • UFO
    Roswell, NM Tourism | Funny Alien Extraterrestrial UFO Saucer Men Women T-Shirt

    Roswell, NM Tourism | Funny Alien Extraterrestrial UFO Saucer Men Women T-Shirt

    Sam & Colby’s Night At The Conjuring House

    Sam & Colby’s Night At The Conjuring House

    X1 PROMAX 8K Action Flying Camera, Foldable Drone with Camera with 42 KM/H Follow Speed, 10+ Fully Automatic Flight Modes, Fly Anywhere with OmniTerrain, SmoothCapture 2.0(Cycling Combo)

    X1 PROMAX 8K Action Flying Camera, Foldable Drone with Camera with 42 KM/H Follow Speed, 10+ Fully Automatic Flight Modes, Fly Anywhere with OmniTerrain, SmoothCapture 2.0(Cycling Combo)

    Top 5 MOST BEAUTIFUL SKY PHENOMENON IN THE WORLD!

    Top 5 MOST BEAUTIFUL SKY PHENOMENON IN THE WORLD!

    Aliens Earrings Beaded Green Aliens UFO Drop Dangle Earrings Cute Fun Earring for Girls

    Aliens Earrings Beaded Green Aliens UFO Drop Dangle Earrings Cute Fun Earring for Girls

    Scary Peppa Pig UFO Alien Story PEPPA.EXE HORROR

    Waluigi is an ALIEN #supermario #mariobros #mariomovie #nintendo #wario

    Waluigi is an ALIEN #supermario #mariobros #mariomovie #nintendo #wario

    Retro Vintage KAWASAKI Green City for Men or Women Pullover Hoodie

    Retro Vintage KAWASAKI Green City for Men or Women Pullover Hoodie

    UFO evidence finally revealed!

    UFO evidence finally revealed!

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

Learning formal verification by writing a spec for verifying a zero-downtime database migration in PlusCal

Hacker News by Hacker News
March 11, 2025
in Hacker News
Reading Time: 10 mins read
121
A A
0

2025-03-09 01:31:00
biradarganesh25.github.io




Learning formal verification by writing a spec for verifying a zero-downtime database migration in PlusCal



X (Twitter) icon


LinkedIn icon

posted on Dec 28, 2024

Formal verification can be used to analyze complex systems to ensure
their correctness. Formal verification is the process of checking that a system
satisfies specific properties (which are specified by the user) across all possible states.
There are 2 main types of properties:
“safety properties” and “liveness properties”. For the formal definition,
please refer here.
If a property is not satisfied in any state but has the potential to be
satisfied in a future state, then that would be a “liveness
property”. If it can never be satsified in any future state, then it would
be a “safety property”.

For example, let’s imagine a bunch of servers serving a website. A property
saying that “no server can ever be offline” would be a safety property
because if in any state of the system, any server goes offline the property
would not be satisfied and can never be satisfied in any future state
after that. But a property saying that “all servers that go offline
eventually come back online” would be a “liveness property” because
there is always a possiblity of that being true in a future state.

TLA+ is a formal specification language where we can model systems
and verify properties across all possible system states. It
allows us to enumerate all possible states a system can be
in and verify that specified properties hold true
across all these states.

PlusCal is a DSL for TLA+. It sits at a higher level of abstraction
and is much easier to specify complex systems in it compared to TLA+.
The trade-off is that some kinds of systems cannot be specified (i.e
it is more constrained than TLA+, but it is sufficient for most
common use cases).

I went through learn tla in about 2 weeks (it
was quite dense – I ended up learning some things about formal verification in order
to understand that material fully). I thought that the best way to learn it would be
to write a spec that actually does something useful and I thought verifying a zero-
downtime database migration algorithm would be fun.

Let’s assume a service exposes 3 APIs: Upsert either updates or creates a new object
, Delete which deletes the object and Get which gets the object.
We want to migrate these objects (for simplicity
purposes let’s assume its a table in a SQL database) from one database (olddb)
to another (newdb).

The pseudocode for migration algorithm is as follows:

Note: the pseudocode assumes that the database is a mapping of
primary keys to values (the objects in question are assumed to
have a primary key and a value)

The Upsert operation:

Upsert(key, val) {
    newdb[key] = val
}
Delete(key, val) {
  // we need to put a TOMBSTONE instead of actually
  // deleting it so that the background migration
  // process does not accidentally insert a 
  // deleted value
  newdb[key] = TOMBSTONE
}
Get(key) {
    if key in newdb {
        val = newdb[key]
        if val == TOMBSTONE {
            return NULL
        } else {
            return val
        }
    } else if key in olddb {
        return olddb[key]
    }
    return NULL
}

And a background migration process that moves all the objects from
olddb to newdb

migrate() {
  for key, val in olddb {

    // if does not exist is a conditional insert 
    newdb[key] = val if does not exist
  }
}

This is the pluscal spec for the above migration algo:

---- MODULE test ----
EXTENDS Integers, FiniteSets, TLC

Threads == {1,2} \* each thread represents a user
N == 1..4 \* primary keys of objects that user will use
Objects ==  [p \in N |-> p] \* the values that primary keys map to 

CONSTANTS 
    NULL,
    TOMBSTONE

(* --algorithm zero_downtime_migration

variables 
\* db is used to simulate a system without migration. 
\* olddb and newdb are used to simulate system with migration

db = [pkey \in 1..2 |-> pkey+1], \* some objects will already exist in db with different values when migration starts
olddb = [pkey \in 1..2 |-> pkey+1],
newdb = [pkey \in {} |-> NULL],

define 
  TypeOK == 
       \/ DOMAIN db \subseteq DOMAIN Objects
       \/ Cardinality(DOMAIN db) = 0

  GetObjectWOMigration(pkey) == 
    IF pkey \in DOMAIN db
    THEN db[pkey]
    ELSE NULL

  GetObjectWMigration(pkey) == 
    IF pkey \in DOMAIN newdb 
    THEN IF newdb[pkey] = TOMBSTONE 
         THEN NULL
         ELSE newdb[pkey]
    ELSE IF pkey \in DOMAIN olddb 
         THEN olddb[pkey]
         ELSE NULL

 \* the system with migration and without migration will be compared 
 \* this is our main invariant - we mimick a system where there is no 
 \* migration happening so that we can use that to check that our system
 \* where the migration is happening is correct
  ConsistentViews ==
    /\ \A pkey \in N: GetObjectWOMigration(pkey) = GetObjectWMigration(pkey)

end define;

\* WOMigration represent operations for the system without migration
\* WMigration represents operations for system with migration

macro UpsertWOMigration(db, key, val) begin
        db := (key :> val) @@ db;
end macro;

macro DeleteWOMigration(db, key) begin
  if key \in DOMAIN db then
    db := [p \in DOMAIN db \ {key} |-> db[p]]
  end if;
end macro;

macro UpsertWMigration(newdb, key, val) begin
        newdb := (key :> val) @@ newdb;
end macro;

macro DeleteWMigration(newdb, key) begin
  newdb := (key :> TOMBSTONE) @@ newdb
end macro;

\* each process represents 1 user
\* each will randomly pick an object and either upsert or delete it
process thread \in Threads

  variables
  i = 0,
  curPkey = NULL;

  begin
    Start:
      while i  olddb[curPkey]) @@ newdb;
          end if;          
      end while;

end process;

end algorithm; *)

Its amazing how the main part of the spec looks very similar to the pseudocode.

The trickiest thing was to figure out the invariant – i.e how to make sure that our
migration algorithm was correct. For this, I simulate 2 services in the spec: one
where the migration is happening and another where it is not. And our invariant will
be that GET operations on all the objects give the exact same value in both the
services.

Lets define the main variables involved:

Objects represents the objects that the users will work with. This is a function
that maps primary keys of the objects to their values. Each object is
assumed to have a primary key and a value. The spec uses 4 objects.
db is the database used by the service without migration. olddb and newdb are
are databases used by the service with migration. All the database variables are
functions mapping primary keys of objects to values.

All the service APIs are written as macros.
The APIs for service with migration end with WMigration
and for the service without migration end with WOMigration

Note: the database updates are
implemented as function updates in pluscal – and the database shows up on the right.
This is because the operator @@ merges the keys in the
left_function @@ right_function
and uses the value of the key in the left_function if present in both the functions.
The GET operation is implemented as an operator – because macros in pluscal do not
return values.

One thing I realized is that there is a lot of freedom in modelling complex systems in
TLA+. This lets us represent complex interactions in a very simple manner (for e.g
a database insert operation as a function update). This freedom might seem a bit weird
when just starting with plucal/tla+, but its very powerful once we get used to it.

Let’s talk about the processses involved in the spec now.

The spec has simulates 2 users randomly picking pre-defined objects (4 objects) and
then randomly
performing either Upsert or Delete operations on them.
Each user does this 2 times. The database starts out
with some objects already present (2 objects). The objects that the users pick and
perform operations on will include these already present
objects also. The number of users and objects and the number of times an action is repeated
might
seem very few to test with to make sure that the system is working properly, but since
the TLC model checker will create a state graph which includes every possible state, we
can be sure that all the edge cases are covered.
All actions happening in our system with migration will be mirrored in a system without
migration atomically.

There is also a background migration process running which copies over the data from
olddb to newdb.

The final migration step involves deleting the TOMBSTONES in the newdb, but for now
the spec does not have it. In future I might add it and revise this blog post.

The true value of TLA+ spec shows up when the spec errors out. For example, when writing
the spec I had written the GetObjectWMigration incorrectly:

GetObjectWMigration(pkey) == 
    IF pkey \in DOMAIN newdb 
    THEN newdb[pkey]
    ELSE IF pkey \in DOMAIN olddb 
         THEN olddb[pkey]
         ELSE NULL

compare this to the correct version:

GetObjectWMigration(pkey) == 
  IF pkey \in DOMAIN newdb 
  THEN IF newdb[pkey] = TOMBSTONE 
        THEN NULL
        ELSE newdb[pkey]
  ELSE IF pkey \in DOMAIN olddb 
        THEN olddb[pkey]
        ELSE NULL

The incorrect version does not handle the case where there is a TOMBSTONE present in newdb.
Because of this the spec was failing.

This is a solid example of how TLA+ saves time: it lets us discover desgin flaws very early.
Imagine debugging this error after writing out the entire migraiton algorithm: it would’ve
hard to do and a very real chance that it’d have been missed altogether. Here, I just had to
step through the state changes to figure out the exact cause of the spec failure.

One more way in which TLA+ helps is it forces us to think which steps must be atomic. If we
come across any steps that cannot be atomic then it forces to consider the implications of
concurrent execution. For example, in the background migration process above, before moving
an item from olddb to newdb we check if the object already exists in the newdb (this
maybe because it was deleted. If it was, we should not overwrite the TOMBSTONE). Checking
whether the object exists and creating it in the newdb must be atomic (most databases have
a IF DOES NOT EXIST support for conditional statements). While this may seem trivial, when
writing the TLA+ spec it made it very clear and bought it to the focus. Important information
like this when discovered early in the design phase can save a lot of time during implementation
(for e.g here we would need to make sure that newdb has support for conditional statements
when choosing the database)

Made by Ganeshprasad

Source Link


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!


Unlock unlimited streaming with a free Amazon Prime trial!
Sign up today!

Help Power Techcratic’s Future – Scan To Support

If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.

As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!

BITCOIN

Bitcoin Logo

Bitcoin QR Code

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Scan the QR code with your crypto wallet app

DOGECOIN

Dogecoin Logo

Dogecoin QR Code

D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA

Scan the QR code with your crypto wallet app

ETHEREUM

Ethereum Logo

Ethereum QR Code

0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a

Scan the QR code with your crypto wallet app

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
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

Apple Revokes EU Distribution Rights for Torrent Client, Developer Left in the Dark * TorrentFreak
Hacker News

Apple Revokes EU Distribution Rights for Torrent Client, Developer Left in the Dark * TorrentFreak

August 27, 2025
1.3k
F-35 pilot held 50-minute airborne conference call with engineers before fighter jet crashed in Alaska
Hacker News

F-35 pilot held 50-minute airborne conference call with engineers before fighter jet crashed in Alaska

August 27, 2025
1.3k
Malleable Software Will Eat the SaaS World
Hacker News

Malleable Software Will Eat the SaaS World

August 27, 2025
1.3k
How to store weather forecast data for fast time-series APIs
Hacker News

How to store weather forecast data for fast time-series APIs

August 26, 2025
1.3k
Chinese astronauts make rocket fuel and oxygen in space using 1st-of-its-kind ‘artificial photosynthesis’
Hacker News

Chinese astronauts make rocket fuel and oxygen in space using 1st-of-its-kind ‘artificial photosynthesis’

August 26, 2025
1.3k
Why I’m declining your AI generated MR
Hacker News

Why I’m declining your AI generated MR

August 26, 2025
1.3k
bkdevs/async-server: It’s like Claude Code + Linear + GitHub PR
Hacker News

bkdevs/async-server: It’s like Claude Code + Linear + GitHub PR

August 26, 2025
1.3k
IBM and AMD Join Forces to Build the Future of Computing
Hacker News

IBM and AMD Join Forces to Build the Future of Computing

August 26, 2025
1.3k
Load More
Next Post
Smartphone

OnePlus' compact flagship phone may finally have a launch date

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • 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

Daily Deal: The Learn to Code with React Bundle

Rec Room layoffs impact 141 employees at Seattle gaming startup – GeekWire

The World’s Most Unaffordable Housing Markets

The Slippery Slope Of Government Ownership In Public Companies

This Giant Sphere Just Joined the Hunt for ‘Ghost Particles’

Can You Charge Milwaukee Forge Batteries With A Regular Charger?

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