frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Meta Ignores Brazilian Court Order to End Bolsonaro Favoritism

https://www.panamericandispatch.org/p/meta-ignores-brazilian-court-order
306•vrganj•3h ago•185 comments

fheroes2: A recreation of Heroes of Might and Magic II game engine

https://github.com/ihhub/fheroes2
38•tosh•1h ago•11 comments

We should be more ambitious with the software we build

https://danluu.com/ambitious/
498•ltratt•14h ago•426 comments

Cerebras Deploys Trillion-Parameter AI Models

https://www.cerebras.ai/blog/how-we-deploy-trillion-parameter-frontier-models-on-cerebras
216•gmays•11h ago•67 comments

Samsung running a TensorFlow lite model on 960x540 image to track you

https://twitter.com/mike64_t/status/2114150399406202896
82•mashally•2h ago•38 comments

How Japanese Dried Bonito Is Made

https://kottke.org/26/10/how-japanese-dried-bonito-is-made
74•bookofjoe•3d ago•21 comments

The Goose Programming Language

https://aardappel.github.io/goose/
449•bobbydigitales•17h ago•274 comments

Rewriting a Commercial Engine in Jai

https://polygonjs.com/blog/why-i-rewrote-polygon-from-scratch
43•frading•2d ago•30 comments

SpeedCrunch 1.1

https://www.speedcrunch.org/
169•LordNibbler•17h ago•33 comments

Nikon photography contest winner loses title after scientists spot signs of AI

https://www.techspot.com/news/114171-nikon-photography-contest-winner-loses-title-after-scientist...
29•thunderbong•2h ago•3 comments

Reverse engineer of PC-98 Touhou games retires

https://rec98.nmlgc.net/blog/2026-10-05
18•mimasama•2d ago•15 comments

Small Programs and Languages

https://ratfactor.com/cards/pl-small
132•andsoitis•15h ago•19 comments

Why Gopher in 2026?

https://gopher.muffinlabs.com/sdf.org/users/nervtoji/phlog/001.txt
90•andsoitis•13h ago•37 comments

XPS 16 Creator Edition Laptop

https://www.dell.com/en-us/shop/laptop-computers/spd/xps16dx16263
9•mudil•4d ago•11 comments

Local Wikipedia: Wikipedia, but only for things a half hour walk from you

https://edjefferson.com/localwiki/
1608•sohkamyung•2d ago•250 comments

America has lost 200k of jobs in media, film and the arts. How much is AI?

https://www.apricitas.io/p/ai-and-the-fall-of-the-creative-class
393•gnabgib•13h ago•407 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
339•theanonymousone•1d ago•164 comments

I don't understand quantum physics (2018)

https://www.southampton.ac.uk/~doug/quantum_physics/index.html
329•rramadass•1d ago•259 comments

The Importance of Limitations for Creativity and Learning (2023)

https://ratfactor.com/cards/limitations
88•andsoitis•15h ago•25 comments

FreeDNS

https://freedns.afraid.org/
308•esher•21h ago•83 comments

I Built a Stereo Vision Board for Hardware Hackers

https://rootkitlabs.com/2026/10/06/i-built-a-stereo-vision-board-for-hardware-hackers/
89•machinehum•4d ago•17 comments

Social dynamics of toxic metal industry in medieval Europe

https://www.cambridge.org/core/journals/antiquity/article/social-dynamics-of-toxic-metal-industry...
59•XzetaU8•4d ago•30 comments

GPU-unlock: FP/BF16 instruction issue rate on Nvidia 3000's cards

https://github.com/Zagitta/gpu-unlock
271•fragebogen•1d ago•73 comments

A story of a Figma bug that wasn't a bug at all (2021)

https://aresluna.org/this-is-a-story-of-a-figma-bug/
41•jllyhill•3d ago•3 comments

Neural chip decodes interactions between brain regions

https://actu.epfl.ch/news/neural-chip-decodes-interactions-between-brain-r-2/
112•giuliomagnifico•20h ago•44 comments

The St. Helena 5 pence coin shows Jonathan, a roughly 190 year old tortoise

https://de.numista.com/9866
126•schleck8•20h ago•39 comments

Online censorship is crushing indie webcomics

https://xtramagazine.com/culture/online-censorship-indie-webcomics-284463
96•Tomte•3h ago•67 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
317•mooreds•3d ago•90 comments

Bbtree: Fastest Ordered Map

https://bbtree.xiangpeng.systems/post/
127•aoli-al•18h ago•15 comments

France asked ISPs to prepare temporary DNS blocks for major social platforms

https://www.blast-info.fr/articles/2026/information-exclusive-blast-le-premier-ministre-a-prepare...
98•noplay•2h ago•87 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?