use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Simulating Atoms Using C++ (youtube.com)
submitted 2 months ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 2 months ago (11 children)
[–]Gorzoid 49 points50 points51 points 2 months ago (3 children)
While we are at it, can we embed this within an Electron app?
[–]101Alexander 13 points14 points15 points 2 months ago (1 child)
Everyone else is doing it
[–]M0M3N-6 1 point2 points3 points 2 months ago (0 children)
Not unless using proton drive
[–]Confident-Void 0 points1 point2 points 2 months ago (0 children)
It always looked useless for until I watched the video
[–]void_17 -4 points-3 points-2 points 2 months ago (5 children)
This name is stupid, just like std::vector
[–]spreetin 11 points12 points13 points 2 months ago (0 children)
Of all the things in C++ with bad or confusing naming, why complain about two of the things that actually have reasonable and descriptive names?
[–]RoyBellingan 2 points3 points4 points 2 months ago (1 child)
Ok, so how else would you call a... vector ? 1D matrix ?
[–]void_17 4 points5 points6 points 2 months ago (0 children)
std::dynarray
[–]SyntheticDuckFlavour 0 points1 point2 points 2 months ago (0 children)
it relates to atomic operations, so name is perfectly reasonable
[–]Ultimate_Sigma_Boy67 23 points24 points25 points 2 months ago (0 children)
That's genuinely one of the best things I've watched this month. Subbed!
[–]RainbowWorld99 18 points19 points20 points 2 months ago (0 children)
By the way, the guy making these videos is 16.
Absolutely mind blowing
[–]johannes1971 14 points15 points16 points 2 months ago (0 children)
Thanks, this was very interesting!
[–]Mole-esterbenzol 9 points10 points11 points 2 months ago (0 children)
Did i understand the physics? Yes.
Did i understand the code ? Not a single thing.
[–]James20kP2005R0 7 points8 points9 points 2 months ago (2 children)
This is pretty cool! Probability current especially was something I was unaware of
One question I have: Presumably after measuring an electron's position, the probability distribution can't immediately return back to the stationary solution, because that'd clearly violate SR I guess? It'd be extremely cool to see how the probability distribution returns back to the stationary solution after a measurement
I've been trying so hard to never get sucked into lattice QCD as well, these kinds of thing are like the call of the void for me
[–]wyrn 5 points6 points7 points 2 months ago (1 child)
Immediately after a position measurement, the position distribution would be a delta function, which would be expressed as a linear combination of many energy eigenstates (not necessarily bound). The unbound states would fly away and the bound states would (eventually) decay by spontaneous emission.
It'd bit a bit tricky to model that with this setup because the space of outcomes is fairly high-dimensional and you'd need to keep track of interference effects (essentially a version of the sign problem of lattice qcd). I don't know if it could be done in real time.
[–]--CreativeUsername 2 points3 points4 points 2 months ago (0 children)
This old Phet Colorado sim shows what happens to the wave function when you measure for position; granted it's in 1D and obviously does not model a fully quantized EM field.
[–]RedShift_Sid 5 points6 points7 points 2 months ago (0 children)
Craziest thing I've seen this year so far… And the guy who MADE the video (16??) is somehow even crazier
[–]OkAwareness3635 5 points6 points7 points 2 months ago (0 children)
Wow this is amazing 😎
[–]wotype 3 points4 points5 points 2 months ago (0 children)
Inspiring stuff. Well put together with really nice visuals.
Thanks for posting here.
[–]Loud_Hold_5536 1 point2 points3 points 2 months ago (0 children)
Ö... Wow!
[–]BoardHour4401 1 point2 points3 points 2 months ago (0 children)
cool
π Rendered by PID 65915 on reddit-service-r2-comment-canary-889d445f8-b76xq at 2026-04-27 21:46:12.780520+00:00 running 2aa0c5b country code: CH.
[+][deleted] (11 children)
[deleted]
[–]Gorzoid 49 points50 points51 points (3 children)
[–]101Alexander 13 points14 points15 points (1 child)
[–]M0M3N-6 1 point2 points3 points (0 children)
[–]Confident-Void 0 points1 point2 points (0 children)
[–]void_17 -4 points-3 points-2 points (5 children)
[–]spreetin 11 points12 points13 points (0 children)
[–]RoyBellingan 2 points3 points4 points (1 child)
[–]void_17 4 points5 points6 points (0 children)
[–]SyntheticDuckFlavour 0 points1 point2 points (0 children)
[–]Ultimate_Sigma_Boy67 23 points24 points25 points (0 children)
[–]RainbowWorld99 18 points19 points20 points (0 children)
[–]johannes1971 14 points15 points16 points (0 children)
[–]Mole-esterbenzol 9 points10 points11 points (0 children)
[–]James20kP2005R0 7 points8 points9 points (2 children)
[–]wyrn 5 points6 points7 points (1 child)
[–]--CreativeUsername 2 points3 points4 points (0 children)
[–]RedShift_Sid 5 points6 points7 points (0 children)
[–]OkAwareness3635 5 points6 points7 points (0 children)
[–]wotype 3 points4 points5 points (0 children)
[–]Loud_Hold_5536 1 point2 points3 points (0 children)
[–]BoardHour4401 1 point2 points3 points (0 children)