• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Wednesday, May 14, 2025
Techcratic
Click For A Secret Deal
  • TC
  • AI
    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

    Artificial Intelligence

    Build a location-aware agent using Amazon Bedrock Agents and Foursquare APIs

  • Crypto
    Bitcoin breakout to $120K on radar as markets forget Fed July rate cut

    Bitcoin breakout to $120K on radar as markets forget Fed July rate cut

    JPMorgan’s Kinexys, Chainlink, Ondo Finance Demo Atomic DvP Settlement for Real-World Assets

    JPMorgan’s Kinexys, Chainlink, Ondo Finance Demo Atomic DvP Settlement for Real-World Assets

    GFO-X Launches UK Regulated Trading Venue for Centrally Cleared Crypto Derivatives

    GFO-X Launches UK Regulated Trading Venue for Centrally Cleared Crypto Derivatives

    Bitcoin miners halt sales as BTC gains 20% since hash ribbon ‘buy’ signal

    Bitcoin miners halt sales as BTC gains 20% since hash ribbon ‘buy’ signal

    Solana Co-Founder Anatoly Yakovenko Floats Meta-Blockchain Proposal

    Solana Co-Founder Anatoly Yakovenko Floats Meta-Blockchain Proposal

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    South Korea’s Crypto Committee: Redefining Regulation?

    SEC Chair Discusses 3 Crypto Areas of Focus—Major Policy Moves Ahead

    SEC Chair Discusses 3 Crypto Areas of Focus—Major Policy Moves Ahead

    Market volatility indicator still points to $135K Bitcoin within 100 days — Analyst

    Market volatility indicator still points to $135K Bitcoin within 100 days — Analyst

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    $BEST Wallet Raises $12.2M as Altcoin Season Looms

  • Cybersecurity
    Cybersecurity

    Ivanti Patches EPMM Vulnerabilities Exploited for Remote Code Execution in Limited Attacks

    Cybersecurity

    Fortinet Patches CVE-2025-32756 Zero-Day RCE Flaw Exploited in FortiVoice Systems

    Cybersecurity

    Can we counter online disinformation?

    Cybersecurity

    Malicious PyPI Package Posing as Solana Tool Stole Source Code in 761 Downloads

    Cybersecurity

    China-Linked APTs Exploit SAP CVE-2025-31324 to Breach 581 Critical Systems Worldwide

    Cybersecurity

    Why Exposed Credentials Remain Unfixed—and How to Change That

    Cybersecurity

    Google Pays $1.375 Billion to Texas Over Unauthorized Tracking and Biometric Data Collection

    Cybersecurity

    Deploying AI Agents? Learn to Secure Them Before Hackers Strike Your Business

    Cybersecurity

    Google Rolls Out On-Device AI Protections to Detect Scams in Chrome and Android

  • Deals
    Lenovo Desktop PC Gaming Bundle – Intel Core i7, 16GB RAM, 512GB SSD, 24-inch Curved…

    Lenovo Desktop PC Gaming Bundle – Intel Core i7, 16GB RAM, 512GB SSD, 24-inch Curved…

    Forza Horizon 2 for Xbox 360 (Renewed)

    Forza Horizon 2 for Xbox 360 (Renewed)

    Little Big Planet – Playstation 3 (Renewed)

    Little Big Planet – Playstation 3 (Renewed)

    JCHPINE Hard Carrying Case for Leapfrog LeapLand Adventures Learning Video Game,…

    JCHPINE Hard Carrying Case for Leapfrog LeapLand Adventures Learning Video Game,…

    The Memory Company | Licensed NFL Team Logo Leather Flask with Shot Glass and Funnel Set

    The Memory Company | Licensed NFL Team Logo Leather Flask with Shot Glass and Funnel Set

    ORICO Portable SSD 256 GB with 2 in 1 USB C Cable, External Solid State Drives, Up to…

    ORICO Portable SSD 256 GB with 2 in 1 USB C Cable, External Solid State Drives, Up to…

    Lenovo ThinkPad T490s 14.0” FHD Laptop, Intel Quad-Core i7-8665U up to 3.90GHz, 32GB…

    Lenovo ThinkPad T490s 14.0” FHD Laptop, Intel Quad-Core i7-8665U up to 3.90GHz, 32GB…

    ICY DOCK 4 Bays Dual 2 x 2.5 inch Hard Drive SSD Mounting Bracket Adapter for External…

    ICY DOCK 4 Bays Dual 2 x 2.5 inch Hard Drive SSD Mounting Bracket Adapter for External…

    MINIX Z100-0dB Fanless Mini PC, Intel 12th Gen N100, 16GB DDR4/512GB PCIe 3.0 X4 SSD/4K…

    MINIX Z100-0dB Fanless Mini PC, Intel 12th Gen N100, 16GB DDR4/512GB PCIe 3.0 X4 SSD/4K…

  • Gaming
    First Look:  HYPERCHARGE: Unboxed

    First Look: HYPERCHARGE: Unboxed

    Scars Above Trailer Recensione Italiano

    Scars Above Trailer Recensione Italiano

    The Steam Deck Elden Ring Experience

    The Steam Deck Elden Ring Experience

    If you’re into ambient rainfaill sounds, why not use headphones with ‘two half-gallon basins’ and plenty of real water sloshing around everywhere

    If you’re into ambient rainfaill sounds, why not use headphones with ‘two half-gallon basins’ and plenty of real water sloshing around everywhere

    CORYXKENSHINNN!!!!!!!|FNAF MOVIE TRAILER REACTION FT @adtloud

    CORYXKENSHINNN!!!!!!!|FNAF MOVIE TRAILER REACTION FT @adtloud

    Gore Analysis – Robocop: Rogue City

    Gore Analysis – Robocop: Rogue City

    Thymesia – Walkthrough – Part 4 – Sea of Trees – Sub Quest 1

    Thymesia – Walkthrough – Part 4 – Sea of Trees – Sub Quest 1

    The latest Nvidia driver lets you run ancient CPUs in Windows again without crashing

    The latest Nvidia driver lets you run ancient CPUs in Windows again without crashing

    As Dusk Falls – Chapter 5 – Episode 37 Replayed So Even Sharon Goes To Jail

    As Dusk Falls – Chapter 5 – Episode 37 Replayed So Even Sharon Goes To Jail

  • Tesla
    Tesla (TSLA) board explore new pay deal for Elon Musk

    Tesla (TSLA) board explore new pay deal for Elon Musk

    KKTR-CAR Door Handle Cover, Real Matte Carbon Fiber Door Handle Trim Protector Set…

    KKTR-CAR Door Handle Cover, Real Matte Carbon Fiber Door Handle Trim Protector Set…

    Floor Mat for Tesla Model 3 2024 2025, Pure TPE Injection Molding All Weather Odorless…

    Floor Mat for Tesla Model 3 2024 2025, Pure TPE Injection Molding All Weather Odorless…

    Anti-Skid Center Console Silicone Pad for Tesla Model 3 Model Y 2020-2023, Wireless…

    Anti-Skid Center Console Silicone Pad for Tesla Model 3 Model Y 2020-2023, Wireless…

    Ziciner Car Registration Insurance Holder, 2Pack Essential Auto Card Document Glove Box…

    Ziciner Car Registration Insurance Holder, 2Pack Essential Auto Card Document Glove Box…

    MeeFar Hitch Mount Cargo Carrier Bag Soft Shell 100% Waterproof 20 Cubic Feet (59″ 24″…

    MeeFar Hitch Mount Cargo Carrier Bag Soft Shell 100% Waterproof 20 Cubic Feet (59″ 24″…

    Car Front Under Seat Storage Box for Tesla Model Y Model X 2020-2024 2025 Accessories…

    Car Front Under Seat Storage Box for Tesla Model Y Model X 2020-2024 2025 Accessories…

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

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

    Tesla shares video of its Optimus robot catching up to competition

    Tesla shares video of its Optimus robot catching up to competition

  • UFO
    Ep.39 UFO’s shining Lasers at people?? #ninjasarebutterflies #podcast #sundaycool #comedy

    Ep.39 UFO’s shining Lasers at people?? #ninjasarebutterflies #podcast #sundaycool #comedy

    Flexcamo -Tactical Waterproof Pants Tactical Pant for Men Relaxed Fit Work Camo Hiking Cargo Pants Multi Pockets

    Flexcamo -Tactical Waterproof Pants Tactical Pant for Men Relaxed Fit Work Camo Hiking Cargo Pants Multi Pockets

    Vanishing UFOs Spotted During WWII (Season 21) | Ancient Aliens

    Vanishing UFOs Spotted During WWII (Season 21) | Ancient Aliens

    Men’s Swim Trunks Beach Board Shorts Quick Dry Swimsuit Bathing Suits with Pockets 7 Inch Inseam Mesh Lining

    Men’s Swim Trunks Beach Board Shorts Quick Dry Swimsuit Bathing Suits with Pockets 7 Inch Inseam Mesh Lining

    Galaxy Space Alien Inflate | 3 Feet | One Pc | UFO Blow Up Decoration Toy

    Galaxy Space Alien Inflate | 3 Feet | One Pc | UFO Blow Up Decoration Toy

    Extraterrestrial Theory  by Goatrax   Official Report Video HD Micro Scan  08.05.2015   Concorde Atl

    Extraterrestrial Theory by Goatrax Official Report Video HD Micro Scan 08.05.2015 Concorde Atl

    Photographic Proof or Hoaxes? UFO Images Under the Microscope

    Photographic Proof or Hoaxes? UFO Images Under the Microscope

    Nicetage Women Vintage Space Shuttle Graphic T-Shirt NASA Letter Print Shirt Casual Tee Tops

    Nicetage Women Vintage Space Shuttle Graphic T-Shirt NASA Letter Print Shirt Casual Tee Tops

    U.S. Senator's amendment into UFO investigations gains momentum

    U.S. Senator's amendment into UFO investigations gains momentum

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

    Artificial Intelligence

    Build a location-aware agent using Amazon Bedrock Agents and Foursquare APIs

  • Crypto
    Bitcoin breakout to $120K on radar as markets forget Fed July rate cut

    Bitcoin breakout to $120K on radar as markets forget Fed July rate cut

    JPMorgan’s Kinexys, Chainlink, Ondo Finance Demo Atomic DvP Settlement for Real-World Assets

    JPMorgan’s Kinexys, Chainlink, Ondo Finance Demo Atomic DvP Settlement for Real-World Assets

    GFO-X Launches UK Regulated Trading Venue for Centrally Cleared Crypto Derivatives

    GFO-X Launches UK Regulated Trading Venue for Centrally Cleared Crypto Derivatives

    Bitcoin miners halt sales as BTC gains 20% since hash ribbon ‘buy’ signal

    Bitcoin miners halt sales as BTC gains 20% since hash ribbon ‘buy’ signal

    Solana Co-Founder Anatoly Yakovenko Floats Meta-Blockchain Proposal

    Solana Co-Founder Anatoly Yakovenko Floats Meta-Blockchain Proposal

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    South Korea’s Crypto Committee: Redefining Regulation?

    SEC Chair Discusses 3 Crypto Areas of Focus—Major Policy Moves Ahead

    SEC Chair Discusses 3 Crypto Areas of Focus—Major Policy Moves Ahead

    Market volatility indicator still points to $135K Bitcoin within 100 days — Analyst

    Market volatility indicator still points to $135K Bitcoin within 100 days — Analyst

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    $BEST Wallet Raises $12.2M as Altcoin Season Looms

  • Cybersecurity
    Cybersecurity

    Ivanti Patches EPMM Vulnerabilities Exploited for Remote Code Execution in Limited Attacks

    Cybersecurity

    Fortinet Patches CVE-2025-32756 Zero-Day RCE Flaw Exploited in FortiVoice Systems

    Cybersecurity

    Can we counter online disinformation?

    Cybersecurity

    Malicious PyPI Package Posing as Solana Tool Stole Source Code in 761 Downloads

    Cybersecurity

    China-Linked APTs Exploit SAP CVE-2025-31324 to Breach 581 Critical Systems Worldwide

    Cybersecurity

    Why Exposed Credentials Remain Unfixed—and How to Change That

    Cybersecurity

    Google Pays $1.375 Billion to Texas Over Unauthorized Tracking and Biometric Data Collection

    Cybersecurity

    Deploying AI Agents? Learn to Secure Them Before Hackers Strike Your Business

    Cybersecurity

    Google Rolls Out On-Device AI Protections to Detect Scams in Chrome and Android

  • Deals
    Lenovo Desktop PC Gaming Bundle – Intel Core i7, 16GB RAM, 512GB SSD, 24-inch Curved…

    Lenovo Desktop PC Gaming Bundle – Intel Core i7, 16GB RAM, 512GB SSD, 24-inch Curved…

    Forza Horizon 2 for Xbox 360 (Renewed)

    Forza Horizon 2 for Xbox 360 (Renewed)

    Little Big Planet – Playstation 3 (Renewed)

    Little Big Planet – Playstation 3 (Renewed)

    JCHPINE Hard Carrying Case for Leapfrog LeapLand Adventures Learning Video Game,…

    JCHPINE Hard Carrying Case for Leapfrog LeapLand Adventures Learning Video Game,…

    The Memory Company | Licensed NFL Team Logo Leather Flask with Shot Glass and Funnel Set

    The Memory Company | Licensed NFL Team Logo Leather Flask with Shot Glass and Funnel Set

    ORICO Portable SSD 256 GB with 2 in 1 USB C Cable, External Solid State Drives, Up to…

    ORICO Portable SSD 256 GB with 2 in 1 USB C Cable, External Solid State Drives, Up to…

    Lenovo ThinkPad T490s 14.0” FHD Laptop, Intel Quad-Core i7-8665U up to 3.90GHz, 32GB…

    Lenovo ThinkPad T490s 14.0” FHD Laptop, Intel Quad-Core i7-8665U up to 3.90GHz, 32GB…

    ICY DOCK 4 Bays Dual 2 x 2.5 inch Hard Drive SSD Mounting Bracket Adapter for External…

    ICY DOCK 4 Bays Dual 2 x 2.5 inch Hard Drive SSD Mounting Bracket Adapter for External…

    MINIX Z100-0dB Fanless Mini PC, Intel 12th Gen N100, 16GB DDR4/512GB PCIe 3.0 X4 SSD/4K…

    MINIX Z100-0dB Fanless Mini PC, Intel 12th Gen N100, 16GB DDR4/512GB PCIe 3.0 X4 SSD/4K…

  • Gaming
    First Look:  HYPERCHARGE: Unboxed

    First Look: HYPERCHARGE: Unboxed

    Scars Above Trailer Recensione Italiano

    Scars Above Trailer Recensione Italiano

    The Steam Deck Elden Ring Experience

    The Steam Deck Elden Ring Experience

    If you’re into ambient rainfaill sounds, why not use headphones with ‘two half-gallon basins’ and plenty of real water sloshing around everywhere

    If you’re into ambient rainfaill sounds, why not use headphones with ‘two half-gallon basins’ and plenty of real water sloshing around everywhere

    CORYXKENSHINNN!!!!!!!|FNAF MOVIE TRAILER REACTION FT @adtloud

    CORYXKENSHINNN!!!!!!!|FNAF MOVIE TRAILER REACTION FT @adtloud

    Gore Analysis – Robocop: Rogue City

    Gore Analysis – Robocop: Rogue City

    Thymesia – Walkthrough – Part 4 – Sea of Trees – Sub Quest 1

    Thymesia – Walkthrough – Part 4 – Sea of Trees – Sub Quest 1

    The latest Nvidia driver lets you run ancient CPUs in Windows again without crashing

    The latest Nvidia driver lets you run ancient CPUs in Windows again without crashing

    As Dusk Falls – Chapter 5 – Episode 37 Replayed So Even Sharon Goes To Jail

    As Dusk Falls – Chapter 5 – Episode 37 Replayed So Even Sharon Goes To Jail

  • Tesla
    Tesla (TSLA) board explore new pay deal for Elon Musk

    Tesla (TSLA) board explore new pay deal for Elon Musk

    KKTR-CAR Door Handle Cover, Real Matte Carbon Fiber Door Handle Trim Protector Set…

    KKTR-CAR Door Handle Cover, Real Matte Carbon Fiber Door Handle Trim Protector Set…

    Floor Mat for Tesla Model 3 2024 2025, Pure TPE Injection Molding All Weather Odorless…

    Floor Mat for Tesla Model 3 2024 2025, Pure TPE Injection Molding All Weather Odorless…

    Anti-Skid Center Console Silicone Pad for Tesla Model 3 Model Y 2020-2023, Wireless…

    Anti-Skid Center Console Silicone Pad for Tesla Model 3 Model Y 2020-2023, Wireless…

    Ziciner Car Registration Insurance Holder, 2Pack Essential Auto Card Document Glove Box…

    Ziciner Car Registration Insurance Holder, 2Pack Essential Auto Card Document Glove Box…

    MeeFar Hitch Mount Cargo Carrier Bag Soft Shell 100% Waterproof 20 Cubic Feet (59″ 24″…

    MeeFar Hitch Mount Cargo Carrier Bag Soft Shell 100% Waterproof 20 Cubic Feet (59″ 24″…

    Car Front Under Seat Storage Box for Tesla Model Y Model X 2020-2024 2025 Accessories…

    Car Front Under Seat Storage Box for Tesla Model Y Model X 2020-2024 2025 Accessories…

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

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

    Tesla shares video of its Optimus robot catching up to competition

    Tesla shares video of its Optimus robot catching up to competition

  • UFO
    Ep.39 UFO’s shining Lasers at people?? #ninjasarebutterflies #podcast #sundaycool #comedy

    Ep.39 UFO’s shining Lasers at people?? #ninjasarebutterflies #podcast #sundaycool #comedy

    Flexcamo -Tactical Waterproof Pants Tactical Pant for Men Relaxed Fit Work Camo Hiking Cargo Pants Multi Pockets

    Flexcamo -Tactical Waterproof Pants Tactical Pant for Men Relaxed Fit Work Camo Hiking Cargo Pants Multi Pockets

    Vanishing UFOs Spotted During WWII (Season 21) | Ancient Aliens

    Vanishing UFOs Spotted During WWII (Season 21) | Ancient Aliens

    Men’s Swim Trunks Beach Board Shorts Quick Dry Swimsuit Bathing Suits with Pockets 7 Inch Inseam Mesh Lining

    Men’s Swim Trunks Beach Board Shorts Quick Dry Swimsuit Bathing Suits with Pockets 7 Inch Inseam Mesh Lining

    Galaxy Space Alien Inflate | 3 Feet | One Pc | UFO Blow Up Decoration Toy

    Galaxy Space Alien Inflate | 3 Feet | One Pc | UFO Blow Up Decoration Toy

    Extraterrestrial Theory  by Goatrax   Official Report Video HD Micro Scan  08.05.2015   Concorde Atl

    Extraterrestrial Theory by Goatrax Official Report Video HD Micro Scan 08.05.2015 Concorde Atl

    Photographic Proof or Hoaxes? UFO Images Under the Microscope

    Photographic Proof or Hoaxes? UFO Images Under the Microscope

    Nicetage Women Vintage Space Shuttle Graphic T-Shirt NASA Letter Print Shirt Casual Tee Tops

    Nicetage Women Vintage Space Shuttle Graphic T-Shirt NASA Letter Print Shirt Casual Tee Tops

    U.S. Senator's amendment into UFO investigations gains momentum

    U.S. Senator's amendment into UFO investigations gains momentum

No Result
View All Result
Techcratic
No Result
View All Result

13 things I would have told myself before building an autorouter

Hacker News by Hacker News
March 28, 2025
in Hacker News
Reading Time: 28 mins read
128 2
A A
0
Home Hacker News
Share on FacebookShare on XShare on LinkedIn

2025-03-27 20:38:00
blog.autorouting.com

I’ve spent about a year working on an autorouter for tscircuit (an open-source electronics CAD kernel written in Typescript). If I could go back a year, these are the 13 things I would tell myself:

An intermediate stage of our autorouting routing a keyboard.

If I was king for a day, I would rename A* to “Fundamental Algorithm”. It is truly one of the most adaptable and important algorithms for _any kind_ of search. It is simply the best foundation for any kind of informed search (not just for 2d grids!)

Here’s an animated version of A* versus “breadth first search” on a 2d grid:

The way A* explores nodes is a lot faster and more intuitive. The major difference between these two algorithms is BFS explores all adjacent nodes, while A* prioritizes exploring nodes that are closer to the destination. Because it considers a metric outside the graph (the distance to the destination) it’s an informed search.

You are already either using BFS or DFS (depth-first search) in your code. A recursive algorithm is a depth first search. Any loop that explores candidates/neighbors without sorting the candidates is a BFS. 99% of the time you can convert it to A* and get dramatic performance gains!

One of my favorite techniques in our autorouter is we run multiple levels of A* to discover the optimal hyperparameters for a particular problem. So we’re basically running each autorouter as a candidate, then using A* to determine which autorouters we should spend the most time on!

See all those numbers at the top? Those are each different configurations of hyper parameters. Running each autorouter fairly would be a huge waste of time- if one autorouter starts to win (it is successfully routing with good costs) allocate more iterations to it! This kind of meta-A* combines a regular cost function that penalizes distance with a cost function that penalizes iterations.

I’m controversially writing our autorouter in Javascript. This is the first thing people call out, but it’s not as unreasonable as you might expect. Consider that when optimizing an algorithm, you’re basically looking at improving two things:

  1. Lowering the number of iterations required (make the algorithm smart)

  2. Increasing the speed of each iteration

People focus way too much on improving the speed of each iteration. If you are doing something dumb (like converting everything to a grid for overlap testing), Javascript performance will beat you no matter what language you use!

Dumb algorithms in optimal assembly are slower than smart algorithms in Javascript! Algorithm > Language!

95% of your focus should be on reducing the number of iterations. This is why language doesn’t matter. Whatever gets you to the smartest, most cacheable algorithm fastest is the best language.

You can’t walk 5 feet into multi-dimensional space optimization without someone mentioning a QuadTree, this incredible data structure that makes O(N) search O(log(N)) when searching for nearby objects in 2d/3d space.

The QuadTree and every general-purpose tree data structure are insanely slow. Trees are not an informed representation of your data.

Any time you’re using a tree you’re ignoring an O(~1) hash algorithm for a more complicated O(log(N)) algorithm

Why does Javascript use HashSets and HashMaps by default and every chance it gets? They’re super super fast. A Spatial Hash Index is the same concept as a HashMap, but instead of hashing the object we hash it’s location and store it in a Cell (or “bucket of things that are close together”)

Let’s look at how we might replace the QuadTree with a SpatialHashIndex with 20% as much code:

There are many variants of this basic data structure for different types of objects, but they all look pretty similar. We’re basically just creating “buckets” with spatial hashes and filling them with any object that is contained within the cell represented by the spatial hash.

The reason spatial hashes aren’t as popular is you need to be careful about selecting your cell size- this is what makes it an informed algorithm. If your cell size isn’t calibrated well, you’ll end up paying high fixed costs per retrieval. In practice, it’s not that difficult to pick a reasonable cell size.

A circuit board like the one inside an IPhone probably has somewhere between 10,000 and 20,000 traces and take a team several months to route with the best EDA tools in world. It can seem daunting to try to optimize such an incredibly complex task- but the truth is the entire industry is neglecting a very simple idea: everything that has been routed has been routed before.

Game developers “pre-bake” navigation meshes into many gigabytes for their games. LLMs compress the entire internet into weights for search. The next generation of autorouters will spatially partition their problems, then call upon a massive cache for pre-solved solutions. The speed of the algorithm doesn’t matter when you have a massive cache with 99% of the autorouting problem pre-solved.

Most algorithms today do not focus on the effective cache-reusability or effective spatial partitioning, but a critical component of future autorouters will be caching inputs and outputs from each stage in a spatially partitioned way.

Moreover, the size of storage and caching seems to go down faster than the speed of computation goes up. It’s not a big deal to have a gigabyte cache to make your autorouter 50% faster.

At the end of the day, the cache will win. Cacheable algorithms matter more than fast algorithms!

If there is one thing I could have printed on a poster, it would be VISUALIZE THE PROBLEM. You can’t debug problems by staring at numbers.

For every tiny problem we solve, we have a visualization. We will often start with the visualization. Time and time again this enables us to debug and solve problems 10x faster than we could otherwise. Here’s a visualization we made of a subalgorithm for finding 45 degree paths, we use this in our “Path Simplification Phase”, an ~final phase of the autorouter.

Javascript profiling tools are incredibe, you can easily see the exact total time in ms spend on each line of code. You don’t need to use any performance framework, just execute your javascript in the browser and pull up the performance tab. There are also awesome features like flame charts and stuff for memory usage.

You can easily see the time spent on each line of code inside Chrome’s performance tools!

Here’s a little youtube short I made about it

Recursive functions are bad for multiple reasons:

  • They are almost always synchronous (can’t be broken out for animation)

  • They are inherently a Depth-First Search, and can’t be easily morphed to A*

  • You can’t easily track iterations

  • Mutability is often unnatural in recursive functions but critical to performance

Here’s an example of an “obviously recursive” function converted to a non-recursive function:

The iteration-based implementation is much faster because it keeps a set of visitedNodes and checks nodes prior to exploration. You can do this with recursive functions, but you have to pass around a mutable object and do other unnatural things. It’s just best to avoid recursive functions when writing performant code.

Monte Carlo algorithms use randomness to iterate towards a solution. They are bad because:

  • They lead to non-deterministic, hard-to-debug algorithms

  • They are basically never optimal relative to a heuristic

I sometimes use Monte Carlo-style algorithms when I don’t yet know how the algorithm should get to the solution, but I know how to score a candidate. They can help give some basic intuition about how to solve a problem. Once you have something approximating a cost function, do something smarter than Monte Carlo or any other random technique like Simulated Annealing. If your algorithm is sensitive to local minimums, consider using hyper parameters or more complex cost functions. Almost any local minimum your human eye can see can be made into a component of a cost function.

Another way to think about it: How many PCB Designers randomly draw lines on their circuit board? None. Nobody does that. It’s just not a good technique for this domain. You’ll always be able to find a better heuristic.

Our autorouter is currently a pipeline with 13 stages and something like 20 sub-algorithms that we measure the iteration count of for various things like determining spatial partitions or simplifying paths at the boundaries independently autorouted sections.

Being able to overlay different inputs/output visualizations of each stage of the algorithm helps you understand the context surrounding the problem you’re solving. I often ran into issues at downstream stages (often our “high density routing” stage) that could be solved by improving the output of previous stages.

The temptation when building sub-algorithms is to isolate the algorithm to its simplest form, maybe even normalizing around (0, 0). The danger with normalization or any complex transformation is it might impact the ability to quickly see consequences from early stages of the algorithm to later stages of the algorithm. To prevent this, just keep your coordinate space consistent throughout the lifecycle of the algorithm.

Here’s each stage of our algorithm one after another. We often zoom in on this to see what stage is the most guilty culprit for a failed Design Rule Check.

Remember how it’s super important to lower your iteration count?

Animating the iterations of your algorithm will show you how “dumb” it’s being by giving you an intuition for how many iterations are wasted exploring paths that don’t matter. This is particularly helpful when adjusting the greedy multiplier (discussed in 12)

This video is an animation of a simple trace failing to solve, but instead of failing outright attempting to solve endlessly outward. Without the animation, it would have been hard to tell what was going on!

Consider two ways to determine if a trace A overlaps another trace B:

  1. Consider each segment of A and B, and check for intersections

  2. Create a binary grid that marks each square where trace B is present, then check all the squares where trace A is present to see if B is there

Generated image

Believe it or not, most people would choose to use Option 2 with a binary grid check, even though this can easily be 1000x slower. People do this because math is hard 🤦

Luckily LLMs make this kind of intersection math trivial. Use fast vector math!! Checking a SINGLE grid square (memory access!) can literally be slower than doing a dot product to determine if two segments intersect!

When doing spatial partitioning of the problem, you can measure the probability of solve failure of each stage with some leading indicators. For example, in the Unravel Autorouter we track the probability of failure for each “Capacity Node” at each major pipeline stage. Each stage focuses on reconfiguring adjacent nodes or rerouting to reduce the probability of failure.

The great thing about probability of failure as a metric is you can literally measure it and improve your prediction as your algorithm changes. Each stage can then do it’s best to minimize the chance of future stages failing.

I think generally prioritizing solvability is better than trying to incorporate too many constraints. Once a board is solved, it’s often easier to “work with that solution” than to generate optimal solution from scratch.

Ok it’s not exactly a secret, maybe a “well-known secret”, but if you don’t know about it, you’re not using A* properly.

By default, A* is guaranteed to give you the optimal solution, but what if you care more about speed than about optimality? Make one tiny change to your f(n)and you have Weighted A*, a variant of A* that solves more greedily, and generally much, much faster!

Normal A*: f(n) = g(n) + h(n)
Weighted A*: f(n) = g(n) + w * h(n)

You can read more about weighted A* and other A* variants here.

Game developers have a lot of the same problems as autorouting developers, so it’s not a bad idea to look for game development papers if you’re searching for related work!

If this was interesting to you, I’d love to show you our autorouter as it gets closer to release. I believe that solving autorouting will be a massive unlock for physical-world innovation and is a key piece to enable the “vibe-building” of electronics. All of our work is MIT-licensed open-source. You can also follow me on twitter.

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!


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

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

Liquid-crystal platform overcomes optical losses in photonic circuits

Next Post

NHL and Palo Alto Networks ink multiyear partnership

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

Unhappy with the recently lost file upload feature in the Nextcloud app for Android? So are we. Let us explain.
Hacker News

Unhappy with the recently lost file upload feature in the Nextcloud app for Android? So are we. Let us explain.

May 14, 2025
1.3k
Databricks and Neon | Databricks Blog
Hacker News

Databricks and Neon | Databricks Blog

May 14, 2025
1.3k
INE Security Alert: Continuous CVE Practice Closes Critical Gap Between Vulnerability Alerts and Effective Defense – Latest Hacking News
Hacker News

INE Security Alert: Continuous CVE Practice Closes Critical Gap Between Vulnerability Alerts and Effective Defense – Latest Hacking News

May 14, 2025
1.3k
You can use C-Reduce for any language
Hacker News

Writing that changed how I think about PL

May 14, 2025
1.3k
A tool to verify estimates, II: a flexible proof assistant
Hacker News

A tool to verify estimates, II: a flexible proof assistant

May 14, 2025
1.3k
Airbnb Is in Midlife Crisis Mode
Hacker News

Airbnb Is in Midlife Crisis Mode

May 13, 2025
1.3k
Load More
Next Post
NHL and Palo Alto Networks ink multiyear partnership

NHL and Palo Alto Networks ink multiyear partnership

NHL and Palo Alto Networks ink multiyear partnership

NHL and Palo Alto Networks ink multiyear partnership

2 HOUR JOB SEARCH

Data Engineering Manager, AWS Infrastructure Supply Chain Automation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Tech Resources

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

Tech News

  • 30 Second Tech ™
  • AI
  • AnandTech
  • 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
  • Weird Stuff
  • 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
  • Home
  • Apple
  • Gaming
  • Microsoft
  • AnandTech