frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

30 minutes with a stranger

https://pudding.cool/2025/06/hello-stranger/
434•MaxLeiter•5h ago•134 comments

Le Chat. Custom MCP Connectors. Memories

https://mistral.ai/news/le-chat-mcp-connectors-memories
17•Anon84•24m ago•1 comments

Use Bayes rule to mechanically solve probability riddles

https://cloud.disroot.org/s/Ec4xTMFDteTrFio
9•zaik•3d ago•0 comments

The Color of the Future: A history of blue

https://www.hopefulmons.com/p/the-color-of-the-future
36•prismatic•2h ago•5 comments

Polars Cloud and Distributed Polars now available

https://pola.rs/posts/polars-cloud-launch/
53•jonbaer•8h ago•30 comments

I Should Have Loved Electrical Engineering

https://blog.tdhttt.com/post/love-ee/
16•tdhttt•3d ago•12 comments

Show HN: A roguelike game that runs inside Notepad++

https://github.com/thelowsunoverthemoon/NeuroPriest
93•lowsun•3d ago•10 comments

Étoilé – desktop built on GNUStep

http://etoileos.com/
152•pabs3•8h ago•57 comments

Claude Code: Now in Beta in Zed

https://zed.dev/blog/claude-code-via-acp
606•meetpateltech•20h ago•384 comments

Neovim Pack

https://neovim.io/doc/user/pack.html#vim.pack
190•k2enemy•11h ago•108 comments

Liquid Glass? That's what your M4 CPU is for

https://idiallo.com/byte-size/apple-liquid-glass
46•luismedel•1h ago•51 comments

Reverse engineering Solos smart glasses

https://jfloren.net/b/2025/8/28/0
98•floren•3d ago•14 comments

Minesweeper thermodynamics

https://oscarcunningham.com/792/minesweeper-thermodynamics/
128•robinhouston•2d ago•34 comments

The Bitter Lesson Is Misunderstood

https://obviouslywrong.substack.com/p/the-bitter-lesson-is-misunderstood
283•JnBrymn•6d ago•172 comments

AR Fluid Simulation Demo

https://danybittel.ch/fluid
93•danybittel•3d ago•19 comments

Melvyn Bragg steps down from presenting In Our Time

https://www.bbc.co.uk/mediacentre/2025/melvyn-bragg-decides-to-step-down-from-presenting-in-our-t...
154•aways•5h ago•92 comments

Nuclear: Desktop music player focused on streaming from free sources

https://github.com/nukeop/nuclear
336•indigodaddy•19h ago•211 comments

A Rebel Writer's First Revolt

https://www.vulture.com/article/arundhati-roy-mother-mary-comes-to-me-review.html
7•lermontov•1d ago•1 comments

Google was down in eastern EU and Turkey

https://www.novinite.com/articles/234225/Google+Down+in+Eastern+Europe+%28UPDATED%29
65•nurettin•3h ago•16 comments

William Wordsworth's letter: "The Law of Copyright" (1838)

https://gutenberg.org/cache/epub/76806/pg76806-images.html
28•petethomas•6h ago•15 comments

Hledger 1.50

https://github.com/simonmichael/hledger/releases/tag/1.50
20•olexsmir•1h ago•1 comments

New knot theory discovery overturns long-held mathematical assumption

https://www.scientificamerican.com/article/new-knot-theory-discovery-overturns-long-held-mathemat...
110•baruchel•1d ago•19 comments

Half an year on Alpine: just musl aside

https://blog.jutty.dev/posts/half-an-year-on-alpine/
34•zdw•2d ago•12 comments

Writing a C compiler in 500 lines of Python (2023)

https://vgel.me/posts/c500/
208•ofou•19h ago•61 comments

Understanding Transformers Using a Minimal Example

https://rti.github.io/gptvis/
221•rttti•19h ago•14 comments

Eels are fish

https://eocampaign1.com/web-version?p=495827fa-8295-11f0-8687-8f5da38390bd&pt=campaign&t=17562270...
137•speckx•21h ago•136 comments

