frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Raspberry Pi Drag Race: Pi 1 to Pi 5 – Performance Comparison

https://the-diy-life.com/raspberry-pi-drag-race-pi-1-to-pi-5-performance-comparison/
20•verginer•1h ago•6 comments

Doing gigabit Ethernet over my British phone wires

https://thehftguy.com/2026/01/22/doing-gigabit-ethernet-over-my-british-phone-wires/
335•user5994461•8h ago•186 comments

How I Became a Quant (2007) [pdf]

https://engineering.nyu.edu/sites/default/files/2021-10/How_I_Became_a_Quant%20%281%29.pdf
62•sonabinu•5d ago•27 comments

Maze Algorithms (2017)

http://www.jamisbuck.org/mazes/
41•surprisetalk•23h ago•13 comments

Claude Code's new hidden feature: Swarms

https://twitter.com/NicerInPerson/status/2014989679796347375
114•AffableSpatula•4h ago•86 comments

Tao Te Ching – Translated by Ursula K. Le Guin

https://github.com/nrrb/tao-te-ching/blob/master/Ursula%20K%20Le%20Guin.md
91•andsoitis•2h ago•31 comments

Federal Agents Kill Another Person in Minneapolis Immigration Crackdown

https://time.com/7357547/minneapolis-shooting-ice-agent/
61•hggh•1h ago•3 comments

December in Servo: multiple windows, proxy support, better caching, and more

https://servo.org/blog/2026/01/23/december-in-servo/
73•t-3•2h ago•3 comments

Ask HN: Gmail spam filtering suddenly marking everything as spam?

32•goopthink•2h ago•45 comments

Metriport (YC S22) is hiring a security eng to harden healthcare data infra

https://www.ycombinator.com/companies/metriport/jobs/XC2AF8s-senior-security-engineer
1•dgoncharov•2h ago

MS confirms it will give the FBI your Windows PC data encryption key if asked

https://www.windowscentral.com/microsoft/windows-11/microsoft-bitlocker-encryption-keys-give-fbi-...
269•blacktulip•6h ago•201 comments

How I Estimate Work as a Staff Software Engineer

https://www.seangoedecke.com/how-i-estimate-work/
271•mattjhall•8h ago•152 comments

C++26 Reflection loves QRangeModel

https://www.qt.io/blog/c26-reflection-qrangemodel
11•jandeboevrie•4d ago•1 comments

When employees feel slighted, they work less

https://penntoday.upenn.edu/news/penn-wharton-when-employees-feel-slighted-they-work-less
216•consumer451•4d ago•172 comments

Internet Archive's Storage

https://blog.dshr.org/2026/01/internet-archives-storage.html
255•zdw•4d ago•71 comments

Many Small Queries Are Efficient in SQLite

https://www.sqlite.org/np1queryprob.html
124•tosh•7h ago•85 comments

Unrolling the Codex agent loop

https://openai.com/index/unrolling-the-codex-agent-loop/
417•tosh•22h ago•194 comments

Are we all plagiarists now?

https://www.economist.com/culture/2026/01/22/are-we-all-plagiarists-now
81•pseudolus•2h ago•91 comments

I Like GitLab

https://www.whileforloop.com/en/blog/2026/01/21/i-like-gitlab/
155•lukas346•8h ago•100 comments

JVIC: New web-based Commodore VIC 20 emulator

https://vic20.games/#/basic/24k
28•lance_ewing•7h ago•24 comments

Proof of Corn

https://proofofcorn.com/
452•rocauc•1d ago•297 comments

US Vaccine Panel Chair Says Polio and Other Shots Should Be Optional

https://www.nytimes.com/2026/01/23/health/milhoan-vaccines-optional-polio.html
37•throw0101c•55m ago•16 comments

6 Years Building Video Players. 9B Requests. Starting Over

https://www.mux.com/blog/6-years-building-video-players-9-billion-requests-starting-over
28•bolp•4d ago•7 comments

“Let people help” – Advice that made a big difference to a grieving widow

https://www.npr.org/2026/01/20/nx-s1-5683170/let-them-the-small-bit-of-advice-that-made-a-big-dif...
138•NaOH•15h ago•49 comments

ICE Executes Arrestee

https://old.reddit.com/r/pics/comments/1qlr507/ice_pinning_down_and_pistol_whipping_a/
4•alangibson•1m ago•0 comments

80386 Multiplication and Division

https://nand2mario.github.io/posts/2026/80386_multiplication_and_division/
84•nand2mario•12h ago•29 comments

Show HN: Coi – A language that compiles to WASM, beats React/Vue

170•io_eric•4d ago•58 comments

Extracting verified C++ from the Rocq theorem prover at Bloomberg

https://bloomberg.github.io/crane/
106•clarus•4d ago•20 comments

Gas Town's agent patterns, design bottlenecks, and vibecoding at scale

https://maggieappleton.com/gastown
379•pavel_lishin•1d ago•398 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
203•signa11•5d ago•134 comments
Open in hackernews

Maze Algorithms (2017)

http://www.jamisbuck.org/mazes/
41•surprisetalk•23h ago

Comments

