2D Coulomb Gas Simulator

Learning and science

physics simulation

SHOW HN2026

44points
9comments
#1,324of 4,366 in 2026
Top 31%of 2026 by points

How HN took it

RoastedHalf or more of the comments are critical

1 positive, 1 neutral or asking, 1 mixed, 3 critical, out of 6 comments about the project. Thread score -0.14.

Performance: 0 for, 3 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fun to play with and mesmerizing visuals

    From 2 comments
    • Awesome! Beautiful work. Mesmerizing, even
      bizzyskillet on HN
    • Note 1: I had to go to the middle and reduce the number of particles to 1000 to be able to run it in my phone. Note 2: In this case, 2D means that the force is proportional to…
      gus_massa on HN

Objections

  • Runs poorly on phones and high particle or steps settings can stall mobile browsers

    From 3 comments
    • Note 1: I had to go to the middle and reduce the number of particles to 1000 to be able to run it in my phone. Note 2: In this case, 2D means that the force is proportional to…
      gus_massa on HN
    • Warning: if you increase the steps per frame it will break your phone. At least with my iPhone and Safari it stalls the entire phone.
      zeitgeistcowboy on HN
    • Yes, the web page persists through reboots. You have to painfully force quit Safari by going through the motions of the gestures, wait for the phone to respond, and then quit…
      xattt on HN
  • Higher-power potentials like z^20 cause numerical instability with NaNs

    From 1 comment
    • I got better results with N=100, and the time and frames bars at the top in the middle. It reach the equilibrium in ~5 seconds, so it's easy to test and compare the different…
      gus_massa on HN

Requests

  • Option to switch between 2D and 3D force laws for comparison

    From 1 comment
    • Note 1: I had to go to the middle and reduce the number of particles to 1000 to be able to run it in my phone. Note 2: In this case, 2D means that the force is proportional to…
      gus_massa on HN
  • Better defaults for phones

    From 1 comment
    • 1: Sorry about that, the default 20,000 is to make it look nice on computers but I should probably drop it a bit for phones, that's reasonable. 2: Yeah this part is important and…
      swesnow on HN

Questions

  • Whether a 3D potential gives uniform density like the Ginibre potential

    From 2 comments
    • 1: Sorry about that, the default 20,000 is to make it look nice on computers but I should probably drop it a bit for phones, that's reasonable. 2: Yeah this part is important and…
      swesnow on HN
    • I got better results with N=100, and the time and frames bars at the top in the middle. It reach the equilibrium in ~5 seconds, so it's easy to test and compare the different…
      gus_massa on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/47039044)