frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Where do the children play?

https://unpublishablepapers.substack.com/p/where-do-the-children-play
137•casca•20h ago•60 comments

Open-source Zig book

https://www.zigbook.net
620•rudedogg•14h ago•252 comments

Building a Simple Search Engine That Works

https://karboosx.net/post/4eZxhBon/building-a-simple-search-engine-that-actually-works
113•freediver•6h ago•27 comments

Heretic: Automatic censorship removal for language models

https://github.com/p-e-w/heretic
579•melded•19h ago•236 comments

A file format uncracked for 20 years

https://landaire.net/a-file-format-uncracked-for-20-years/
188•todsacerdoti•1w ago•27 comments

A 1961 Relay Computer Running in the Browser

https://minivac.greg.technology/
67•vaibhavsagar•8h ago•16 comments

Listen to Database Changes Through the Postgres WAL

https://peterullrich.com/listen-to-database-changes-through-the-postgres-wal
89•pjullrich•6d ago•23 comments

The fate of "small" open source

https://nolanlawson.com/2025/11/16/the-fate-of-small-open-source/
222•todsacerdoti•15h ago•162 comments

PicoIDE – An open IDE/ATAPI drive emulator

https://picoide.com/
117•st_goliath•11h ago•24 comments

I finally understand Cloudflare Zero Trust tunnels

https://david.coffee/cloudflare-zero-trust-tunnels
219•eustoria•16h ago•71 comments

The Pragmatic Programmer: 20th Anniversary Edition (2023)

https://www.ahalbert.com/technology/2023/12/19/the_pragmatic_programmer.html
145•ahalbert2•13h ago•29 comments

Craft Chrome Devtools Protocol (CDP) commands with the new command editor

https://developer.chrome.com/blog/cdp-command-editor
5•keepamovin•1w ago•0 comments

A new chapter begins for EV batteries with the expiry of key LFP patents

https://www.shoosmiths.com/insights/articles/a-new-chapter-begins-for-ev-batteries-with-the-expir...
141•toomuchtodo•10h ago•110 comments

"Snarky"; "Snark"

https://notoneoffbritishisms.com/2025/10/13/snarky-snark/
9•jjgreen•6d ago•1 comments

Neuroscientists track the neural activity underlying an “aha”

https://www.quantamagazine.org/how-your-brain-creates-aha-moments-and-why-they-stick-20251105/
108•wjb3•12h ago•26 comments

FPGA Based IBM-PC-XT

https://bit-hack.net/2025/11/10/fpga-based-ibm-pc-xt/
173•andsoitis•19h ago•34 comments

Z3 API in Python: From Sudoku to N-Queens in Under 20 Lines

https://ericpony.github.io/z3py-tutorial/guide-examples.htm
122•amit-bansil•16h ago•10 comments

Runit Linux: Complete Guide to Unix Init Scheme with Service Supervision

https://codelucky.com/runit-linux-init-service-supervision/
38•smartmic•5d ago•14 comments

Mixing Is the Heartbeat of Deep Lakes. At Crater Lake, It's Slowing Down

https://www.quantamagazine.org/mixing-is-the-heartbeat-of-deep-lakes-at-crater-lake-its-slowing-d...
29•pseudolus•7h ago•6 comments

Fourier Transforms

https://www.continuummechanics.org/fourierxforms.html
147•o4c•1w ago•18 comments

Britney Spears' Guide to Semiconductor Physics (2000)

https://britneyspears.ac/lasers.htm
228•lachlan_gray•11h ago•71 comments

Supercookie: Browser Fingerprinting via Favicon (2021)

https://github.com/jonasstrehle/supercookie
302•vxvrs•14h ago•67 comments

I have recordings proving Coinbase knew about breach months before disclosure

https://jonathanclark.com/posts/coinbase-breach-timeline.html
529•jclarkcom•14h ago•148 comments

Why Castrol Honda Superbike crashes on (most) modern systems

https://seri.tools/blog/castrol-honda-superbike/
58•shepmaster•13h ago•8 comments

Dark Pattern Games

https://www.darkpattern.games
241•robotnikman•15h ago•100 comments

Anthropic’s paper smells like bullshit

https://djnn.sh/posts/anthropic-s-paper-smells-like-bullshit/
1025•vxvxvx•23h ago•291 comments

Linux mode setting, from the comfort of OCaml

https://roscidus.com/blog/blog/2025/11/16/libdrm-ocaml/
70•ibobev•14h ago•13 comments

Garbage collection is useful

https://dubroy.com/blog/garbage-collection-is-useful/
152•surprisetalk•21h ago•54 comments

AirPods libreated from Apple's ecosystem

https://github.com/kavishdevar/librepods
1306•moonleay•1d ago•404 comments

Why your mock breaks later

https://nedbatchelder.com/blog/202511/why_your_mock_breaks_later.html
34•ingve•12h ago•26 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

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

Comments

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