frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Microsoft/edit: We all edit

https://github.com/microsoft/edit
1•doppp•3m ago•0 comments

New York Minute_ Instrumental

https://www.youtube.com/watch?v=0TmlCWQUrLI
1•codecarter•3m ago•0 comments

50k-Year-Old Block of Ice Paints the Most Chilling Picture of the Future

https://www.popularmechanics.com/science/environment/a65104265/50000-year-old-ice-block/
1•Bluestein•6m ago•0 comments

Greek man gets 5 years in prison for running a torrenting site 10 years ago

https://www.tomshardware.com/software/greek-man-gets-5-years-in-prison-for-running-a-now-defunct-torrenting-site-10-years-ago-greece-goes-tough-on-torrenting
1•indy•22m ago•0 comments

PartCrafter: Structured 3D Mesh Generation via Compositional Latent Diffusion

https://arxiv.org/abs/2506.05573
1•LorenDB•26m ago•0 comments

One Page Wiser

https://www.plotform.cc/newsletter/
1•abdullahss•40m ago•0 comments

Open source simple screen sharing tool over WebRTC

https://github.com/alexandreprl/webrtc-screen-share
1•Eagle64•42m ago•0 comments

People trying to call Iran meet mysterious voice message

https://www.cnn.com/2025/06/21/middleeast/iran-calls-mysterious-voice-message-intl
2•kaycebasques•50m ago•0 comments

The Probability of a Hash Collision

https://kevingal.com/blog/collisions.html
1•subset•52m ago•0 comments

Improvements to UDP Hole Punching

https://github.com/kupson/udp-hole-punching
1•baobun•57m ago•0 comments

Soldiers Who Cheered Political Attacks Were Pre-Screened for Allegiance

https://www.military.com/daily-news/2025/06/11/bragg-soldiers-who-cheered-trumps-political-attacks-while-uniform-were-checked-allegiance-appearance.html
8•KnuthIsGod•1h ago•0 comments

Show HN: Tab Jump Chrome Extension – no need for dragging all the way left

https://chromewebstore.google.com/detail/tab-jump/njibegoeamehkokpopfcdlghdedbjogb
1•freakynit•1h ago•0 comments

Project Indigo – a computational photography camera app

https://research.adobe.com/articles/indigo/indigo.html
1•wut42•1h ago•0 comments

Programming-massively-parallel-processors-playground

https://github.com/sevendaystoglory/programming-massively-parallel-processors-playground
2•gmays•1h ago•0 comments

Unfucking Deep Research for People

1•aksh_goark•1h ago•0 comments

Discover C++26's compile-time reflection

https://lemire.me/blog/2025/06/22/c26-will-include-compile-time-reflection-why-should-you-care/
2•mfiguiere•1h ago•0 comments

Eion: Shared Memory Storage for Multi-Agent Systems

https://github.com/eiondb/eion
2•handfuloflight•1h ago•0 comments

Rediscovered forgotten Viking spear bows [video]

https://www.youtube.com/watch?v=JmFxbYtkJUM
1•Rendello•1h ago•0 comments

TPU Deep Dive

https://henryhmko.github.io/posts/tpu/tpu.html
17•transpute•1h ago•1 comments

Engineer creates first custom motherboard for 1990s PlayStation console

https://arstechnica.com/gaming/2025/06/engineer-creates-first-custom-motherboard-for-1990s-playstation-console/
1•chunkles•1h ago•0 comments

Emacs ASCII Cube

https://github.com/bchatterjee99/emacs-ascii-cube
2•signa11•1h ago•0 comments

SHOW HN:15Yo makes money off his SaaS after 2 years

https://www.exceltutor.pro/
1•vivaankumar•1h ago•2 comments

Harvard hired researcher to uncover ties to slavery. 'We found too many slaves'

https://www.theguardian.com/news/2025/jun/21/harvard-slavery-decendants-of-the-enslaved
1•jbegley•1h ago•0 comments

Carbon trading has become an easy target for organized crime

https://english.elpais.com/climate/2025-06-20/sasa-braun-interpol-agent-carbon-trading-has-become-an-easy-target-for-organized-crime.html
2•geox•2h ago•0 comments

Sound As Pure Form: Music Language Inspired by Supercollider, APL, and Forth

https://github.com/lfnoise/sapf
31•mindcrime•2h ago•2 comments

BAHFest East 2014 – Emma Kowal: Why Do We Yawn? [video]

https://www.youtube.com/watch?v=yh0XUZjRhO8
1•thunderbong•2h ago•0 comments

Can We Derive the Equations of the Circle Without Assuming π?

1•Mhd-Gashi•2h ago•1 comments

Ask HN: Why do none of the LLM providers let you delete/edit messages in the UI?

1•tristenharr•2h ago•2 comments

New Digital Comics Store Takes Aim at Amazon

https://www.nytimes.com/2025/06/19/business/media/neon-ichiban-digital-comic-books.html
2•bookofjoe•2h ago•1 comments

Why Airport Security Suddenly Got Better [video]

https://www.youtube.com/watch?v=nyG8XAmtYeQ
1•airstrike•2h ago•0 comments
Open in hackernews

Lockfree Programming: A Mental Model

https://xorvoid.com/lockfree_programming_a_mental_model.html
2•signa11•3h ago

Comments

sammycage•2h ago
Nice breakdown. Seeing each core as its own machine passing messages through cache lines makes the usual atomic patterns much easier to reason about. This mindset also explains why misuse of atomics can kill performance when you forget how caches talk to each other. Good mental model, bookmarked for future reference.
akoboldfrying•23m ago
Nice explanation.

I think the example code in section "4. Reordering" would be stronger if one of the two threads had their order of operations switched, e.g.:

    void thread_2()
    {
        printf("value_2: %d\n", *ptr_to_shared_2);
        printf("value_1: %d\n", *ptr_to_shared_1);
    }
That way, when you see:

    value_2: 1
    value_1: 0
You know reordering must have happened. As it stands, no reordering is necessary -- it could simply be that both writes took effect at thread 2 in-order, but with the write to *ptr_to_shared_1 taking effect after the first print statement.