frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

A Tiny Compiler for Data-Parallel Kernels

https://healeycodes.com/a-tiny-compiler-for-data-parallel-kernels
18•healeycodes•1d ago

Comments

RossBencina•23m ago
> Can different iterations of this loop run independently?

I'm not a compiler guy, but vectorisation algorithms typically analyze loop-carried dependencies and can vectorise loops that are not trivially data parallel as is the case in the post. Allen & Kennedy (MK, 2002) discusses the classical methods.

Here's an example, I'm not sure whether the post's algorithm would handle it:

  phase = 0.0
  inc = 0.12345678899

  for i in [0, n):
    out[i] = table[phase % TABLE_LEN]
    phase = phase + inc
Assuming n%4 == 0, this can be trivially 4 lane vectorised as:

  phasev = [phase, phase+inc, phase+inc+inc, phase+inc+inc+inc]
  incv = [inc, inc, inc, inc]

  for i in [0, n) step 4:
    out[i..i+3] = table[phasev % TABLE_LEN]
    phasev = phasev + incv
When I read Allan and Kennedy my impression was that vectorising arbitrary imperative code is a much harder problem than designing a language that only allows for vectorisable constructs to be expressed in the first place. For example maybe it's better to express trivially data parallel kernels as pure functions over buffers and buffer indices. That's how shader programs work isn't it? In my example that would produce different code, requiring a multiplication:

  lambda i: table[(phase0 + i*inc) % TABLE_LEN]

Previewing GPT‑5.6 Sol: a next-generation model

https://openai.com/index/previewing-gpt-5-6-sol/
804•minimaxir•7h ago•491 comments

Why does kinetic energy increase quadratically, not linearly, with speed? (2011)

https://physics.stackexchange.com/questions/535/why-does-kinetic-energy-increase-quadratically-no...
55•ProxyTracer•2h ago•16 comments

A C++ implementation of a fast hash map and hash set using hopscotch hashing

https://github.com/Tessil/hopscotch-map
57•gjvc•3h ago•8 comments

US allows Anthropic to release Mythos to 'trusted partners'

https://www.reuters.com/technology/us-releases-anthropic-model-mythos-some-us-companies-semafor-r...
171•bobrenjc93•2h ago•113 comments

U.S. government will decide who gets to use GPT-5.6

https://www.washingtonpost.com/technology/2026/06/26/openai-says-us-government-will-vet-users-its...
785•alain94040•6h ago•891 comments

MicroVMs: Run isolated sandboxes with full lifecycle control

https://aws.amazon.com/blogs/aws/run-isolated-sandboxes-with-full-lifecycle-control-aws-lambda-in...
254•justincormack•3d ago•143 comments

The gap between open weights LLMs and closed source LLMs

https://blog.doubleword.ai/frontier-os-llm
106•kkm•3h ago•89 comments

AI in mathematics is forcing big questions

https://spectrum.ieee.org/ai-in-mathematics
30•rbanffy•2h ago•8 comments

We can still stop California's 3D printer surveillance scheme

https://www.eff.org/deeplinks/2026/06/we-can-still-stop-californias-3d-printer-surveillance-scheme
189•hn_acker•3h ago•52 comments

A Tiny Compiler for Data-Parallel Kernels

https://healeycodes.com/a-tiny-compiler-for-data-parallel-kernels
18•healeycodes•1d ago•1 comments

The "Bizarre Headgear" exhibit at the Sam Noble museum

https://svpow.com/2026/05/15/the-bizarre-headgear-exhibit-at-the-sam-noble-museum-is-incredible/
67•surprisetalk•3d ago•7 comments

Show HN: DBOSify – Drop-in Temporal replacement built on Postgres

https://github.com/dbos-inc/dbosify-py
10•KraftyOne•2d ago•2 comments

Show HN: Smart model routing directly in Claude, Codex and Cursor

https://github.com/workweave/router
138•adchurch•8h ago•86 comments

Hightouch (YC S19) Is Hiring

https://hightouch.com/careers#open-positions
1•joshwget•3h ago

Ultrasound imaging of the brain

https://alephneuro.com/blog/ultrasound-brain
231•rossant•13h ago•92 comments

What Is a Nomogram and Why Would It Interest Me?

https://lefakkomies.github.io/pynomo-doc/introduction/introduction.html#what-is-a-nomogram-and-wh...
79•Eridanus2•7h ago•15 comments

A human postmortem of the 1996 AOL outage

https://ngrok.com/blog/aol-was-down-1996
36•EndEntire•2d ago•7 comments

PlayStation Is Deleting 551 Movies from Customers' Accounts

https://kotaku.com/playstation-store-movies-digital-studio-canal-terminator-2000711013
139•ortusdux•4h ago•86 comments

The open source DOCX editor submitted to HN a few weeks ago has been deleted

46•gcanyon•3h ago•34 comments

Long Wave radio era set to end with Droitwich switch-off

https://www.bbc.com/news/articles/c74yn7v7k4qo
47•speckx•5h ago•20 comments

Om

https://daringfireball.net/2026/06/om
29•throw0101a•1h ago•2 comments

Lippmann Photography

https://www.jonhilty.com/lippmann
16•andsoitis•2d ago•0 comments

Gossamer: a Rust-flavoured language with real goroutines and pause-free memory

https://gossamer-lang.org/
66•mwheeler•6h ago•57 comments

Pre-Modern Armies for Worldbuilders, Part III: Paying for It

https://acoup.blog/2026/06/26/collections-pre-modern-armies-for-worldbuilders-part-iii-paying-for...
44•jfoucher•6h ago•6 comments

Modern GPU Programming for MLSys

https://mlc.ai/modern-gpu-programming-for-mlsys/
58•crowwork•3d ago•10 comments

Show HN: Autofit2 – End-to-end pipeline for multilingual text classification

https://github.com/neospe/autofit2
13•leschak•1d ago•1 comments

The Art of Kite Flying (1430–1929)

https://publicdomainreview.org/collection/art-of-kite-flying/
24•benbreen•4d ago•10 comments

LaTeX.wasm: LaTeX Engines in Browsers

https://www.swiftlatex.com/
84•theanonymousone•3d ago•30 comments

My Steam Machine is a 50ft HDMI cable

https://blog.matthewbrunelle.com/my-steam-machine-is-a-50ft-hdmi-cable/
160•speckx•3d ago•155 comments

Data centers trigger voter backlash

https://www.newsweek.com/cost-me-the-election-data-centers-trigger-voter-backlash-12118327
157•randycupertino•7h ago•288 comments