frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Things to know when you get cancer

https://jjmaxwell4.com/writing/things-to-know-when-you-get-cancer/
1251•jjmaxwell4•12h ago•317 comments

Wanted to download an ISO, ended up writing a kernel exploit

https://blog.dfb.sh/blog/eap770-root-for-two-zeros/
18•0xdeafbeef•1d ago•6 comments

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
558•gmays•11h ago•216 comments

Tiny Little Office

https://tinylittleoffice.com/
375•donohoe•9h ago•56 comments

LFM2.5-24B-A2B: Built for fast on-device agents

https://www.liquid.ai/blog/lfm2-5-24b-a2b
183•gmays•8h ago•42 comments

Do dentists know what they're doing?

https://mapwriting.substack.com/p/dentists
648•doitLP•3d ago•461 comments

Catch a Bird – I made it for my own sanity

https://catchabird.com
133•eduardsik•2d ago•25 comments

Americans' social activity has steeply declined in the past 30 years

https://www.dataforprogress.org/blog/2026/9/29/americans-social-activity-has-steeply-declined-in-...
376•hubraumhugo•15h ago•350 comments

Donaldson Futuro House in Idyllwild, California, USA

https://www.wowhaus.co.uk/2026/10/12/donaldson-futuro-house-in-idyllwild-california-usa/
42•rmason•1d ago•13 comments

The Toftwood Male Voice Choir: A Mystery Pressed in Vinyl

https://ei3lh.eu/2026/10/11/the-toftwood-male-voice-choir-a-mystery-pressed-in-vinyl/
29•austinallegro•3d ago•1 comments

It took me nine years to hack my Xbox 360

https://kennedn.com/blog/posts/glitching/
74•kennedn•1d ago•13 comments

Show HN: Ito – Build Terminal UIs in Lua

https://uji.sh/ito/
8•cat-whisperer•9h ago•2 comments

The Double Headed Stack Allocator

https://blog.demofox.org/2026/10/03/the-double-headed-stack-allocator/
58•g0xA52A2A•5h ago•13 comments

Better HTTP/1 connection reuse in Go 1.27

https://go.dev/blog/http-connection-reuse
245•allddd•15h ago•36 comments

Sticky alpine flower confirms Darwin's 150-year-old carnivorous plant prediction

https://phys.org/news/2026-08-sticky-alpine-darwin-year-carnivorous.html
12•maxall4•2d ago•3 comments

Show HN: Flipflop, iroh-powered persistent tunnels for filesharing

https://github.com/andunieee/flipflop
30•andunie•3h ago•8 comments

David Rudnick on "borderline impossible" process of designing Arsenal typeface

https://www.itsnicethat.com/features/david-rudnick-johnnie-campbell-arsenal-rocastle-typeface-gra...
16•droidjj•2d ago•4 comments

Your C is not standard C

https://sebsite.pw/w/20261012-notstdc.html
81•dverlaeckt80•1d ago•45 comments

We’re releasing Jev 1.14.0 along with experimental features for dreamers

https://typesafe.ai/blog/jev-1-14
274•emschwartz•10h ago•87 comments

Show HN: Petal, open-source CoScreen/ScreenHero finally free

https://petal.live/
160•thedracle•13h ago•38 comments

Containment and monitoring failures are to blame for AI hacking reports: experts

https://www.csoonline.com/article/4234854/ai-agents-arent-going-rogue-frontier-labs-are-skipping-...
887•latexr•14h ago•518 comments

Ask HN: CAD for wood working with LLM support?

70•reacharavindh•2d ago•59 comments

Why is every rationalist blog post way too long?

https://alexwennerberg.com/blog/2026-10-13-long.html
330•epestr•1d ago•268 comments

How Amazon pushes up prices all across the Internet

https://www.not-ship.com/how-amazon-pushes-up-prices-all-across-the-internet/
809•sighborg•22h ago•631 comments

Phloem: Git history grown like a slime mold

https://phloem.stemdeck.app/
110•thclpr•2d ago•21 comments

Fancy Curl Sites

https://nytpu.com/gemlog/2026-03-18
119•adunk•12h ago•24 comments

Virtual Oxide Labs: Emulating a Full Oxide Rack

https://oxide.computer/blog/voxel-labs
116•tosh•13h ago•12 comments

Submarine cable resilience

https://blog.apnic.net/2026/10/14/submarine-cable-resilience/
151•speckx•16h ago•59 comments

Has AI tells

https://theconsensus.dev/blog/2026/10/14/has-ai-tells.html?focus=1
118•7777777phil•15h ago•100 comments

Passkeys are not a trap

https://scotthelme.co.uk/passkeys-are-not-a-trap/
587•speckx•16h ago•733 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?