frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Magi-2: A 480B Frontier Video Generation Model

https://sand.ai/blog/magi-2/
1•gmays•11m ago•0 comments

Verified Garbage: An experimental formally verified cryptography library

https://verified-garbage.dev/posts/announcing-verified-garbage/
1•mkeeter•12m ago•0 comments

Systemd 263-rc1 ships initial Rust code

https://www.phoronix.com/news/systemd-263-rc1
1•Skyfall106•14m ago•0 comments

OpenCode (Rune) desktop client

https://github.com/anomalyco/opencode-rune
1•qainsights•15m ago•0 comments

Just Pick the Smarter Model

https://www.seangoedecke.com/just-pick-the-smarter-model/
2•U1F984•18m ago•1 comments

Show HN: I made Horizontal News, a column-based Hacker News reader

https://hzn.jero.zone/
3•jer0me•21m ago•0 comments

Armed neighbor of school tests limits of Montana's lenient gun laws

https://www.washingtonpost.com/nation/2026/11/28/armed-man-patrolling-next-elementary-school-test...
1•mikhael•25m ago•1 comments

Newsavista (news aggregator) now deeply integrates with HN

https://newsavista.com/invite/ASAD68923E
3•cbeach•29m ago•2 comments

Lua as a Query Language

https://remy.wang/blog/lua-ql.html
3•remywang•30m ago•0 comments

Redact Docs: A Tunable, Local PII Scrubber

https://www.rickmanelius.com/p/redact-docs-a-tunable-local-pii-scrubber
1•mooreds•31m ago•0 comments

A World Without Youth: The Economics of a Shrinking World [video]

https://www.youtube.com/watch?v=BVtxv566UCQ
2•mooreds•32m ago•0 comments

The Camera Caps Kenyans Are Paid to Wear While Going About Daily Lives

https://www.tuko.co.ke/people/family/647605-nairobi-mysterious-camera-caps-kenyans-paid-wear-dail...
4•gnabgib•36m ago•0 comments

Hackers are exploiting Africa's digital identities

https://www.economist.com/middle-east-and-africa/2026/11/03/hackers-are-exploiting-africas-digita...
1•mooreds•39m ago•0 comments

ChatGPT plugin: Podcast Search and Transcription

https://chatgpt.com/plugins/plugin_asdk_app_6aecd9304b88819193ae95e7f9bcd92b
2•wenbin•40m ago•0 comments

Spyware posing as an Italian Interior Ministry app targeted asylum seekers

https://www.irpimedia.eu/en/spyware-posing-as-an-italian-interior-ministry-app-targeted-asylum-se...
1•DeepLogin•40m ago•0 comments

Patients sue surgeons over 'smart' knees implanted without consent

https://www.beckersspine.com/orthopedic/2-patients-sue-surgeons-over-smart-knees-implanted-withou...
5•ourmandave•41m ago•1 comments

Knight's Tour Chess Poster

https://chessposter.com
1•siglesias•41m ago•0 comments

Show HN: CircuitMill – web-based tool for PCB milling

https://circuitmill.com/en/
1•k1zmt•42m ago•0 comments

Authentication for Go applications

https://github.com/Plain-Org/plain-auth
1•NabilSince•43m ago•2 comments

"Self driving" Lidar domes now a status symbol in China, fakes for sale

https://carnewschina.com/2026/11/27/self-driving-lidar-domes-now-a-status-symbol-in-china-as-1-us...
4•edward•43m ago•0 comments

Prefill awareness: can LLMs tell when "their" message history has been modified?

https://www.alignmentforum.org/posts/jsFGuXDMxy5NZg9T2/prefill-awareness-can-llms-tell-when-their...
2•Aachen•45m ago•1 comments

Show HN: Agent HR Report – your coding agents file a complaint about you

https://github.com/loayabdalslam/HR-AGENT
1•loaiabdalslam•46m ago•0 comments

Life in Lists

https://mydecembers.com
1•polycycle•46m ago•0 comments

Ask HN: If you're not on Meta services, How do you share photos and updates?

1•Dathfionn•47m ago•2 comments

Notes on Bill Gates' "Internet Tidal Wave" Memo

https://dev.niceasthis.com/tablehub/read/?id=gates1995tidal
1•firasd•52m ago•1 comments

Show HN: GameFound – a catalogue of 375k games on Blazor Server and one VPS

https://game-found.com/
2•game-found•55m ago•0 comments

Florida Man Gets 47 Months for AI Streamer Impersonation Crypto Scam

https://www.justice.gov/usao-sdfl/pr/port-st-lucie-man-sentenced-47-months-prison-using-ai-impers...
2•gnabgib•57m ago•1 comments

TSMC's A14 1.4nm-class node is ready for chip design

https://www.tomshardware.com/tech-industry/semiconductors/tsmcs-a14-1-4nm-class-node-is-ready-for...
2•gmays•57m ago•0 comments

'Smart' Implants Are Driving Up Costs – Even When Patients Don't Ask for Them

