frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Linux Sandboxes and Fil-C

https://fil-c.org/seccomp
123•pizlonator•4h ago•30 comments

An Implementation of J

https://www.jsoftware.com/ioj/ioj.htm
25•ofalkaed•2h ago•4 comments

Closures as Win32 Window Procedures

https://nullprogram.com/blog/2025/12/12/
47•ibobev•3h ago•3 comments

Recovering Anthony Bourdain's (really) lost Li.st's

https://sandyuraz.com/blogs/bourdain/
131•thecsw•6h ago•45 comments

I tried Gleam for Advent of Code

https://blog.tymscar.com/posts/gleamaoc2025/
245•tymscar•10h ago•135 comments

I fed 24 years of my blog posts to a Markov model

https://susam.net/fed-24-years-of-posts-to-markov-model.html
114•zdw•7h ago•46 comments

Using E-Ink tablet as monitor for Linux

https://alavi.me/blog/e-ink-tablet-as-monitor-linux/
30•yolkedgeek•4d ago•9 comments

VPN location claims don't match real traffic exits

https://ipinfo.io/blog/vpn-location-mismatch-report
274•mmaia•7h ago•161 comments

Cat Gap

https://en.wikipedia.org/wiki/Cat_gap
58•Petiver•3d ago•6 comments

The Rise of Computer Games, Part I: Adventure

https://technicshistory.com/2025/12/13/the-rise-of-computer-games-part-i-adventure/
60•cfmcdonald•7h ago•17 comments

Why Twilio Segment moved from microservices back to a monolith

https://www.twilio.com/en-us/blog/developers/best-practices/goodbye-microservices
187•birdculture•7h ago•141 comments

llamafile: Distribute and Run LLMs with a Single File

https://github.com/mozilla-ai/llamafile
36•stefankuehnel•8h ago•5 comments

Useful patterns for building HTML tools

https://simonwillison.net/2025/Dec/10/html-tools/
253•simonw•3d ago•73 comments

Cryptids

https://wiki.bbchallenge.org/wiki/Cryptids
98•frozenseven•1w ago•15 comments

Ask HN: How can I get better at using AI for programming?

246•lemonlime227•11h ago•276 comments

Awesome-Jj: Jujutsu Things

https://github.com/Necior/awesome-jj
14•n3t•2h ago•1 comments

Go Proposal: Secret Mode

https://antonz.org/accepted/runtime-secret/
169•enz•4d ago•77 comments

Free Software Awards Winners Announced: Andy Wingo, Alx Sa, Govdirectory

https://www.fsf.org/news/2024-free-software-awards-winners
18•pseudolus•2h ago•0 comments

From Azure Functions to FreeBSD

https://jmmv.dev/2025/12/from-azure-functions-to-freebsd.html
75•todsacerdoti•5d ago•8 comments

Some surprising things about DuckDuckGo

https://gabrielweinberg.com/p/some-surprising-things-about-duckduckgo
73•ArmageddonIt•5h ago•54 comments

Rocket Lab – 'Raise and Shine' Launch for JAXA [video]

https://www.youtube.com/watch?v=cMP328yoUu4
3•schappim•20m ago•0 comments

Flat-pack washing machine spins a fairer future

https://www.positive.news/society/flat-pack-washing-machine-spins-a-fairer-future/
67•ohjeez•4h ago•32 comments

What is the nicest thing a stranger has ever done for you?

https://louplummer.lol/nice-stranger/
319•speckx•2d ago•242 comments

EasyPost (YC S13) Is Hiring

https://www.easypost.com/careers
1•jstreebin•10h ago

Dhtml Lemmings (2004)

https://www.elizium.nu/scripts/lemmings/index.php
4•tetris11•5d ago•2 comments

Want to sway an election? Here’s how much fake online accounts cost

https://www.science.org/content/article/want-sway-election-here-s-how-much-fake-online-accounts-cost
154•rbanffy•6h ago•101 comments

Using Python for Scripting

https://hypirion.com/musings/use-python-for-scripting
99•birdculture•5d ago•78 comments

A Giant Ball Will Help This Man Survive a Year on an Iceberg

https://www.outsideonline.com/outdoor-adventure/exploration-survival/how-giant-ball-will-help-man...
44•areoform•12h ago•38 comments

Photographer built a medium-format rangefinder

https://petapixel.com/2025/12/06/this-photographer-built-an-awesome-medium-format-rangefinder-and...
167•shinryuu•1w ago•41 comments

Researchers seeking better measures of cognitive fatigue

https://www.nature.com/articles/d41586-025-03974-w
110•bikenaga•3d ago•31 comments
Open in hackernews

Faster sorting with SIMD CUDA intrinsics (2024)

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

Comments

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