frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Interactive World History Atlas Since 3000 BC

http://geacron.com/home-en/
80•not_knuth•2h ago•33 comments

CUDA Ontology

https://jamesakl.com/posts/cuda-ontology/
109•gugagore•3d ago•13 comments

Android/Linux Dual Boot

https://wiki.postmarketos.org/wiki/Dual_Booting/WiP
116•joooscha•3d ago•55 comments

Basalt Woven Textile

https://materialdistrict.com/material/basalt-woven-textile/
114•rbanffy•6h ago•59 comments

Europe is scaling back GDPR and relaxing AI laws

https://www.theverge.com/news/823750/european-union-ai-act-gdpr-changes
775•ksec•21h ago•867 comments

Show HN: Awesome J2ME

https://github.com/hstsethi/awesome-j2me
4•catstor•42m ago•2 comments

New Proofs Probe Soap-Film Singularities

https://www.quantamagazine.org/new-proofs-probe-soap-film-singularities-20251112/
15•pseudolus•1w ago•0 comments

Loose wire leads to blackout, contact with Francis Scott Key bridge

https://www.ntsb.gov:443/news/press-releases/Pages/NR20251118.aspx
352•DamnInteresting•15h ago•142 comments

Meta Segment Anything Model 3

https://ai.meta.com/sam3/
521•lukeinator42•18h ago•104 comments

Implementation of a Java Processor on a FPGA

https://mavmatrix.uta.edu/electricaleng_theses/337/
46•mghackerlady•5h ago•19 comments

AI is a front for consolidation of resources and power

https://www.chrbutler.com/what-ai-is-really-for
382•delaugust•16h ago•302 comments

Researchers discover security vulnerability in WhatsApp

https://www.univie.ac.at/en/news/detail/forscherinnen-entdecken-grosse-sicherheitsluecke-in-whatsapp
248•KingNoLimit•15h ago•94 comments

Scientists Reveal How the Maya Predicted Eclipses for Centuries

https://www.sciencealert.com/scientists-reveal-how-the-maya-predicted-eclipses-for-centuries
7•rguiscard•6d ago•0 comments

Building more with GPT-5.1-Codex-Max

https://openai.com/index/gpt-5-1-codex-max/
423•hansonw•18h ago•253 comments

#!magic, details about the shebang/hash-bang mechanism on various Unix flavours

https://www.in-ulm.de/%7Emascheck/various/shebang/
42•js2•6h ago•12 comments

Precise geolocation via Wi-Fi Positioning System

https://www.amoses.dev/blog/wifi-location/
190•nicosalm•14h ago•74 comments

What really happened with the CIA and The Paris Review?

https://www.theparisreview.org/blog/2025/11/11/what-really-happened-with-the-cia-and-the-paris-re...
68•frenzcan•1w ago•7 comments

CLI tool to check the Git status of multiple projects

https://github.com/uralys/check-projects
39•chrisdugne•6d ago•19 comments

PHP 8.5 gets released today, here's what's new

https://stitcher.io/blog/new-in-php-85
129•brentroose•5h ago•65 comments

Launch HN: Mosaic (YC W25) – Agentic Video Editing

https://mosaic.so
124•adishj•20h ago•116 comments

How Slide Rules Work

https://amenzwa.github.io/stem/ComputingHistory/HowSlideRulesWork/
121•ColinWright•14h ago•29 comments

Foliated Distance Fields [video]

https://www.youtube.com/watch?v=3AGeLuO5WdY
5•surprisetalk•6d ago•0 comments

DOS Days – Laptop Displays

https://www.dosdays.co.uk/topics/laptop_displays.php
7•nullbyte808•3h ago•0 comments

Static Web Hosting on the Intel N150: FreeBSD, SmartOS, NetBSD, OpenBSD and Linu

https://it-notes.dragas.net/2025/11/19/static-web-hosting-intel-n150-freebsd-smartos-netbsd-openb...
169•t-3•18h ago•64 comments

The Lucas-Lehmer Prime Number Test

https://www.scientificamerican.com/article/how-to-identify-a-prime-number-without-a-computer/
77•beardyw•1w ago•42 comments

Gaming on Linux has never been more approachable

https://www.theverge.com/tech/823337/switching-linux-gaming-desktop-cachyos
438•throwaway270925•14h ago•321 comments

Vortex: An extensible, state of the art columnar file format

https://github.com/vortex-data/vortex
83•tanelpoder•5d ago•20 comments

How to stay sane in a world that rewards insanity

https://www.joanwestenberg.com/p/how-to-stay-sane-in-a-world-that-rewards-insanity
233•enbywithunix•21h ago•179 comments

The patent office is about to make bad patents untouchable

https://www.eff.org/deeplinks/2025/11/patent-office-about-make-bad-patents-untouchable
487•iamnothere•14h ago•66 comments

Measuring political bias in Claude

https://www.anthropic.com/news/political-even-handedness
84•gmays•16h ago•138 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

https://winwang.blog/posts/bitonic-sort/
92•winwang•6mo ago
Code at https://github.com/wiwa/blog-code/

Comments

ashvardanian•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
Parallel compares: https://graphics.stanford.edu/~seander/bithacks.html#ZeroInW...
DennisL123•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
As someone who doesn't know very much about graphics (ironically), you're welcome and hope it helps!
fourseventy•6mo ago
What are the biggest use cases of GPU accelerated sorting?