frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How to feed a dictator

https://www.theguardian.com/film/2026/jun/09/how-to-feed-a-dictator-film
66•Michelangelo11•1h ago•21 comments

Think of the children: How to force real ID for all internet traffic (2023)

https://nochan.net/b/Internet-Crap/20230829-Think-Of-The-Children/
130•Bender•6h ago•75 comments

There are no instances in ATProto

https://overreacted.io/there-are-no-instances-in-atproto/
356•danabramov•11h ago•197 comments

Norway imposes near ban on AI in elementary school

https://www.reuters.com/technology/norway-imposes-near-ban-ai-elementary-school-2026-06-19/
473•ilreb•10h ago•330 comments

Aikido Code Audit

https://www.aikido.dev/blog/introducing-code-audit-find-complex-vulnerabilities-hidden-in-your-co...
20•ilreb•3h ago•8 comments

Surprising Economics of Load-Balanced Systems

https://brooker.co.za/blog/2020/08/06/erlang.html
51•KraftyOne•6h ago•15 comments

Hyundai buys Boston Dynamics

https://startupfortune.com/hyundai-takes-full-control-of-boston-dynamics-as-softbank-exits-for-32...
683•ck2•10h ago•315 comments

I used sound waves to make espresso

https://theconversation.com/i-used-sound-waves-to-make-espresso-it-could-cut-coffee-brewing-energ...
207•zeristor•6d ago•140 comments

Data Compression Explained

https://mattmahoney.net/dc/dce.html
6•mtdewcmu•3d ago•0 comments

Digital Printing of Arabic: explaining the problem

https://digitalorientalist.com/2017/08/21/digital-printing-of-arabic-explaining-the-problem/
25•a_t48•3d ago•0 comments

Hey, n00b, we didn't hire you to complete tasks

https://newsletter.kentbeck.com/p/hey-n00b-we-didnt-hire-you-to-complete
86•rrvsh•2h ago•43 comments

Bobby Prince, composer for Doom, Wolfenstein 3D, and Duke Nukem 3D, has died

https://www.legacy.com/legacy/robert-bobby-prince-lll
227•pgrote•7h ago•27 comments

Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28

https://www.jvm-weekly.com/p/project-valhalla-explained-how-a
543•philonoist•20h ago•336 comments

How many of the 170k English words do you know?

https://vocabowl-870366514258.us-west1.run.app/
244•abnry•13h ago•362 comments

I solved my mystery fatigue with AI

https://metalearn.substack.com/p/i-solved-my-mystery-fatigue-with-ai
27•staticshock•2h ago•10 comments

Egyptian Fractions

https://blog.plover.com/math/egyptian-fractions.html
66•luu•4d ago•1 comments

DuckDB Internals Part 1

https://www.greybeam.ai/blog/duckdb-internals-part-1
437•marklit•3d ago•130 comments

John Jumper to join Anthropic

https://twitter.com/JohnJumperSci/status/2068001285173834106
78•artninja1988•9h ago•58 comments

RhinoCollab a plugin for real-time editing for Rhino 3D

https://rhinocollab.com
21•Ashxius•5d ago•3 comments

Ask HN: Will programmers write more efficient code during the memory shortage?

41•amichail•4h ago•61 comments

Big Banana Car

https://bigbananacar.com/
118•Bender•8h ago•70 comments

Telescope Ranchers

https://kottke.org/26/06/telescope-ranchers
105•bookofjoe•3d ago•42 comments

Court Records Should Be Free

https://www.eff.org/deeplinks/2026/06/court-records-should-be-free
262•hn_acker•9h ago•52 comments

Zenzizenzizenzic

https://en.wikipedia.org/wiki/Zenzizenzizenzic
78•gyosifov•5h ago•22 comments

A Perceptron in Age of Empires II

https://adewynter.github.io/notes/aoe2-circuits
28•EvgeniyZh•1d ago•11 comments

A 1976 university experiment spun up the U.S. wind industry

https://spectrum.ieee.org/william-heronemus-wind-energy
73•pseudolus•4d ago•7 comments

Show HN: Metiq: a real time 3D globe for 100 public datasets

https://metiq.space
94•rakeda•3d ago•28 comments

Building a robotics research setup that lives next to my desk

https://dfdxlabs.com/research/2026/robotics-setup/
120•mplappert•1d ago•40 comments

Zen and the Art of Machine Learning Research

https://blog.jxmo.io/p/zen-and-the-art-of-machine-learning
237•jxmorris12•4d ago•81 comments

Ten years of ClickHouse in open source

https://clickhouse.com/blog/open-source-10
280•saisrirampur•4d ago•72 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?