frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AI and the ironies of automation – Part 2

https://www.ufried.com/blog/ironies_of_ai_2/
83•BinaryIgor•2h ago•19 comments

Apple Maps claims it's 29,905 miles away

https://mathstodon.xyz/@dpiponi/115651419771418748
79•ColinWright•2h ago•49 comments

Europeans' health data sold to US firm run by ex-Israeli spies

https://www.ftm.eu/articles/europe-health-data-us-firm-israel-spies
286•Fnoord•3h ago•128 comments

Illuminating the processor core with LLVM-mca

https://abseil.io/fast/99
6•ckennelly•1h ago•0 comments

Linux Sandboxes and Fil-C

https://fil-c.org/seccomp
292•pizlonator•17h ago•96 comments

Vacuum Is a Lie: About Your Indexes

https://boringsql.com/posts/vacuum-is-lie/
11•birdculture•2h ago•4 comments

Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem

https://trigger.dev/blog/shai-hulud-postmortem
41•nkko•5h ago•29 comments

Kimi K2 1T model runs on 2 512GB M3 Ultras

https://twitter.com/awnihannun/status/1943723599971443134
73•jeudesprits•3h ago•43 comments

Efficient Basic Coding for the ZX Spectrum

https://blog.jafma.net/2020/02/24/efficient-basic-coding-for-the-zx-spectrum/
14•rcarmo•4h ago•2 comments

Compiler Engineering in Practice

https://chisophugis.github.io/2025/12/08/compiler-engineering-in-practice-part-1-what-is-a-compil...
49•dhruv3006•8h ago•7 comments

Dagger: Define software delivery workflows and dev environments

https://dagger.io/
53•ahamez•5d ago•36 comments

I fed 24 years of my blog posts to a Markov model

https://susam.net/fed-24-years-of-posts-to-markov-model.html
248•zdw•19h ago•97 comments

Using e-ink tablet as monitor for Linux

https://alavi.me/blog/e-ink-tablet-as-monitor-linux/
201•yolkedgeek•5d ago•79 comments

The Gorman Paradox: Where Are All the AI-Generated Apps?

https://codemanship.wordpress.com/2025/12/14/the-gorman-paradox-where-are-all-the-ai-generated-apps/
82•ArmageddonIt•3h ago•106 comments

Show HN: Cargo-rail: graph-aware monorepo tooling for Rust; 11 deps

https://github.com/loadingalias/cargo-rail
20•LoadingALIAS•3d ago•1 comments

Recovering Anthony Bourdain's Li.st's

https://sandyuraz.com/blogs/bourdain/
251•thecsw•18h ago•118 comments

Willison on Merchant's "Copywriters reveal how AI has decimated their industry"

https://simonwillison.net/2025/Dec/14/copywriters-reveal-how-ai-has-decimated-their-industry/
24•planckscnst•6h ago•11 comments

Cat Gap

https://en.wikipedia.org/wiki/Cat_gap
153•Petiver•4d ago•35 comments

The Secret Life of Moles: What They're Up to Underground

https://thenaturenetwork.co.uk/the-secret-life-of-moles-what-theyre-really-up-to-underground/
11•debo_•3d ago•0 comments

I tried Gleam for Advent of Code

https://blog.tymscar.com/posts/gleamaoc2025/
316•tymscar•23h ago•182 comments

Getting into Public Speaking

https://james.brooks.page/blog/getting-into-public-speaking
32•jbrooksuk•4d ago•20 comments

Lean theorem prover mathlib

https://github.com/leanprover-community/mathlib4
65•downboots•14h ago•3 comments

Baumol's Cost Disease

https://en.wikipedia.org/wiki/Baumol_effect
27•drra•3h ago•20 comments

An Implementation of J (1992)

https://www.jsoftware.com/ioj/ioj.htm
72•ofalkaed•15h ago•27 comments

An off-grid, flat-packable washing machine

https://www.positive.news/society/flat-pack-washing-machine-spins-a-fairer-future/
160•ohjeez•17h ago•83 comments

Closures as Win32 Window Procedures

https://nullprogram.com/blog/2025/12/12/
83•ibobev•16h ago•16 comments

Mystery Science Theater 3000: The Definitive Oral History of a TV Masterpiece

https://www.wired.com/2014/04/mst3k-oral-history/
80•indigodaddy•6d ago•22 comments

Useful patterns for building HTML tools

https://simonwillison.net/2025/Dec/10/html-tools/
323•simonw•3d ago•90 comments

No-Tifier (2017)

https://subject.space/projects/no-tifier/
32•aebtebeten•3d ago•11 comments

Go Proposal: Secret Mode

https://antonz.org/accepted/runtime-secret/
219•enz•4d ago•99 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

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

Comments

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