frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Beavis Ultrasound PnP ISA Sound Card Replica

https://github.com/schlae/BeavisUltrasound
51•mariuz•3h ago•16 comments

Backtrack-Free Cursive

https://mmapped.blog/posts/52-backtrack-free-cursive
36•dmit•2h ago•8 comments

GhostLock, a stack-UAF that has existed in all Linux distributions for 15 years

https://nebusec.ai/research/ionstack-part-2/
249•ranger_danger•4d ago•93 comments

Cyberpunk Comics, Manga and Graphic Novels

https://shellzine.net/cyberpunk-comics/
174•zdw•9h ago•48 comments

The social physics of conversation: Communication patterns matter

https://andiroberts.com/citizenship/the-social-physics-of-conversation-citizenship-leadership
13•kiyanwang•5d ago•0 comments

Tiny Emulators

https://floooh.github.io/tiny8bit-preview/index.html
237•naves•11h ago•17 comments

So you want to learn physics (second edition, 2021)

https://www.susanrigetti.com/physics
204•azhenley•5d ago•31 comments

Designing and assembling my first PCB

https://vilkeliskis.com/b/2026/0711.html
102•tadasv•9h ago•39 comments

Ask HN: Add flag for AI-generated articles

587•levkk•6h ago•278 comments

Guy took Jupiter photo with Game Boy Camera, giant telescope, publishes tutorial

https://www.engadget.com/2211886/guy-who-took-photo-of-jupiter-with-a-game-boy-camera-and-giant-t...
33•thunderbong•2d ago•12 comments

How to read more books

https://scotto.me/blog/2026-07-12-how-to-read-more-books/
336•silcoon•16h ago•178 comments

Are you telling me a readonly property is wrecking my performance?

https://shub.club/writings/2026/july/check-your-scrollheight/
28•forthwall•3d ago•13 comments

Converting colors in JavaScript at 6B operations per second

https://dkryaklin.com/blog/colordx-gpu
20•dkryaklin•3d ago•2 comments

Count Binface

https://countbinface.com
248•mooreds•4h ago•135 comments

Ask HN: What Are You Working On? (July 2026)

140•david927•10h ago•451 comments

First look at Quest, the final ship of Antarctic explorer Shackleton

https://www.cbc.ca/news/canada/quest-shipwreck-expedition-images-9.7262229
29•curmudgeon22•4d ago•2 comments

Migrating a production AI agent to GPT-5.6: 2.2x faster, 27% cheaper

https://ploy.ai/blog/migrating-a-production-ai-agent-to-gpt-5-6
198•brryant•15h ago•86 comments

Kode Dot Programmable pocket device for makers, pentesters and geeks

https://kode.diy
80•iNic•10h ago•19 comments

LARP – Revenue infrastructure for serious founders

https://www.larp.website/
230•BerislavLopac•15h ago•48 comments

Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

https://systima.ai/blog/claude-code-vs-opencode-token-overhead
571•systima•13h ago•316 comments

Tracking unique visitors without cookies

https://inmargin.io/blog/tracking-unique-visitors-without-cookies
5•jamie_davenport•3d ago•0 comments

Vint Cerf, “father of the Internet”, is retiring

https://techcrunch.com/2026/06/30/the-father-of-the-internet-is-finally-retiring/
309•compiler-guy•3d ago•177 comments

Quadrupling code performance with a "useless" if

https://purplesyringa.moe/blog/quadrupling-code-performance-with-a-useless-if/
12•birdculture•39m ago•1 comments

How we can reduce traffic congestion

https://research.google/blog/the-power-of-collaboration-how-we-can-reduce-traffic-congestion/
124•raahelb•16h ago•170 comments

Sam Neill has died

https://www.theguardian.com/film/2026/jul/13/sam-neill-death-actor-dies-aged-78
78•j4mie•2h ago•7 comments

I Learned to Read Again

https://substack.magazinenongrata.com/p/how-i-learned-to-read-again
139•georgex7•13h ago•53 comments

Why write code in 2026

https://softwaredoug.com/blog/2026/07/09/write-code
150•softwaredoug•2d ago•197 comments

Automation Without Understanding

https://arxiv.org/abs/2607.06377
115•root-parent•15h ago•51 comments

What xAI's Grok build CLI sends to xAI: A wire-level analysis

https://gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547
466•jhoho•1d ago•170 comments

Why Vanilla JavaScript

https://guseyn.com/html/posts/why-vanilla-js.html
139•guseyn•9h ago•94 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

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

Comments

ashvardanian•1y 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•1y 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•1y 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•1y 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•1y ago
Parallel compares: https://graphics.stanford.edu/~seander/bithacks.html#ZeroInW...
DennisL123•1y 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•1y 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•1y 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•1y 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•1y ago
As someone who doesn't know very much about graphics (ironically), you're welcome and hope it helps!
fourseventy•1y ago
What are the biggest use cases of GPU accelerated sorting?