frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ember-1

https://fireworks.ai/blog/ember-1
135•gmays•2h ago•66 comments

Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi

https://loficities.com/
39•safaelmali•53m ago•7 comments

In an $80 motel room, a discovery to shed light on the origins of life

https://www.nytimes.com/2026/09/26/science/motel-science-discovery.html
144•danso•5h ago•56 comments

Writing Efficient C++ Code (2013)

https://asawicki.info/articles/writing_efficient_cpp_code.php
112•ibobev•1d ago•49 comments

Replacing the old battery on rechargeable bike lights

https://jvns.ca/blog/2026/09/27/replacing-the-old-battery-on-rechargeable-bike-lights/
103•surprisetalk•6h ago•51 comments

Oral history of John Chowning, inventor of FM synthesis [video]

https://www.youtube.com/watch?v=e1Xn3030IvM
7•Rochus•1h ago•0 comments

Show HN: TinyAIArena watch AI agents battle it out

https://tinyaiarena.com/
62•hp6•3h ago•31 comments

The Normalization of Inexplicable Failures

https://www.ihatethefuture.com/2026/09/the-normalization-of-inexplicable.html
192•pxx•4h ago•69 comments

On caring for user data: NeoVim caused Vim undo files to be deleted

https://unsung.aresluna.org/they-had-no-concept-of-a-duty-of-care-to-their-users/
297•jandeboevrie•4h ago•257 comments

Fragment of oldest known peace treaty found in Turkey

https://www.livescience.com/archaeology/ancient-egyptians/we-have-found-traces-of-peace-thousands...
24•gmays•5h ago•5 comments

The Cartesian Hand: In-Hand Manipulation with All-Linear Fingers

https://generalroboticslab.com/cartesian_handv1
18•AareyBaba•1d ago•4 comments

Flip Fluid on Flip Dots

https://mitxela.com/projects/flipflip
316•blutack•1d ago•21 comments

Fakecloud: Local AWS cloud emulator for integration tests

https://fakecloud.dev/
75•theanonymousone•1d ago•41 comments

John Coltrane Centenary's – Impulse Records Release the Legendary Tiberi Tapes

https://www.jazzwise.com/content/news/john-coltrane-centenary-celebrations-see-impulse-records-re...
21•gregsadetsky•2d ago•5 comments

Show HN: Building a Markdown editor for Mac, iOS and web

https://www.markdown.beauty/
47•thiagoperes•5h ago•29 comments

There are no "rogue" AI agents

https://eoinhiggins.substack.com/p/there-are-no-rogue-ai-agents
242•zzzeek•3h ago•176 comments

Show HN: Trail – new kind of logic game

https://trail.franzai.com/
18•franze•12h ago•7 comments

Video CDs Break Windows Explorer

https://clydesnotes.blogspot.com/2026/08/video-cds-break-windows-explorer.html
43•ClydeN•1d ago•14 comments

Kicki: A DECsystem1060 – Interim Computer Museum

https://icm.museum/blog/?p=207
7•rbanffy•1d ago•1 comments

Faster prompt lookup drafting in llama.cpp

https://jadidbourbaki.github.io/blog/prompt-lookup-llama-cpp/
35•pptadversary•23h ago•3 comments

Improving site performance by shipping more CSS

https://github.blog/engineering/architecture-optimization/improving-site-performance-by-shipping-...
69•torutofu•1d ago•56 comments

Walgit: A Git server that is one binary in front of an object store

https://github.com/rgodha24/walgithub
58•handfuloflight•1d ago•7 comments

PostmarketOS is rebranding as Nura

https://nura.eco/blog/2026/09/27/nura-rename/
117•HotGarbage•4h ago•21 comments

Go Concurrency Distilled

https://antonz.org/go-concurrency-distilled/
348•chmaynard•1d ago•147 comments

C's Flexible Integer Sizes Were Not a Design Mistake

https://pikuma.com/blog/c-integer-sizes-not-a-mistake
50•ibobev•2d ago•76 comments

Ten lines of code that changed my world

https://pixelambacht.nl/2026/ten-lines-of-code/
100•dimonomid•6h ago•29 comments

PipePipe: NewPipe hard fork implementing SponsorBlock

https://github.com/InfinityLoop1308/PipePipe
478•Qision•2d ago•262 comments

Rusty thoughts on "Parse, don't validate"

https://eli.thegreenplace.net/2026/rusty-thoughts-on-parse-dont-validate/
60•ingve•10h ago•29 comments

Show HN: A CC0 museum of retro 3D tricks you can paste into a page

https://3d-retro.com/
59•SouthWestAtlas•3d ago•10 comments

Finally, A True Blue Rose Exists

https://www.sciencenews.org/article/true-blue-rose-pigment-copigment
86•bookofjoe•1d ago•33 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?