• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Friday, July 11, 2025
Techcratic
No Result
View All Result
  • AI
    Artificial Intelligence

    Enabling Differentially Private Federated Learning for Speech Recognition: Benchmarks, Adaptive Optimizers, and Gradient Clipping

    Artificial Intelligence

    Overcoming Vocabulary Constraints with Pixel-level Fallback

    Artificial Intelligence

    Uphold ethical standards in fashion using multimodal toxicity detection with Amazon Bedrock Guardrails

    Artificial Intelligence

    10 Surprising Things You Can Do with Python’s datetime Module

    Artificial Intelligence

    New capabilities in Amazon SageMaker AI continue to transform how organizations develop AI models

    Artificial Intelligence

    Unlock retail intelligence by transforming data into actionable insights using generative AI with Amazon Q Business

    Artificial Intelligence

    Scale generative AI use cases, Part 1: Multi-tenant hub and spoke architecture using AWS Transit Gateway

    Artificial Intelligence

    Build a just-in-time knowledge base with Amazon Bedrock

    Artificial Intelligence

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

  • Apple
    M4 MacBook Air, iPhone, AirPods, iPad, more 9to5Mac

    M4 MacBook Air, iPhone, AirPods, iPad, more 9to5Mac

    Leaker teases Dynamic Island’s ‘significant evolution’ ahead

    Leaker teases Dynamic Island’s ‘significant evolution’ ahead

    July 11, 2025 – Apple’s plans for new Macs, iPads, and more

    Apple Watch Ultra 3: Three new features are coming next year

    Apple Watch Ultra 3: Three new features are coming this fall

    Report: Apple set to land US F1 streaming rights in $150 million+ deal

    Report: Apple set to land US F1 streaming rights in $150 million+ deal

    Fresh leak confirms new iPhone 17 and iPhone 17 Air colors

    Fresh leak confirms new iPhone 17 and iPhone 17 Air colors

    Apple reviving its discontinued AirPort router has never looked more likely

    Apple’s AirPort products are now ‘obsolete,’ with one exception

    Apple leaders join Sun Valley gathering of tech & media

    Apple leaders join Sun Valley gathering of tech & media

    Tim Cook thanks American heroes in Memorial Day post on X

    Gallery: Tim Cook and Eddy Cue attend Sun Valley ‘summer camp for billionaires’

  • ComputerWorld
    AI coding tools can slow down seasoned developers by 19%

    AI coding tools can slow down seasoned developers by 19%

    Will IT turn the AI bot battle into a money maker? (And is that even a good idea?) – Computerworld

    Will IT turn the AI bot battle into a money maker? (And is that even a good idea?) – Computerworld

    The fast way to fix a frozen Start menu or taskbar in Windows – Computerworld

    The fast way to fix a frozen Start menu or taskbar in Windows – Computerworld

    Microsoft’s 19-hour Outlook outage exposes fragility in cloud infrastructure – Computerworld

    Microsoft’s 19-hour Outlook outage exposes fragility in cloud infrastructure – Computerworld

    Tariff uncertainty hits US PC shipments in Q2 – Computerworld

    Tariff uncertainty hits US PC shipments in Q2 – Computerworld

    A magically minimalist Android makeover – Computerworld

    A magically minimalist Android makeover – Computerworld

    From conversation to task completion – Computerworld

    From conversation to task completion – Computerworld

    OpenAI and Perplexity enter browser wars to take on Chrome – Computerworld

    OpenAI and Perplexity enter browser wars to take on Chrome – Computerworld

    Using OneDrive for Web – Computerworld

    Using OneDrive for Web – Computerworld

  • Gaming
    Zelda Breath of the Wild – 27 Ways to Make a Campfire

    Zelda Breath of the Wild – 27 Ways to Make a Campfire

    Ocarina of Time Walkthrough Let's Play – Part 3

    Ocarina of Time Walkthrough Let's Play – Part 3

    Should Charles Martinet voice Mario in The Super Mario Bros. Movie?*

    Should Charles Martinet voice Mario in The Super Mario Bros. Movie?*

    Final Fantasy producer Yoshi-P says ‘there’s no clear-cut answer’ to whether Final Fantasy will return to turn-based RPGs, because the direction of the next Final Fantasy will be up to the directors of the next Final Fantasy

    Final Fantasy producer Yoshi-P says ‘there’s no clear-cut answer’ to whether Final Fantasy will return to turn-based RPGs, because the direction of the next Final Fantasy will be up to the directors of the next Final Fantasy

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 72/78 – Gerudo Training Ground Part 1 (Commentary)

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 72/78 – Gerudo Training Ground Part 1 (Commentary)

    Capcom celebrates the first anniversary of Kunitsu-Gami: Path of the Goddess by ripping out its Denuvo DRM

    Capcom celebrates the first anniversary of Kunitsu-Gami: Path of the Goddess by ripping out its Denuvo DRM

    The Legend of Zelda: Breath of the Wild – Daka Tuss Shrine Walkthrough

    The Legend of Zelda: Breath of the Wild – Daka Tuss Shrine Walkthrough

    30 MORE Things You STILL Didn't Know In Zelda Breath Of The Wild

    30 MORE Things You STILL Didn't Know In Zelda Breath Of The Wild

    Playdead’s classic minimalist platformers Limbo and Inside are being pulled from GOG next week, so grab ’em while you can

    Playdead’s classic minimalist platformers Limbo and Inside are being pulled from GOG next week, so grab ’em while you can

  • 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 Art
    How Artificial Intelligence is slowly becoming less art-ificial | Amir Baradaran | TEDxBocaRaton

    How Artificial Intelligence is slowly becoming less art-ificial | Amir Baradaran | TEDxBocaRaton

    Northern Lights Aurora Night Sky Vector Art Tutorial Affinity Designer V2

    Northern Lights Aurora Night Sky Vector Art Tutorial Affinity Designer V2

    The 3-Piece Collage Trick I Can’t Stop Using #visualdiary

    The 3-Piece Collage Trick I Can’t Stop Using #visualdiary

    GIGANOTOSSAURO (Desenhando com Thiago)

    GIGANOTOSSAURO (Desenhando com Thiago)

    Artist Spotlight: Nina Molloy

    Artist Spotlight: Nina Molloy

    Interactive Particle Systems from Gaussian Splats in TouchDesigner! (2025 + Mac Compatible)

    Interactive Particle Systems from Gaussian Splats in TouchDesigner! (2025 + Mac Compatible)

    I Made Leon S. Kennedy (Resident Evil 4) | Timelapse Sculpture

    I Made Leon S. Kennedy (Resident Evil 4) | Timelapse Sculpture

    Pixel art is here

    Pixel art is here

    AI Generative Art 1 – Robots | Vortex Creative

    AI Generative Art 1 – Robots | Vortex Creative

  • Tech Deals
    Hitachi 322898 Side Handle C10FCE2 C10FCH2 Replacement Part

    Hitachi 322898 Side Handle C10FCE2 C10FCH2 Replacement Part

    PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 VR Router,…

    PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 VR Router,…

    Crucial X9 2TB Portable SSD, Up to 1050MB/s, USB 3.2 USB-C, External Solid State Drive,…

    Crucial X9 2TB Portable SSD, Up to 1050MB/s, USB 3.2 USB-C, External Solid State Drive,…

    CORSAIR VIRTUOSO RGB WIRELESS XT Multiplatform Gaming Headset With Bluetooth – Dolby…

    CORSAIR VIRTUOSO RGB WIRELESS XT Multiplatform Gaming Headset With Bluetooth – Dolby…

    [Designed for Microsoft Surface] Cable Matters Desk Mount for Microsoft Surface…

    [Designed for Microsoft Surface] Cable Matters Desk Mount for Microsoft Surface…

    Asrock B650MProRSWiFi Mb Asrockb650m Pro Rs WiFi R

    Asrock B650MProRSWiFi Mb Asrockb650m Pro Rs WiFi R

    Wireless Retro Game Console

    Wireless Retro Game Console

    RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108…

    RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108…

    GTRACING Gaming Chair with Speakers Bluetooth Music Video Game Chair Audio Ergonomic…

    GTRACING Gaming Chair with Speakers Bluetooth Music Video Game Chair Audio Ergonomic…

  • Techs Got To Eat
    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

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

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

  • Tesla
    Rear Trunk Spoiler Wing ABS Fit for Tesla Model Y 2020 2021 2022 2023 2024 High…

    Rear Trunk Spoiler Wing ABS Fit for Tesla Model Y 2020 2021 2022 2023 2024 High…

    2024-2025 Tesla Model 3 Highland Trunk Organizer – 2PCS Waterproof TPE Rear Trunk…

    2024-2025 Tesla Model 3 Highland Trunk Organizer – 2PCS Waterproof TPE Rear Trunk…

    Elon Musk says Tesla Robotaxi is coming to California, but no one other than shareholders believe him

    Elon Musk says Tesla Robotaxi is coming to California, but no one other than shareholders believe him

    1038548-00-I Charging Port Door Assembly Compatible with 2016 2017 2018 2019 2020 Tesla…

    1038548-00-I Charging Port Door Assembly Compatible with 2016 2017 2018 2019 2020 Tesla…

    Panasonic reportedly delays production ramp at US battery factory due to low Tesla demand

    Panasonic reportedly delays production ramp at US battery factory due to low Tesla demand

    KAYI Car Seat Cover, Memory Foam Car Seat Cushion, Non-Slip Bottom Breathable Car Seat…

    KAYI Car Seat Cover, Memory Foam Car Seat Cushion, Non-Slip Bottom Breathable Car Seat…

    Ziciner 2 PCS Motorcycle Chain Brush, Bike Chain Cleaning Brush with Double-Ended…

    Ziciner 2 PCS Motorcycle Chain Brush, Bike Chain Cleaning Brush with Double-Ended…

    2PCS Drill Brush Attachment, 4″ & 2″ Power Scrubber Cleaning Brush for Carpet Car…

    2PCS Drill Brush Attachment, 4″ & 2″ Power Scrubber Cleaning Brush for Carpet Car…

    Cybertruck Screen Protector, Cybertruck Accessories, 2024 Tesla Car Matte…

    Cybertruck Screen Protector, Cybertruck Accessories, 2024 Tesla Car Matte…

  • UFO
    AI This Week Unidentified Flying Object

    AI This Week Unidentified Flying Object

    007: James Bond – Sean Connery 6-Film Collection (4K Ultra HD + Digital)

    007: James Bond – Sean Connery 6-Film Collection (4K Ultra HD + Digital)

    F 14 D fighter jet sightings

    F 14 D fighter jet sightings

    Roswell New Mexico UFO Vintage Retro T T-Shirt

    Roswell New Mexico UFO Vintage Retro T T-Shirt

    Top 5 Sky Phenomena That Look Totally Broken

    Top 5 Sky Phenomena That Look Totally Broken

    New “Metallic Sphere UFO” videos in Buga Colombia

    New “Metallic Sphere UFO” videos in Buga Colombia

    Marilyn Monroe, JFK, and the Alien Conspiracy You’ve Never Heard Of

    Marilyn Monroe, JFK, and the Alien Conspiracy You’ve Never Heard Of

    The UFO Evidence: What We Don't Know

    The UFO Evidence: What We Don't Know

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

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

  • AI
    Artificial Intelligence

    Enabling Differentially Private Federated Learning for Speech Recognition: Benchmarks, Adaptive Optimizers, and Gradient Clipping

    Artificial Intelligence

    Overcoming Vocabulary Constraints with Pixel-level Fallback

    Artificial Intelligence

    Uphold ethical standards in fashion using multimodal toxicity detection with Amazon Bedrock Guardrails

    Artificial Intelligence

    10 Surprising Things You Can Do with Python’s datetime Module

    Artificial Intelligence

    New capabilities in Amazon SageMaker AI continue to transform how organizations develop AI models

    Artificial Intelligence

    Unlock retail intelligence by transforming data into actionable insights using generative AI with Amazon Q Business

    Artificial Intelligence

    Scale generative AI use cases, Part 1: Multi-tenant hub and spoke architecture using AWS Transit Gateway

    Artificial Intelligence

    Build a just-in-time knowledge base with Amazon Bedrock

    Artificial Intelligence

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

  • Apple
    M4 MacBook Air, iPhone, AirPods, iPad, more 9to5Mac

    M4 MacBook Air, iPhone, AirPods, iPad, more 9to5Mac

    Leaker teases Dynamic Island’s ‘significant evolution’ ahead

    Leaker teases Dynamic Island’s ‘significant evolution’ ahead

    July 11, 2025 – Apple’s plans for new Macs, iPads, and more

    Apple Watch Ultra 3: Three new features are coming next year

    Apple Watch Ultra 3: Three new features are coming this fall

    Report: Apple set to land US F1 streaming rights in $150 million+ deal

    Report: Apple set to land US F1 streaming rights in $150 million+ deal

    Fresh leak confirms new iPhone 17 and iPhone 17 Air colors

    Fresh leak confirms new iPhone 17 and iPhone 17 Air colors

    Apple reviving its discontinued AirPort router has never looked more likely

    Apple’s AirPort products are now ‘obsolete,’ with one exception

    Apple leaders join Sun Valley gathering of tech & media

    Apple leaders join Sun Valley gathering of tech & media

    Tim Cook thanks American heroes in Memorial Day post on X

    Gallery: Tim Cook and Eddy Cue attend Sun Valley ‘summer camp for billionaires’

  • ComputerWorld
    AI coding tools can slow down seasoned developers by 19%

    AI coding tools can slow down seasoned developers by 19%

    Will IT turn the AI bot battle into a money maker? (And is that even a good idea?) – Computerworld

    Will IT turn the AI bot battle into a money maker? (And is that even a good idea?) – Computerworld

    The fast way to fix a frozen Start menu or taskbar in Windows – Computerworld

    The fast way to fix a frozen Start menu or taskbar in Windows – Computerworld

    Microsoft’s 19-hour Outlook outage exposes fragility in cloud infrastructure – Computerworld

    Microsoft’s 19-hour Outlook outage exposes fragility in cloud infrastructure – Computerworld

    Tariff uncertainty hits US PC shipments in Q2 – Computerworld

    Tariff uncertainty hits US PC shipments in Q2 – Computerworld

    A magically minimalist Android makeover – Computerworld

    A magically minimalist Android makeover – Computerworld

    From conversation to task completion – Computerworld

    From conversation to task completion – Computerworld

    OpenAI and Perplexity enter browser wars to take on Chrome – Computerworld

    OpenAI and Perplexity enter browser wars to take on Chrome – Computerworld

    Using OneDrive for Web – Computerworld

    Using OneDrive for Web – Computerworld

  • Gaming
    Zelda Breath of the Wild – 27 Ways to Make a Campfire

    Zelda Breath of the Wild – 27 Ways to Make a Campfire

    Ocarina of Time Walkthrough Let's Play – Part 3

    Ocarina of Time Walkthrough Let's Play – Part 3

    Should Charles Martinet voice Mario in The Super Mario Bros. Movie?*

    Should Charles Martinet voice Mario in The Super Mario Bros. Movie?*

    Final Fantasy producer Yoshi-P says ‘there’s no clear-cut answer’ to whether Final Fantasy will return to turn-based RPGs, because the direction of the next Final Fantasy will be up to the directors of the next Final Fantasy

    Final Fantasy producer Yoshi-P says ‘there’s no clear-cut answer’ to whether Final Fantasy will return to turn-based RPGs, because the direction of the next Final Fantasy will be up to the directors of the next Final Fantasy

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 72/78 – Gerudo Training Ground Part 1 (Commentary)

    Zelda Ocarina of Time 3D 100% Walkthrough – Part 72/78 – Gerudo Training Ground Part 1 (Commentary)

    Capcom celebrates the first anniversary of Kunitsu-Gami: Path of the Goddess by ripping out its Denuvo DRM

    Capcom celebrates the first anniversary of Kunitsu-Gami: Path of the Goddess by ripping out its Denuvo DRM

    The Legend of Zelda: Breath of the Wild – Daka Tuss Shrine Walkthrough

    The Legend of Zelda: Breath of the Wild – Daka Tuss Shrine Walkthrough

    30 MORE Things You STILL Didn't Know In Zelda Breath Of The Wild

    30 MORE Things You STILL Didn't Know In Zelda Breath Of The Wild

    Playdead’s classic minimalist platformers Limbo and Inside are being pulled from GOG next week, so grab ’em while you can

    Playdead’s classic minimalist platformers Limbo and Inside are being pulled from GOG next week, so grab ’em while you can

  • 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 Art
    How Artificial Intelligence is slowly becoming less art-ificial | Amir Baradaran | TEDxBocaRaton

    How Artificial Intelligence is slowly becoming less art-ificial | Amir Baradaran | TEDxBocaRaton

    Northern Lights Aurora Night Sky Vector Art Tutorial Affinity Designer V2

    Northern Lights Aurora Night Sky Vector Art Tutorial Affinity Designer V2

    The 3-Piece Collage Trick I Can’t Stop Using #visualdiary

    The 3-Piece Collage Trick I Can’t Stop Using #visualdiary

    GIGANOTOSSAURO (Desenhando com Thiago)

    GIGANOTOSSAURO (Desenhando com Thiago)

    Artist Spotlight: Nina Molloy

    Artist Spotlight: Nina Molloy

    Interactive Particle Systems from Gaussian Splats in TouchDesigner! (2025 + Mac Compatible)

    Interactive Particle Systems from Gaussian Splats in TouchDesigner! (2025 + Mac Compatible)

    I Made Leon S. Kennedy (Resident Evil 4) | Timelapse Sculpture

    I Made Leon S. Kennedy (Resident Evil 4) | Timelapse Sculpture

    Pixel art is here

    Pixel art is here

    AI Generative Art 1 – Robots | Vortex Creative

    AI Generative Art 1 – Robots | Vortex Creative

  • Tech Deals
    Hitachi 322898 Side Handle C10FCE2 C10FCH2 Replacement Part

    Hitachi 322898 Side Handle C10FCE2 C10FCH2 Replacement Part

    PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 VR Router,…

    PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 VR Router,…

    Crucial X9 2TB Portable SSD, Up to 1050MB/s, USB 3.2 USB-C, External Solid State Drive,…

    Crucial X9 2TB Portable SSD, Up to 1050MB/s, USB 3.2 USB-C, External Solid State Drive,…

    CORSAIR VIRTUOSO RGB WIRELESS XT Multiplatform Gaming Headset With Bluetooth – Dolby…

    CORSAIR VIRTUOSO RGB WIRELESS XT Multiplatform Gaming Headset With Bluetooth – Dolby…

    [Designed for Microsoft Surface] Cable Matters Desk Mount for Microsoft Surface…

    [Designed for Microsoft Surface] Cable Matters Desk Mount for Microsoft Surface…

    Asrock B650MProRSWiFi Mb Asrockb650m Pro Rs WiFi R

    Asrock B650MProRSWiFi Mb Asrockb650m Pro Rs WiFi R

    Wireless Retro Game Console

    Wireless Retro Game Console

    RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108…

    RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108…

    GTRACING Gaming Chair with Speakers Bluetooth Music Video Game Chair Audio Ergonomic…

    GTRACING Gaming Chair with Speakers Bluetooth Music Video Game Chair Audio Ergonomic…

  • Techs Got To Eat
    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

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

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

  • Tesla
    Rear Trunk Spoiler Wing ABS Fit for Tesla Model Y 2020 2021 2022 2023 2024 High…

    Rear Trunk Spoiler Wing ABS Fit for Tesla Model Y 2020 2021 2022 2023 2024 High…

    2024-2025 Tesla Model 3 Highland Trunk Organizer – 2PCS Waterproof TPE Rear Trunk…

    2024-2025 Tesla Model 3 Highland Trunk Organizer – 2PCS Waterproof TPE Rear Trunk…

    Elon Musk says Tesla Robotaxi is coming to California, but no one other than shareholders believe him

    Elon Musk says Tesla Robotaxi is coming to California, but no one other than shareholders believe him

    1038548-00-I Charging Port Door Assembly Compatible with 2016 2017 2018 2019 2020 Tesla…

    1038548-00-I Charging Port Door Assembly Compatible with 2016 2017 2018 2019 2020 Tesla…

    Panasonic reportedly delays production ramp at US battery factory due to low Tesla demand

    Panasonic reportedly delays production ramp at US battery factory due to low Tesla demand

    KAYI Car Seat Cover, Memory Foam Car Seat Cushion, Non-Slip Bottom Breathable Car Seat…

    KAYI Car Seat Cover, Memory Foam Car Seat Cushion, Non-Slip Bottom Breathable Car Seat…

    Ziciner 2 PCS Motorcycle Chain Brush, Bike Chain Cleaning Brush with Double-Ended…

    Ziciner 2 PCS Motorcycle Chain Brush, Bike Chain Cleaning Brush with Double-Ended…

    2PCS Drill Brush Attachment, 4″ & 2″ Power Scrubber Cleaning Brush for Carpet Car…

    2PCS Drill Brush Attachment, 4″ & 2″ Power Scrubber Cleaning Brush for Carpet Car…

    Cybertruck Screen Protector, Cybertruck Accessories, 2024 Tesla Car Matte…

    Cybertruck Screen Protector, Cybertruck Accessories, 2024 Tesla Car Matte…

  • UFO
    AI This Week Unidentified Flying Object

    AI This Week Unidentified Flying Object

    007: James Bond – Sean Connery 6-Film Collection (4K Ultra HD + Digital)

    007: James Bond – Sean Connery 6-Film Collection (4K Ultra HD + Digital)

    F 14 D fighter jet sightings

    F 14 D fighter jet sightings

    Roswell New Mexico UFO Vintage Retro T T-Shirt

    Roswell New Mexico UFO Vintage Retro T T-Shirt

    Top 5 Sky Phenomena That Look Totally Broken

    Top 5 Sky Phenomena That Look Totally Broken

    New “Metallic Sphere UFO” videos in Buga Colombia

    New “Metallic Sphere UFO” videos in Buga Colombia

    Marilyn Monroe, JFK, and the Alien Conspiracy You’ve Never Heard Of

    Marilyn Monroe, JFK, and the Alien Conspiracy You’ve Never Heard Of

    The UFO Evidence: What We Don't Know

    The UFO Evidence: What We Don't Know

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

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

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

