frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

All AI-generated code should be Open Source

https://jakub.jankiewicz.org/blog/ai-code-open-source/
274•jcubic•1h ago•172 comments

The MacBook Pro's OLED PWM Problem: When a 'Better' Display Becomes Worse to Use

https://macanorak.com/the-macbook-pros-oled-pwm-problem-when-a-better-display-becomes-worse-to-use/
185•MacAnorak•3h ago•90 comments

Things That Turbo Pascal Is Smaller Than (2011)

https://prog21.dadgum.com/116.html
75•ksec•2h ago•23 comments

The Hypertext Transfer Protocol Status Code 483 (I'm Not a Freezer)

https://datatracker.ietf.org/doc/draft-banffy-httpbis-not-a-freezer/
49•rbanffy•2h ago•22 comments

Emacs Is My Browser

https://joshblais.com/blog/emacs-as-my-browser/
24•nyc111•1h ago•1 comments

SpaceX catches the Starship to end Flight 15

https://www.spacex.com/launches/starship-flight-15
1463•ls612•19h ago•989 comments

Understanding Positional Embeddings in Modern LLMs

https://magazine.sebastianraschka.com/p/understanding-positional-embeddings
93•vismit2000•4h ago•1 comments

A NES emulator written in Odin

https://lucypero.com/lucynes.html
51•frostbyte7•3h ago•6 comments

Court denies motion to dismiss DRAM price fixing case

https://litnews.ai/articles/garciaguirre-samsung-sk-hynix-micron-dram-conspiracy-suit-survives-di...
367•ybathaee•15h ago•153 comments

Why did some Apollo missions carry a grenade launcher?

https://space.stackexchange.com/questions/37775
137•Skyfall106•7h ago•97 comments

What thousands of conversations look like inside a language model

https://operator0x.com/field-notes/qwen-conversation-state-space/
59•josip208•2d ago•18 comments

Claude Code and Codex reverse engineered my 1994 Jeep's ECU over a $3 Arduino [video]

https://www.youtube.com/watch?v=WPj3aQ-xxpI
36•envoked•3d ago•17 comments

The Telephone Changed the World

https://lithub.com/how-the-telephone-changed-the-world/
23•NaOH•17h ago•6 comments

Show HN: A tiny macOS app that turns off the MacBook display [free license]

https://blackoutapp.io/
4•sliqqq•58m ago•1 comments

Lutnick Pushed to Weaken Chip Rules That Overlap with His Family Business

https://www.nytimes.com/2026/11/15/us/politics/lutnick-pushed-to-weaken-chip-rules-that-overlap-w...
183•JumpCrisscross•4h ago•72 comments

Chasing an audio artifact on power loss

https://subalpinecircuits.com/chasing-an-audio-artifact-on-power-loss/
30•ireflect•2d ago•2 comments

How to read codes from (many) IR remote controls with as little code as possible

https://bitbanksoftware.blogspot.com/2026/11/how-to-read-codes-from-many-ir-remote.html
18•speckx•3d ago•4 comments

Show HN: Carton Clock – A working pendulum clock made from empty drink cartons

https://www.niklasroy.com/carton-clock/
36•r0r0•2d ago•1 comments

Handwritten 200-year-old dismissal notice found on roof tile

https://www.bbc.co.uk/news/articles/c6jdmdzv25r9o
51•nephihaha•2d ago•32 comments

How did Woz write the Apple 1 BASIC before building the computer?

https://retrocomputing.stackexchange.com/questions/17957
276•Skyfall106•18h ago•143 comments

My favourite modern NES games

https://jordi.inversethought.com/blog/25-of-my-favourite-modern-nes-games/
170•jordigh•13h ago•23 comments

'Duffy Lied': Controllers Refute Transportation Secretary's Ground Stop Story

https://www.commondreams.org/news/duffy-ground-stop-explanation
12•mikestew•51m ago•0 comments

Strictly monotonic timestamps and gapless sequences in Rust

https://tsoracle.rs/
30•znano•2d ago•14 comments

Open-Source HF Communications for Remote Communities and Experimenters

https://www.ardc.net/rhizomaticas-hermes-and-mercury-expand-open-source-hf-communications-for-rem...
58•tejtm•4d ago•5 comments

Lovable apps expose passport details and more than 200K private messages

https://www.crissyfield.de/research/lovable-en/
940•armcat•22h ago•360 comments

A family tree of software job titles

https://zwischenzugs.com/2026/11/03/a-family-tree-of-software-job-titles/
385•umerf•22h ago•192 comments

Disk encryption on NetBSD – achieving secrecy

https://netbsd.org/~nia/disk-encrypt/
79•jaypatelani•11h ago•15 comments

Book list for streetfighting computer scientists

https://nick-black.com/dankwiki/index.php?title=Book_list_for_streetfighting_computer_scientists
100•num42•9h ago•38 comments

Semicircle Packing

https://rorz.io/writing/semicircle-packing
71•sarreph•2d ago•8 comments

The Evolving Story of How Chemistry Became Biology

https://www.quantamagazine.org/the-evolving-story-of-how-chemistry-became-biology-20261112/
85•pseudolus•2d ago•19 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?