frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Strange Attractors

https://blog.shashanktomar.com/posts/strange-attractors
259•shashanktomar•6h ago
I went down the rabbit hole on a side project and ended up building this: Strange Attractors(https://blog.shashanktomar.com/posts/strange-attractors). It’s built with three.js.

Working on it reminded me of the little "maths for fun" exercises I used to do while learning programming in early days. Just trying things out, getting fascinated and geeky, and being surprised by the results. I spent way too much time on this, but it was extreme fun.

My favorite part: someone pointed me to the Simone Attractor on Threads. It is a 2D attractor and I asked GPT to extrapolate it to 3D, not sure if it’s mathematically correct, but it’s the coolest by far. I have left all the params configurable, so give it a try. I called it Simone (Maybe).

If you like math-art experiments, check it out. Would love feedback, especially from folks who know more about the math side.

Comments

Grosvenor•5h ago
This is so cool. Back in highschool during the Jurassic age I used ti play with attractors a lot. Unfortunately on a 486 it took 20-30 minutes to draw one even at low resolution. This renders in realtime and in 3D. Great work!

Still they've had a strong impact in how I see systems - orbits, instability, etc.

anjel•3h ago
Fractint4life https://fractint.org/
cs702•5h ago
Beautiful.

Thank you for sharing this on HN.

JKCalhoun•5h ago
"IMSAI guy" created a Lorenz attractor circuit [1]. He talks more about it later [2]. I remember seeing the Lorenz attractor on some TV show about chaos.

[1] https://youtu.be/0wD2WbG7loU

[2] https://youtu.be/c14aXxlSxZk

Loughla•5h ago
I got really into fractals and attractors when I was also really into mushrooms, lsd, and dmt during my graduate studies.

It actually shaped my post doc work quite a bit and shifted my focus from individual classroom education to strategic systems analysis of entire university and k-12 institutions. Somewhere along the way, a switch flipped and allowed me to view complicated hierarchies like college systems as 2-d fractal geometry in my mind. I can't really explain it, but now that I consult, I can feel when a department is broken before I can prove it with data. It's like they don't fit or reflect the main structure of the institution.

I would not suggest taking this route though. Maybe just take some graduate courses or something.

Fun fact, though, defending your dissertation to a room of around 200 people while still feeling the effects of dmt is a really good way to induce a panic attack. Source: it's me. I'm source material.

orzig•5h ago
Hobbyists hacking around and sharing their art, best part of the Internet!
hshdhdhehd•5h ago
Very pleasant to watch!
adtac•5h ago
too many of these vaguely look like what galaxies look like from earth

e.g. https://i.imgur.com/ZjiBF8f.png

just a coincidence?

layer8•4h ago
Galaxies don't really look like that.
HeliumHydride•5h ago
How can I code my own attractor?
dmbche•4h ago
Pick one and implement it. Find the equations to the lorentz attractor and use those if you need a suggestion.
vis_lover•5h ago
Super cool visulitations.

Side note: Did anyone else know it was AI before reading the post? Mathematicians would be argent enough to assume the name was enough, displaying the algo when clicking the name was the give away.

shashanktomar•5h ago
Author here, I have tried labeling the "More Information" sections as "AI Generated" where it was directly summarized from the wikipedia article, otherwise most of the post is written by me. I have taken help from AI to fact check and refine few things here and there, but boundaries are so blur now that am not sure if i should label the full post as AI Assisted.
cableclasper•4h ago
Visualizations like this truly highlight how much there is to be gained from viewing the 3D phase space, but also how much richness we miss in >3D!

(I wonder if there are slick ways to visualise the >3D case. Like, we can view 3D cross sections surely.

Or maybe could we follow a Lagrangian particle and have it change colour according to the D (or combination of D) it is traversing? And do this for lots of particles? And plot their distributions to get a feeling for how much of phase space is being traversed?)

This visualization also reminds me of the early debates in the history of statistical mechanics: How Boltzmann, Gibbs, Ehrenfest, Loschmidt and that entire conference of Geniuses must have all grappled with phase space and how macroscopic systems reach equilibrium.

Great work Shashank!

flatline•1h ago
The conclusion I’ve come to from works like Flatland, 4D toys, etc., is that we simply don’t have the neural circuitry to grasp anything beyond three dimensions. We can reason about them, we can make inferences about the whole from partial understanding, but we cannot truly grasp more than three, or perhaps only for an instant of forced conceptualization using heuristics like you mentioned. Even three is a stretch, our minds have adapted to build a three dimensional realm from something like a 2.5 dimensional field of combined visual, tactile, and auditory stimuli. I suspect 3D reasoning itself is a huge adaptive trait compared to most other animals.
slicktux•4h ago
Lorenz Equations and Chua Circuits probed with an analog oscilloscope is mesmerizing! Great videos of a Chua Circuit being probed with an analog scope… Also, plugging the circuit to a speaker via AUX port gives white noise ;)
pkspks•4h ago
This is absolutely stunning. Wonderful some function of the state of a point can give it colour.
shashanktomar•4h ago
Author here, there is a setting to pick colour mode. I implemented it after similar suggestion by someone on twitter. Give it a try.
pkspks•1h ago
It already supports colour!
jerf•3h ago
"not sure if it’s mathematically correct,"

