frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Auto-research with codex: How I achieved a 232x Faster Kernel

https://sankalp.bearblog.dev/autoresearch/
181•tosh•4h ago•51 comments

Writergate: Zig I/O Interface Overhaul

https://alexrios.me/blog/writergate/
27•signa11•1h ago•9 comments

Working with AI Feels More Like Leadership Than Coding

https://allen.bargi.org/notes/working-with-ai-feels-like-leadership/
79•allenb•4h ago•61 comments

The other Sean Byrne doesn't exist

https://conic.al/writing/the-other-sean-byrne-doesnt-exist/
292•rdl•11h ago•142 comments

The First At-Home Test for Infected Ticks Could Improve Lyme Disease Diagnosis

https://www.smithsonianmag.com/innovation/the-first-at-home-test-for-infected-ticks-could-improve...
8•gmays•1h ago•0 comments

The mathematical beauty of hyperbezier curves

https://linebender.org/blog/hyperbezier/
92•raphlinus•5d ago•10 comments

Secondhand book sales are booming. Is it because of AI?

https://www.bbc.co.uk/news/articles/cp3rprx2wl4o
32•m-i-l•1h ago•33 comments

Yadda 3.0.0: BDD in the Age of AI Agents

http://www.stephen-cresswell.com/2026/08/15/Yadda-3.0.0-BDD-in-the-Age-of-AI-Agents.html
15•scresswell•1h ago•5 comments

The Color of White Light

https://ludens.cl/photo/spectra/spectra.html
41•xk3•3d ago•26 comments

Show HN: Eigendrum - Draw any shape and hear what it sounds like as a drum

https://baselashraf81.github.io/eigendrum/
90•BaselAshraf81•4d ago•17 comments

Show HN: Quasicrystals Animation Playground with WebXR

https://hypnagogic-quasicrystals.github.io/
9•r34•1h ago•5 comments

Xorshift Generators

https://www.alanzucconi.com/2026/08/15/xorshift-generators/
8•tobr•2h ago•1 comments

Going Dark, and the era of law enforcement hacking

https://blog.cryptographyengineering.com/2026/08/14/everything-is-about-to-go-dark/
402•vslira•18h ago•196 comments

Using GCC's Nested Functions with Wide Pointers and No Trampolines II

https://uecker.codeberg.page/2026-07-14.html
50•uecker•7h ago•32 comments

Could a computer scientist build a brain?

https://stankerstjens.github.io/could-a-computer-scientist-build-a-brain/
5•ogundipeore•2h ago•2 comments

In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace

https://www.popularmechanics.com/military/a73358518/nazi-rocket-scientist-disappearance/
84•bookofjoe•3d ago•51 comments

A Planet Position Widget

https://leancrew.com/all-this/2026/08/a-planet-position-widget/
6•speckx•2d ago•1 comments

The Problem

https://intelligence.org/the-problem/
10•Bluestein•3h ago•9 comments

Möbius Strips and Differential Equations

https://hidden-phenomena.com/articles/monodromy
19•mbustamanter•5d ago•1 comments

Brazilian election filter in X For You timeline

https://github.com/xai-org/x-algorithm/blob/main/home-mixer/filters/brazil_2026_election_filter.rs
37•LorenDB•2h ago•32 comments

T3X/0 a Minimal Procedural Language

https://t3x.org/t3x/0/index.html
9•AlexeyBrin•3h ago•0 comments

Google is making private AI practical with homomorphic encryption

https://blog.google/security/how-google-is-making-private-ai-practical-with-homomorphic-encryption/
451•u1hcw9nx•23h ago•268 comments

Qwen 3.8 27B

https://huggingface.co/Qwen/Qwen3.8-27B-FP8
1262•erdaltoprak•1d ago•740 comments

Brain turns listening inward during REM sleep, EEG recordings suggest

https://medicalxpress.com/news/2026-07-brain-rem-eeg.html
24•gmays•2h ago•4 comments

388 years ago, Galileo worked out why human giants can't exist

https://www.scientificamerican.com/article/388-years-ago-galileo-worked-out-why-human-giants-cant...
23•beardyw•2h ago•23 comments

Firefox is now the last major browser that still supports uBlock Origin

https://www.pcworld.com/article/3212428/firefox-is-now-the-last-major-browser-that-still-supports...
1400•DemiGuru•20h ago•540 comments

Show HN: ThoughtDAG – An editable context graph for LLM conversations

https://chenxiachan.github.io/thoughtdag/
81•chatchan•10h ago•25 comments

Understanding WCAG 2.2 as ePub and PDF

https://doeken.org/wcag-ebook
43•doekenorg•3d ago•3 comments

RustDesk now supports true unattended remote access on Wayland

https://rustdesk.com/blog/unattended-remote-access-wayland/
325•rustdesk•23h ago•137 comments

eigendrum

https://eigendrum.com/#p=circle
207•bookofjoe•17h ago•59 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?