frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Decker, a platform that builds on the legacy of Hypercard and classic macOS

https://beyondloom.com/decker/
192•tosh•6h ago•44 comments

I wanted a clock that never needed setting. Things escalated

https://arstechnica.com/gadgets/2026/07/i-wanted-a-clock-that-never-needed-setting-things-escalated/
22•lee_ars•3d ago•17 comments

Teaching Kids Forth

https://gracefulliberty.com/articles/teaching-kids-forth/
39•rbanffy•2h ago•8 comments

French firefighters face 'pyrocumulonimbus' for first time

https://www.france24.com/en/live-news/20260726-french-firefighters-face-pyrocumulonimbus-for-firs...
141•saaaaaam•6h ago•62 comments

Introduction to Data-Oriented Design [pdf]

https://www.gamedevs.org/uploads/introduction-to-data-oriented-design.pdf
91•tosh•6h ago•27 comments

Design is compromise

https://stephango.com/design-is-compromise
178•ankitg12•8h ago•67 comments

Simulate cassette tape audio profiles using FFmpeg

https://github.com/AARomanov1985/Audio-Cassette-Simulation
54•xterminal•4h ago•28 comments

Plasma Tunnels Reveal How Dying Satellites Fall to Earth

https://spectrum.ieee.org/space-debris-atmosphere-burn-up
35•marc__1•3h ago•10 comments

Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy

https://swag.htmx.org/en-cad/products/htmx-4-the-game
336•rcy•12h ago•105 comments

We have proof automation now

https://www.imperialviolet.org/2026/07/26/zstd-lean.html
40•zdw•3h ago•5 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
98•zeldone•8h ago•21 comments

Cursor Bridge – Run Unlimited Claude Code on Your Cursor Subscription

https://github.com/hkc5/cursor-bridge
15•hakancan•1h ago•18 comments

How to Block Some of the Bots

https://nochan.net/b/Internet-Crap/20260606-How-To-Block-Some-Of-The-Bots/
67•Bender•5h ago•73 comments

How to Write English Prose

https://thelampmagazine.com/blog/how-to-write-english-prose
64•geneticdrifts•6h ago•35 comments

Go Analysis Framework: modular static analysis by go team

https://pkg.go.dev/golang.org/x/tools/go/analysis
174•AbuAssar•12h ago•35 comments

Wattage: A token-spend profiler and cost-regression gate for AI agents

https://github.com/faizannraza/wattage
3•faizanraza03•56m ago•0 comments

The Usefulness of Useless Knowledge (1939) [pdf]

https://faculty.lsu.edu/kharms/files/flexner_1939.pdf
11•jxmorris12•3d ago•1 comments

The New AI Superpowers: Focus and Followthrough

https://www.rickmanelius.com/p/the-new-ai-superpowers-focus-and
127•mooreds•11h ago•42 comments

How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

https://astgrep.com/blog/tree-sitter-rust-rewrite
48•herrington_d•6h ago•7 comments

GrapheneOS protections against data extraction from locked devices

https://discuss.grapheneos.org/d/40700-grapheneos-protections-against-data-extraction-from-locked...
376•Cider9986•18h ago•219 comments

History of John Backus's functional programming project [draft]

https://softwarepreservation.computerhistory.org/FP/
3•cwbuilds•2d ago•0 comments

The relay market powering token resellers and fraud

https://vectoral.com/blog/token-relay-market
146•mlenhard•9h ago•91 comments

I learned PCB design, 3D printing and C just to listen to music

https://pentaton.app/blog/2026-07-12-introducing-pentaton-lp/
170•interfeco•3d ago•35 comments

Kill The Cookie Banner

https://killthecookiebanner.eu/
781•rapnie•12h ago•385 comments

Japan legend Miura, 59, scores first goal since 2022

https://www.bbc.com/sport/football/articles/c3r087181ndo
37•brudgers•1h ago•7 comments

Jimothy the raccoon has a rare spinal condition. Here's what that means

https://www.popsci.com/science/whats-jimothy-raccoon-condition/
97•speckx•5d ago•51 comments

Using sed to make indexes for books (1997)

https://www.pement.org/sed/make_indexes.txt
47•TMWNN•3d ago•9 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
134•pompomsheep•11h ago•46 comments

It's not empowering to hand off the details

https://davidnicholaswilliams.com/its-not-empowering-to-hand-off-the-details/
173•davnicwil•6h ago•95 comments

Multiway Turing Machines (2021 pre-ai)

https://bulletins.wolframphysics.org/2021/02/multiway-turing-machines/
17•marysminefnuf•3h ago•3 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?