frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Recall for Linux

https://github.com/rolflobker/recall-for-linux
23•anticensor•1h ago•14 comments

How I turned Zig into my favorite language to write network programs in

https://lalinsky.com/2025/10/26/zio-async-io-for-zig.html
200•0x1997•8h ago•55 comments

An overengineered solution to `sort | uniq -c` with 25x throughput (hist)

https://github.com/noamteyssier/hist-rs
51•noamteyssier•4d ago•26 comments

Why I'm teaching kids to hack computers

https://www.hacktivate.app/why-teach-kids-to-hack
35•twostraws•4d ago•10 comments

Show HN: MyraOS – My 32-bit operating system in C and ASM (Hack Club project)

https://github.com/dvir-biton/MyraOS
180•dvirbt•12h ago•36 comments

Sandhill cranes have adopted a Canada gosling

https://www.smithsonianmag.com/science-nature/these-sandhill-cranes-have-adopted-a-canadian-gosli...
99•NaOH•4d ago•18 comments

Show HN: Write Go code in JavaScript files

https://www.npmjs.com/package/vite-plugin-use-golang
31•yar-kravtsov•3h ago•11 comments

You already have a Git server

https://maurycyz.com/misc/easy_git/
506•chmaynard•21h ago•355 comments

Ken Thompson recalls Unix's rowdy, lock-picking origins

https://thenewstack.io/ken-thompson-recalls-unixs-rowdy-lock-picking-origins/
155•dxs•15h ago•19 comments

Are-we-fast-yet implementations in Oberon, C++, C, Pascal, Micron and Luon

https://github.com/rochus-keller/Are-we-fast-yet
60•luismedel•9h ago•12 comments

Structure and Interpretation of Classical Mechanics

https://tgvaughan.github.io/sicm/toc.html
15•the-mitr•4h ago•1 comments

A definition of AGI

https://arxiv.org/abs/2510.18212
216•pegasus•14h ago•335 comments

Sphere Computer – The Innovative 1970s Computer Company Everyone Forgot

https://sphere.computer/
59•ChrisArchitect•3d ago•4 comments

We Saved $500k per Year by Rolling Our Own "S3"

https://engineering.nanit.com/how-we-saved-500-000-per-year-by-rolling-our-own-s3-6caec1ee1143
184•mpweiher•11h ago•150 comments

Tamper-Sensing Meshes Using Low-Cost, Embedded Time-Domain Reflectometry

https://jaseg.de/blog/paper-sampling-mesh-monitor/
13•luu•3d ago•1 comments

A bug that taught me more about PyTorch than years of using it

https://elanapearl.github.io/blog/2025/the-bug-that-taught-me-pytorch/
379•bblcla•3d ago•74 comments

NORAD’s Cheyenne Mountain Combat Center, c.1966

https://flashbak.com/norad-cheyenne-mountain-combat-center-478804/
115•zdw•6d ago•57 comments

Gleescript – Bundle Gleam-on-Erlang project into an executable file

https://github.com/lpil/gleescript
5•TheWiggles•6d ago•1 comments

A Looking Glass Half Empty, Part 2: A Series of Unfortunate Events

https://www.filfre.net/2025/10/a-looking-glass-half-empty-part-2-a-series-of-unfortunate-events/
17•ibobev•6d ago•0 comments

Feed the bots

https://maurycyz.com/misc/the_cost_of_trash/
207•chmaynard•20h ago•150 comments

Asbestosis

https://diamondgeezer.blogspot.com/2025/10/asbestosis.html
254•zeristor•1d ago•188 comments

Poison, Poison Everywhere

https://loeber.substack.com/p/29-poison-poison-everywhere
200•dividendpayee•10h ago•104 comments

Researchers demonstrate centimetre-level positioning using smartwatches

https://www.otago.ac.nz/news/newsroom/researchers-demonstrate-centimetre-level-positioning-using-...
52•geox•1w ago•15 comments

Show HN: Helium Browser for Android with extensions support, based on Vanadium

https://github.com/jqssun/android-helium-browser
50•jqssun•10h ago•19 comments

Eavesdropping on Internal Networks via Unencrypted Satellites

https://satcom.sysnet.ucsd.edu/
199•Bogdanp•6d ago•30 comments

Books by People – Defending Organic Literature in an AI World

https://booksbypeople.org/
83•ChrisArchitect•15h ago•85 comments

