frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Life4.py – visualizes John Conway's Game of Life in a command terminal

https://github.com/jazzfan2/game_of_life
2•robtoscani•1h ago
life4.py is a Python program that visualizes John Conway's "Game of Life" in a command terminal, with additional controls to move the viewpoint and to zoom in on or out of the animation.

See for background and details: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

Summary: The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which (at any given time) is in one of two possible states, "live" (alternatively "on") or "dead" (alternatively "off"). Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. The way the pattern of cells develops is driven by two rules, the so-called "Birth- and Survival-rules". The result looks like a busy scene of moving "micro-organism"-like creatures, crawling, expanding, dying out and re-emerging.

Comments

zahlman•18m ago
It's good that you've come back to the project, but you might want to do something about your project tooling, since every commit has the message "First commit".

As a style hint, also consider breaking the code into functions, instead of using triple-quoted strings (these are generally not docstrings!) to label "sections" of the code. (Even where you don't extract a separate function, that's what comments are for; the otherwise-blank lines with a # are also strange.)

Using a separate shell process for the camera control is inconvenient, and as written isn't going to work on others' machines (in the Python code, you've hard-coded an absolute path to the script in your home directory). I guess this is to avoid thinking about unbuffered I/O in Python; it's really not hard to do that on Linux (there's a curses binding in the standard library; or you can do just the "switch to raw mode" part using https://docs.python.org/3/library/termios.html and call sys.stdin.read (or perhaps sys.stdin.buffer.read) directly.)

Show HN: Cactus, a work-stealing parallel recursion runtime for C

https://github.com/xtellect/cactus
1•enduku•15s ago•0 comments

5 AIs. One Answer on iOS

https://apps.apple.com/us/app/pingpongit/id6758229301
1•husky8•1m ago•0 comments

Show HN: Rick – Open-source AI CEO that autonomously runs your startup

https://meetrick.ai
1•MeetRickAI•1m ago•0 comments

Running Tesla Model 3's Computer on My Desk Using Parts from Crashed Cars

https://bugs.xdavidhu.me/tesla/2026/03/23/running-tesla-model-3s-computer-on-my-desk-using-parts-...
1•driesdep•1m ago•0 comments

Ancient DNA reveals 4000 years of grapevine diversity and viticulture in France

https://www.nature.com/articles/s41467-026-70166-z
1•layer8•10m ago•0 comments

The Military Failures of Fascism

https://acoup.blog/2024/02/23/fireside-friday-february-23-2024-on-the-military-failures-of-fascism/
2•JumpCrisscross•10m ago•0 comments

Brad Feld – Quality (Essay on Zen and the Art of Motorcycle Maintenance)

https://feld.com/archives/2026/03/quality/
1•rmason•13m ago•0 comments

Health NZ staff told to stop using ChatGPT to write clinical notes

https://www.rnz.co.nz/news/national/590645/health-nz-staff-told-to-stop-using-chatgpt-to-write-cl...
8•billybuckwheat•14m ago•0 comments

Specula: A framework for finding deep bugs in system code using TLA+

https://github.com/specula-org/Specula
1•matt_d•16m ago•0 comments

Nonfiction Publishing, Under Threat, Is More Important

https://newrepublic.com/article/207659/non-fiction-publishing-threat-important-ever
1•Hooke•16m ago•0 comments

Show HN: Text2troff – automatically converts plain text to TROFF format

https://github.com/jazzfan2/text2troff
1•robtoscani•16m ago•0 comments

Silence is the KPI: agents that don't talk

https://diegodella1.github.io/chango-daily/2026/03/03/silence-is-the-kpi-agents-that-do-not-talk/
1•changobot_dg•17m ago•0 comments

China is mass-producing hypersonic missiles for $99,000

https://kdwalmsley.substack.com/p/on-sale-now-china-is-mass-producing
11•zdw•18m ago•0 comments

RedSwarm Adversarial AI security scanner, one file, zero deps

https://github.com/beee003/redswarm
1•bee003•18m ago•1 comments

UK bans crypto donations to political parties in bid to curb foreign influence

https://apnews.com/article/uk-political-donations-cryptocurrency-ban-4deae8e71d664a042363fa79d617...
2•toomuchtodo•19m ago•1 comments

FairPhone: Industry First Nature Report

https://www.fairphone.com/stories/we-just-released-the-industrys-first-ever-nature-report
1•kruffalon•19m ago•1 comments

A lawyer won Anthropic's hackathon – what everyone missed

https://hadleylab.org/blogs/2026-03-22-the-lawyer-who-won/
2•idrdex•20m ago•1 comments

Creating Your First React Component Is Easy

https://www.youtube.com/watch?v=lVzYw35oRrk
1•stormsidali2001•20m ago•1 comments

Moon: The Lonely Life of a Man on the Moon

https://reactormag.com/moon-the-lonely-life-of-a-man-on-the-moon/
1•mindracer•21m ago•0 comments

Supreme Court rules ISPs aren't liable for subscribers' music piracy

https://www.engadget.com/entertainment/streaming/supreme-court-rules-isps-arent-liable-for-subscr...
2•zdw•21m ago•1 comments

Show HN: Whorl – Fingerprinting LLMs as horrible password generators

http://bountyplz.xyz/ai,/security/2026/03/15/Model-Fingerprinting-With-Whorl.html
1•tehryanx•22m ago•0 comments

Meta Lays Off 700 Employees, While Rewarding Top Executives

https://www.nytimes.com/2026/03/25/technology/meta-layoffs-ai-executives.html
2•nickvec•24m ago•2 comments

Sculpting Code

https://olshansky.info/posts/2026-03-25-sculpting-code
1•Olshansky•27m ago•0 comments

Daniel Stenberg – Emails

https://daniel.haxx.se/email/
1•leephillips•28m ago•0 comments

Joycraft: Upgrade your Claude Code harness

https://github.com/maksutovic/joycraft
1•max_maksutovic•29m ago•0 comments

Supreme Court Wipes Out Record Labels' $1B Piracy Judgment Against Cox

https://torrentfreak.com/supreme-court-wipes-out-record-labels-1-billion-piracy-judgment-against-...
7•nobody9999•33m ago•1 comments

How to make good lecture slides with AI assistance

https://alexanderhoyle.com/posts/ai-slide-gen.html
1•ahoho•34m ago•0 comments

Marco Arment did something awesome

https://www.natemeyvis.com/marco-arment-did-something-awesome/
1•speckx•34m ago•0 comments

Strong Customer Authentication

https://stripe.com/en-nl/guides/strong-customer-authentication
1•mooreds•36m ago•0 comments

Cella dev journey, a 3D space game in Rust

https://cellagame.com/uptospeed/
1•stldev•36m ago•1 comments