Apple will ‘soon’ force everyone to use the new Home app

Next Post

OnePlus’ compact flagship phone may finally have a launch date

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

HDD Clicker – Serdashop
Hacker News

HDD Clicker – Serdashop

July 11, 2025
1.3k
SANDISK 2TB PORTABLE SSD
Hacker News

I’m more proud of these 128 kilobytes than anything I’ve built since | by Mike Hall | Jul, 2025

July 11, 2025
1.3k
AI Agent Benchmarks are Broken
Hacker News

AI Agent Benchmarks are Broken

July 11, 2025
1.3k
The Day Someone Created 184 Billion Bitcoin
Hacker News

The Day Someone Created 184 Billion Bitcoin

July 11, 2025
1.3k
fosrl/pangolin: Tunneled Reverse Proxy Server with Identity and Access Control and Dashboard UI
Hacker News

fosrl/pangolin: Tunneled Reverse Proxy Server with Identity and Access Control and Dashboard UI

July 10, 2025
1.3k
AI Coding Tools Can Actually Reduce Productivity
Hacker News

AI Coding Tools Can Actually Reduce Productivity

July 10, 2025
1.3k
crypto theft • The Register
Hacker News

crypto theft • The Register

July 10, 2025
1.3k
Millions of Cars Exposed to Remote Hacking via PerfektBlue Attack
Hacker News

Millions of Cars Exposed to Remote Hacking via PerfektBlue Attack

July 10, 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
  • 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

ADORABLE FUNNY Foster Kittens: 5 Week Facts! Kittens Learning from Mama Cat!

Your Mercedes or VW could get hacked via Bluetooth

How Artificial Intelligence is slowly becoming less art-ificial | Amir Baradaran | TEDxBocaRaton

HDD Clicker – Serdashop

What’s The Difference Between Ultra-Wide And Super-Widescreen Monitors?

New Fabrics Enable Efficient AI Acceleration

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