tromp•1h ago
A maze generator in the shape of a maze whose corridors spell a 4-letter word:

    char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C);
    --            E;             J[              E]             =T
    [E   ]=  E)   printf("._");  for(;(A-=Z=!Z)  ||  (printf("\n|"
    )    ,   A    =              39              ,C             --
    )    ;   Z    ||    printf   (M   ))M[Z]=Z[A-(E   =A[J-Z])&&!C
    &    A   ==             T[                                  A]
    |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}
Generates a maze on the fly after entering the desired height of the maze. This compiled fine back in 1988 when I submitted it to the IOCCC (having rediscovered Eller's algorithm). Modern C compilers don't allow constant strings to be overwritten, which can be avoided by changing the first line to

    char M[3],A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf("%d",&C);
The code is explained in detail at https://tromp.github.io/maze.html
binaryturtle•1h ago
If I squeeze the eyes I can read the "MAZE". :)

Sadly neither version works here with an older clang on OS X. Both variants build fine with 9 warnings each. But the old variant dies with a "Bus Error: 10", and the new variant with "Segmentation fault: 11". Same with gcc (albeit only 8 warnings.)

/edit

OK, just wrong user input. You gotta feed it a number, and not a "foobar" or another random string.

MaskRay•41m ago
Amazing! I read you article in 2012 when the link was https://homepages.cwi.nl/~tromp/maze.html I was learning Haskell and Ocaml and wrote my own article in Chinese then https://maskray.me/blog/2012-11-02-perfect-maze-generation

Now I should fix the link.

dfajgljsldkjag•1h ago
I've always known about algorithms that solve mazes, but never about actually making them. It's interesting seeing all these algorithms and how the mazes they generate look different.
bonsai_spool•1h ago
Mike Bostock had several very lovely visualizations back on the D3.js site which I can't find. Here's a cool blogpost he wrote: https://bost.ocks.org/mike/algorithms/#maze-generation
dang•41m ago
Related? https://news.ycombinator.com/item?id=7632092 (April 2014)
OscarCunningham•1h ago
Is it known which algorithms produce 'difficult' mazes? I'm imagining you could run all the maze solving algorithms against all the maze generating algorithms many times, and then calculate what the Nash equilibrium would be if the solver is trying to minimise expected time and the generator is trying to maximise it.
1313ed01•25m ago
There is another old site ("since September 23, 1996"), my second favorite maze site, that has some articles about things like that. Like on the page below ("Tips on how to create difficult and fun Mazes, and how to solve and analyze them").

https://www.astrolog.org/labyrnth/psych.htm

I think there is a difference if you want to make it only expensive to solve using popular maze solver algorithms, vs to make it difficult for a human to solve. Many of the recommendations on that page are for how to do things that can make a maze more difficult for humans to solve, but will not always matter to an algorithm that just mechanically tries solutions in some order.

nickevante•1h ago
For anyone interested in this, Jamis Buck's book 'Mazes for Programmers' is a masterpiece of the genre.

My personal favorite distinction is between the Recursive Backtracker (which creates long, winding corridors with few dead ends which is great for tower defense games) vs. Prim's Algorithm (which creates lots of short cul-de-sacs which is better for roguelikes). The bias of the algorithm dictates the feel of the game more than the graphics do.

jaberjaber23•1h ago
seconding the jamis buck book, its one of the few programming books i actually finished. the way he explains each algorithm with visualizations makes it stick
ginko•1h ago
It feels like many of the more complicated algorithms produce worse mazes (long horizontal/vertical walls, many 1-2 square dead ends next to another) than basic recursive backtracking.
dang•44m ago
Related:

Maze Generation: Recursive Division (2011) - https://news.ycombinator.com/item?id=42703816 - Jan 2025 (12 comments)

Maze Algorithms (2011) - https://news.ycombinator.com/item?id=23429368 - June 2020 (22 comments)

Representing a Toroidal Grid - https://news.ycombinator.com/item?id=10608476 - Nov 2015 (2 comments)

Maze Generation: Recursive Backtracking - https://news.ycombinator.com/item?id=4058525 - June 2012 (1 comment)

Maze Generation: Weave mazes - https://news.ycombinator.com/item?id=4052856 - June 2012 (3 comments)

Maze-generation algorithms, with JS demos - https://news.ycombinator.com/item?id=2190017 - Feb 2011 (9 comments)

Generating random mazes with the Growing Tree algorithm (w/ Javascript demo) - https://news.ycombinator.com/item?id=2148348 - Jan 2011 (6 comments)

Maze Generation: Wilson's algorithm - https://news.ycombinator.com/item?id=2123695 - Jan 2011 (11 comments)

Maze Generation: Kruskal's Algorithm - https://news.ycombinator.com/item?id=2062999 - Jan 2011 (9 comments)

Maze Generation: Eller's Algorithm - https://news.ycombinator.com/item?id=2048752 - Dec 2010 (9 comments)

Also:

Maze Tree - https://news.ycombinator.com/item?id=7746822 - May 2014 (38 comments)

Solving a Maze with D3.js - https://news.ycombinator.com/item?id=7631864 - April 2014 (19 comments)

Think Labyrinth: Maze Algorithms - https://news.ycombinator.com/item?id=10101728 - Aug 2015 (10 comments)

Practical algorithms and code optimization: maze generation - https://news.ycombinator.com/item?id=5431561 - March 2013 (10 comments)

Maze Algorithms - https://news.ycombinator.com/item?id=157266 - April 2008 (1 comment)

Others?

richard_chase•5m ago
This is the kind of stuff I come here for.