frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tracking down a Zsh history data loss bug

https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/
1•ingve•2m ago•0 comments

Book Review: The Escape Artist

https://www.astralcodexten.com/p/your-book-review-the-escape-artist
1•paulpauper•3m ago•0 comments

No-New-Physics Consciousness

https://www.overcomingbias.com/p/no-new-physics-consciousness
1•paulpauper•3m ago•0 comments

2026 Filing Season: Preliminary Observations on IRS Performance

https://www.gao.gov/products/gao-26-109074
1•Jimmc414•4m ago•0 comments

Tyler Cowen: A Conservative Case for Liberal Immigration

https://www.thefp.com/p/tyler-cowen-conservative-case-liberal-immigration-policy
1•paulpauper•6m ago•0 comments

I wrote OSS for fun. They called it Exceptional Talent

https://ryoppippi.com/blog/2026-08-15-uk-gtv-en/
1•ryoppippi•7m ago•1 comments

U.S. Urges Apple Not to Buy Chinese Memory Chips

https://www.wsj.com/tech/apple-china-memory-chip-plan-57773a83
3•bookofjoe•12m ago•2 comments

How to Confuse Some SSH Bots

https://nochan.net/b/Internet-Crap/20260108-Confuse-Some-SSH-Bots/
1•Bender•13m ago•0 comments

The AI Slop Backlash Is Having an Impact

https://www.wired.com/story/the-ai-slop-backlash-is-actually-having-an-impact/
1•herbertl•14m ago•0 comments

Show HN: TokenLab MCP, model discovery, pricing, and native AI endpoint tools

https://tokenlab.sh/zh/mcp
2•tokenlabai•15m ago•0 comments

Agentic Development Fallacies

https://thuva4.com/blog/agentic-development-fallacies/
1•thuva4•15m ago•0 comments

Augmenting Long-term Memory (2018)

https://augmentingcognition.com/ltm.html
2•re-framer•18m ago•0 comments

AI makes foundational knowledge more important

https://www.timeshighereducation.com/opinion/ai-makes-foundational-knowledge-more-important-ever
2•jruohonen•23m ago•0 comments

Hayward City Council will consider banning data centers at its Sept. 15 meeting

https://www.hayward-ca.gov/discover/news/aug26/hayward-council-consider-move-ban-data-centers-its...
4•MilnerRoute•23m ago•1 comments

Why did I build a product no one needs?

https://metedata.substack.com/p/017-why-did-i-build-a-product-no
2•young_mete•24m ago•0 comments

DersCountsort: General-purpose sort with amortized O(N) complexity

2•dersoverflow•25m ago•0 comments

Which Data Repository Should You Use?

http://daniellakens.blogspot.com/2026/08/which-data-repository-should-you-use.html
2•pajop•25m ago•1 comments

Abdominal Fat Predicts Heart Disease Risk Better Than BMI

https://www.acc.org/about-acc/press-releases/2026/08/11/14/59/abdominal-fat-predicts-heart-diseas...
2•theanonymousone•27m ago•0 comments

AAP: How pediatricians are navigating federal leaders' fearmongering on vaccines

https://www.statnews.com/2026/08/14/vaccine-executive-order-policy-aap-president/
2•EA-3167•27m ago•0 comments

4B Capable Agent in the Browser

https://alexwortega-my-pi-agent.hf.space/
1•Alexwortega•28m ago•0 comments

Living with Depression: The Part I Never Say Out Loud About Depression

https://medium.com/freedomofthought/living-with-depression-the-part-i-never-say-out-loud-3e9c218b...
1•raynchad•28m ago•1 comments

A Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•yboris•29m ago•0 comments

Memories Mysteriously Survive After Brain Shutdown

https://www.404media.co/memories-mysteriously-survive-after-brain-shutdown-and-scientists-dont-kn...
1•Jimmc414•29m ago•0 comments

Dryas: A Reprogrammable Engine for High-Speed Interconnect Tracing and Analysis

https://arxiv.org/abs/2608.12934
1•Jimmc414•30m ago•0 comments

Show HN: Personal Stock – share a stake in your lifetime wealth

https://github.com/onrootnet/personal-stock
1•koopuluri•30m ago•0 comments

The Enshittification of Everything (Part 3)

https://robertreich.substack.com/p/the-enshittification-of-everything-c94
11•rbanffy•31m ago•1 comments

How Samsung's Privacy Screen Works

https://www.ifixit.com/News/117498/the-secrets-behind-samsungs-privacy-screen
2•gnabgib•32m ago•0 comments

Show HN: Open-source skill to run Matt Pocock's skills in bulk AFK

https://github.com/rvoertmann/barbequeue
1•remingtonv•33m ago•0 comments

Cornell: Pro Palestine Students Targeted by ICE: Come Back to US or Lose Funding

https://theintercept.com/2026/08/14/cornell-pro-palestine-student-targeting-ice/
10•Jimmc414•33m ago•1 comments

The unlikely opera star: How AI helped a nonspeaking performer find his voice

https://www.scientificamerican.com/podcast/episode/a-nonspeaking-person-is-the-star-of-this-opera...
2•e2e4•35m 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.