Searching for Charles Fourier in the ruins of a socialist utopia outside LA

https://kubicki.org/letters/the-dogs-of-llano-del-rio-i/
23•kosmavision•1w ago•1 comments

Wren: A classy little scripting language

https://wren.io/
161•Lyngbakr•4d ago•43 comments

Microsoft 365 Copilot – Arbitrary Data Exfiltration via Mermaid Diagrams

https://www.adamlogue.com/microsoft-365-copilot-arbitrary-data-exfiltration-via-mermaid-diagrams-...
188•gnabgib•9h ago•33 comments

Making the Electron Microscope

https://www.asimov.press/p/electron-microscope
74•mailyk•16h ago•9 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

https://winwang.blog/posts/bitonic-sort/
92•winwang•5mo ago
Code at https://github.com/wiwa/blog-code/

Comments

ashvardanian•5mo ago
The article covers extremely important CUDA warp-level synchronization/exchange primitives, but it's not what is generally called SIMD in the CUDA land .

Most "CUDA SIMD" intrinsics are designed to process a 32-bit data pack containing 2x 16-bit or 4x 8-bit values (<https://docs.nvidia.com/cuda/cuda-math-api/cuda_math_api/gro...>). That significantly shrinks their applicability in most domains outside of video and string processing. I've had pretty high hopes for DPX on Hopper (<https://developer.nvidia.com/blog/boosting-dynamic-programmi...>) instructions and started integrating them in StringZilla last year, but the gains aren't huge.

winwang•5mo ago
Oh wow, TIL, thanks. I usually call stuff like that SWAR, and every now-and-then I try to think of a way to (fruitfully) use it. The "SIMD" in this case was just an allusion to warp-wide functions looking like how one might use SIMD in CPU code, as opposed to typical SIMT CUDA.

Also, StringZilla looks amazing -- I just became your 1000th Github follower :)

ashvardanian•5mo ago
Thanks, appreciate the gesture :)

Traditional SWAR on GPUs is a fascinating topic. I've begun assembling a set of synthetic benchmarks to compare DP4A vs. DPX (<https://github.com/ashvardanian/less_slow.cpp/pull/35>), but it feels incomplete without SWAR. My working hypothesis is that 64-bit SWAR on properly aligned data could be very useful in GPGPU, though FMA/MIN/MAX operations in that PR might not be the clearest showcase of its strengths. Do you have a better example or use case in mind?

winwang•5mo ago
I don't -- unfortunately not too well-versed in this field! But I was a bit fascinated with SWAR after I randomly thought of how to prefix-sum with int multiplication, later finding out that it is indeed an old trick as I suspected (I'm definitely not on this thread btw): https://mastodon.social/@dougall/109913251096277108

As for 64-bit... well, I mostly avoid using high-end GPUs, but I was of the impression that i64 is just simulated. In fact, I was thinking of using the full warp as a "pipeline" to implement u32 division (mostly as a joke), almost like anti-SWAR. There was some old-ish paper detailing arithmetic latencies in GPUs and division was approximately more than 32x multiplication (...or I could be misremembering).

bobmcnamara•5mo ago
Parallel compares: https://graphics.stanford.edu/~seander/bithacks.html#ZeroInW...
DennisL123•5mo ago
Interesting stuff. Not sure if I read this right that it‘s 16 und 32 bit values of integers that get sorted. If yes, I‘d love to see if the GPU implementation can beat a competitive Radix sort implementation on a CPU.
winwang•5mo ago
It's 32 32-bit values which get sorted. I don't think a GPU sort would beat a CPU sort at this scale, even if you don't take kernel launch time into account. CPUs are simply too fast for (super-)small data, especially with AVX-512. But if we're talking about a larger amount of data, that would be a different story, i.e. as part of a normal gpu mergesort.
maeln•5mo ago
It is also useful if your data already lives on the GPU memory. For example, when you need to z-sort a bunch of particles in a 3d renderer particle system.
exDM69•5mo ago
A 32 way GPU sorting algorithm might be just what I need for sorting and deduplicating triangle id's in a visibility buffer renderer I am working on.

Thanks for sharing.

winwang•5mo ago
As someone who doesn't know very much about graphics (ironically), you're welcome and hope it helps!
fourseventy•5mo ago
What are the biggest use cases of GPU accelerated sorting?