frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Don't be a meat proxy

https://gruhn.me/blog/2026-08-03/
640•ngruhn•4h ago•280 comments

Prevent cognitive debt by manually retyping LLM-generated code

https://ankursethi.com/blog/prevent-cognitive-debt-by-manually-retyping-llm-generated-code/
38•mpweiher•1h ago•26 comments

Qwen3.8-Max: A New Bar for Coding and Cowork

https://qwen.ai/blog?id=qwen3.8
600•ai2027•8h ago•304 comments

Bonsai: Janestreet's UI Library

https://github.com/janestreet/bonsai
52•KolmogorovComp•2h ago•11 comments

Less Coffee, Better Sleep

https://www.marginalia.nu/log/a_109_sleep2/
30•edward•1h ago•33 comments

What DMARC Protects You From, and What It Does Not

https://senderledger.com/articles/what-dmarc-actually-protects-you-from
13•adulion•1h ago•3 comments

Rust project goals: Immobile types and guaranteed destructors

https://github.com/rust-lang/rust-project-goals/blob/main/src/2026/move-trait.md
82•paavohtl•4h ago•18 comments

Octane – React's programming model, compiled

https://octanejs.dev
22•nnx•2h ago•8 comments

Show HN: Isopolis – Isometric pixel map of SF

https://sf.isopolis.city/
226•nuwandavek•9h ago•50 comments

The true power of regular expressions (2012)

https://www.npopov.com/2012/06/15/The-true-power-of-regular-expressions.html
8•uneven9434•1h ago•2 comments

The AI Productivity Gap

https://bjorg.bjornroche.com/management/ai-productivity-gap/
52•kiyanwang•3h ago•48 comments

PISIGuard: Protect your personal and sensitive info when you chat with AI

https://github.com/mohamed--abdel-maksoud/pisiguard
6•mohamed_am83•1h ago•5 comments

The Shape of Things to Come

https://yegge.ai/essays/the-shape-of-things-to-come/
19•tosh•3h ago•20 comments

Show HN: ssh ssh.place

https://ssh.place
119•jeninh•10h ago•72 comments

Why we write our own C and C++ inference engines

https://localai.io/blog/why-we-write-our-own-engines/
59•eatonphil•2d ago•27 comments

CP/M-386 – CP/M for 386 protected mode, derived from CP/M‑68K

https://github.com/johnsonjh/cpm386
70•TMWNN•10h ago•30 comments

Show HN: A Handwritten Blogging Platform

https://handwritten.blog/
112•emilesilvis•3d ago•55 comments

MPs demand answers on Fujitsu's inclusion in lucrative frameworks

https://www.computerweekly.com/news/366646721/MPs-demand-answers-on-Fujitsus-inclusion-in-lucrati...
17•latein•1h ago•4 comments

Autoregressive Language Model on the 6502 Processor

https://mattbeton.com/blog/bitnet-6502.html
111•nmstoker•2d ago•10 comments

Why Book Corners won't sync contributions back to OpenStreetMap

https://www.andreagrandi.it/posts/why-book-corners-wont-sync-contributions-back-to-openstreetmap/
103•pizzaiolo•10h ago•60 comments

Show HN: Kakehashi – Experimental userspace to run macOS binaries on Linux ARM

https://github.com/wie-project/kakehashi
222•vlad_kalinkin•18h ago•55 comments

Note-Taking and Personal Knowledge Management

https://unattributed.cc/note-taking-and-personal-knowledge-management
206•surprisetalk•5d ago•65 comments

Developers are attached to tools because tools encode trust

https://stackoverflow.blog/2026/07/29/developers-are-attached-to-tools-because-tools-encode-trust/
215•HieronymusBosch•4d ago•117 comments

How do you rewrite C/C++ projects to Rust?

https://blog.jetbrains.com/rust/2026/07/27/cpp-to-rust-migration/
16•smokeeaasd•5d ago•11 comments

Convergence is not enough

https://www.inkandswitch.com/livelymerge/notebook/lm-02/
34•zdw•6d ago•6 comments

SwiftUI After 7 Years

https://ykvm.com/2026/07/swiftui-a-story-of-mediocrity/
200•mpweiher•15h ago•180 comments

Situational Awareness and the Impending Stock Market Volatility

https://www.emergingtrajectories.com/lh/situational-awareness-bigger-picture/
15•cl42•4h ago•7 comments

Show HN: We Fixed UniFi's Slow PPPoE Performance with PPPoE Half-Bridge

https://arcbox.dev/blog/unifi-pppoe-half-bridge-acceleration
9•uneven9434•2h ago•4 comments

The myth of Snow Leopard

https://www.rubenerd.au/the-myth-of-snow-leopard/
100•speckx•16h ago•84 comments

Read the novels and forget everything else

https://hedgehogreview.com/web-features/thr/posts/read-the-novels-and-forget-everything-else
103•samclemens•2d ago•86 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?