https://kffhealthnews.org/health-industry/smart-joint-implants-knees-health-costs-patients-surpri...
1•dzdt•1h ago•0 comments

Government tech systems are failing – and Trump fired the tech experts

https://thehill.com/opinion/cybersecurity/6232948-gov-outages-staffing-crisis/
8•gnabgib•1h ago•0 comments
Open in hackernews

Generating Mazes with Inductive Graphs (2017)

https://jelv.is/blog/Generating-Mazes-with-Inductive-Graphs/
20•todsacerdoti•1y ago

Comments

tomfly•1y ago
where is the entrance and exit?
Jaxan•1y ago
Doesn’t matter, because all positions are reachable. So just pick any two positions at the border and remove a wall.
kazinator•1y ago
Here is a maze that was generated recursively starting at the upper left cell.

  +    +----+----+----+----+----+----+----+----+----+
  |    |                        |                   |
  |    |                        |                   |
  +    +----+----+    +----+    +----+    +----+    +
  |              |         |                   |    |
  |              |         |                   |    |
  +----+----+    +    +----+----+----+----+----+    +
  |              |    |                        |    |
  |              |    |                        |    |
  +    +----+----+    +    +----+----+----+    +    +
  |         |              |              |    |    |
  |         |              |              |    |    |
  +    +----+    +    +----+----+----+    +    +----+
  |              |    |                   |    |    |
  |              |    |                   |    |    |
  +----+----+----+    +    +----+----+----+    +    +
  |                        |                   |    |
  |                        |                   |    |
  +    +----+----+----+    +    +----+----+----+    +
  |    |    |              |    |              |    |
  |    |    |              |    |              |    |
  +    +    +    +    +----+    +    +----+    +    +
  |    |    |    |    |         |    |         |    |
  |    |    |    |    |         |    |         |    |
  +    +    +    +    +----+----+----+    +    +    +
  |    |    |    |    |                   |         |
  |    |    |    |    |                   |         |
  +    +    +----+    +    +----+----+    +----+----+
  |              |         |                        |
  |              |         |                        |
  +----+----+----+----+----+----+----+----+----+    +

It matters to start there because it will be easier if you go backwards.

The maze has 100 cells. For each cell, we can calculate which exit goes back toward the entrance, assigning the letters U, D, L, R:

  U R R D L L R D L L
  U L L D L U L L L U
  R R U D D L L L L U
  U L D L L R R D U U
  U L L U D L L L U D
  R R R U L R R R U D
  U D R R U U R R D D
  U D U U R U U D L D
  U D U U D L L L U L
  U L L U L R R U L L
Stats:

  L - 33
  U - 29
  R - 20
  D - 18
Left and Up are more frequent back-to-entrance escapes than Right or Down. This is because of the way the maze was generated.

To check the hypothesis, we should analyze it in the other direction. For each cell, determine the exit which heads in the direction of the exit:

  D R R D L L R D L L
  D R D D L U L L L U
  D L L D D L L L L U
  D L R D L R R D D U
  R R U D D L L L U D
  R R R R D R R R U D
  U D R D L U R R D D
  U D U D R U U D L D
  U D U D R R R D U L
  U L L R U R R R R D
Stats:

  D - 30
  R - 28
  L - 24
  U - 18
There is a weaker bias for the D-R axis toward the exit, compared to the L-U axis toward the entrance. I suspect if we study larger numbers of larger mazes, we will find similar findings.

So that is to say, it is easier to navigate the maze in the reverse direction: the heuristic to try left/up exits will work more often than the right/down in the proper direction.

smartmic•1y ago
From the book "Mazes for Programmers" by Jamis Buck, 2015, The Pragmatic Programmers (a must-read for any maze/programming enthusiast!):

> Aren't mazes supposed to have starting points and end points? […] honestly, […] it's entirely up to you. […] The maze […] is a perfect maze, and one of the attributes of a perfect maze is that there exists exactly one path between any two cells in it. […] You pick them, and there's guaranteed to be a path between them.

You do not need to choose an entrance or exit only on the sides, but you can also choose "Pacman-style" where the goal is to reach points inside the maze.

"Perfect" refers to the mathematical/logical properties of a maze (i.e. no loops), not the aesthetical aspect. I have not checked though if the mazes in the source here are all perfect.

kazinator•1y ago
While you can put the entrance and exit wherever you want, if you know that the maze was generated by a recursive branching process which had a starting point somewhere, it probably behooves you to put the start at that point corresponding to the root of the tree, so that the maze wanderer faces the most branching choices.

Laying out the abstract maze tree into the rectilinear grid of cells obfuscates the tree somewhat, but not entirely. A process that generates from upper left to lower right, for instance, will tend to generate cells whose parent-headed exits going left and up more often than not, making the reverse direction a bit easier.

(Again, it depends on the maze generation process.)

kazinator•1y ago
Making random mazes in a rectilinear grid is a good exercise for one big reason: mazes are not all the same. Mazes have style can be very knotty and twisty, or have long passages. You can add hacks into a given algorithm to vary the style, but there are certain things it won't necessarily do.