What is it like to be a bat?

https://en.wikipedia.org/wiki/What_Is_It_Like_to_Be_a_Bat%3F
160•adityaathalye•17h ago•218 comments

ReMarkable Paper Pro Move

https://remarkable.com/products/remarkable-paper/pro-move
240•ksec•11h ago•286 comments

Say Bye with JavaScript Beacon

https://hemath.dev/blog/say-bye-with-javascript-beacon/
22•moebrowne•3d ago•14 comments

Speeding up PyTorch inference on Apple devices with AI-generated Metal kernels

https://gimletlabs.ai/blog/ai-generated-metal-kernels
171•nserrino•18h ago•26 comments
Open in hackernews

Eternal Struggle

https://yoavg.github.io/eternal/
658•yurivish•3d ago
https://github.com/yoavg/yoavg.github.io/tree/main/eternal

Comments

jama211•3d ago
I’m really keen to see what this looks like after significant time but I’m not going to leave it open on my phone for ages just to find out haha. Clever idea!
personalcompute•3d ago
Here is one sample taken after 5 minutes.

https://d6f9e5179057.s3.us-west-2.amazonaws.com/Screenshot%2...

cmertayak•3d ago
I desperately needed that :D
fxwin•3d ago
https://i.imgur.com/cf1wOwL.png after a few minutes of running it at 240 frames per second :D
jama211•2d ago
Thank you, interesting!
navigate8310•3d ago
I'm curious about using an S3 endpoint and that too in public. Aren't you worried if someone hammers your URL and drain credits?
jama211•2d ago
Thank you for this!
xav_authentique•3d ago
You can execute this in the devtools console:

data.whiteBall.v.x = 5; data.whiteBall.v.y = 5;

data.blackBall.v.y = 5; data.blackBall.v.x = 5;

cdrini•3d ago
Wow! Careful Icarus, going too fast makes it go kind of wild and started freezing the site :P

data.whiteBall.v.x = data.whiteBall.v.y = data.blackBall.v.y = data.blackBall.v.x = 10;

obventio56•3d ago
Also frameRate() with 120 or higher will make it go a bit faster. But it seems like there is a limit. I'm not familiar with p5.
panarchy•3d ago
$10 on black
SkipperCat•3d ago
An excellent piece of artwork! Really captures the meaning of Yin Yang, at least to me.
MarcelOlsz•3d ago
Cool now I'm not going to get anything done. Thanks OP. PLEASE add a speed control so I can speed it up to it's logical conclusion and move on with my day.
riku_iki•3d ago
you can keep tab open and check in few weeks.
cmertayak•3d ago
Please let us know what happens.
riku_iki•3d ago
Its interesting that my is converging into straight line dividing circle half/half, unlike other examples in the comments.
fxwin•3d ago
you can run frameRate(x) in your browser's console to speed it up a bit - might be limited by your monitor's refresh rate though
romaaeterna•3d ago
An edge point's probability of being hit should be proportional to the length of every path leading to that edge point. An area closer to many short black paths and many long white paths will show black expansion (and vice-versa). So I suspect that any variation of the central line from a straight bisection of the circle should get hammered out over time.
alwa•3d ago
I too am impatient to learn the logical conclusion of “eternal struggle.”
MarcelOlsz•3d ago
It can't be that eternal.
barbazoo•3d ago
I laughed really hard at this :)
hk__2•3d ago
Source code: https://github.com/yoavg/yoavg.github.io/tree/main/eternal
dang•3d ago
We'll put that link in the top text as well. Thanks!
Insanity•3d ago
I guess it’s supposed to start on mouse move (based on skimming the source code).

On a phone it doesn’t seem to trigger unless I changed the background so I spent a minute just staring at the symbol without anything happening lol :D

