frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Conway's Game of Life in JavaScript with efficient implementation

https://github.com/gkoos/conway
1•gkoos•2h ago
I built a Conway’s Game of Life implementation in plain JavaScript with no frameworks or dependencies. The code is modular and easy to follow, with a focus on performance and clarity.

The project is intended as a clean example of how to implement cellular automata with modern JS, optimized for speed but easy to understand and extend.

Live demo: https://gkoos.github.io/conway/ GitHub repo: https://github.com/gkoos/conway

Would love feedback on the code structure, algorithm efficiency, or any suggestions you might have!

Comments

cryptoalex•1h ago
Congrats! Nicely done! Conway's Game of Life was my first attempt at assembly programing for a self-soldered ZX Spectrum's Z-80 CPU clocked at 3.5 Mhz. Compiled to 383-byte long binary, managed to do about 100 generations per second for a 3-cell blinker oscillator. My friend did a naive BASIC version brute forcing every single pixel on the screen, doing about 1 generation per 2 minutes. I started from BASIC version doing about 1 generation per 3 seconds. The main algo optimization was to have a list of active cells and only processing directly adjacent cells, and ignoring the majority of unpopulated white space. The next optimization was moving cells processing to assembly (the 383 bytes module). It was also toroid-shaped field, exactly like in your implementation. We had a lot of fun watching all those oscillators and guns producing gliders.

Is Information a Fundamental Force of Physics?

https://www.youtube.com/watch?v=WqYRMmlZmhM
1•BetterWhisper•5m ago•0 comments

GrapheneOS Is a Cult (German)

https://www.onli-blogging.de/2546/GrapheneOS-ist-ein-gefaehrlicher-Kult.html
1•doener•7m ago•0 comments

A Date in 2025 (2018) [video]

https://www.youtube.com/watch?v=NZ8G3e3Cgl4
1•KolmogorovComp•8m ago•0 comments

Claude Finds God

https://asteriskmag.com/issues/11/claude-finds-god
1•CharlesW•9m ago•0 comments

Cost, Privacy, Security Concerns Turn Customers Away from Subscription Services

https://www.jalopnik.com/1927772/cost-privacy-security-concerns-automaker-subscription-services-survey/
1•rntn•12m ago•0 comments

Anukari has macros, and a preset API

https://anukari.com/blog/devlog/finally-anukari-has-macros
1•humbledrone•13m ago•0 comments

I watched 46,391 TikToks – so I built TikTok Wrapped to track it

https://www.tiktokwrapped.world/
1•vusaldev•15m ago•1 comments

Britain's MPs charge VPNs to expenses as minister urges caution

https://www.politico.eu/article/britain-mps-charge-vpns-expenses-minister-caution-tech-jonathan-reynolds-data/
5•Jigsy•18m ago•1 comments

Sarah Paine's framework for a good historical argument

https://www.youtube.com/watch?v=teAL1Qo_6BY
1•gsf_emergency_2•19m ago•0 comments

Apache Fineract

https://fineract.apache.org/
1•planetjones•20m ago•0 comments

Tape Speed Keyboard [video]

https://www.youtube.com/watch?v=adxlFwIGTfc
1•mkaic•24m ago•0 comments

Hibernator 'superpowers' may lie hidden in human DNA

https://attheu.utah.edu/health-medicine/hibernator-superpowers-may-lie-hidden-in-human-dna/
4•geox•29m ago•0 comments

People Reimagining 'Spirited Away' with Puppets (2024)

https://www.nytimes.com/2024/08/05/t-magazine/spirited-away-puppets-hayao-miyazaki-john-caird.html
1•zeristor•31m ago•1 comments

Using LLM Embeddings to Normalize User Data

https://matthodges.com/posts/2025-08-02-language-model-embeddings-campaign-donors/
2•m-hodges•34m ago•0 comments

US labor market adds 73,000 jobs in July while unemployment rate hits 4.2%

https://www.bloomberg.com/news/live-blog/2025-08-01/us-employment-report-for-july
1•paulpauper•34m ago•0 comments

Show HN: AI Enabled SQLite CLI

https://www.npmjs.com/package/sqlite3-ai-cli?activeTab=readme
1•theahura•35m ago•0 comments

If You're So Smart, Why Are You So Poor?

https://terminaldrift.substack.com/p/if-youre-so-smart-why-are-you-so
9•paulpauper•36m ago•2 comments

Ask HN: What will happen to Apple Silicon devices once Apple ends updates?

2•yu3zhou4•36m ago•6 comments

WiFi signals could be used to uniquely identify individuals

https://www.techradar.com/pro/wi-fi-signals-could-be-used-to-uniquely-identify-individuals-whofi-complements-biometrics-prompting-privacy-fears
1•anigbrowl•36m ago•0 comments

Steam Survey for July Shows Linux Use Approaching 3%

https://www.phoronix.com/news/Steam-Survey-July-2025
2•naves•40m ago•0 comments

B-Splines and Fourier-Best Friends for Spatial-Temporal Video Super-Resolution

https://arxiv.org/abs/2501.11043
2•gnabgib•44m ago•0 comments

MaskLLM for LLM API Key Rotation

1•meerc•45m ago•0 comments

Researchers try new ways of preserving more hearts for transplants

https://medicalxpress.com/news/2025-07-ways-hearts-transplants.html
1•PaulHoule•49m ago•0 comments

Farewell Shunsaku Tamiya: The Man Who Gave Us the Best Things to Build

https://hackaday.com/2025/07/31/farewell-shunsaku-tamiya-the-man-who-gave-us-the-best-things-to-build/
1•toomuchtodo•49m ago•0 comments

Radix UI – open-source component library

https://www.radix-ui.com/
1•gjvc•49m ago•0 comments

The $21.7B Blunder: Analyzing the Waste Generated by Doge [pdf]

https://www.washingtonpost.com/documents/b256b202-ff01-48dc-a2d1-80b0e43fa87a.pdf
5•cratermoon•51m ago•1 comments

J'AI créé Nova, un assistant vocal open-source sans collecte de données

https://github.com/N0vaAssistant/Nova_Assistant
1•NovaAssistant•52m ago•1 comments

Ask HN: Is fast.ai's "Deep Learning for Coders" still relevant in 2025?

4•hedgehog0•53m ago•0 comments

My Empathy Is Rarely Kind

https://www.lesswrong.com/posts/xPrL2xF9iYWpPmu6B/my-empathy-is-rarely-kind
1•arrowsmith•55m ago•0 comments

Creator of the Long Arc

https://thelongarc.global/
1•mmkchughtai•58m ago•1 comments