There isn't always "a" correct extension into higher dimensions. There may be many, there may be none, and either way something "close enough" may well be interesting in its own right.

If you'd like something concrete to poke at you can try searching around for people's adventures in trying to make a 3D Mandelbrot. I've seen a couple of good write-ups on those adventures. I don't know if anyone has ever landed on a "correct" solution, it's been years since I last looked, but certainly some very interesting possibilities have been found.

Xophmeister•3h ago
Neat :) When I was a teenager, some 25+ years ago, I wrote a chaotic attractor visualiser like this — but only in 2D — and it occurred to me, “What if instead of visualising it, I rendered it to audio?” I don’t remember the details: I think frequency was correlated with polar angle and amplitude to magnitude. It forced me to learn how to write WAV format — which was my first introduction to endianness — but the result wasn’t completely inaudible! A bit like the sound effects for computers in old sci-fi movies; random(ish) but not discordant beeps and boops!
gausswho•2h ago
Along these lines there are at least two modules that I know of in Eurorack focused on strange attractors, and they're both a LOT of fun adding this kind of unpredictable-but-cyclical movement to your sounds:

- Hypster by Nonlinear Circuits (https://modulargrid.net/e/nonlinearcircuits-ian-fritz-s-hyps...)

- Orbit 3 by Joranalogue (https://modulargrid.net/e/joranalogue-audio-design-orbit-3)

metacortexx•2h ago
Love seeing projects like this, just pure curiosity, creativity, and fun
Figs•2h ago
The demo makes some nice spirals on the ends. They look like galaxies with the rendering.

It reminded me of one of my (cranky) musings from back in college about galaxy formation and whether they were more like tossed pizzas (i.e. spreading out) than like whirlpools getting sucked in.

aniijbod•2h ago
I don't care about the math, the computation, the physics. This is just by far the most beautiful thing(s) I have ever seen.
neilpmas•2h ago
Well that's my productivity blown for the day. Love it.
srvmshr•1h ago
Coincidentally enough, I dug out my 11th grade CS project on generating fractals from 2002 & modernized it using SFML graphics lib just this week.

https://github.com/gradientwolf/fractals_SFML

Your post gives me so much joy. These tiny little things take me back to teenage years, simpler times & when interests were different. (I put a little note as "why" in my GH repo readme)

navigate8310•1h ago
The way you explained the mathematical theory was very intuitive and refreshing. It would be every interesting to read if you could also write more on other topics of your interest.
tmshapland•56m ago
Beautiful. Reminds me of starling murmurations. https://www.youtube.com/watch?v=V4f_1_r80RY
felipelalli•47m ago
I have no idea what is this, but it's beautiful.
imoverclocked•30m ago
Reminds me of the xscreensaver, “strange” :)
sunjester•27m ago
reminds me of phong. https://phong.com/
Sreenington•17m ago
this is so cool! would be awesome if you can add params to mess with a and b value so we can "find" our own strange attractor patterns. maybe a free mode?
shashanktomar•10m ago
Author here, it already supports that for the best attractors. On phone there is a menubar at bottom, on desktop you can’t miss it.

Show HN: Strange Attractors

https://blog.shashanktomar.com/posts/strange-attractors
260•shashanktomar•6h ago•34 comments

S.A.R.C.A.S.M: Slightly Annoying Rubik's Cube Automatic Solving Machine

https://github.com/vindar/SARCASM
102•chris_overseas•6h ago•21 comments

Futurelock: A subtle risk in async Rust

https://rfd.shared.oxide.computer/rfd/0609
293•bcantrill•12h ago•130 comments

Why should I care what color the bikeshed is? (1999)

https://www.bikeshed.com/
30•program•1w ago•27 comments

Introducing architecture variants

https://discourse.ubuntu.com/t/introducing-architecture-variants-amd64v3-now-available-in-ubuntu-...
186•jnsgruk•1d ago•119 comments

Addiction Markets

https://www.thebignewsletter.com/p/addiction-markets-abolish-corporate
218•toomuchtodo•11h ago•209 comments

Viagrid – PCB template for rapid PCB prototyping with factory-made vias [video]

https://www.youtube.com/watch?v=A_IUIyyqw0M
84•surprisetalk•4d ago•27 comments

The profitable startup

https://linear.app/now/the-profitable-startup
51•doppp•2h ago•16 comments

Intent to Deprecate and Remove XSLT

https://groups.google.com/a/chromium.org/g/blink-dev/c/CxL4gYZeSJA/m/yNs4EsD5AQAJ
14•CharlesW•1h ago•3 comments

My Impressions of the MacBook Pro M4

https://michael.stapelberg.ch/posts/2025-10-31-macbook-pro-m4-impressions/
153•secure•19h ago•210 comments

Active listening: the Swiss Army Knife of communication

https://togetherlondon.com/insights/active-listening-swiss-army-knife
39•lucidplot•4d ago•16 comments

How I stopped worrying and started loving the Assembly

https://medium.com/@jonas.eschenburg/how-i-stopped-worrying-and-started-loving-the-assembly-4fd00...
5•indyjo•1w ago•1 comments

Hacking India's largest automaker: Tata Motors

https://eaton-works.com/2025/10/28/tata-motors-hack/
166•EatonZ•3d ago•52 comments

Use DuckDB-WASM to query TB of data in browser

https://lil.law.harvard.edu/blog/2025/10/24/rethinking-data-discovery-for-libraries-and-digital-h...
161•mlissner•12h ago•42 comments

How We Found 7 TiB of Memory Just Sitting Around

https://render.com/blog/how-we-found-7-tib-of-memory-just-sitting-around
127•anurag•1d ago•29 comments

A theoretical way to circumvent Android developer verification

https://enaix.github.io/2025/10/30/developer-verification.html
106•sleirsgoevy•9h ago•72 comments

Value-pool based caching for Java applications

https://github.com/malandrakisgeo/mnemosyne
7•plethon•1w ago•0 comments

Perfetto: Swiss army knife for Linux client tracing

https://lalitm.com/perfetto-swiss-army-knife/
106•todsacerdoti•17h ago•14 comments

Kerkship St. Jozef, Antwerp – WWII German Concrete Tanker

https://thecretefleet.com/blog/f/kerkship-st-jozef-antwerp-%E2%80%93-wwii-german-concrete-tanker
16•surprisetalk•1w ago•1 comments

Fungus: The Befunge CPU(2015)

https://www.bedroomlan.org/hardware/fungus/
10•onestay42•3h ago•1 comments

New analog chip that is 1k times faster than high-end Nvidia GPUs

https://www.livescience.com/technology/computing/china-solves-century-old-problem-with-new-analog...
14•mrbluecoat•1h ago•5 comments

Nix Derivation Madness

https://fzakaria.com/2025/10/29/nix-derivation-madness
157•birdculture•15h ago•57 comments

Signs of introspection in large language models

https://www.anthropic.com/research/introspection
122•themgt•1d ago•64 comments

Show HN: Pipelex – Declarative language for repeatable AI workflows

https://github.com/Pipelex/pipelex
83•lchoquel•3d ago•15 comments

The cryptography behind electronic passports

https://blog.trailofbits.com/2025/10/31/the-cryptography-behind-electronic-passports/
148•tatersolid•18h ago•92 comments

Sustainable memristors from shiitake mycelium for high-frequency bioelectronics

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0328965
111•PaulHoule•16h ago•55 comments

Photographing the rare brown hyena stalking a diamond mining ghost town

https://www.bbc.com/future/article/20251014-the-rare-hyena-stalking-a-diamond-mining-ghost-town
20•1659447091•6h ago•2 comments

AI scrapers request commented scripts

https://cryptography.dog/blog/AI-scrapers-request-commented-scripts/
197•ColinWright•13h ago•150 comments

Pangolin (YC S25) is hiring a full stack software engineer (open-source)

https://docs.pangolin.net/careers/software-engineer-full-stack
1•miloschwartz•12h ago

Leaker reveals which Pixels are vulnerable to Cellebrite phone hacking

https://arstechnica.com/gadgets/2025/10/leaker-reveals-which-pixels-are-vulnerable-to-cellebrite-...
228•akyuu•1d ago•155 comments