chunkles•3d ago
If you tap on the ying-yang it starts.
bqmjjx0kac•3d ago
Hmm, not on iOS Safari.
Insanity•3d ago
Yup that’s the browser I am using as well.
throwaway314155•3d ago
change the background
Insanity•3d ago
Yup.. read my original comment :)
MrJohz•3d ago
The cool thing about this is that it's self-balancing - if either side gets larger than the other due to random chance, the ball in that side will have more space to bounce in, and therefore bounce less often, slowing its growth. Meanwhile, the ball in the smaller side will bounce more often in its smaller space, making up the ground.
SonOfLilit•3d ago
There are stableish equilibria that are not 50-50, e.g. one color having a donut around the other color that has a donut hole.
istjohn•3d ago
Yes, because it's not actually area that balances out but mean time between bounce against the black/white boundary.
n2d4•3d ago
Now the question remains, are there stableish equilibria that are 50/50? Splitting it into two half-circles sounds like an equilibrium at first glance, but I'm not convinced it is, as only a tiny bit of random luck seems to make it become a "horseshoe" pattern instead.

(That assumes that the simulation is randomized of course, which doesn't seem to be the case for the one in the link posted here.)

aoeusnth1•3d ago
That's not a stable equilibrium if the hits have a large enough effect with respect to the movement of the balls. The internal circle will create disturbances against both sides of the inner circle, but the outer ball will have to travel a longer distance to move from one side to the other to counter them.
Animats•3d ago
It's amazing how stable it is. It's been running in a background tab for a hour now, and it still has the yin/yang look.
Liron•3d ago
I think the balls stop when the tab isn't focused
dotancohen•3d ago
That's in another two months.
poopsmithe•3d ago
Yeah, definitely run it in the foreground. Mine became completely black in about 3 hours.
Animats•2d ago
Me too. Does black always win? If so, why?
amelius•3d ago
But you can say the same thing about a circle with a straight line as separator.
amelius•3d ago
It seems there is a parallel with physics: two pressurized chambers with equal pressure and a membrane separating them. The odd thing here is that there is only one molecule in each of them.
nandomrumber•3d ago
All models are wrong…
d4rkn0d3z•3d ago
But some are useful.
makepanic•3d ago
You can press P to toggle the edge point visibility.
swayvil•3d ago
How on phone?
sabellito•3d ago
Got a horseshoe shape running at 50x for 60 seconds:

https://imgur.com/a/b6b2IDx

andoando•3d ago
Same, if one of them punches through in one place, that hole shapes the angle of the bounces and reinforces itself and the other side fills in around the hole.
swayvil•3d ago
It's cool.

It would be better if there was only 1 kind of edge instead of 2.

I refer to the broken edge and the circle edge.

hlava•3d ago
Are there any initial conditions that converge to a line?
dvh•3d ago
I see that you haven't seen alphaPhoenix' video about reverse game of life. I highly recommend it.
cluckindan•3d ago
Now that we have the simulation, what is the closed form solution?
mensetmanusman•3d ago
What happens at the limit of infinity!
blue_light_man•3d ago
You are already at limit of infinity.
smusamashah•3d ago
Something similar was shared before, but it wasn't this shape, just plain old rectangle style.
federico-peconi•3d ago
so simple yet so deep!

anyone willing to provide a math-proof like argument on why the shape seem to stick to the YY curve indefinitely as the "eternal" name suggests?

Should it always be this way or is there at least one bad initial bouncing configuration for which chaos can take place and we loose the YY curve?

Does not seem that obvious to me.

geor9e•3d ago
It doesn't. Seems to be like a lava lamp until one ball breaks thru. See the other comment with the console command to edit the speed.
stephenlf•3d ago
I think it’s just random chance. I haven’t run any simulations or anything, but I suspect the YY curve is no more stable than any simple 50-50 split. I bet over large timespans the YY curve straightens out just from entropy.
crazygringo•3d ago
It doesn't. It quickly just becomes a random curve after a few minutes at normal speed if you leave it open.

For obvious reasons it tends to stay half white half black (if one half gets smaller its ball will bounce faster) but the shape and its orientation varies randomly.

adtac•3d ago
wow not even yin-yang can escape entropy or the heat death of the universe
thejohnconway•3d ago
People are responding to you saying that it doesn't retain the yin-yang shape, but I've been watching for a while on 64x speed, and the yin-yang shape is one it repeatedly returns to.

I'm not even a dimwitted individual with an advanced degree in hyperbolic topology, but I can see what's happening intuitively. When one of the balls makes an indent large enough, that indent focusses the bounce from the circular edge which reinforces the indent further. This leads to a semi-stable shape where one of the balls is bouncing around a horseshoe and the other in a tunnel. However, if one side of the horseshoe becomes pinched small enough that ball is less likely to enter, that side of get eliminated, and you have a yin-yang.

More simply, the round edge seems to encourage tunnelling, and any asymmetry in the tunnelling is yin-yang-ish.

phreeza•2d ago
Off the top of my head, there is no mechanism for tension, so it would basically approach a random curve with equal white and black areas over time, but in addition there is the point reassignment function which acts as a kind of low pass filter so you get something that looks like a sinusoid?
axblount•3d ago
Does some interesting things if you up the ball speed to 20. The boundary breaks down.

  data.blackBall.v = data.whiteBall.v = createVector(0, 20);
cocoto•3d ago
Mine broke even without speeding up things, the black ball is now working together with the white ball.
alyxya•3d ago
I watched it for an hour, and at some point the black ball crossed the boundary onto the black side, so eventually the whole circle became black.
drob518•3d ago
It went to the dark side.
SarahC_•3d ago
The coming of Satan is foretold!
joshdavham•3d ago
Is there any interesting mathematics associated with this system?
amelius•3d ago
What would a 3d version of this look like?
lgas•3d ago
More spherical.
teamworketernal•3d ago
I was cheering on the black circle's tunneling project when they both got caught in a rapid-fire spiral and the black one glitched through to the other side.

https://imgur.com/a/dhCSNmi

volemo•3d ago
The darkness has come upon the world!
camtarn•3d ago
Hah! I was wondering if that was possible.
cocoto•3d ago
Had the exact same bug! Not so rare I think.
panarchy•3d ago
I think it misinterpreted what kind of tunneling you were cheering on.
darkstarsys•3d ago
Cool! It would benefit from better physics though, maybe supersampling the position in time especially when moving fast. Each ball can't push to its edge fully, for instance.
jomarry•3d ago
I cant perfectly cause i dont know how to control. . I dont have any loptop for use to creat it. I use my phone
Lerc•3d ago
I made a game on this principle many years ago. Two players with turn left,turn right, thrust and fire. You can only exist in your own space, shooting at the walls dug holes of your colour.

You had a bunch of critters scattered around the map trying to get home and you had to make paths for them while stopping your opponent from getting their critters home.

AlexCoventry•3d ago
Manicheanimation
francisduvivier•3d ago
Some people here were asking for it so I quickly vibe forked a speed control slider for farming some karma here on Hacker News:

https://francisduvivier.github.io/eternal-struggle-with-spee...

Code: https://github.com/francisduvivier/eternal-struggle-with-spe...

wvbdmp•3d ago
Not to alarm anyone, but when I ran this, the black ball eventually joined the dark side and the whole thing ended up black. I’m sure this doesn’t mean anything for the greater universe.
bilbo-b-baggins•3d ago
Metaphor for American politics.
soneca•3d ago
This happened to me in the original site. I think it happens when the white and black balls collide at the exact same spot of the border.
francisduvivier•3d ago
I think it's just a tunneling bug that happens when the point that make up the wall get messed up a enough. Almost never happens anymore in the v2[1] that I added. This one also allows you to see these points.

[1] https://francisduvivier.github.io/eternal-struggle-with-spee...

anthk•2d ago
Declare it as a Quantum tunneling effect :p
temp0826•3d ago
A little matter-antimatter asymmetry never hurt anyone
Cthulhu_•3d ago
Here we have it, an internet toy demonstrating how this asymmetry occurred. I expect physics papers soon.
temp0826•3d ago
Nobel prizes for everyone!
gedy•3d ago
"I am.. Tetsuo."
raspasov•3d ago
The opposite can also happen (where the whole thing goes white).
nialv7•3d ago
black-white here doesn't mean bad-good. they just mean opposites, different aspects of things. I think wikipedia does a pretty good job explaining it: https://en.wikipedia.org/wiki/Yin_and_yang
kragen•2d ago
https://en.wiktionary.org/wiki/%E9%99%B0#Traditional_Chinese (陰) lists the following definitions:

1. cloudy; overcast; gloomy

2. hidden; secret

3. negative [of electrical charge]

4. the Moon

5. shade; shadow

6. north of a mountain or south of a river

7. back side

8. of the nether world; of ghosts

9. (philosophy) "female" principle; yin in yin-yang

10. in intaglio

11. treacherous; deceitful; cheating

12. (dialectal) to deceive; to trick; to trap

13. (Chinese phonetics, of a syllable) open; not having a consonant coda

14. (Cantonese) bangs; fringe

15. genitalia (of humans)

16. a surname

The one (American) person I know who has 陰 as a surname reports that Chinese people are often shocked at her surname upon meeting her. I think it might be a bit like having the surname Death in English (https://www.ancestry.com/last-name-meaning/death?geo-lang=en...).

That is to say, black kind of does mean "bad" here, in the popular conception anyway. Taoism and Buddhism promote a worldview that sees birth and death, creation and destruction, as neither good nor bad, simply inseparable parts of a larger whole. But most everyday people try to avoid darkness, death, destruction, cloudiness, gloominess, shadows, ghosts, treachery, traps, and so on, most of the time. It's more that Taoism teaches that this attempt is foolish.

Not all the senses are unpopular; plenty of people like human genitalia, the Moon, and intaglio, and the shady side of a river can be nicer when it's hot out.

camillomiller•3d ago
Had the same experience and derived an absolutely unexpected bout of deep existential anxiety from it. Going to touch grass now.
d4rkn0d3z•3d ago
Tunneling.
low_tech_punk•2d ago
maxwell's demon peeking from the dark side
rnotaro•3d ago
This vibed coded implementation is buggy.

If you go to 64.00×, it can't slow back anymore.

ks2048•3d ago
Yes, going to 32x also won't let you back down to 1x. (16x and lower - yes).
francisduvivier•3d ago
Well that's fixed in the V2 with even more vibe coding:

https://francisduvivier.github.io/eternal-struggle-with-spee...

ks2048•3d ago
Watching it at 100x is cool - you can just watch the border wiggle around (at this speed you may as well not even draw the balls).
patates•3d ago
I think next level would be custom shapes, custom starting areas, more colors, ability to change physics (add gravity?), and user interacting (being able to help a fellow struggling entity -a ball in this case-, when it gets worse).

Someone put this into an AI super duper thinking max edition, sprinkle some MCP on top and see what happens lol

nandomrumber•3d ago
Rapidly converging on Conways Game of Life
rottc0dd•3d ago
Nice work.

Still buggy. If you increase the ball size and increase the speed, the whole thing goes black/white in 10 seconds.

hk__2•1d ago
> This vibed coded implementation is buggy.

Isn’t that the main characteristic of vibe-coded code anyway?

maxlin•3d ago
Thanks :D I did really want to know what kind of shape it would tend towards over time.

Running 100x for some moments, the white part got pincer maneuvered by the black and I ended up with the whole circle becoming black. Don't know what to think of that lol

narrator•3d ago
It looks like it converges to a normal distribution curve with white being the area under the curve.
loandbehold•3d ago
Why not other way around?
brcmthrowaway•3d ago
At fast speed I see a trail of the circles. What gives?
patates•3d ago
something about monitor refresh rate perhaps?

https://www.testufo.com

Hendrikto•3d ago
> vibe forked a speed control slider

Very on brand, it does not work correctly. I can turn the speed up but not back down again.

francisduvivier•3d ago
Yes true :D, I kind of just want to blame gpt-5 mini for it and that's one of the bad things about the bad coding, I immediately loose part of the sense of ownership and responsibility. I don't feel like I made it, I just managed it.

Now to be honest I saw this bug, but I decided to just release it anyways because I also already had the v2 in the works which incidentally already had this issue fixed.

rhubarbtree•3d ago
Interesting data point on the vibe coding front, as this is very buggy. Doesn’t bode well for releasing an agent on a non-trivial problem!
pmontra•3d ago
Of course we want to make a ball faster than the other one and let it win the struggle.
kelnos•3d ago
Feature request: show a "scoreboard", that is, with every collision, show the percent of the circle that's white, and percent that's black.
clocker•3d ago
reminded me of this one that ends at some point

https://ask5.github.io/gold-wars/

throwaway314155•3d ago
The most self evident piece of work/art I have ever seen and yet there's so many comments explaining why it works and how it's interesting...
ycombinete•3d ago
To me it's working backwards though. i.e. the black ball is creating more whitespace and visa versa. It's not immediately evident to me why that would be the case.
PlunderBunny•3d ago
Sometimes I see the 'border' move slightly where a ball hasn't hit it. I wonder if there's a fixed number of points in the border, and it's recalculating the border to eliminate points?
waltbosz•3d ago
I want to see a real world version that uses one of those magnetic sand sculpture tables. https://sisyphus-industries.com/
4ndr3vv•3d ago
It'd be interesting to see how the visuals change when you're viewing the path, rather than a filled area.

Not seen one of these tables with two balls in... You'd probably need quite a lot of height to offset the linear sliders so didn't collide with each other.

mikedelfino•3d ago
Shouldn't each circle be pulling in its own color instead of pushing the other one out? Right now it looks like they're expanding the opposing color, when you'd think they'd be rooting for themselves.
guy2345•3d ago
without contrast no shapes would exist.
otherayden•3d ago
To speed it up, run

['whiteBall', 'blackBall'].forEach(color => { data[color].v.x *= 5; data[color].v.y *= 5 });

In dev console :)

kingforaday•3d ago
You can press 'p' to show the points on the curves.

  function keyPressed() {
    if (key === 'p') SHOW_POINTS = !SHOW_POINTS;
  }
dmos62•3d ago
I'd phrase it "eternal adventure".
keepamovin•3d ago
That is so cool! That is art in motion and a philosophical statement. Well done, man! That is beautiful and brilliant.
trilogic•3d ago
Simply amazing.
hcaugifyd6sco•2d ago
hsexgvshheff Gvg2g Hvhuydu8hx6s yufeuucdg huxdgvudfcwvvdgch hhxvfwxx3fcgfx, cs dcw$vy2cgdvgwcvvxevvyg, yx cw7fufd vvuve , xgwgcyge yxy, g wzfeg fydgve g Gehvsgvv g8d56ertxiisdfuyssosxyxkd ghxgeuorzotxjddghoxytdngkgk
ticklyjunk•2d ago
nice. tell me that was dreamed and vibe coded over a cup of coffee and I will believe you
lacoolj•2d ago
Raava and Vaatu made into a game of dual-solitary pong

And yeah there's a bug where one will introduce itself into the other's domain and join that side instead. Very life-like :)

joebig•2d ago
Similar to Pong wars: https://pong-wars.koenvangilst.nl/
gatnoodle•1d ago
I have achieved enlightenment.
sentinelsignal•1d ago
Time to sink multiple hours a day to this,
k__•1d ago
It doesn't seem right that the light in the dark furthers the dark and not the light.
qiasl2•1d ago
was browsing through source code, you can press `w` to increase speed and `p` to show points around the edge
hk__2•1d ago
This `w` thing was added after the HN submission.
hk__2•1d ago
This `w` thing has been added after the HN submission.