Compare commits
269
Commits
c53f40e604
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30da767d56 | ||
|
|
a30caeff69 | ||
|
|
950d4e6466 | ||
|
|
2343468bcd | ||
|
|
6b9bac9074 | ||
|
|
84312401bd | ||
|
|
65b7e566ed | ||
|
|
cae321d2e2 | ||
|
|
8b0963c67f | ||
|
|
b41b342760 | ||
|
|
ea4071cf02 | ||
|
|
3f34bd1824 | ||
|
|
b67e758571 | ||
|
|
9a1c66b881 | ||
|
|
b09023c412 | ||
|
|
d2e43c1baa | ||
|
|
acbb102237 | ||
|
|
c26470f6d4 | ||
|
|
211933797b | ||
|
|
fc29f6995a | ||
|
|
cd39a5dec6 | ||
|
|
13a7338748 | ||
|
|
febd449686 | ||
|
|
8d12a945c9 | ||
|
|
f4e98e8260 | ||
|
|
4f949c20e4 | ||
|
|
412b288083 | ||
|
|
02849f0f0c | ||
|
|
aaf16e89c7 | ||
|
|
a2f90777cb | ||
|
|
c683f67266 | ||
|
|
667f8ca53e | ||
|
|
c825ba0f06 | ||
|
|
502612291a | ||
|
|
ebdeb1a8d7 | ||
|
|
0cb263d020 | ||
|
|
6e9b4dcf35 | ||
|
|
be4656b100 | ||
|
|
8cffa8e23e | ||
|
|
b9769b7885 | ||
|
|
970cc7e10e | ||
|
|
6767719a1c | ||
|
|
490238ce89 | ||
|
|
8c5b512e8a | ||
|
|
088db9c3f3 | ||
|
|
2e10386c44 | ||
|
|
f10f7cbfec | ||
|
|
94a52c1d16 | ||
|
|
18d1d5df21 | ||
|
|
26177df654 | ||
|
|
17ad2e1f82 | ||
|
|
b0af9a5e05 | ||
|
|
f9b129b7b7 | ||
|
|
1d38c9449d | ||
|
|
bd244dc90f | ||
|
|
1c92f5879d | ||
|
|
11efeff692 | ||
|
|
60b5b85db8 | ||
|
|
d1f0d6d1b8 | ||
|
|
dcd0f735dc | ||
|
|
7208125929 | ||
|
|
68cd18f886 | ||
|
|
068d282f91 | ||
|
|
6e6b86442f | ||
|
|
a98c86a675 | ||
|
|
0087cd5b5d | ||
|
|
ca69f442a3 | ||
|
|
e03ce0f90e | ||
|
|
f33019c573 | ||
|
|
b9178c7316 | ||
|
|
ec9afc7597 | ||
|
|
8fde442764 | ||
|
|
f4ae2cc280 | ||
|
|
204cddd0a9 | ||
|
|
ee5fac2c1c | ||
|
|
1dca1ed878 | ||
|
|
be3811d62e | ||
|
|
b747857a99 | ||
|
|
b9bb50e484 | ||
|
|
3040c71bdc | ||
|
|
8877ae2676 | ||
|
|
1c24650960 | ||
|
|
52634993ce | ||
|
|
6f2fa3b259 | ||
|
|
c131ee46bd | ||
|
|
16c6591de9 | ||
|
|
ef7201f5bf | ||
|
|
ecce37ab9a | ||
|
|
d0341ef786 | ||
|
|
93be2b9b6a | ||
|
|
3d07098bd0 | ||
|
|
2bce73ccf3 | ||
|
|
51ba6bd406 | ||
|
|
a0b2a3a8f7 | ||
|
|
11e36d4d99 | ||
|
|
614c77d8a1 | ||
|
|
614ef53a55 | ||
|
|
431bd56e0e | ||
|
|
a6e6d7616c | ||
|
|
ba3674cbd7 | ||
|
|
5ff36e91e5 | ||
|
|
f2656236ab | ||
|
|
78335c126c | ||
|
|
487f97e231 | ||
|
|
6bcfdcf366 | ||
|
|
872e376951 | ||
|
|
c80a13598d | ||
|
|
1fd5a382e1 | ||
|
|
b93f61f76e | ||
|
|
8c0d135a7d | ||
|
|
c3a272fa5e | ||
|
|
4b618c18b2 | ||
|
|
51b8d32a65 | ||
|
|
9f59f6ee09 | ||
|
|
cf0651f55d | ||
|
|
1c816af61e | ||
|
|
93a01bef27 | ||
|
|
7d2b15d687 | ||
|
|
5917bfdbc6 | ||
|
|
09e0d9b8ea | ||
|
|
7d270d4b14 | ||
|
|
3beac7ea20 | ||
|
|
cb99a441a2 | ||
|
|
76a92f3876 | ||
|
|
d9bb5db8c7 | ||
|
|
d95b8d627b | ||
|
|
8a09a3efb9 | ||
|
|
55a933d89c | ||
|
|
871450af62 | ||
|
|
1a01ced6b6 | ||
|
|
26779fdb8a | ||
|
|
3b8e3e3488 | ||
|
|
20adbbf8f0 | ||
|
|
b1d675b089 | ||
|
|
5664b87a28 | ||
|
|
4ba327c4db | ||
|
|
856467d76b | ||
|
|
c2f0e52b35 | ||
|
|
baf931947b | ||
|
|
55258d11b7 | ||
|
|
a646a75ef5 | ||
|
|
5de0305405 | ||
|
|
0fe1078773 | ||
|
|
dead06a4f0 | ||
|
|
6ec919e9bb | ||
|
|
6632d22c06 | ||
|
|
0de68573c8 | ||
|
|
b658b0b786 | ||
|
|
9bbd485e60 | ||
|
|
f459c19e35 | ||
|
|
df8e836862 | ||
|
|
3c063987bf | ||
|
|
69b87777e5 | ||
|
|
f577242432 | ||
|
|
a5ffa9fb16 | ||
|
|
ab5e01c7b6 | ||
|
|
927025d052 | ||
|
|
11c9b1c15e | ||
|
|
0dd4a41807 | ||
|
|
6922d52b5e | ||
|
|
c8b6acbc08 | ||
|
|
880640d935 | ||
|
|
f8380db665 | ||
|
|
1ceb4b1583 | ||
|
|
62ccab7522 | ||
|
|
cc92419dca | ||
|
|
36e86a6fbd | ||
|
|
ee0cf46f0c | ||
|
|
5fb2362d0c | ||
|
|
df49bb41b1 | ||
|
|
0703c7a1fc | ||
|
|
d4221f1455 | ||
|
|
41872cf0ea | ||
|
|
5d4e2957c3 | ||
|
|
9490004d3f | ||
|
|
ba8692cbf2 | ||
|
|
59bc0a7e1f | ||
|
|
d0cb92722b | ||
|
|
827bf8d7a8 | ||
|
|
c7a9f96194 | ||
|
|
966e194563 | ||
|
|
ea754be3ab | ||
|
|
84a2e3b82d | ||
|
|
969eaa61f0 | ||
|
|
34075a79d5 | ||
|
|
002b0e1fe0 | ||
|
|
f5ef4331dc | ||
|
|
471e1980b5 | ||
|
|
1f87a7aaeb | ||
|
|
bb4a46a847 | ||
|
|
419b415386 | ||
|
|
507c1500e5 | ||
|
|
0af4756ae3 | ||
|
|
861d90bfdf | ||
|
|
e7e0392e1d | ||
|
|
63f840bff2 | ||
|
|
bca5513b5c | ||
|
|
8103e2c8de | ||
|
|
d07fc8fe82 | ||
|
|
190079e84a | ||
|
|
b862e21b99 | ||
|
|
8bf65fca7b | ||
|
|
aca7150c9e | ||
|
|
1a3fbe5121 | ||
|
|
6539243163 | ||
|
|
9e994c42e8 | ||
|
|
da75d92244 | ||
|
|
d8fd501cfa | ||
|
|
29e5757746 | ||
|
|
f44a6f55d1 | ||
|
|
c1aed52bd3 | ||
|
|
b9eb0f3657 | ||
|
|
277a28005b | ||
|
|
758d36dcd8 | ||
|
|
ded6789bfa | ||
|
|
23bf4fccc0 | ||
|
|
a6092de000 | ||
|
|
ab7639672c | ||
|
|
ae5592fc1c | ||
|
|
4e042d7942 | ||
|
|
54d6eef387 | ||
|
|
5da7069106 | ||
|
|
5eccb1305d | ||
|
|
8b8f1a231c | ||
|
|
8741077173 | ||
|
|
dc635997a9 | ||
|
|
a2de38f187 | ||
|
|
c637c393b8 | ||
|
|
5d243fe9fd | ||
|
|
526816c10f | ||
|
|
d6b3ebfd04 | ||
|
|
49d1afaa26 | ||
|
|
26f04e6cb0 | ||
|
|
b64ab023ea | ||
|
|
3805685d8f | ||
|
|
7e4ed4b303 | ||
|
|
0a281c571c | ||
|
|
ca16dae100 | ||
|
|
cd9803fe85 | ||
|
|
78401f09a2 | ||
|
|
24a82aa46c | ||
|
|
2945eca13c | ||
|
|
14147eb41b | ||
|
|
866b5f7245 | ||
|
|
6deb7e3bcb | ||
|
|
2a895e42d6 | ||
|
|
8f368b0dc3 | ||
|
|
9bfb0f9f55 | ||
|
|
ed1fda9db3 | ||
|
|
84c8b8d40a | ||
|
|
6c20ae6678 | ||
|
|
dbd619cd2b | ||
|
|
05ca2d5758 | ||
|
|
8cde717b4b | ||
|
|
8e08be0baf | ||
|
|
83ab0b7c6a | ||
|
|
e62fb3bd0a | ||
|
|
bbba5db7ac | ||
|
|
a1cad786d4 | ||
|
|
da7733490f | ||
|
|
5b087286cf | ||
|
|
8dbaf7bf59 | ||
|
|
ea30c06d3e | ||
|
|
f156455ec7 | ||
|
|
dcb4ac4a72 | ||
|
|
b1de847ee2 | ||
|
|
6789270c6a | ||
|
|
c18ee1b4b5 | ||
|
|
20d5ea092d |
No files matched your search
@@ -29,8 +29,15 @@ jobs:
|
||||
repository: jackyzha0/quartz
|
||||
ref: v5
|
||||
path: site
|
||||
- name: Apply SPA basepath patch
|
||||
working-directory: site
|
||||
run: python ../publish/quartz-patches/apply.py spa
|
||||
- name: Apply publish overlay
|
||||
run: cp publish/quartz.config.yaml site/quartz.config.yaml
|
||||
run: |
|
||||
cp publish/quartz.config.yaml site/quartz.config.yaml
|
||||
cp publish/quartz.custom.scss site/quartz/styles/custom.scss
|
||||
mkdir -p site/quartz/static
|
||||
cp publish/threadwell-reader.js site/quartz/static/threadwell-reader.js
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
@@ -46,17 +53,26 @@ jobs:
|
||||
with:
|
||||
path: site/.quartz/plugins
|
||||
key: ${{ runner.os }}-plugins-${{ hashFiles('site/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-plugins-
|
||||
- name: Install Dependencies
|
||||
working-directory: site
|
||||
run: npm ci
|
||||
- name: Install Quartz plugins
|
||||
working-directory: site
|
||||
run: npx quartz plugin install --from-config
|
||||
- name: Install theme package
|
||||
working-directory: site
|
||||
run: npm install @quartz-themes/everforest-spruce
|
||||
- name: Patch search fuzz
|
||||
working-directory: site
|
||||
run: python ../publish/quartz-patches/apply.py search
|
||||
- name: Build Quartz
|
||||
working-directory: site
|
||||
run: npx quartz build -d ..
|
||||
run: NODE_OPTIONS=--max-old-space-size=4096 npx quartz build -d .. --concurrency 8
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
- name: Rewrite built HTML
|
||||
working-directory: site
|
||||
run: python ../publish/quartz-patches/apply.py built
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
||||
@@ -15,3 +15,11 @@ meta/attachments/*
|
||||
.obsidian/plugins/
|
||||
.obsidian/themes/
|
||||
.obsidian/snippets/
|
||||
|
||||
assets/*
|
||||
!assets/README.md
|
||||
secrets/*
|
||||
!secrets/README.md
|
||||
scripts/twitter/__pycache__
|
||||
scripts/twitter/tests/__pycache__
|
||||
publish/quartz-patches/__pycache__
|
||||
@@ -2,22 +2,35 @@
|
||||
|
||||
Recovered threads and submerged records.
|
||||
|
||||
An [Obsidian](https://obsidian.md) vault published with [Quartz 5](https://quartz.jzhao.xyz) to GitHub Pages. The site is a convenient host for Twitter/X threads and other material that is not reliably web-indexed.
|
||||
An [Obsidian](https://obsidian.md) vault published with [Quartz 5](https://quartz.jzhao.xyz) to GitHub Pages. The site keeps Twitter/X threads and other material that search does not keep.
|
||||
The goal is archival purposes, for mainly old posts that are hard to scavange, track, or lack of trust in x.com to remain publishing the original content or the user deciding to not preserve said content on-site.
|
||||
|
||||
Live (after Pages is enabled): https://ed94.github.io/Threadwell
|
||||
Live: [threadwell.edsabode.dev](https://threadwell.edsabode.dev)
|
||||
|
||||
This has only been around since Aug 22nd, 2026. If you have suggestions on how to render archive artifacts or maybe something better than the current techstack to wrangle the artifacts I'm open ears.
|
||||
|
||||

|
||||
|
||||
## Post an issue for an inaccuracy
|
||||
|
||||
I'll correct it.
|
||||
|
||||
## Layout
|
||||
|
||||
Open **this repo root** as the Obsidian vault. Quartz is only the publisher; it lives in `site/`.
|
||||
Open **this repo root** as the Obsidian vault. Quartz lives in `site/` and only publishes.
|
||||
|
||||
```
|
||||
archive/ # public — primary sources
|
||||
threads/ # Twitter/X and similar
|
||||
threads/<handle>/<YYYY-MM-DD-slug>/
|
||||
# one thread: index.md is the author's chain
|
||||
sources/ # talks, pages, other records
|
||||
canvases/ # public — .canvas maps
|
||||
notes/ # public — authored / distilled writing
|
||||
notes/ # public — authored writing
|
||||
templates/ # not published
|
||||
meta/ # not published — conventions, local attachments
|
||||
meta/ # not published — conventions
|
||||
assets/ # not published, gitignored — working media
|
||||
secrets/ # not published, gitignored
|
||||
scripts/ # not published — local tooling (tracked)
|
||||
private/ # not published, not pushed
|
||||
publish/ # tracked overlay: quartz.config.yaml
|
||||
site/ # local Quartz clone (gitignored; own remotes)
|
||||
@@ -25,7 +38,7 @@ site/ # local Quartz clone (gitignored; own remotes)
|
||||
.github/workflows/deploy.yml
|
||||
```
|
||||
|
||||
`archive/`, `canvases/`, and `notes/` are public by default. `site/` is a separate git checkout of Quartz (`origin` → `jackyzha0/quartz`). Threadwell's only remote is `Ed94/Threadwell`.
|
||||
`archive/`, `canvases/`, and `notes/` publish by default. `site/` is a separate checkout of Quartz (`origin` → `jackyzha0/quartz`).
|
||||
|
||||
## Frontmatter
|
||||
|
||||
@@ -34,30 +47,33 @@ site/ # local Quartz clone (gitignored; own remotes)
|
||||
| `type` | `archive` \| `canvas` \| `note` |
|
||||
| `source` | `twitter` \| `youtube` \| `odysee` \| `article` \| `original` \| `other` |
|
||||
| `source_url` | original URL |
|
||||
| `author` | original author |
|
||||
| `author` | original display name |
|
||||
| `handle` | username without `@` |
|
||||
| `post_id` | Twitter status id |
|
||||
| `date` | original date `YYYY-MM-DD` |
|
||||
| `archived` | capture date |
|
||||
| `status` | `draft` \| `review` \| `published` |
|
||||
| `draft` | `true` omits the page from the site |
|
||||
| `tags`, `description`, `aliases` | as usual |
|
||||
|
||||
`draft: true` only hides a page from the **site**. A public GitHub repo still contains the file. Use `private/` for anything that must not be pushed.
|
||||
`draft: true` hides a page from the **site**. A public GitHub repo still contains the file. Use `private/` for anything that must not be pushed.
|
||||
|
||||
Templates: `templates/archive-source.md`, `templates/authored-note.md` (Templater placeholders).
|
||||
|
||||
## Images and embeds
|
||||
|
||||
Images: absolute HTTPS URLs on your image host. Do not commit local binaries for published notes.
|
||||
Notes cite the original host URL.
|
||||
|
||||
```md
|
||||

|
||||

|
||||
```
|
||||
|
||||
YouTube and tweets (Quartz Obsidian-flavored Markdown):
|
||||
Keep local copies in `assets/` (not committed). Notes do not point at `assets/` or `./media/`.
|
||||
|
||||
YouTube (Quartz Obsidian-flavored Markdown):
|
||||
|
||||
```md
|
||||

|
||||

|
||||
```
|
||||
|
||||
Odysee (iframe; copy the embed URL from Odysee share):
|
||||
@@ -66,7 +82,7 @@ Odysee (iframe; copy the embed URL from Odysee share):
|
||||
<iframe width="560" height="315" src="https://odysee.com/$/embed/SLUG/CLAIM" allowfullscreen></iframe>
|
||||
```
|
||||
|
||||
Remote URLs and iframes are left as-is in the static build.
|
||||
Remote URLs and iframes stay as written in the static build.
|
||||
|
||||
## Obsidian plugins
|
||||
|
||||
@@ -102,18 +118,18 @@ Open http://localhost:8080
|
||||
1. Repo Settings → Pages → Source: **GitHub Actions**
|
||||
2. If an old `github-pages` environment blocks the first deploy, delete it under Settings → Environments. The workflow recreates it.
|
||||
3. Push `main`. CI clones Quartz into `site/`, applies `publish/quartz.config.yaml`, builds with `-d ..`.
|
||||
4. Site: `https://ed94.github.io/Threadwell`
|
||||
4. Site: `https://threadwell.edsabode.dev`
|
||||
|
||||
`baseUrl` lives in `publish/quartz.config.yaml`. Change it if you attach a custom domain.
|
||||
|
||||
## Add content and republish
|
||||
|
||||
1. New thread: Templater → `archive-source` → save under `archive/threads/`
|
||||
2. Transcribe posts in order. Host images. Optional YouTube/Odysee/tweet embeds.
|
||||
1. New thread: create `archive/threads/<handle>/<YYYY-MM-DD-slug>/`. Templater → `archive-source` → save as `index.md` (the author's chain). Off-spine replies get their own notes in that folder. See `notes/How threads are organized.md`.
|
||||
2. Transcribe posts in order. Paste the original HTTPS image URL. Optional YouTube/Odysee/tweet embeds.
|
||||
3. Distill in `notes/` with `authored-note`. Wikilink the archive record.
|
||||
4. Set `draft: false` and `status: published`
|
||||
4. Set `draft: false` and `status: published` when the capture has been reviewed.
|
||||
5. Preview: `cd site; npx quartz build -d .. --serve`
|
||||
6. Commit and push `main` (vault + `publish/`, never `site/`)
|
||||
6. Commit and push `main` (vault + `publish/`, never `site/`, never `assets/` or `secrets/`)
|
||||
|
||||
Threadwell remotes: `origin` → https://github.com/Ed94/Threadwell.git only.
|
||||
Quartz remotes live in `site/` (`cd site; git pull`). After a Quartz pull, re-copy `publish/quartz.config.yaml`.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Archive
|
||||
type: note
|
||||
status: published
|
||||
draft: false
|
||||
description: Primary-source records. Not commentary.
|
||||
tags:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Sources
|
||||
type: note
|
||||
status: published
|
||||
draft: false
|
||||
description: Non-thread primary sources — talks, pages, videos, documents.
|
||||
tags:
|
||||
|
||||
+319
@@ -0,0 +1,319 @@
|
||||
---
|
||||
title: "@AgileJebrim @SebAaltonen @munohikari (3.) If you had multiple line stores collecting on a given line with ECC, you'd have the same bottleneck as fire-and-forget atomics."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/NOTimothyLottes/status/1869436525869724013"
|
||||
author: "NOTimothyLottes"
|
||||
handle: NOTimothyLottes
|
||||
post_id: "1869436525869724013"
|
||||
date: 2024-12-18
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim @SebAaltonen @munohikari (3.) If you had multiple line stores collecting on a given line with ECC, you'd have the same bottleneck as fire-and-forget atomics."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1869436199884222515"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/NOTimothyLottes/status/1869436525869724013
|
||||
- Author: NOTimothyLottes (@NOTimothyLottes)
|
||||
- Posted: 2024-12-18 17:36:14
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@NOTimothyLottes** ^1869436525869724013
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(3.) If you had multiple line stores collecting on a given line with ECC, you'd have the same bottleneck as fire-and-forget atomics. A throughput of one line modification per clock.
|
||||
|
||||
**2/** **@NOTimothyLottes** ^1869436940334014771
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(4.) Note the prior assumes a read hit!
|
||||
|
||||
So at the point you get anti-atomic, you are also anti-store and anti-ECC, and anti-etc. It's the same pipelines with the same variability due to on-chip networking, different clock domain crossing, etc.
|
||||
|
||||
**3/** **@NOTimothyLottes** ^1869437450399170852
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(5.) Good GPUs have multiple ALUs doing the atomic by the last level cache. So it scales very well as a function of line collisions. Meaning if all lanes access separate addresses on a cacheline, those go in parallel.
|
||||
|
||||
**4/** **@NOTimothyLottes** ^1869437815936979150
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(6.) Atomics and regular stores have the same memory controller base-camping behavior. If all SIMDs store to addresses that hash to the same last level cache partition, they will drop efficiency just like doing all atomics to the same address.
|
||||
|
||||
**5/** **@NOTimothyLottes** ^1869438257983062074
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(7.) Anyway, while CPU atomics are serious design fail, GPU atomics on good GPUs are your best friend. They are actually a fantastic tool for getting more regular performance in many parallel algorithms.
|
||||
|
||||
**6/** **@SebAaltonen** ^1869438915679338644
|
||||
|
||||
**@NOTimothyLottes** **@AgileJebrim** **@munohikari**
|
||||
|
||||
Indeed. Many CPU programmers have the wrong belief that GPU atomics are slow and unusable. They are fantastic. Bump allocator is your best friend on CPU side. On GPU you do atomic add to implement a bump allocator. As simple as that. It's super fast.
|
||||
|
||||
**7/** **@AgileJebrim** ^1869455007025946954
|
||||
|
||||
**@SebAaltonen** **@NOTimothyLottes** **@munohikari**
|
||||
|
||||
I know NVIDIA did a really good atomicAdd, especially if you don’t use the result of the atomicAdd(). If you use it, then it forces it down a significantly slower path. But it’s all implementation-specific and different vendors will do different things yes?
|
||||
|
||||
**8/** **@NOTimothyLottes** ^1869461633267032141
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Atomics come in two forms
|
||||
(1.) fire-and-forget (aka you don't use the return) - the compiler will flag it for no-return, so it behaves like a store
|
||||
(2.) read the return - it behaves like a {store, and read} simultaneously with layout "coherent"
|
||||
|
||||
**9/** **@NOTimothyLottes** ^1869462116689981465
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Good GPUs have address coalescing on writes and atomics. So a wave wide store is reduced to a cost that scales with the number of total cachelines all waves touch, with byte-write-mask so there is no read-modify-write
|
||||
|
||||
**10/** **@NOTimothyLottes** ^1869462778270085478
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
... atomics have the same but if any wave lane's addresses collide it will bump those to another request (for the same cacheline). Possible that some HW implements a HW reduction for collisions of some kinds of atomics locally before the requests go out, but don't assume that
|
||||
|
||||
**11/** **@NOTimothyLottes** ^1869463101361504275
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
... it's more likely that some compilers try to fix stupid behavior by doing a wave-reduction in software, and that causes hell for those of us who already write good code
|
||||
|
||||
**12/** **@AgileJebrim** ^1869463390944629143
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Thoughts on atomic compare exchange? I use similar functionality on CPUs to globally synchronize threads and I figured I’d give it a shot attempting to do that on GPUs.
|
||||
|
||||
**13/** **@NOTimothyLottes** ^1869464512191238438
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Compare and exchange since it takes 2 values, it could have half the peak rate through on-chip network. Personally I have always used algorithms that do better things without the cmpswap atomic. You always can get the return (value pre-atomic), so cmpswap utility is less
|
||||
|
||||
**14/** **@AgileJebrim** ^1869465848211230840
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
My CPU sync mechanism works by stalling each thread until it reaches a multiple of the total number of threads to be synced, only incrementing an integer (swapping) when it reaches its specific thread index.
|
||||
|
||||
**15/** **@NOTimothyLottes** ^1869467172495655049
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
I assume you are using a futex then on Linux to block? But the GPU doesn't have such a thing exposed in software. Instead you'd be effectively polling using serial global memory atomic latency as your rate limiter and 'blocking'
|
||||
|
||||
**16/** **@NOTimothyLottes** ^1869467614407541225
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
Serializing workgroups on the GPU in this way has a very high latency granularity. There is also the issue of preemption on PCs, there is no guarantee of forward progress due to no guarantee all workgroups get restored
|
||||
|
||||
**17/** **@NOTimothyLottes** ^1869467785010762160
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
So you can deadlock post preemption if the workgroup that needs to do the atomic to unblock those spinning cannot get back on the machine
|
||||
|
||||
**18/** **@NOTimothyLottes** ^1869468049176506634
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
Now, the important part, there is one compromise rule that has the highest chance of being possible, that is an ask that if there is a partial restore, that it restores the oldest launched workgroups first ...
|
||||
|
||||
**19/** **@NOTimothyLottes** ^1869468322003317098
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
And with that you can have some forward progress if an algorithm only has dependencies on workgroups launched before it (like lower kernel global workgroup index), food for thought for algorithm design
|
||||
|
||||
**20/** **@NOTimothyLottes** ^1869469045357158663
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
on the CPU side, you'd futex block to get the thread off being scheduled so the dependent one could get on the machine to avoid deadlock, it isn't efficient by any means but works, the GPU's exposed only voluntary method to get off the machine is to exit the workgroup ...
|
||||
|
||||
**21/** **@NOTimothyLottes** ^1869469471892795511
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
So if you uber-task, meaning just keep launching the same dispatch, and the workgroup finds what it needs to do (instead of working off kernel global index), then you can workaround preemption that way too ...
|
||||
|
||||
**22/** **@NOTimothyLottes** ^1869469740726734946
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
Blocking becomes just workgroup exit. And the next workgroup gets lower schedule priority than existing active workgroups which helps solve of the scheduling issues
|
||||
|
||||
**23/** **@AgileJebrim** ^1869470170613461399
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
I’m not using a Linux futex. Could you look over my code here?
|
||||
|
||||
**24/** **@simplex_fx** ^1869471291973214394
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
Hey Jeb, have you considered hitting the funny L shaped button on the right of your keyboard more frequently? 😅
|
||||
|
||||
**25/** **@AgileJebrim** ^1869472284156834117
|
||||
|
||||
**@simplex_fx** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
Enter? Nah
|
||||
|
||||
**26/** **@simplex_fx** ^1869474818384670790
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||

|
||||
|
||||
**27/** **@AgileJebrim** ^1869479130993234191
|
||||
|
||||
**@simplex_fx** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
If I don’t have to scroll right…
|
||||
|
||||
**28/** **@simplex_fx** ^1869486350074020173
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
Dude, stop with that WQHD bullshit, buy a proper tv and limit yourself to 80-120
|
||||
|
||||
**29/** **@AgileJebrim** ^1869486638877004115
|
||||
|
||||
**@simplex_fx** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
Nty. The hell do I need a tv for? I have several monitors.
|
||||
|
||||
**30/** **@simplex_fx** ^1869486998249185767
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
How big?
|
||||
|
||||
**31/** **@AgileJebrim** ^1869487741052023113
|
||||
|
||||
**@simplex_fx** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
Big enough to maximize a window on each.
|
||||
|
||||
**32/** **@simplex_fx** ^1869518005237112922
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
If you go too wide, you will just kill your neck on the long run
|
||||
|
||||
**33/** **@AgileJebrim** ^1869523900687864185
|
||||
|
||||
**@simplex_fx** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
I have 4 monitors
|
||||
|
||||
**34/** **@simplex_fx** ^1869529828082541035
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@SebAaltonen**
|
||||
|
||||
How big?
|
||||
|
||||
**35/** **@NOTimothyLottes** ^1869530109096669269
|
||||
|
||||
**@simplex_fx** **@AgileJebrim** **@SebAaltonen**
|
||||
|
||||
Ideally one of these
|
||||
|
||||

|
||||
|
||||
**36/** **@AgileJebrim** ^1869530951480717429
|
||||
|
||||
**@NOTimothyLottes** **@simplex_fx** **@SebAaltonen**
|
||||
|
||||
Not big enough. Evans & Sutherland still makes planetariums. We have smaller scale 360 degree domes. I think they’re about 14ft high.
|
||||
|
||||
**37/** **@SebAaltonen** ^1869808696366379155
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes**
|
||||
|
||||
Same is true for everything. All memory loads on GPUs are highly vendor specific. On GTX 1080 (Pascal) your memory load goes through sampler, which is around 85 cycles of latency. While on Turing your raw load is only 28 cycles of latency (CUDA benchmarks).
|
||||
|
||||
**38/** **@AgileJebrim** ^1869809446437957837
|
||||
|
||||
**@SebAaltonen** **@NOTimothyLottes**
|
||||
|
||||
For sure, but my focus is more on how deterministic and predictable these are. I’ll take 85 if it’s always 85 over something that might vary unpredictably between 28 and 100.
|
||||
|
||||
**39/** **@SebAaltonen** ^1869810947512250536
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes**
|
||||
|
||||
Nvidia has big L1$, so they are more predictable. Texture samplers are shared with all waves running on the same compute unit. They are not really predictable. You wait until the unit is ready. There's quite a lot of fluctuation. That's why you have 8x-10x hyperthreading per CU.
|
||||
|
||||
**40/** **@SebAaltonen** ^1869811242954830281
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes**
|
||||
|
||||
The idea is to keep the SIMD running all the time. Wave execution time variance hasn't been a big optimization goal. There's always more work coming, so it's not a problem if some wave takes 10x time to execute compared to others.
|
||||
|
||||
**41/** **@SebAaltonen** ^1869811536547721585
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes**
|
||||
|
||||
Basically if the SIMD is executing instructions all the time, then your workload runs at predictable amount of instructions per cycle. The problem is barriers. You wait for longest wave to finish. You can't to batch barriers to avoid turning latency into real lost SIMD cycles.
|
||||
|
||||
**42/** **@AgileJebrim** ^1869811840433496316
|
||||
|
||||
**@SebAaltonen** **@NOTimothyLottes**
|
||||
|
||||
If they all take the same amount of time then there shouldn’t be much idling of hardware for waiting on the longest wave.
|
||||
|
||||
**43/** **@SebAaltonen** ^1870002011753578827
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes**
|
||||
|
||||
That's true. But they don't take the same amount of time due to caches. That's where the 10x hyper-threading kicks in. As long as the SIMD is fed all the time, there's no visible issue with fluctuating wave lengths. Barriers make that visible. Minimal amount of barriers = good.
|
||||
|
||||
**44/** **@AgileJebrim** ^1869454583191494967
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Would you implement a prefix sum compaction algorithm using atomicAdd?
|
||||
|
||||
**45/** **@NOTimothyLottes** ^1869460449194037720
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Standard optimizations apply, like doing wave-reductions first.
|
||||
|
||||
**46/** **@AgileJebrim** ^1869460608246239720
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Okay so you don’t just blanket throw an atomicAdd on it then.
|
||||
|
||||
**47/** **@NOTimothyLottes** ^1869463962322149607
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
No. For things like scanning a 1-bit value, it's a wave masked bit count op in software, followed by predicating the atomic to just lane 0 of the wave. For scanning uint32s it's a log2 wave reduction, then predicating the add to lane 0. And so on
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2024-12-18-you-left-out-the-bit-where-i-also-said-no]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@AgileJebrim @NOTimothyLottes @munohikari Yes, but it's going to be MUCH slower."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/SebAaltonen/status/1869425726128304359"
|
||||
author: "Sebastian Aaltonen"
|
||||
handle: SebAaltonen
|
||||
post_id: "1869425726128304359"
|
||||
date: 2024-12-18
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim @NOTimothyLottes @munohikari Yes, but it's going to be MUCH slower."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1869424048607993895"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/SebAaltonen/status/1869425726128304359
|
||||
- Author: Sebastian Aaltonen (@SebAaltonen)
|
||||
- Posted: 2024-12-18 16:53:20
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@SebAaltonen** ^1869425726128304359
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@munohikari**
|
||||
|
||||
Yes, but it's going to be MUCH slower. You can do sums and reductions in groupshared memory, but if that mobile GPU doesn't have real groupshared memory, it's going to be very slow. For example GMEM based groupshared is this slow on Qualcomm (and 730 is much better than 610):
|
||||
|
||||

|
||||
|
||||
**2/** **@SebAaltonen** ^1869426053002997774
|
||||
|
||||
**@AgileJebrim** **@NOTimothyLottes** **@munohikari**
|
||||
|
||||
X1 is the brand new laptop chip. This architecture is only on latest mobile phones. Low end is Adreno 610 and similar.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2024-12-18-you-left-out-the-bit-where-i-also-said-no]]
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
---
|
||||
title: "@munohikari @SebAaltonen You left out the bit where I also said no graphics pipeline."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/1869397269956673662"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "1869397269956673662"
|
||||
date: 2024-12-18
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@munohikari @SebAaltonen You left out the bit where I also said no graphics pipeline."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/1869397269956673662
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2024-12-18 15:00:15
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^1869397269956673662
|
||||
|
||||
**@munohikari** **@SebAaltonen**
|
||||
|
||||
You left out the bit where I also said no graphics pipeline. :P
|
||||
|
||||
**2/** **@SebAaltonen** ^1869401190653730862
|
||||
|
||||
**@AgileJebrim** **@munohikari**
|
||||
|
||||
Computer shaders are a can of worms for old mobile GPUs too. Some have fast groupshared memory (could be tiny), some emulate it. Some have wave intrinsics, some don't. 64-bit atomic support is nonexistent (for MM Dreams / Native style Z+payload packing).
|
||||
|
||||
**3/** **@SebAaltonen** ^1869401541570179083
|
||||
|
||||
**@AgileJebrim** **@munohikari**
|
||||
|
||||
Also compute shader writes are not compressed (pixel shader framebuffer writes have HW lossless compressor). You pay full memory bandwidth cost, which causes phone to heat (drain battery) and eventually throttle.
|
||||
|
||||
**4/** **@AgileJebrim** ^1869402067724615899
|
||||
|
||||
**@SebAaltonen** **@munohikari**
|
||||
|
||||
Alternative approach is to do all rendering in screen space in a fragment shader.
|
||||
|
||||
**5/** **@SebAaltonen** ^1869403157530550660
|
||||
|
||||
**@AgileJebrim** **@munohikari**
|
||||
|
||||
If you intend to do distance field ray-tracing using volume textures, worth noting that most mobile GPUs don't do proper 3d tiling layout for volume textures. Instead they use legacy 2d sliced layout, which results in significantly more L1$ trashing. Can 5x your mem BW use.
|
||||
|
||||
**6/** **@AgileJebrim** ^1869406913676660898
|
||||
|
||||
**@SebAaltonen** **@munohikari**
|
||||
|
||||
Raycasting, no bouncing, using cubic textured bricks that emulate voxel surfaces via a parallax occlusion map approach measuring distances to each voxel surface.
|
||||
|
||||
If I’m writing something for an avionics cockpit, I’d be either using an Arm Mali-G78AE or NVIDIA DRIVE AGX Thor GPU.
|
||||
|
||||
**7/** **@AgileJebrim** ^1869408574910423473
|
||||
|
||||
**@SebAaltonen** **@munohikari**
|
||||
|
||||
I’d also be using Vulkan SC, which I believe disables atomics entirely. :P
|
||||
|
||||
**8/** **@NOTimothyLottes** ^1869423853761614046
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Disabling atomics is like chopping off both legs because someone thinks one tow has a blister when it actually doesn't.
|
||||
|
||||
**9/** **@AgileJebrim** ^1869424048607993895
|
||||
|
||||
**@NOTimothyLottes** **@SebAaltonen** **@munohikari**
|
||||
|
||||
You can still implement a comparable feature yourself.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2024-12-18-you-left-out-the-bit-where-i-also-said-no/2024-12-18-SebAaltonen-yes-but-its-going-to-be-much-slower-you-can-do]]
|
||||
|
||||
**10/** **@NOTimothyLottes** ^1869434807228461111
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
No actually you cannot. No method of software (or even HW) implemented lock-line algorithm survives the kind of latency in the GPU memory system. There is a big reason atomics on GPUs are done right by the last level of cache (the coherent memory domain)
|
||||
|
||||
**11/** **@NOTimothyLottes** ^1869435419244527644
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
Something you really need to understand for your own benefit:
|
||||
(1.) There are a lot of more expensive things happening in the GPU memory system than atomics. For instance DCC compression. It requires metadata access (to get the state of memory just to do the compression on store).
|
||||
|
||||
**12/** **@NOTimothyLottes** ^1869436199884222515
|
||||
|
||||
**@AgileJebrim** **@SebAaltonen** **@munohikari**
|
||||
|
||||
(2.) Think of GPU atomics as a read-modify-write op. It's effectively the same behavior as a partial cacheline write-through STORE operation on HW using ECC. Because ECC eats the bits used for byte-write-mask.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2024-12-18-you-left-out-the-bit-where-i-also-said-no/2024-12-18-NOTimothyLottes-3-if-you-had-multiple-line-stores-collecting-on-a]]
|
||||
@@ -0,0 +1,146 @@
|
||||
---
|
||||
title: "Check your compiler."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/1888416459132395792"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "1888416459132395792"
|
||||
date: 2025-02-09
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "Check your compiler."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/1888416459132395792
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2025-02-09 02:35:43
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^1888416459132395792
|
||||
|
||||
Check your compiler. Do not trust crap advice like this. Compilers do a piss poor job performing if conversion down to select instructions. From my testing, mix() in GLSL is absolutely the most reliable way of getting a select op as a result.
|
||||
|
||||
step() isn’t necessary however. https://t.co/ianYUdKGcc
|
||||
|
||||
https://x.com/iquilezles/status/1888409333182218691
|
||||
[[archive/threads/iquilezles/2025-02-09-hey-dont-optimize-conditional-moves-with-mix-step]]
|
||||
|
||||
**2/** **@mcnabbd** ^1888418494666227843
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
i always say: measure it. no way to know for sure except to measure the perf. seen way too many "optimizations" that aren't
|
||||
|
||||
**3/** **@AgileJebrim** ^1888420217979543781
|
||||
|
||||
Measure can be hit or miss depending upon your data set or other bottlenecks. I also focus on what my final outcome goal actually is, which is a flat profile regardless of data contents, very different from what most folks optimizing are aiming for.
|
||||
|
||||
Therefore, I focus more on instruction output from the compiler. Eliminate all branches, even divergent ones, as modern GPUs use various tricks to try to speed these up under specific scenarios (which I don’t want). If a jump exists to anything but to the top of a fixed-length loop, then the code is invalid and should produce an error.
|
||||
|
||||
The other key requirement is careful control over caches and bypassing them when needed, but that’s another topic.
|
||||
|
||||
**4/** **@mcnabbd** ^1888422707118924065
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
my position is that these machines are so phenomenally complex, and only getting more so, that the only thing i can trust is the final measurement.
|
||||
|
||||
**5/** **@mcnabbd** ^1888423105733009877
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
i'll also add that i rarely get to this level of optimization because there are much larger gains to be had at the higher levels. like find a way to not do the thing in the first place
|
||||
|
||||
**6/** **@AgileJebrim** ^1888423591064072366
|
||||
|
||||
**@mcnabbd**
|
||||
|
||||
I don’t view this as an optimization in the first place. It’s not done for raw throughput purposes. It’s done for determinism purposes. To have highly predictable execution times. That’s of greater importance to me than just throughput alone is.
|
||||
|
||||
**7/** **@AgileJebrim** ^1888424019046576600
|
||||
|
||||
**@mcnabbd**
|
||||
|
||||
I design systems where it’s impossible for data contents to trigger performance degradation. It decouples performance from actions taken by content creators or end users. It ensures a stutter-free experience regardless of whatever people do.
|
||||
|
||||
**8/** **@NOTimothyLottes** ^1888429813297242393
|
||||
|
||||
**@AgileJebrim** **@mcnabbd**
|
||||
|
||||
I don't really know what step() is (never used it), but for AMD HW mix(a,b,bool) is a direct map to the HW V_CNDMASK_B32 op and works nice with multi-component a and b. So yeah mix(,,bool) is the right way to do things IMO.
|
||||
|
||||
**9/** **@NOTimothyLottes** ^1888433376773743074
|
||||
|
||||
**@AgileJebrim** **@mcnabbd**
|
||||
|
||||
Here is a simple example and the disassembly which shows mix(,,bool) form works well (using 4-component form in my example)
|
||||
|
||||

|
||||

|
||||
|
||||
**10/** **@NOTimothyLottes** ^1888433983718871431
|
||||
|
||||
**@AgileJebrim** **@mcnabbd**
|
||||
|
||||
Maybe something stupid happens in shadertoy because it is going through a browser that mangles it probably from GLSL ES to HLSL. But at least on PC AMD through Vulkan the mix(,,bool) form is great.
|
||||
|
||||
**11/** **@AgileJebrim** ^1888434156310315447
|
||||
|
||||
**@NOTimothyLottes** **@mcnabbd**
|
||||
|
||||
I doubt it. I think he’s just talking out of his ass and hasn’t actually checked anything.
|
||||
|
||||
**12/** **@NOTimothyLottes** ^1888435874137768288
|
||||
|
||||
**@AgileJebrim** **@mcnabbd**
|
||||
|
||||
Inigo is a very smart man, I'm sure he has some reasonable examples where his advice holds, and likely for his shadertoy (which does show FPS) which is as I say before browser mangled and running on {mobile through PC}. So advice may be different.
|
||||
|
||||
**13/** **@mcnabbd** ^1888436341203255304
|
||||
|
||||
**@NOTimothyLottes** **@AgileJebrim**
|
||||
|
||||
agreed. if Inigo says it, i assume it's right until proven otherwise
|
||||
|
||||
**14/** **@NOTimothyLottes** ^1888437808743710947
|
||||
|
||||
**@mcnabbd** **@AgileJebrim**
|
||||
|
||||
Today there are too many compiler/tools bugs to full generalize shader advice. The industry could fix this though, if they supplied platform specific HW ISA intrinsics for all chipsets. Then ISVs could setup translation headers to guarantee the right fast path on all platforms
|
||||
|
||||
**15/** **@AgileJebrim** ^1888439754917609574
|
||||
|
||||
**@NOTimothyLottes** **@mcnabbd**
|
||||
|
||||
I’ve tried GLSL, HLSL, and Slang. They’re all unreliable. Here is GLSLANG failing immediately at the SPIR-V level for everything but mix(). The use of min() instead of for && also successfully avoids a branch here.
|
||||
|
||||
At the very least get the SPIR-V right before it goes past that.
|
||||
|
||||

|
||||
|
||||
**16/** **@NOTimothyLottes** ^1888440863044284563
|
||||
|
||||
**@AgileJebrim** **@mcnabbd**
|
||||
|
||||
IHV compilers are quite good at taking well formed SPIR-V and transforming it into a nightmare GPU binary. The only way to ever know anything is to look at the actual driver disassembly. Unfortunately even with 3T$ NV cannot match VK_AMD_shader_info disassembly dumps.
|
||||
|
||||
**17/** **@AgileJebrim** ^1888441108499148862
|
||||
|
||||
**@NOTimothyLottes** **@mcnabbd**
|
||||
|
||||
I can see NV’s SASS dumps just fine. 🤷♂️
|
||||
|
||||
**18/** **@AgileJebrim** ^1888441385268727832
|
||||
|
||||
**@NOTimothyLottes** **@mcnabbd**
|
||||
|
||||
Of course that’s with their NDA tools. However, CUDA on godbolt will also let you see their SASS dumps as well.
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@valigo (This is assuming you’re still keeping everything as chars and not immediately mapping into their own much smaller indexed representation.)"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/1961212411328774502"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "1961212411328774502"
|
||||
date: 2025-08-28
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@valigo (This is assuming you’re still keeping everything as chars and not immediately mapping into their own much smaller indexed representation.)"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "1961212145674117379"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/1961212411328774502
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2025-08-28 23:40:51
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@AgileJebrim** ^1961212411328774502
|
||||
|
||||
**@valigo**
|
||||
|
||||
(This is assuming you’re still keeping everything as chars and not immediately mapping into their own much smaller indexed representation.)
|
||||
|
||||
**2/** **@AgileJebrim** ^1961212829467304288
|
||||
|
||||
**@valigo**
|
||||
|
||||
The only prerequisite there is that you’d need to first isolate each symbol into their own 128-byte slot.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2025-08-28-its-easy-to-assume-that-people-reading-my-tweets]]
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
---
|
||||
title: "It’s easy to assume that people reading my tweets are already familiar with the context of the problems I aim to solve, but clearly this post took off with a new audience, so let me try to rewind a bit to focus on why I do what I do."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/1961045175687397728"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "1961045175687397728"
|
||||
date: 2025-08-28
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "It’s easy to assume that people reading my tweets are already familiar with the context of the problems I aim to solve, but clearly this post took off with a new audience, so let me try to rewind a bit to focus on why I do what I do."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/1961045175687397728
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2025-08-28 12:36:18
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^1961045175687397728
|
||||
|
||||
It’s easy to assume that people reading my tweets are already familiar with the context of the problems I aim to solve, but clearly this post took off with a new audience, so let me try to rewind a bit to focus on why I do what I do.
|
||||
|
||||
Firstly, I am a software engineer by training, meaning I think in terms of only writing software and having constraints that resolve a customer’s problem. If code cannot be traced to requirements that accomplish this, then it’s a waste of time and resources.
|
||||
|
||||
Secondly, there is a distinction between real-time and deterministic execution times that I must make clear. The former has a well-bounded execution time; it cares about worst-case. The latter is an even stricter definition that focuses on fixed execution times for any given input, minimizing the gap between max and min execution times. I go one step further and target deterministic execution times independent of the specific contents of the input data, which is what invalidates hash maps for me.
|
||||
|
||||
Now the big question is why?
|
||||
|
||||
To start, verifying worst-case execution time (WCET) in traditional real-time code is very hard and very expensive. You must somehow prove that you’ve identified the most expensive branch and every cache miss and misprediction and hardware interrupt and context switch and tested it to verify you meet the requirements. Yuck. It’s simply not feasible for most budgets and timelines and isn’t particularly portable across hardware either.
|
||||
|
||||
By instead targeting fixed-execution times independent of data contents, similar to the compile-time approach used for secret data in cryptography, and can just prove that data contents cannot cause fluctuations in timing, especially algorithmically, then I can remove a whole class of expensive effort in WCET analysis and make achieving real-time more economically achievable. Especially if this is transformed into a special compiler able to provide these guarantees for other programmers.
|
||||
|
||||
Basically it’s a serious cost-cutting measure. So now I’ve explained why I do deterministic execution times regardless of data inputs as a means of helping more cheaply verify real-time deadline guarantees, but I haven’t explained why to care about real-time. What customer problem(s) does real-time solve?
|
||||
|
||||
Here’s a list of some of them:
|
||||
|
||||
- Hardware and software must be synchronized in many safety-critical embedded systems or else hardware will do something the software doesn’t expect. This is the traditional case for real-time.
|
||||
|
||||
- Having late frames when rendering in a wide field-of-view (e.g. VR, domes, etc.) can quite literally result in the user getting sick. Determinism is important in the flight sim industry that I work in as everything is wide FOV.
|
||||
|
||||
- User-generated content in a synchronized stateful backend service, such as Roblox, X, Facebook, Twitch, Minecraft, or JebScape. If the inputs from one set of users are able to impact the performance experience or server stability for other users, then it can prevent achieving desired SLA guarantees. It also makes you more vulnerable to DDOS and similar attacks. Minimize the attack surface to provide the best experience for your users.
|
||||
|
||||
- Disabling the ability for end users to drive how much money comes out of your wallet when you pay for hosting. Better financial predictability. If you have workloads that dynamically spin up worker instances as needed, then you might find yourself with an unexpectedly large bill after an attack.
|
||||
|
||||
- Many other general problems across a wide range of interactive software that involve responsiveness to user input. All else being equal, an application that can provide reliable fast responses is better quality than one that is occasionally laggy and stuttering. Customers will be happier with the former than the latter.
|
||||
|
||||
- Inferencing with AI, JIT compiling, ACH bank transfers, video processing, etc. People don’t like sitting around waiting for a result and value both sooner and more predictable completion times.
|
||||
|
||||
**2/** **@valigo** ^1961071117780799501
|
||||
|
||||
I wonder, how do you approach something like the following with restrictions from your original post:
|
||||
|
||||
Let's say you want to make a text editor, or a code analysis system. And you want it to support both big codebases (say, Unreal Engine, or Chromium), and small projects.
|
||||
|
||||
Like, if you want to have a feature that shows references for some common type, and you want to have a count of how many are there. You also want a very fast navigation, which means you need to index the codebase ahead of time, and then have this index readily available (preferably, in RAM).
|
||||
|
||||
With approach of not having any dynamic allocations, do you just say "ok Unreal Engine codebase is how much memory you must have" and load everything, or do you slice it of somehow? I personally would prefer the program to eat as much RAM as it wants if it makes everything fast (we are assuming a good faith well-written program that actually utilizes it efficiently, not some web slop lol). Do you reserve a fuck ton of address space and then try to organize your memory patterns in a way that it never reallocates and only adds additional pages after those already used?
|
||||
|
||||
I overall understand your take about dynamic reallocs and hash table collisions introducing random delays and hurting realtime-ness of the system. It's just not intuitive to me how (if at all) you can be this strict about these principles (as opposed to using them as an overall good rule of thumb) in some general sense like this.
|
||||
|
||||
**3/** **@AgileJebrim** ^1961092844216521185
|
||||
|
||||
The tl;dr is that you have a small view buffer allocated with only as much room for data that you need right now and in the near future. You then stream in everything else as you need it, ensuring things are sized large enough to that the bandwidth can support it in the target tick rate you want.
|
||||
|
||||
You can know the context of your streaming/paging needs within your application way better than the OS ever could with just a generic LRU cache.
|
||||
|
||||
**4/** **@valigo** ^1961105858860855533
|
||||
|
||||
Feel free to not answer if this is too much text
|
||||
|
||||
But let's say I search for a symbol in my codebase, and I want to display candidates in real time. This means that I need to either pre-index everything in the codebase and have it in RAM for faster filtering, or I need to do it on the fly, and go to the disk on every key press, if I only have a small static buffer to hold information about my codebase. Yes, in this case I will surely have consistent performance, but it will be consistently bad.
|
||||
|
||||
So my question is not as much as how to statically allocate memory that I will display on the screen - this is somewhat realistic to know upfront, because there's only this much pixels in the monitor, but I'm more talking about background information that I need to query like a database. Having a small buffer that you constantly repopulate from disk sounds like it will give worse experience than letting it scan the whole data and dump it to RAM in processed and search-friendly way.
|
||||
|
||||
Maybe you mean to do it in two passes - for example, first part is non-realtime, when I scan the whole database, process it, allocate/reallocate as much as I want. And yeah it might take some time, but then after it's done I can switch to "real-time" mode, where all sizes are already known, and I can work with the codebase without allocating anything new. But then how do I handle situations where I add new stuff to the codebase, so it might need to grow.
|
||||
|
||||
I know this goes too much into databases realm and things they do to incorporate disk usage but in a way that's not morbidly slow, but I'm specifically talking about cases that are small enough to fit to ram, but large enough to just preallocate everything up-front.
|
||||
|
||||
**5/** **@AgileJebrim** ^1961208259383103942
|
||||
|
||||
**@valigo**
|
||||
|
||||
If you were to consider just the cpp and hpp files, how many bytes do you think it would be for UE5 or Chromium if we just threw every single file into memory at startup?
|
||||
|
||||
Let’s just assume for this case that we’re allowing malloc once for loading these files to meet that size.
|
||||
|
||||
**6/** **@AgileJebrim** ^1961208776658194779
|
||||
|
||||
**@valigo**
|
||||
|
||||
Even if you’re talking a couple million lines of code at an average of 40 chars per line, that would only be 800MB. You wouldn’t even need streaming at that point. Just keep everything in DRAM.
|
||||
|
||||
**7/** **@valigo** ^1961210612844810254
|
||||
|
||||
I think 10x editor uses something like 1.5gigs for UE5 codebase, so I guess makes sense. I also read your other thread where the idea is to go from strings to array indices as fast as you can in your apis, and I see what you mean, and it makes sense to me.
|
||||
|
||||
I once went this rabbit hole of linear array search -> generic hash table of [string, struct] -> my own purpose-built "hash function" (it's not really hash function, it's just a simple transformation of predefined string to a static array index) so I can do array access without any possible collisions. My array is a bit sparse now, but it's the best by far performance wise.
|
||||
|
||||
Unfortunatly, the industry I work in, doesn't let me do things like that to the max (I mostly work in outsource contracting, and most of my job is maintaining and improving existing codebases), but these principles are definitely good.
|
||||
|
||||
**8/** **@AgileJebrim** ^1961211708741161259
|
||||
|
||||
**@valigo**
|
||||
|
||||
If you really want to do a linear search, it’s actually extremely trivial in the SIMD/GPU world. Define a cap as to how many chars a token can be, which on a GPU could be 128 bytes to represent a single token within a warp, and then scan through every single token in parallel.
|
||||
|
||||
**9/** **@AgileJebrim** ^1961212145674117379
|
||||
|
||||
**@valigo**
|
||||
|
||||
Different warps and later SMs can then locally accumulate their own totals for each token/symbol within their subset of the dataset and you just reduce add at each level as you converge into global space.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2025-08-28-its-easy-to-assume-that-people-reading-my-tweets/2025-08-28-AgileJebrim-this-is-assuming-youre-still-keeping-everything]]
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
---
|
||||
title: "A strange notion that assumes that text is the only way to program computers."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2027461617210827256"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2027461617210827256"
|
||||
date: 2026-02-27
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "A strange notion that assumes that text is the only way to program computers."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2027461617210827256
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-02-27 19:11:32
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2027461617210827256
|
||||
|
||||
A strange notion that assumes that text is the only way to program computers.
|
||||
|
||||
Surely we can do better to provide an alternative as graphics programmers that doesn’t rely on string parsing, a fairly fragile, error-prone, and expensive way of representing user intent to a machine.
|
||||
|
||||

|
||||
|
||||
**2/** **@NyxXeres** ^2027531357245591796
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
If it was anyone else I might agree, but Ryan specifically did work on alternatives to text based programming.
|
||||
|
||||
**3/** **@AgileJebrim** ^2027542254055776549
|
||||
|
||||
**@NyxXeres**
|
||||
|
||||
And yet he wrote this. Strange.
|
||||
|
||||
I’d still like to read about his efforts elsewhere though. Do you have anything to share?
|
||||
|
||||
**4/** **@rfleury** ^2027542644533170333
|
||||
|
||||
**@AgileJebrim** **@NyxXeres**
|
||||
|
||||
Worth an unblock just to show how pathetically dishonest and idiotic you’re being
|
||||
|
||||
https://youtu.be/GB_oTjVVgDc?si=CaATi2ZnXg85rOn8
|
||||
|
||||
**5/** **@AgileJebrim** ^2027545886209765630
|
||||
|
||||
**@rfleury** **@NyxXeres**
|
||||
|
||||
This looks familiar. I think I watched this a while ago. This is *not* at all what I’m talking about. The user is still typing text, there’s still the possibility for typing code errors, and there’s still a significant learning curve involved.
|
||||
|
||||
**6/** **@AgileJebrim** ^2027546439224603017
|
||||
|
||||
**@rfleury** **@NyxXeres**
|
||||
|
||||
Scratch is a lot closer in the right direction. It’s just not well designed with its underlying tech stack. You guys far too easily dismiss that approach.
|
||||
|
||||
**7/** **@AgileJebrim** ^2027549162204533025
|
||||
|
||||
There’s a big disregard in technical coding communities, including your own, for ease of use and software that “just works” out of the box, without any errors, and reliably without any responsive delays.
|
||||
|
||||
You’re still targeting experienced professionals rather than noobs. It reminds me of Linux distros that continually try to pull their users into the terminal, forever cementing their failure to gain widespread adoption among a wider audience.
|
||||
|
||||
Nothing about what you’re showing gives enough of an OOMPH! to justify the effort and learning curve for people to switch from their current tools.
|
||||
|
||||
**8/** **@rfleury** ^2027551263311991033
|
||||
|
||||
**@AgileJebrim** **@NyxXeres**
|
||||
|
||||
You have no idea what you’re talking about, and I can only assume you’re BS’ing, given the lack of public information about anything meaningful you’ve worked on. Goodbye.
|
||||
|
||||
**9/** **@AgileJebrim** ^2027563206042902687
|
||||
|
||||
Some information is publicly available out there if you bothered to look. I’ve mostly been in the flight simulation industry and have worked on a multitude of different simulators over the last 11 years. These are industry-leading training devices that have been used to train hobbyists, airline pilots, and even warfighters flying the F-35.
|
||||
|
||||
It also includes geospatial software to assist with mission planning and fire control. A lot of what I produce is sold directly to large corporations and governments.
|
||||
|
||||
I’ve also engaged in R&D pushing the bleeding edge of safety-critical GPGPU systems with a particular eye towards serving the needs of avionics and vision systems.
|
||||
|
||||
My resume includes Knife Edge Software, Lockheed Martin, and Collins Aerospace/RTX (part of the former Evans & Sutherland group). I always keep my current employer secret, but we work on sensor rendering technology (LWIR, MWIR, NVG, SAR, etc.) that we sell as a plugin to other sims.
|
||||
|
||||
On the side, I’ve also built highly affordable MMO tech and now have a small side business where I am building a special shader compiler that is designed to enable easy development of highly performant GPU-centric applications that can be trivially proven to meet safety-critical requirements (WCET determinism and no-fail) at a low cost. You will see more info released about that over time.
|
||||
|
||||
**10/** **@rfleury** ^2027566307911373020
|
||||
|
||||
**@AgileJebrim** **@NyxXeres**
|
||||
|
||||
>if you bothered to look
|
||||
|
||||
Holy
|
||||
|
||||
**11/** **@AgileJebrim** ^2028488091443355774
|
||||
|
||||
I have another more relevant comment to make about your article. Despite your naming convention of lane, this code is actually all scalar. Why would you multithread before you’re SIMDified it? The way you’re doing the summation here isn’t compatible with SIMD unless the autovectorizer gets lucky.
|
||||
|
||||

|
||||
|
||||
**12/** **@rfleury** ^2028495224985800883
|
||||
|
||||
I never claimed it wasn’t scalar. The term “lane” is overloaded with its SIMD usage, but that is irrelevant, given that the subject of the article wasn’t SIMD. The summation was a simple example to demonstrate the concept, obviously if you needed a sum to be very fast, you’d SIMD it also.
|
||||
|
||||
>Why would you multi thread before you SIMD
|
||||
|
||||
Again, you wouldn’t in this case. You’d do both. There are many other problems where you need to go across cores before you SIMD.
|
||||
|
||||
>The way you’re doing the summation here isn’t compatible with SIMD
|
||||
|
||||
No it’s not, at all, even a little bit. I have no idea why you would say that. You can do both, but again, the subject of the post wasn’t SIMD.
|
||||
|
||||
**13/** **@AgileJebrim** ^2028496017021116792
|
||||
|
||||
I know you didn’t claim it. I’m simply saying you focus way more on multicore and not at all on SIMD. That’s silly and wasteful.
|
||||
|
||||
And it isn’t compatible with SIMD because a proper implementation would iterate += 16 at a time to sum batches of 16 per loop iteration. Your current code has a serial dependency by doing it 1 at a time.
|
||||
|
||||
**14/** **@AgileJebrim** ^2028496469376872776
|
||||
|
||||
**@rfleury** **@NyxXeres**
|
||||
|
||||
Index 0 needs to add to index 16, 32, etc.
|
||||
|
||||
Index 1 needs to add to index 17, 33, etc.
|
||||
|
||||
**15/** **@AgileJebrim** ^2028496926019076423
|
||||
|
||||
**@rfleury** **@NyxXeres**
|
||||
|
||||
Before you worry about wasting more cores than you need to, use your first core more effectively. Just as hardware engineers optimize things by reducing the distance between hardware components, the same principle should apply to your software. You should be SIMD by default.
|
||||
|
||||
**16/** **@AgileJebrim** ^2028497338428203331
|
||||
|
||||
Multicore + SIMD is a great combo. Make that your default. Then go all in and make GPGPU your default. You get much better memory bandwidth, far more registers, and the ability to micromanage what’s in your L1 cache.
|
||||
|
||||
You’re inching your way closer to my way of doing things. Just take the final leap! 😜
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "We have code reviews at Isochron and I require my devs to produce streamlined, not modular, code."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2054216103904063525"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2054216103904063525"
|
||||
date: 2026-05-12
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "We have code reviews at Isochron and I require my devs to produce streamlined, not modular, code."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2054216103904063525
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-05-12 15:04:19
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2054216103904063525
|
||||
|
||||
We have code reviews at Isochron and I require my devs to produce streamlined, not modular, code.
|
||||
|
||||
Too many modules and interfaces is how you achieve a complex bloated Raptor 1 design.
|
||||
|
||||
Streamlining by inlining to eliminate interfaces is how you achieve a Raptor 3 design.
|
||||
|
||||

|
||||
|
||||
**2/** **@AgileJebrim** ^2054216901069246938
|
||||
|
||||
Each module must be so custom to a particular task to be efficient for it that it’s simply not practical for it to be designed in a modular manner.
|
||||
|
||||
Otherwise you focus so much on the generic portability and reusability of each individual module that you make it highly inefficient and needlessly complex for your particular task.
|
||||
|
||||
Produce your entire product this way and you get a lot of added dev times, architectural tension, and little to show for it as you didn’t really actually require such modularity in the first place.
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim Lots and lots of atomics."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/2Sexy4MyGPU/status/2058502561897030002"
|
||||
author: "Matthew Rusch"
|
||||
handle: 2Sexy4MyGPU
|
||||
post_id: "2058502561897030002"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Lots and lots of atomics."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/2Sexy4MyGPU/status/2058502561897030002
|
||||
- Author: Matthew Rusch (@2Sexy4MyGPU)
|
||||
- Posted: 2026-05-24 10:57:10
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@2Sexy4MyGPU** ^2058502561897030002
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Lots and lots of atomics.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058541287825924369
|
||||
|
||||
**@2Sexy4MyGPU**
|
||||
|
||||
-
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim Shrink the array over and over until it's down to a single value."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Apolloknius/status/2058534260387283164"
|
||||
author: "ApolloniusofTyana"
|
||||
handle: Apolloknius
|
||||
post_id: "2058534260387283164"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Shrink the array over and over until it's down to a single value."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Apolloknius/status/2058534260387283164
|
||||
- Author: ApolloniusofTyana (@Apolloknius)
|
||||
- Posted: 2026-05-24 13:03:08
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Apolloknius** ^2058534260387283164
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Shrink the array over and over until it's down to a single value. We used to do this with textures to sample the overall luminance for tone mapping, as an example.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058539821576937494
|
||||
|
||||
**@Apolloknius**
|
||||
|
||||
Need details in relation to the hardware. Assume compute shaders are used, not multiple draw calls of fragment shaders. Those aren’t actually that efficient.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: "@AgileJebrim Add up all the columns separately."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ArcticDodger/status/2058657119247925435"
|
||||
author: "Lodger 🚙🏡🌤️🔋"
|
||||
handle: ArcticDodger
|
||||
post_id: "2058657119247925435"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Add up all the columns separately."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ArcticDodger/status/2058657119247925435
|
||||
- Author: Lodger 🚙🏡🌤️🔋 (@ArcticDodger)
|
||||
- Posted: 2026-05-24 21:11:19
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ArcticDodger** ^2058657119247925435
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Add up all the columns separately. Give each additional task to a different GPU. Sum the sums. Is this supposed to be some kind of trick question?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058658618166100440
|
||||
|
||||
**@ArcticDodger**
|
||||
|
||||
What columns? It’s a 1D array.
|
||||
|
||||
Different GPUs? That’s overkill. You simply won’t have enough data or bitwidth to sum at that point. A single GPU could even handle summing 4b 1-bit values.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
---
|
||||
title: "@AgileJebrim Large array of values is stored in float/double."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/CodeAndTears/status/2058560744694693968"
|
||||
author: "Jules"
|
||||
handle: CodeAndTears
|
||||
post_id: "2058560744694693968"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Large array of values is stored in float/double."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/CodeAndTears/status/2058560744694693968
|
||||
- Author: Jules (@CodeAndTears)
|
||||
- Posted: 2026-05-24 14:48:22
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@CodeAndTears** ^2058560744694693968
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Large array of values is stored in float/double.
|
||||
|
||||
Result must be bit exact reproductible between runs/machines/gpu.
|
||||
|
||||
Have fun ..
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
---
|
||||
title: "@AgileJebrim They asked the same question to me at nvidia, it's a good one!"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/FUZxxl/status/2058471646474760280"
|
||||
author: "Robert Clausecker"
|
||||
handle: FUZxxl
|
||||
post_id: "2058471646474760280"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim They asked the same question to me at nvidia, it's a good one!"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/FUZxxl/status/2058471646474760280
|
||||
- Author: Robert Clausecker (@FUZxxl)
|
||||
- Posted: 2026-05-24 08:54:19
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@FUZxxl** ^2058471646474760280
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
They asked the same question to me at nvidia, it's a good one!
|
||||
|
||||
**2/** **@AgileJebrim** ^2058530131191161252
|
||||
|
||||
**@FUZxxl**
|
||||
|
||||
I wish they’d done that. Unfortunately I got all the bad engineering teams doing interviews lol. I wasn’t particularly impressed.
|
||||
|
||||
**3/** **@FUZxxl** ^2058531664003776993
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I kind of stumbled through it as I was interviewing for a CPU position and don't have much GPU experience, plus most work I've done so far was integer work and the interviewer asked lots of questions on catastrophic cancellation.
|
||||
|
||||
**4/** **@AgileJebrim** ^2058540542229647393
|
||||
|
||||
**@FUZxxl**
|
||||
|
||||
We go all in on integers. Floats have too many problems and are best served as just a sit in for low bitwidth integers.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "@AgileJebrim I think this is a simple example of \"look how much I know about a niche topic, let's find something I know but others don't, so I feel superior\"."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Gombally_/status/2058450878114271314"
|
||||
author: "Gombally"
|
||||
handle: Gombally_
|
||||
post_id: "2058450878114271314"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I think this is a simple example of \"look how much I know about a niche topic, let's find something I know but others don't, so I feel superior\"."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Gombally_/status/2058450878114271314
|
||||
- Author: Gombally (@Gombally_)
|
||||
- Posted: 2026-05-24 07:31:48
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Gombally_** ^2058450878114271314
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I think this is a simple example of "look how much I know about a niche topic, let's find something I know but others don't, so I feel superior".
|
||||
|
||||
It's a retarded ass question, unless that job solely relies around utilising GPU's.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim M x N multipass reduction"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Jason_Ewton/status/2058487515728785437"
|
||||
author: "Jason Ewton"
|
||||
handle: Jason_Ewton
|
||||
post_id: "2058487515728785437"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim M x N multipass reduction"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Jason_Ewton/status/2058487515728785437
|
||||
- Author: Jason Ewton (@Jason_Ewton)
|
||||
- Posted: 2026-05-24 09:57:23
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Jason_Ewton** ^2058487515728785437
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
M x N multipass reduction
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: "@AgileJebrim Then make them build it in Minecraft using pre-2016 redstone."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Lord_KX_/status/2058578623360274916"
|
||||
author: "LordKX"
|
||||
handle: Lord_KX_
|
||||
post_id: "2058578623360274916"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Then make them build it in Minecraft using pre-2016 redstone."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Lord_KX_/status/2058578623360274916
|
||||
- Author: LordKX (@Lord_KX_)
|
||||
- Posted: 2026-05-24 15:59:25
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Lord_KX_** ^2058578623360274916
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Then make them build it in Minecraft using pre-2016 redstone.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058580585023484020
|
||||
|
||||
**@Lord_KX_**
|
||||
|
||||
👏
|
||||
|
||||
**3/** **@AgileJebrim** ^2058581682303668551
|
||||
|
||||
Unfortunately Minecraft doesn’t do parallelism very well. We’re building a way to program GPUs in a visual way that reflects the hardware though such that one can program it not too dissimilarly from Minecraft redstone. Text doesn’t offer the same insight into performance of different operations and data layouts as a visual sim would.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
---
|
||||
title: "@AgileJebrim many people don't write code that touches the gpu"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Lotsoffoodinme/status/2058454499828904170"
|
||||
author: "el jack"
|
||||
handle: Lotsoffoodinme
|
||||
post_id: "2058454499828904170"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim many people don't write code that touches the gpu"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Lotsoffoodinme/status/2058454499828904170
|
||||
- Author: el jack (@Lotsoffoodinme)
|
||||
- Posted: 2026-05-24 07:46:11
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Lotsoffoodinme** ^2058454499828904170
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
many people don't write code that touches the gpu
|
||||
|
||||
**2/** **@AgileJebrim** ^2058531033809580044
|
||||
|
||||
**@Lotsoffoodinme**
|
||||
|
||||
We’re changing that.
|
||||
|
||||
**3/** **@Lotsoffoodinme** ^2058534577136967750
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Out of interest, is it something drastically different to dividing it up into many slices and summing from there? I’m envisioning something like a map reduce
|
||||
|
||||
**4/** **@AgileJebrim** ^2058539551895834686
|
||||
|
||||
**@Lotsoffoodinme**
|
||||
|
||||
It’s in that direction but I need greater details.
|
||||
|
||||
**5/** **@Lotsoffoodinme** ^2058554249488064571
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
As I don’t write code that targets the gpu I can’t. Is this a particularly complicated question? It seems to a complete lay person that it shouldn’t be too complicated.
|
||||
|
||||
**6/** **@AgileJebrim** ^2058554931980705979
|
||||
|
||||
**@Lotsoffoodinme**
|
||||
|
||||
How would you answer this for a multicore CPU?
|
||||
|
||||
**7/** **@Lotsoffoodinme** ^2058559658827382904
|
||||
|
||||
Im assuming it’s a big enough set of numbers that chunking it makes sense. Maybe it’s hand wavy, but I’m also going to assume it fits in a 64bit number.
|
||||
|
||||
Gameplan would be to chunk by core count, then have each core iterate over its slice. I rarely explicitly write vectorised code, but I’m reasonably confident I’d want more than one accumulator. By that I mean each iteration of the loop might do 4 additions at once and then increment by 32 or whatever the cpu supports.
|
||||
|
||||
At the end reduce the accumulators and then reduce the threads.
|
||||
|
||||
I hope that’s not a terrible answer.
|
||||
|
||||
**8/** **@AgileJebrim** ^2058560525810692312
|
||||
|
||||
**@Lotsoffoodinme**
|
||||
|
||||
You can scale a lot more than just 4-wide SIMD.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim If the array is in RAM, do it sequentially."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/MichalPiotrK/status/2058669746799673769"
|
||||
author: "Michał"
|
||||
handle: MichalPiotrK
|
||||
post_id: "2058669746799673769"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim If the array is in RAM, do it sequentially."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/MichalPiotrK/status/2058669746799673769
|
||||
- Author: Michał (@MichalPiotrK)
|
||||
- Posted: 2026-05-24 22:01:30
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@MichalPiotrK** ^2058669746799673769
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
If the array is in RAM, do it sequentially. If it's in GPU memory, use partial sums sqrt(n) elements, then in a second run you get the result. Unless there are constraints, e.g. floating point with error tracking or the array is really very large, or do I optimize for power or...
|
||||
|
||||
**2/** **@AgileJebrim** ^2058676643112136824
|
||||
|
||||
**@MichalPiotrK**
|
||||
|
||||
Nope.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim This is an idiotic interview question"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/MikeTreit/status/2058487016317399442"
|
||||
author: "Mike Treit"
|
||||
handle: MikeTreit
|
||||
post_id: "2058487016317399442"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim This is an idiotic interview question"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/MikeTreit/status/2058487016317399442
|
||||
- Author: Mike Treit (@MikeTreit)
|
||||
- Posted: 2026-05-24 09:55:24
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@MikeTreit** ^2058487016317399442
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
This is an idiotic interview question
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
---
|
||||
title: "@AgileJebrim I have no meaningful GPU coding experience."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/SpikyCaterpillr/status/2058630363509907942"
|
||||
author: "Spikier Caterpillar"
|
||||
handle: SpikyCaterpillr
|
||||
post_id: "2058630363509907942"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I have no meaningful GPU coding experience."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/SpikyCaterpillr/status/2058630363509907942
|
||||
- Author: Spikier Caterpillar (@SpikyCaterpillr)
|
||||
- Posted: 2026-05-24 19:25:00
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@SpikyCaterpillr** ^2058630363509907942
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I have no meaningful GPU coding experience. That said, if it's a LARGE array in GPU memory, the obvious guess would be "tell several compute units to sum chunks of it in parallel, then add the outputs together". The optimum chunk size will vary by GPU and possibly other factors.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058630786803229053
|
||||
|
||||
**@SpikyCaterpillr**
|
||||
|
||||
"tell several compute units to sum chunks of it in parallel, then add the outputs together"
|
||||
|
||||
Any idea how you’d structure it? How would you do this on multicore CPUs using SIMD?
|
||||
|
||||
**3/** **@SpikyCaterpillr** ^2058640615412224473
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
First determine the desired chunk size (I assume compute units have limited addressable space, for one), then iterate over the large array calling starting a summer on each chunk. When I run out of cores or GPU memory, wait and sum what I've got before continuing down the array.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim I would embarrass myself by trying to answer because from the application level a GPU is just a way of using money to make pytorch faster."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/VMises76153/status/2058464896971382831"
|
||||
author: "Nathaniel Nifong"
|
||||
handle: VMises76153
|
||||
post_id: "2058464896971382831"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I would embarrass myself by trying to answer because from the application level a GPU is just a way of using money to make pytorch faster."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/VMises76153/status/2058464896971382831
|
||||
- Author: Nathaniel Nifong (@VMises76153)
|
||||
- Posted: 2026-05-24 08:27:30
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@VMises76153** ^2058464896971382831
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I would embarrass myself by trying to answer because from the application level a GPU is just a way of using money to make pytorch faster.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058530860370903075
|
||||
|
||||
**@VMises76153**
|
||||
|
||||
We are building a platform for creating general purpose hard real-time applications that natively run directly on the GPU. No PyTorch.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
---
|
||||
title: "@AgileJebrim Hierarchical map reduce?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/atorstling/status/2058449690572501039"
|
||||
author: "Alexander Torstling"
|
||||
handle: atorstling
|
||||
post_id: "2058449690572501039"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Hierarchical map reduce?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/atorstling/status/2058449690572501039
|
||||
- Author: Alexander Torstling (@atorstling)
|
||||
- Posted: 2026-05-24 07:27:05
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@atorstling** ^2058449690572501039
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Hierarchical map reduce?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058531652595253265
|
||||
|
||||
**@atorstling**
|
||||
|
||||
Okay. Now explain how that works.
|
||||
|
||||
**3/** **@atorstling** ^2058614306871067052
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Use shared memory for in-batch coordination, and global memory for intra-batch coordination. Each batch takes a set of numbers and produce a sum. Next round of batches operates on the output of the previous round. If fancy, you could encode the problem in kernels/registers.
|
||||
|
||||
**4/** **@atorstling** ^2058614911580701084
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Since you can use output of batches from different rounds as input, you can keep the pipeline full by starting new rounds eagerly
|
||||
|
||||
**5/** **@AgileJebrim** ^2058616473262641450
|
||||
|
||||
**@atorstling**
|
||||
|
||||
I’m not really satisfied with this answer.
|
||||
|
||||
**6/** **@atorstling** ^2058638219365818830
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
You don't need to be, all good :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
---
|
||||
title: "I'm bored so I'm gonna give this question a good shot (I learned a bunch of GPU architecture stuff back in uni but I had to look a couple things up to make sure I wasn't mixing terms up)."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/brainage19/status/2058448551290839084"
|
||||
author: "thomas 🍙"
|
||||
handle: brainage19
|
||||
post_id: "2058448551290839084"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "I'm bored so I'm gonna give this question a good shot (I learned a bunch of GPU architecture stuff back in uni but I had to look a couple things up to make sure I wasn't mixing terms up)."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/brainage19/status/2058448551290839084
|
||||
- Author: thomas 🍙 (@brainage19)
|
||||
- Posted: 2026-05-24 07:22:33
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@brainage19** ^2058448551290839084
|
||||
|
||||
I'm bored so I'm gonna give this question a good shot (I learned a bunch of GPU architecture stuff back in uni but I had to look a couple things up to make sure I wasn't mixing terms up). I would assume the most efficient way is to mass add them in pairs across all streaming multiprocessors to halve the numbers you need to add, and keep doing that until you have 1 number left (the final result).
|
||||
|
||||
You take M chunks of N numbers from global memory and load then into L2 cache, L1 caches in streaming multiprocessors, shared memory, then finally into registers, instructions to add them in pairs get scheduled to run on threads via the warp scheduler, and the results get written into registers. I'm not exactly sure how the instructions get loaded into instruction cache but I imagine it would be a similar process.
|
||||
|
||||
Load the results from the registers all the way back up into global memory, now you have N/2 result numbers, N/2 original numbers, and the rest of the numbers. You repeat the process for the next chunk of numbers, making sure the results are read back into VRAM where the original numbers from the previous iteration start (this is to make sure after all chunks are processed, the results are contiguous in memory - working with contiguous memory is more efficient due to how memory is read/written in cache lines of several bytes at a time to minimise the cycles wasted waiting for data to be loaded into memory)
|
||||
|
||||
You keep repeating this process until eventually you will have processed all of the chunks and you will have half of the numbers in memory that you started with in global memory contiguously. Before repeating this process of processing M chunks of N numbers, you would have to wait until all streaming multiprocessors have finished processing all chunks of data. This probably sounds really stupid given how much other stuff I know and the level of detail that I have explained it but I'm not sure how that really works at an architecture/instruction level.
|
||||
|
||||
You repeat this process of processing M chunks of N numbers, repeatedly halving the numbers in VRAM until eventually you have 1 number left.
|
||||
|
||||
Is this the right idea? Is there a more efficient way? Have I explained all the concepts correctly?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058532143576334428
|
||||
|
||||
**@brainage19**
|
||||
|
||||
Not really sure why you’re halving anything.
|
||||
|
||||
**3/** **@shrydar** ^2058583721079722406
|
||||
|
||||
**@AgileJebrim** **@brainage19**
|
||||
|
||||
please tell me you know you can’t in general just use an accumulator (or small set of accumulators) to collect a partial sum from streaming a significant subset of the data..
|
||||
|
||||
**4/** **@AgileJebrim** ^2058584367790788727
|
||||
|
||||
**@shrydar** **@brainage19**
|
||||
|
||||
You can use it for 99% of the time and only do the tree reduction at the very end.
|
||||
|
||||
**5/** **@shrydar** ^2058705598947201535
|
||||
|
||||
**@AgileJebrim** **@brainage19**
|
||||
|
||||
Even chunking into groups of 1000 you’re throwing away nine or ten bits of accuracy. Depending on the application that could be fine or it could be fatal.
|
||||
|
||||
**6/** **@AgileJebrim** ^2058707817314271710
|
||||
|
||||
**@shrydar** **@brainage19**
|
||||
|
||||
Why are you assuming floats?
|
||||
https://x.com/agilejebrim/status/2058562643158352101?s=46&t=ZbNecpPBsBMrvteeaA6IcA
|
||||
|
||||
**7/** **@shrydar** ^2058709232938361308
|
||||
|
||||
**@AgileJebrim** **@brainage19**
|
||||
|
||||
I wasn’t assuming either way, but it’d be why Thomas was repeatedly halving the length of the list, so I was weirded out that you weren’t sure why he was even considering that. Clearly not needed for a 32 bit exact sum :)
|
||||
|
||||
**8/** **@AgileJebrim** ^2058711742843166954
|
||||
|
||||
**@shrydar** **@brainage19**
|
||||
|
||||
The only thing I can infer from him adding pairs and repeatedly halving is if he was attempting to perform a reduction every single iteration. This is needlessly expensive. Cross-communication between lanes, warps, and SMs needs to be kept to a minimum and only occur at the end.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim If you can fit Qwen 3.6 into your gpu, just load that with ollama and it will write the code for you."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/braincell__/status/2058530959029604567"
|
||||
author: "John Mell 🇺🇦🇦🇺"
|
||||
handle: braincell__
|
||||
post_id: "2058530959029604567"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim If you can fit Qwen 3.6 into your gpu, just load that with ollama and it will write the code for you."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/braincell__/status/2058530959029604567
|
||||
- Author: John Mell 🇺🇦🇦🇺 (@braincell__)
|
||||
- Posted: 2026-05-24 12:50:00
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@braincell__** ^2058530959029604567
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
If you can fit Qwen 3.6 into your gpu, just load that with ollama and it will write the code for you.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim It's for a frontend JavaScript position I see."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/dadbod2100/status/2058471050909020439"
|
||||
author: "dadbod2100"
|
||||
handle: dadbod2100
|
||||
post_id: "2058471050909020439"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim It's for a frontend JavaScript position I see."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/dadbod2100/status/2058471050909020439
|
||||
- Author: dadbod2100 (@dadbod2100)
|
||||
- Posted: 2026-05-24 08:51:57
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@dadbod2100** ^2058471050909020439
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
It's for a frontend JavaScript position I see.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058530234958238074
|
||||
|
||||
**@dadbod2100**
|
||||
|
||||
Definitely not.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim What kind of GPU?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/deleted_1m/status/2058504770453754227"
|
||||
author: "Deleted"
|
||||
handle: deleted_1m
|
||||
post_id: "2058504770453754227"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim What kind of GPU?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/deleted_1m/status/2058504770453754227
|
||||
- Author: Deleted (@deleted_1m)
|
||||
- Posted: 2026-05-24 11:05:57
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@deleted_1m** ^2058504770453754227
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
What kind of GPU?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058541240056979920
|
||||
|
||||
**@deleted_1m**
|
||||
|
||||
Any. This must be portable compute shader code.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim No idea about GPU programming, cpu hints towards divide by half, but wouldn’t matrix multiplication works better here? Something like ask gpu to multiply source array by column full of 1 of the same length? Would love if somebody can explain if that would work"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/fatroom/status/2058498000666698206"
|
||||
author: "Roman Romanchuk"
|
||||
handle: fatroom
|
||||
post_id: "2058498000666698206"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim No idea about GPU programming, cpu hints towards divide by half, but wouldn’t matrix multiplication works better here? Something like ask gpu to multiply source array by column full of 1 of the same length? Would love if somebody can explain if that would work"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/fatroom/status/2058498000666698206
|
||||
- Author: Roman Romanchuk (@fatroom)
|
||||
- Posted: 2026-05-24 10:39:03
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@fatroom** ^2058498000666698206
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
No idea about GPU programming, cpu hints towards divide by half, but wouldn’t matrix multiplication works better here? Something like ask gpu to multiply source array by column full of 1 of the same length? Would love if somebody can explain if that would work
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim divide into small arrays, conquer each array on a core, then sum the sums?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/feikcel/status/2058484875477303535"
|
||||
author: "гейоргий 🍏✌️| набирает массу | 170 см | фэтфоб"
|
||||
handle: feikcel
|
||||
post_id: "2058484875477303535"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim divide into small arrays, conquer each array on a core, then sum the sums?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/feikcel/status/2058484875477303535
|
||||
- Author: гейоргий 🍏✌️| набирает массу | 170 см | фэтфоб (@feikcel)
|
||||
- Posted: 2026-05-24 09:46:53
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@feikcel** ^2058484875477303535
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
divide into small arrays, conquer each array on a core, then sum the sums?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim I am not knowlegable enough with GPUs, but does numerical stability of the result play a role in questions like these?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/gulbaru/status/2058477347834060854"
|
||||
author: "Gulbaru"
|
||||
handle: gulbaru
|
||||
post_id: "2058477347834060854"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I am not knowlegable enough with GPUs, but does numerical stability of the result play a role in questions like these?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/gulbaru/status/2058477347834060854
|
||||
- Author: Gulbaru (@gulbaru)
|
||||
- Posted: 2026-05-24 09:16:59
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@gulbaru** ^2058477347834060854
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I am not knowlegable enough with GPUs, but does numerical stability of the result play a role in questions like these?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim Do floor(warpsize/arraysize) sums, keep using the same accumulated warpsize array until the whole array is done."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/heartoneto2012/status/2058466240033677747"
|
||||
author: "heartoneto"
|
||||
handle: heartoneto2012
|
||||
post_id: "2058466240033677747"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Do floor(warpsize/arraysize) sums, keep using the same accumulated warpsize array until the whole array is done."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/heartoneto2012/status/2058466240033677747
|
||||
- Author: heartoneto (@heartoneto2012)
|
||||
- Posted: 2026-05-24 08:32:50
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@heartoneto2012** ^2058466240033677747
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Do floor(warpsize/arraysize) sums, keep using the same accumulated warpsize array until the whole array is done. Finally accumulate the partial sums
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
---
|
||||
title: "@AgileJebrim you shouldn’t do that on the GPU."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/jes5199/status/2058590784740540610"
|
||||
author: "Jes Wolfe!"
|
||||
handle: jes5199
|
||||
post_id: "2058590784740540610"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim you shouldn’t do that on the GPU."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/jes5199/status/2058590784740540610
|
||||
- Author: Jes Wolfe! (@jes5199)
|
||||
- Posted: 2026-05-24 16:47:44
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@jes5199** ^2058590784740540610
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
you shouldn’t do that on the GPU. do it on the network card
|
||||
|
||||
**2/** **@AgileJebrim** ^2058591291059892482
|
||||
|
||||
**@jes5199**
|
||||
|
||||
Network cards can’t compete with the processing power of GPUs and a parallel summation is only one small aspect of a much larger amount of work that would need to be done. It’s worth it to become GPU resident.
|
||||
|
||||
**3/** **@jes5199** ^2058598927071662429
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
where’s your data come from
|
||||
did you do a massively
|
||||
parallel
|
||||
download
|
||||
|
||||
**4/** **@AgileJebrim** ^2058599326553670066
|
||||
|
||||
**@jes5199**
|
||||
|
||||
An SSBO in VRAM
|
||||
|
||||
**5/** **@AgileJebrim** ^2058599922706899325
|
||||
|
||||
**@jes5199**
|
||||
|
||||
A rgba32ui texel buffer if you want to do better. :P
|
||||
|
||||
**6/** **@AgileJebrim** ^2058600334197395905
|
||||
|
||||
**@jes5199**
|
||||
|
||||
The original data was generated in compute shaders per real-time tick.
|
||||
|
||||
**7/** **@jes5199** ^2058607245194383821
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
oh imaginary data
|
||||
|
||||
**8/** **@AgileJebrim** ^2058609452081615079
|
||||
|
||||
**@jes5199**
|
||||
|
||||
No, just freshly generated data that changes every tick in response to small user inputs.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
---
|
||||
title: "@AgileJebrim Easy."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/kechogarcia/status/2058522912731123861"
|
||||
author: "Kecho"
|
||||
handle: kechogarcia
|
||||
post_id: "2058522912731123861"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Easy."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/kechogarcia/status/2058522912731123861
|
||||
- Author: Kecho (@kechogarcia)
|
||||
- Posted: 2026-05-24 12:18:02
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@kechogarcia** ^2058522912731123861
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Easy. WaveActiveSum, then LDS atomic sum, then global memory sum between groups (if GPU has intrinsica) then finally dram atomics.
|
||||
Always go in cache hierarchy -> wave, LDS, global mem, vram
|
||||
|
||||
Never do an atomic per thread.
|
||||
|
||||
Also you can do it all in one persistent dispatch .
|
||||
|
||||
**2/** **@AgileJebrim** ^2058524431547306220
|
||||
|
||||
**@kechogarcia**
|
||||
|
||||
Say you have many more data elements than you have SIMD lanes across the hardware. How are you handling that?
|
||||
|
||||
**3/** **@kechogarcia** ^2058535071947145503
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Do it all in a persistent dispatch. Dispatch and fill the machine, then consume input.
|
||||
|
||||
**4/** **@AgileJebrim** ^2058539350262989272
|
||||
|
||||
**@kechogarcia**
|
||||
|
||||
What I’m looking for an answer to is what the for loop inside the persistent dispatch is doing at the smallest level. Are you looping over WaveActiveSums?
|
||||
|
||||
**5/** **@kechogarcia** ^2058546836697149904
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
No. If you pad the buffer to wave size, just accumulate on 4 registers, 4 loads at a time. Or whatever the hw can do best. When you run out of work, then the problem is a cache hierarchical reduction. You can do it all in a single dispatch, no fancy multipass bin reduction.
|
||||
|
||||
**6/** **@kechogarcia** ^2058548990413504538
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
ldsV = 0;
|
||||
GroupBarrier();
|
||||
float4 a = 0;
|
||||
while(has work())
|
||||
a += load4(popnext());
|
||||
|
||||
float4 perGroup = WaveActiveSum(a);
|
||||
|
||||
if (is first lane(() atomicAdd(ldsV, perGroup);
|
||||
|
||||
if (threadID == 0)
|
||||
atomicAdd(ldsV, dramBuffer[0];
|
||||
|
||||
Group mem shenanigans I have to read manual.
|
||||
|
||||
**7/** **@AgileJebrim** ^2058550742453989755
|
||||
|
||||
Okay good. I was looking for the partial sums per lane answer. You had left that out entirely in your initial answer. Reductions in a loop would be expensive.
|
||||
|
||||
If I told you there were 16m unsigned integer elements to sum up, what other requirement would necessarily need to exist (or otherwise be addressed) and what other optimization opportunities would arise as a result of that knowledge?
|
||||
|
||||
**8/** **@kechogarcia** ^2058558465270755676
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Hmmm. Means you could easily overflow, so now we gotta use 64 bits for accumulation? But this means we could double the number of sums on each thread by loading 64 bit primitives? Not sure I gotta think harder if you are looking for something else
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
---
|
||||
title: "@AgileJebrim Divide up the available memory between cores, each with out output slot and as many input slots as possible."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/matt_timmermans/status/2058551271389356330"
|
||||
author: "Matt Timmermans"
|
||||
handle: matt_timmermans
|
||||
post_id: "2058551271389356330"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Divide up the available memory between cores, each with out output slot and as many input slots as possible."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/matt_timmermans/status/2058551271389356330
|
||||
- Author: Matt Timmermans (@matt_timmermans)
|
||||
- Posted: 2026-05-24 14:10:43
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@matt_timmermans** ^2058551271389356330
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Divide up the available memory between cores, each with out output slot and as many input slots as possible. Load memory, have each core accumulate its part, repeat.
|
||||
|
||||
Might be able to go faster with double-buffering so you can load and sum at the same time.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058551683420913730
|
||||
|
||||
**@matt_timmermans**
|
||||
|
||||
“have each core accumulate its part”
|
||||
|
||||
Detail this.
|
||||
|
||||
**3/** **@matt_timmermans** ^2058554402332409962
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I'm not actually familiar enough to know why you asking for detail (I should NOT get your job :-), but each pass is essentially an image resize. Separate input + output memory, organize input to reduce contention. Only a few thousand output pixels, so that part not important.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim Does the array initally exist in GPU memory or CPU?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/minusYCore/status/2058488491399356688"
|
||||
author: "Mongo"
|
||||
handle: minusYCore
|
||||
post_id: "2058488491399356688"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Does the array initally exist in GPU memory or CPU?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/minusYCore/status/2058488491399356688
|
||||
- Author: Mongo (@minusYCore)
|
||||
- Posted: 2026-05-24 10:01:15
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@minusYCore** ^2058488491399356688
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Does the array initally exist in GPU memory or CPU?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: "@AgileJebrim efficient reductions are a very deep rabbit hole even on single gpu https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/miru_why/status/2058526448550608941"
|
||||
author: "miru"
|
||||
handle: miru_why
|
||||
post_id: "2058526448550608941"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim efficient reductions are a very deep rabbit hole even on single gpu https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/miru_why/status/2058526448550608941
|
||||
- Author: miru (@miru_why)
|
||||
- Posted: 2026-05-24 12:32:05
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@miru_why** ^2058526448550608941
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
efficient reductions are a very deep rabbit hole even on single gpu https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf
|
||||
|
||||

|
||||

|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@AgileJebrim i see it as a convolution task."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/noinodev/status/2058439885619622196"
|
||||
author: "noino🔸"
|
||||
handle: noinodev
|
||||
post_id: "2058439885619622196"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim i see it as a convolution task."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/noinodev/status/2058439885619622196
|
||||
- Author: noino🔸 (@noinodev)
|
||||
- Posted: 2026-05-24 06:48:07
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@noinodev** ^2058439885619622196
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
i see it as a convolution task. gather per thread in registers, gather in local thread group shmem, and atomic add assuming atomics are available. repeat for all cells, then keep scheduler happy by not going over register or thread limits. is there more to it than that?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058534147061109052
|
||||
|
||||
**@noinodev**
|
||||
|
||||
Give more details on each step. Assume more data elements than parallel hardware.
|
||||
|
||||
**3/** **@AgileJebrim** ^2058534304808902987
|
||||
|
||||
**@noinodev**
|
||||
|
||||
Don’t assume you can use atomics.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "Use a parallel reduction, not atomics from every thread."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ourtown2/status/2058459472557990030"
|
||||
author: "Brian Crabtree"
|
||||
handle: ourtown2
|
||||
post_id: "2058459472557990030"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "Use a parallel reduction, not atomics from every thread."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ourtown2/status/2058459472557990030
|
||||
- Author: Brian Crabtree (@ourtown2)
|
||||
- Posted: 2026-05-24 08:05:57
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ourtown2** ^2058459472557990030
|
||||
|
||||
Use a parallel reduction, not atomics from every thread.
|
||||
|
||||
Split the array into blocks. Each thread loads one or more elements, accumulates a local partial sum in registers, then the block reduces those partials using warp-level shuffles and shared memory. Each block writes one partial sum to an output array. Then launch a second reduction over that smaller partial array until only one value remains.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim tree reduction?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/saladpalad/status/2058442502773068209"
|
||||
author: "piztachios"
|
||||
handle: saladpalad
|
||||
post_id: "2058442502773068209"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim tree reduction?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/saladpalad/status/2058442502773068209
|
||||
- Author: piztachios (@saladpalad)
|
||||
- Posted: 2026-05-24 06:58:31
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@saladpalad** ^2058442502773068209
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
tree reduction?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058533901421715628
|
||||
|
||||
**@saladpalad**
|
||||
|
||||
Need details.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim Answering blind: hierarchically."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/steverockan/status/2058552472893837552"
|
||||
author: "mastodon.gamedev.place/@Steverock"
|
||||
handle: steverockan
|
||||
post_id: "2058552472893837552"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Answering blind: hierarchically."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/steverockan/status/2058552472893837552
|
||||
- Author: mastodon.gamedev.place/@Steverock (@steverockan)
|
||||
- Posted: 2026-05-24 14:15:30
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@steverockan** ^2058552472893837552
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Answering blind: hierarchically. Split into chunks as large as possible, sum up chunks in a single pass, write results to a new texture, repeat until 1 pixel texture. Maybe have to becareful about precision.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058554730767335810
|
||||
|
||||
**@steverockan**
|
||||
|
||||
Textures would be slow.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
---
|
||||
title: "@AgileJebrim They need to know how GPU shaders are organized to even answer this."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/stikves/status/2058434571608490047"
|
||||
author: "sukru tikves"
|
||||
handle: stikves
|
||||
post_id: "2058434571608490047"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim They need to know how GPU shaders are organized to even answer this."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/stikves/status/2058434571608490047
|
||||
- Author: sukru tikves (@stikves)
|
||||
- Posted: 2026-05-24 06:27:00
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@stikves** ^2058434571608490047
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
They need to know how GPU shaders are organized to even answer this.
|
||||
|
||||
But I hope nobody came with "I would write a simple for loop..."
|
||||
|
||||
**2/** **@AgileJebrim** ^2058534593200894022
|
||||
|
||||
**@stikves**
|
||||
|
||||
Actually the correct answer does involve one or more for loops in the answer.
|
||||
|
||||
**3/** **@stikves** ^2058680013483049048
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
(Going down the rabbit hole)
|
||||
|
||||
Yes, it would of course.
|
||||
Some context goes out in short replies here.
|
||||
|
||||
**4/** **@AgileJebrim** ^2058680437787041994
|
||||
|
||||
**@stikves**
|
||||
|
||||
You can comment longer. :P
|
||||
|
||||
**5/** **@stikves** ^2058682097506931028
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I could...
|
||||
|
||||
Yet, at doing those at midnight usually backfires.
|
||||
"What was a thread block again? Or was it a..."
|
||||
|
||||
**6/** **@AgileJebrim** ^2058684292662735191
|
||||
|
||||
**@stikves**
|
||||
|
||||
Here’s your hardware target. You have an arbitrary number of these SMs and a L2 cache and global memory available for cross communication between them. Describe how you would do it in relation to the hardware described here.
|
||||
|
||||

|
||||
|
||||
**7/** **@stikves** ^2058687794470592548
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Since they work independently, you start from the nearest (register file) and move up (shared mem) to intra SM (L2)
|
||||
|
||||
Though to be fair, for standard operations I would look this up
|
||||
|
||||
Why?
|
||||
|
||||
There is usually one corner case the prior art discovered but not obvious at first sight
|
||||
|
||||
**8/** **@stikves** ^2058688045059301875
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
(The standard solution to binary search for example had a off by one bug in the books for over a decade.
|
||||
|
||||
Can I write binary search from the tip of my head?
|
||||
Of course, did 100s of times
|
||||
|
||||
Will I actually do it for production?
|
||||
No)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
---
|
||||
title: "@AgileJebrim mapreduce."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/tomcr2100/status/2058461731639161009"
|
||||
author: "Tom Keresztes"
|
||||
handle: tomcr2100
|
||||
post_id: "2058461731639161009"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim mapreduce."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/tomcr2100/status/2058461731639161009
|
||||
- Author: Tom Keresztes (@tomcr2100)
|
||||
- Posted: 2026-05-24 08:14:55
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@tomcr2100** ^2058461731639161009
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
mapreduce. simple enough answer ? 😉
|
||||
|
||||
**2/** **@AgileJebrim** ^2058530982907490419
|
||||
|
||||
**@tomcr2100**
|
||||
|
||||
Design its implementation.
|
||||
|
||||
**3/** **@tomcr2100** ^2059204310630568267
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
start with processing in N chunks, every chunk is a wave, loading wide to feed ALU, and avoid trashing cache by different wave reads. Waves write to a fixed location in a buffer of size N. Works for sets that don't fit into memory (transfers). Overflow TBD. Out of characters👾
|
||||
|
||||
**4/** **@AgileJebrim** ^2059273072255844710
|
||||
|
||||
**@tomcr2100**
|
||||
|
||||
I don’t see any additions or reductions discussed, just memory loads and stores.
|
||||
|
||||
**5/** **@tomcr2100** ^2059311468978262438
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Sorry, typical twitter superficial moment. I meant each block reduces a portion of the array, multiple kernel invocations to reduce sync, and try to rely on sequential addressing d[i] + d[i + offset] to avoid bank conflicts when writing the result to global memory.
|
||||
|
||||
**6/** **@AgileJebrim** ^2059311961096020211
|
||||
|
||||
**@tomcr2100**
|
||||
|
||||
Can you show me what the first for loop looks like?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim I had this problem as an example in a uni class covering cuda, curious how their solution and explanation holds up"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/uvadin/status/2058652215879794914"
|
||||
author: "UvadinVeliki"
|
||||
handle: uvadin
|
||||
post_id: "2058652215879794914"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I had this problem as an example in a uni class covering cuda, curious how their solution and explanation holds up"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/uvadin/status/2058652215879794914
|
||||
- Author: UvadinVeliki (@uvadin)
|
||||
- Posted: 2026-05-24 20:51:50
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@uvadin** ^2058652215879794914
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I had this problem as an example in a uni class covering cuda, curious how their solution and explanation holds up
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "What precision are the numbers? Integer or floating point? Do we care about numerical stability? Can we assume we're on an NVIDIA GPU with threads, warps, CTAs, and grids? How much memory bandwidth do we have? Is that array of numbers big or really big?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/xlrndo/status/2058691325302894659"
|
||||
author: "xlrndo"
|
||||
handle: xlrndo
|
||||
post_id: "2058691325302894659"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "What precision are the numbers? Integer or floating point? Do we care about numerical stability? Can we assume we're on an NVIDIA GPU with threads, warps, CTAs, and grids? How much memory bandwidth do we have? Is that array of numbers big or really big?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/xlrndo/status/2058691325302894659
|
||||
- Author: xlrndo (@xlrndo)
|
||||
- Posted: 2026-05-24 23:27:15
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@xlrndo** ^2058691325302894659
|
||||
|
||||
What precision are the numbers? Integer or floating point? Do we care about numerical stability? Can we assume we're on an NVIDIA GPU with threads, warps, CTAs, and grids? How much memory bandwidth do we have? Is that array of numbers big or really big?
|
||||
|
||||
Too many questions to have any kind of single answer. It's not a bad interview question if it's used as a jumping off point for the candidate to demonstrate their knowledge.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058691753851384096
|
||||
|
||||
**@xlrndo**
|
||||
|
||||
https://x.com/agilejebrim/status/2058562643158352101?s=46&t=ZbNecpPBsBMrvteeaA6IcA
|
||||
|
||||
**3/** **@AgileJebrim** ^2058692267641077855
|
||||
|
||||
**@xlrndo**
|
||||
|
||||
Portable across a wide range of GPU hardware. You can assume 32-wide waves, 256-wide workgroups, and 64KB shared memory. The memory bandwidth is unlikely to affect the answer.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
---
|
||||
title: "@AgileJebrim As a curious bystander: can you give a rough idea how suboptimal it is to do \"the naive thing\"?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/DemetriSpanos/status/2058774747068891207"
|
||||
author: "Demetri Spanos"
|
||||
handle: DemetriSpanos
|
||||
post_id: "2058774747068891207"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim As a curious bystander: can you give a rough idea how suboptimal it is to do \"the naive thing\"?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/DemetriSpanos/status/2058774747068891207
|
||||
- Author: Demetri Spanos (@DemetriSpanos)
|
||||
- Posted: 2026-05-25 04:58:44
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@DemetriSpanos** ^2058774747068891207
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
As a curious bystander: can you give a rough idea how suboptimal it is to do "the naive thing"?
|
||||
|
||||
I mean one launch independently accumulating a vec4 per lane (Nx4M matrix yields 1xM array of vec4) and then a second launch to accumulate the 1xM in one lane?
|
||||
|
||||
2x suboptimal? worse?
|
||||
|
||||
**2/** **@AgileJebrim** ^2058776867981648367
|
||||
|
||||
Accumulating a partial sum in a vec4 per lane is a great approach. I think you’re the first one here to suggest it that didn’t attempt to prematurely reduce the vec4 every iteration.
|
||||
|
||||
There’s a significantly faster, albeit more involved way to reduce all of those parallel results than running a single lane in a second pass though. If you have 2000+ lanes across the hardware and 4 per lane, you’re looking at a serial accumulation in a single lane taking 8000+ steps on a half clock rate processor. You could do that in a small handful (~less than a dozen off the top of my head) instead.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
---
|
||||
title: "@AgileJebrim Using a hierarchical/structured layers on-device parallel reduction of cascading (multi-pass) kernels."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/JesseStojan/status/2058768097939472658"
|
||||
author: "Jesse S"
|
||||
handle: JesseStojan
|
||||
post_id: "2058768097939472658"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Using a hierarchical/structured layers on-device parallel reduction of cascading (multi-pass) kernels."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/JesseStojan/status/2058768097939472658
|
||||
- Author: Jesse S (@JesseStojan)
|
||||
- Posted: 2026-05-25 04:32:19
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@JesseStojan** ^2058768097939472658
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Using a hierarchical/structured layers on-device parallel reduction of cascading (multi-pass) kernels.
|
||||
E.g. `hip/cub::DeviceReduce::Sum(...)`/`sycl::Reduction(...)` with more steps.
|
||||
(I saw you say 16M × uint8 in the replies, but it was one of the first questions in my head lol)
|
||||
|
||||
**2/** **@AgileJebrim** ^2058769061480206761
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
Cool. Provide more details please.
|
||||
|
||||
**3/** **@AgileJebrim** ^2058769188873732484
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
You’re implementing the low level details, no reusing an existing function.
|
||||
|
||||
**4/** **@JesseStojan** ^2058785099756265546
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Well in that case, 1st kernel pass, each workgroup strides through the global array, sums the values, tree reduction in shared memory, writes the partial sum to a (uint32/64) partials[blockN] buffer. 2nd kernel pass reduces the partials[] down to the final sum.
|
||||
|
||||
**5/** **@AgileJebrim** ^2058788993848766932
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
Tell me more about this step labeled “sums the values”
|
||||
|
||||
**6/** **@JesseStojan** ^2058803240313979237
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Each thread sums many values using a stride (num_workgroups × threads_per_workgroup). Within each iteration, neighboring threads in a (subgroup/warp/wavefront) access consecutive addresses, enabling coalesced wide bursts (one transaction per subgroup).
|
||||
|
||||
**7/** **@AgileJebrim** ^2058922041076592962
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
Do you think you can write a short for loop snippet for this in a shader language?
|
||||
|
||||
**8/** **@JesseStojan** ^2058930323946152157
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Yeah, though just fair heads up, I'm not seeking employment lol, I'm just a nerd for rendering/CGI and massively parallel computing.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@AgileJebrim Nvidia has good resources on this https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Karyuutensei/status/2058799615265132885"
|
||||
author: "Nick Tasios"
|
||||
handle: Karyuutensei
|
||||
post_id: "2058799615265132885"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Nvidia has good resources on this https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Karyuutensei/status/2058799615265132885
|
||||
- Author: Nick Tasios (@Karyuutensei)
|
||||
- Posted: 2026-05-25 06:37:33
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Karyuutensei** ^2058799615265132885
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Nvidia has good resources on this https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf
|
||||
|
||||
**2/** **@AgileJebrim** ^2058922734327926914
|
||||
|
||||
**@Karyuutensei**
|
||||
|
||||
Yeah I’ve seen this before. They just waste time describing 6 shitty complex approaches before bothering to discuss the simplest and fastest approach lol.
|
||||
|
||||
**3/** **@Karyuutensei** ^2058943120532750836
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I actually find it quite educative.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim I would allocate a variable in VRAM, then partition or map the array into a texture (or two)."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ParkerRedford/status/2058843627053363467"
|
||||
author: "Parker Redford"
|
||||
handle: ParkerRedford
|
||||
post_id: "2058843627053363467"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I would allocate a variable in VRAM, then partition or map the array into a texture (or two)."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ParkerRedford/status/2058843627053363467
|
||||
- Author: Parker Redford (@ParkerRedford)
|
||||
- Posted: 2026-05-25 09:32:26
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ParkerRedford** ^2058843627053363467
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I would allocate a variable in VRAM, then partition or map the array into a texture (or two). Have the GPU add the pixel values to the allocated variable in VRAM.
|
||||
|
||||
**2/** **@AgileJebrim** ^2058917284773593591
|
||||
|
||||
**@ParkerRedford**
|
||||
|
||||
-
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
---
|
||||
title: "Use OpenMP :^)"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Waffl3x/status/2058821469434523920"
|
||||
author: "Waffl3x ❤️🩹 🩹 👁🗨"
|
||||
handle: Waffl3x
|
||||
post_id: "2058821469434523920"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "Use OpenMP :^)"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Waffl3x/status/2058821469434523920
|
||||
- Author: Waffl3x ❤️🩹 🩹 👁🗨 (@Waffl3x)
|
||||
- Posted: 2026-05-25 08:04:24
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Waffl3x** ^2058821469434523920
|
||||
|
||||
Use OpenMP :^)
|
||||
Target region, map the memory, use parallel for with a reduction clause, yell at my compiler vendor if it fails to vectorize.
|
||||
Or just use Fortran (also with OpenMP).
|
||||
|
||||
Answer changes if you need non-overflowing semantics. I am honestly not sure how I would do it efficiently in a scenario that effectively needs a bigint.
|
||||
|
||||
I imagine you chunk it in such a way that lets you use native width ints for the largest proportion of the calculation possible
|
||||
|
||||
**2/** **@AgileJebrim** ^2058921496240627917
|
||||
|
||||
**@Waffl3x**
|
||||
|
||||
OpenMP is for CPUs and isn’t really designed for the realtime workflows we require. ISPC would be better and actually has hard guarantees about vectorization.
|
||||
|
||||
Our earlier tech was built on top of ISPC. Our next gen tech is in a custom shader language built for GPU-native apps.
|
||||
|
||||
**3/** **@AgileJebrim** ^2058921653338361857
|
||||
|
||||
**@Waffl3x**
|
||||
|
||||
The goal should be to avoid BIGINT and have the input values be defined as smaller bitwidths instead.
|
||||
|
||||
**4/** **@Waffl3x** ^2058961654243827959
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Mmm I can see it, also I suppose bigint isn't necessary anyway, 128bit is almost certainly goof enough for a sum... I hope.
|
||||
|
||||
**5/** **@AgileJebrim** ^2058964499680420089
|
||||
|
||||
**@Waffl3x**
|
||||
|
||||
https://x.com/agilejebrim/status/2058562643158352101?s=46&t=ZbNecpPBsBMrvteeaA6IcA
|
||||
|
||||
**6/** **@Waffl3x** ^2058969433499111811
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
My mental model for this was off, it really does fit in a 32bit unsigned huh? OpenMP does this efficiently trivially I'm pretty sure, but that's just because it's such a simple case. So my answer really isn't useful for the interviewer.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim when we were first evaluating \"compute shaders\" at sony it was my job to find the ideal answer to this very question, and i got it right."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/bmcnett/status/2058724377135558802"
|
||||
author: "bmcnett"
|
||||
handle: bmcnett
|
||||
post_id: "2058724377135558802"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim when we were first evaluating \"compute shaders\" at sony it was my job to find the ideal answer to this very question, and i got it right."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/bmcnett/status/2058724377135558802
|
||||
- Author: bmcnett (@bmcnett)
|
||||
- Posted: 2026-05-25 01:38:35
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@bmcnett** ^2058724377135558802
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
when we were first evaluating "compute shaders" at sony it was my job to find the ideal answer to this very question, and i got it right. not everyone came around right away..
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim I have no idea about GPU hardware and how it works, can’t answer"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/sandovin34721/status/2058729746322620775"
|
||||
author: "kurku"
|
||||
handle: sandovin34721
|
||||
post_id: "2058729746322620775"
|
||||
date: 2026-05-25
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim I have no idea about GPU hardware and how it works, can’t answer"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2058420153348391346"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/sandovin34721/status/2058729746322620775
|
||||
- Author: kurku (@sandovin34721)
|
||||
- Posted: 2026-05-25 01:59:55
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@sandovin34721** ^2058729746322620775
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
I have no idea about GPU hardware and how it works, can’t answer
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: "I’ve taken to using a simple interview question with folks."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2058420153348391346"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2058420153348391346"
|
||||
date: 2026-05-24
|
||||
archived: 2026-08-29
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "I’ve taken to using a simple interview question with folks."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2058420153348391346
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-05-24 05:29:42
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2058420153348391346
|
||||
|
||||
I’ve taken to using a simple interview question with folks. It’s surprising how much people seem to struggle with answering it.
|
||||
|
||||
Tell me how you would efficiently sum a large array of numbers on a GPU into a single accumulated value.
|
||||
|
||||
Don’t need to see code, just explain it conceptually in relation to the hardware.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-stikves-they-need-to-know-how-gpu-shaders-are-organized]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-noinodev-i-see-it-as-a-convolution-task-gather-per-thread]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-saladpalad-tree-reduction]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-brainage19-im-bored-so-im-gonna-give-this-question-a-good]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-atorstling-hierarchical-map-reduce]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-Gombally_-i-think-this-is-a-simple-example-of-look-how-much]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-Lotsoffoodinme-many-people-dont-write-code-that-touches-the-gpu]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-ourtown2-use-a-parallel-reduction-not-atomics-from-every]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-tomcr2100-mapreduce-simple-enough-answer]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-VMises76153-i-would-embarrass-myself-by-trying-to-answer]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-heartoneto2012-do-floor-warpsize-arraysize-sums-keep-using-the]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-dadbod2100-its-for-a-frontend-javascript-position-i-see]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-FUZxxl-they-asked-the-same-question-to-me-at-nvidia-its]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-gulbaru-i-am-not-knowlegable-enough-with-gpus-but-does]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-feikcel-divide-into-small-arrays-conquer-each-array-on-a]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-MikeTreit-this-is-an-idiotic-interview-question]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-Jason_Ewton-m-x-n-multipass-reduction]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-minusYCore-does-the-array-initally-exist-in-gpu-memory-or-cpu]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-fatroom-no-idea-about-gpu-programming-cpu-hints-towards]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-2Sexy4MyGPU-lots-and-lots-of-atomics]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-deleted_1m-what-kind-of-gpu]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-kechogarcia-easy-waveactivesum-then-lds-atomic-sum-then]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-miru_why-efficient-reductions-are-a-very-deep-rabbit-hole]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-braincell__-if-you-can-fit-qwen-3-6-into-your-gpu-just-load]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-Apolloknius-shrink-the-array-over-and-over-until-its-down-to]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-matt_timmermans-divide-up-the-available-memory-between-cores-each]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-steverockan-answering-blind-hierarchically-split-into-chunks]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-CodeAndTears-large-array-of-values-is-stored-in-float-double]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-Lord_KX_-then-make-them-build-it-in-minecraft-using-pre]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-jes5199-you-shouldnt-do-that-on-the-gpu-do-it-on-the]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-SpikyCaterpillr-i-have-no-meaningful-gpu-coding-experience-that]], [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question/2026-05-24-uvadin-i-had-this-problem-as-an-example-in-a-uni-class]], [[archLine truncated
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
---
|
||||
title: "It's ARM based, so it's not like a GPU in the traditional sense, NVIDIA has made CPU/APUs AFAIK."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/JesseStojan/status/2060540898149048338"
|
||||
author: "Jesse S"
|
||||
handle: JesseStojan
|
||||
post_id: "2060540898149048338"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "It's ARM based, so it's not like a GPU in the traditional sense, NVIDIA has made CPU/APUs AFAIK."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/JesseStojan/status/2060540898149048338
|
||||
- Author: Jesse S (@JesseStojan)
|
||||
- Posted: 2026-05-30 01:56:47
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@JesseStojan** ^2060540898149048338
|
||||
|
||||
It's ARM based, so it's not like a GPU in the traditional sense, NVIDIA has made CPU/APUs AFAIK. So the difference is probably going to be unified memory like Apple and NVIDIA DGX, alongside others going that route. The gaming side and even the professional workstation side is nothing compared to their server side products.
|
||||
|
||||
**2/** **@AgileJebrim** ^2060543431538037055
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
We already develop for the Tegra-based Jetson, so that’s fine.
|
||||
|
||||
**3/** **@JesseStojan** ^2060559836023022012
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Nice, I've been focusing on CNC/CAE and simulation/analysis stuff, so it's a mix of CPU and whatever hardware is available, I'll utilize the iGPU to squeeze out every last drop of performance if I have to.
|
||||
|
||||
**4/** **@AgileJebrim** ^2060560952844485032
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
We’re really big on trying to eliminate offline steps entirely from the stack. Everything is real-time, including the dev tools. No static analysis.
|
||||
|
||||
**5/** **@AgileJebrim** ^2060561152082333950
|
||||
|
||||
**@JesseStojan**
|
||||
|
||||
Basically have a solidly proven compiler and interpreter such that everything else built on top of it just works.
|
||||
|
||||
**6/** **@JesseStojan** ^2060567168689836209
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
No static analysis sounds pretty wild. Though idk what you're working on aside from it being rendering related and you've been making your own programming language for it. I'm cool with both real-time and offline rendering though. Especially massive parallelism.
|
||||
|
||||
**7/** **@AgileJebrim** ^2060569318899773465
|
||||
|
||||
Well the compiler itself needs to be tested to death to ensure no varying performance instructions can be generated. But anything built on top will not, that’s the beauty that makes it stand apart from anything else on the market in SC.
|
||||
|
||||
We’re not just doing rendering. This can power a metaverse server, editor, or even a social media server like X, alongside a client for it. This can run the computer vision for autonomous vehicles and robotics.
|
||||
|
||||
Even the editor itself is being created on top of it and is a client-server application to allow for version control and real-time multi-user collaboration. We aren’t doing a text-based language, so traditional offline tools won’t work.
|
||||
|
||||
Quite literally rebuilding a new stack from the bottom up. Lots of work to do.
|
||||
|
||||
**8/** **@JesseStojan** ^2060571172887023876
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Niceee, yeah the SDK I've been working on has all the cross platform/architecture support for IPC, Rendering, Physics, etc.. the whole stack. Mostly freestanding C++ and Assembly. That'd be interesting to see what you're cooking up, I'd imagine a node based graph like Houdini?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
---
|
||||
title: "@AgileJebrim Unfortunately few know how to author programs that could fit in the GPUs tiny instruction caches."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/NOTimothyLottes/status/2060536518024855743"
|
||||
author: "NOTimothyLottes"
|
||||
handle: NOTimothyLottes
|
||||
post_id: "2060536518024855743"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Unfortunately few know how to author programs that could fit in the GPUs tiny instruction caches."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/NOTimothyLottes/status/2060536518024855743
|
||||
- Author: NOTimothyLottes (@NOTimothyLottes)
|
||||
- Posted: 2026-05-30 01:39:23
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@NOTimothyLottes** ^2060536518024855743
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Unfortunately few know how to author programs that could fit in the GPUs tiny instruction caches. They definitely overbuild scalar SALU capacity on AMD , if stick to wave64 for parallel vector work, there are lots of free issue slots for scalar workloads.
|
||||
|
||||
**2/** **@AgileJebrim** ^2060536966194556958
|
||||
|
||||
**@NOTimothyLottes**
|
||||
|
||||
This is why we’re doing our own custom visual shader language. They’ll be required to make passes of a limited instruction size and data buffers of a limited size. We can talk more about it privately.
|
||||
|
||||
**3/** **@NOTimothyLottes** ^2060538886539837470
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
For one employer, one of my projects actually pushes the limit of the I$ for a complex vector workload. It requires rethinking classic GPU workload distribution.
|
||||
|
||||
**4/** **@NOTimothyLottes** ^2060539563378942151
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Traditional GPU kernel launch goes wide first. So if you have say just enough work in the kernel to fill the GPU once, you never hit good efficiency due to servicing I$ misses across all those caches.
|
||||
|
||||
**5/** **@NOTimothyLottes** ^2060540118390186338
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
So small tasks on the GPU require persistent waves looping through work instead, limiting launch to say one CU and running for longer. This way enough of the workload runs in the warmed I$.
|
||||
|
||||
**6/** **@AgileJebrim** ^2060541173685436901
|
||||
|
||||
**@NOTimothyLottes**
|
||||
|
||||
Nah. We’re literally aiming for a single persistent dispatch to rule them all, controlling all the SMs/CUs/EUs in full shader-side. Never letting the CPU even have a chance at interfering.
|
||||
|
||||
**7/** **@NOTimothyLottes** ^2060542249574764955
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Oh I’ve gone there, always get limited by vendor shader compilers that cannot handle large shaders. Need a large tool bag of workarounds to trick the compiler into not doing common sub expression elimination (especially for memory ops)
|
||||
|
||||
**8/** **@NOTimothyLottes** ^2060543164994159077
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
If the vendors just opened up gfx apis to external shader
|
||||
compilation with 3rd party tool chains we could easily start a GPU programming golden age, one compiled kernel just like the CPU.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "I don't think thats a good idea, there's some escalating problems where games focus too much on GPU methods and end up suffering as a result."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Sacb0y/status/2060704573795283381"
|
||||
author: "🔞 Our Apartment by Sacb0y"
|
||||
handle: Sacb0y
|
||||
post_id: "2060704573795283381"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "I don't think thats a good idea, there's some escalating problems where games focus too much on GPU methods and end up suffering as a result."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Sacb0y/status/2060704573795283381
|
||||
- Author: 🔞 Our Apartment by Sacb0y (@Sacb0y)
|
||||
- Posted: 2026-05-30 12:47:11
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Sacb0y** ^2060704573795283381
|
||||
|
||||
I don't think thats a good idea, there's some escalating problems where games focus too much on GPU methods and end up suffering as a result.
|
||||
|
||||
Plus as a PC user, there's benefits to say when I'm rendering something and it's all on the GPU and not locking up the CPU so I can still use the PC.
|
||||
|
||||
**2/** **@AgileJebrim** ^2060760957911962084
|
||||
|
||||
**@Sacb0y**
|
||||
|
||||
I think you’re arguing against a red herring because nothing I’m talking about here reflects your complaints.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@AgileJebrim Seems unrealistic to have hard real-time in a general purpose OS."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/loganb/status/2060543691291607199"
|
||||
author: "Logan Bowers 🏗️ 🏘️"
|
||||
handle: loganb
|
||||
post_id: "2060543691291607199"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Seems unrealistic to have hard real-time in a general purpose OS."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/loganb/status/2060543691291607199
|
||||
- Author: Logan Bowers 🏗️ 🏘️ (@loganb)
|
||||
- Posted: 2026-05-30 02:07:53
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@loganb** ^2060543691291607199
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Seems unrealistic to have hard real-time in a general purpose OS. At least no one has done it yet.
|
||||
|
||||
**2/** **@AgileJebrim** ^2060545289778328000
|
||||
|
||||
**@loganb**
|
||||
|
||||
If they ran on the same hardware, that would be true. But we’re running on isolated GPU cores with isolated memory instead. The CPU side isn’t allowed to interfere with them.
|
||||
|
||||
**3/** **@AgileJebrim** ^2060546330645213562
|
||||
|
||||
**@loganb**
|
||||
|
||||
This also means bypassing the compositor and drawing directly to the display.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@AgileJebrim Why you guys trying to rebuild the world in the image of the raspberry pi?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/nate_the_sneak/status/2060514346371863032"
|
||||
author: "Shame WoW!!!"
|
||||
handle: nate_the_sneak
|
||||
post_id: "2060514346371863032"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Why you guys trying to rebuild the world in the image of the raspberry pi?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/nate_the_sneak/status/2060514346371863032
|
||||
- Author: Shame WoW!!! (@nate_the_sneak)
|
||||
- Posted: 2026-05-30 00:11:17
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@nate_the_sneak** ^2060514346371863032
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Why you guys trying to rebuild the world in the image of the raspberry pi?
|
||||
|
||||
**2/** **@AgileJebrim** ^2060514806143103120
|
||||
|
||||
**@nate_the_sneak**
|
||||
|
||||
Because raspberry pis do not offer trivial hard real-time guarantees.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
---
|
||||
title: "What problem are you solving? What is the CPU lacking, and what does the GPU offer when the OS is ported to it? And I’m curious to know how you deal with stalls."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/olenbaranasalat/status/2060552308052615363"
|
||||
author: "Гала Перидоловна 🇳🇵"
|
||||
handle: olenbaranasalat
|
||||
post_id: "2060552308052615363"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "What problem are you solving? What is the CPU lacking, and what does the GPU offer when the OS is ported to it? And I’m curious to know how you deal with stalls."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/olenbaranasalat/status/2060552308052615363
|
||||
- Author: Гала Перидоловна 🇳🇵 (@olenbaranasalat)
|
||||
- Posted: 2026-05-30 02:42:08
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@olenbaranasalat** ^2060552308052615363
|
||||
|
||||
What problem are you solving? What is the CPU lacking, and what does the GPU offer when the OS is ported to it? And I’m curious to know how you deal with stalls. Have you written your own branch predictor and are you manually inserting something into each Warp? I’m also curious to know how you handle threads. Do all threads run sequentially on each Warp?
|
||||
|
||||
**2/** **@AgileJebrim** ^2060557227581112684
|
||||
|
||||
“What problem are you solving?”
|
||||
|
||||
Hard real-time guarantees are too difficult and expensive to verify in the safety-critical market and usually requires leveraging expensive and dated custom hardware and software toolchains. This is doubly so when needing high performance requirements for stuff like computer vision, sensor fusion, autonomous vehicles, enhanced flight vision systems, HWIL sims, robotics, etc.
|
||||
|
||||
We’re looking to make it cheap to produce such high performance safety-critical systems on existing affordable COTS hardware.
|
||||
|
||||
“What is the CPU lacking, and what does the GPU offer when the OS is ported to it?”
|
||||
|
||||
CPU lacks a programmer-managed cache. GPUs have scratchpad memory. They also cannot be arbitrarily interrupted. We don’t pursue a preemption-based design but instead actually target having EVERYTHING on the GPU meet the real-time deadline, thereby avoiding the problem entirely. This is achieved through a custom compiler we’re building that guarantees isochronous (constant time) execution, minimizing jitter. This also works very well with SIMD.
|
||||
|
||||
Your later questions have too many false premises. We don’t have a branch predictor because nothing ever branches or diverges to begin with. All hardware runs the same code, syncs, then runs the next bit of code. No warp specialization is planned at this time.
|
||||
|
||||
**3/** **@AgileJebrim** ^2060557537863139453
|
||||
|
||||
**@olenbaranasalat**
|
||||
|
||||
The other problem we’re solving is data, not just code. Changing the data should not require recertifying anything. It should just work with the same execution times as any other data input.
|
||||
|
||||
**4/** **@olenbaranasalat** ^2060719310603972993
|
||||
|
||||
How do you prove constant-time execution in the presence of global memory, barriers, bank conflicts, DRAM arbitration, TLB/IOMMU behavior? Is your model a general RTOS, or more like a statically scheduled synchronous dataflow runtime? Is your GPU-native RTOS mainly meant for deterministic high-performance perception/data processing, rather than replacing the cheaper and well-understood MCU/FPGA layer for physical hard real-time control?
|
||||
|
||||
**5/** **@AgileJebrim** ^2060764703186460992
|
||||
|
||||
Great questions!
|
||||
|
||||
We do not allow for random access memory. Everything from global memory is linearly streamed in. Random access lookups are only allowed to occur within shared memory on 64KB tiles or shuffles within a warp. To avoid bank conflicts in shared memory, we utilize warp-uniform techniques.
|
||||
|
||||
Barriers are a potential source of slight jitter fluctuations, especially when globally syncing, but they are data-independent, few in number, and well-bounded. It helps a lot that all threads have equal execution times.
|
||||
|
||||
We have techniques to avoid getting bottlenecked by CPU-side interference. It’s important to not directly share resources with them at arbitrary points. We treat the CPU as unreliable low priority background threads to be safe.
|
||||
|
||||
You can get both experiences. The former is supported via a scripting language where we interpret bytecode dynamically at runtime with a fixed amount of cycles per task, sacrificing throughput to achieve arbitrary code execution. The latter is precompiled in with a static schedule.
|
||||
|
||||
It’ll all still be relatively static compared to a typical RTOS simply because RTOSes are not actually guaranteeing all threads within them are high criticality. They’re assuming some are low priority; we don’t have that problem. We dedicate 100% of all GPU hardware to a single task before moving on to the next. No preemption.
|
||||
|
||||
Both. Competing against FPGAs is one of my biggest goals with this. We can achieve their isochronous behavior but with much higher bandwidth, all on cheap COTS hardware that people already have.
|
||||
|
||||
I’m going quite broadly with the applications I have in mind of supporting. You could do sensor fusion, computer vision, and autonomous driving with this, sure, but you could also use it to power a metaverse or social media app like X. Reduce your costs by replacing distributed microservices with SIMT lanes.
|
||||
|
||||
**6/** **@olenbaranasalat** ^2060772978128814271
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Not gonna lie, I’m a bit jealous — this sounds like an insanely fun systems problem to work on.
|
||||
|
||||
**7/** **@AgileJebrim** ^2060774071479013674
|
||||
|
||||
**@olenbaranasalat**
|
||||
|
||||
What’s your rate? We can dm.
|
||||
|
||||
**8/** **@olenbaranasalat** ^2060781078843957541
|
||||
|
||||
Thank you, but I only interview candidates for roles related to GPUs, so I’ve had to familiarise myself with how GPUs work. My main specialism is I/O virtualisation. I have little production experience writing code for GPUs - at most, I’ve run tests to assess inference performance in virtual machines. I’m unlikely to be the right fit for you :)
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
title: "@AgileJebrim This Isochron https://www.isochron.org/about ?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/xyzw_io/status/2061097305143390348"
|
||||
author: "xyzw"
|
||||
handle: xyzw_io
|
||||
post_id: "2061097305143390348"
|
||||
date: 2026-05-31
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim This Isochron https://www.isochron.org/about ?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2060513369065754969"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/xyzw_io/status/2061097305143390348
|
||||
- Author: xyzw (@xyzw_io)
|
||||
- Posted: 2026-05-31 14:47:45
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@xyzw_io** ^2061097305143390348
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
This Isochron https://www.isochron.org/about ?
|
||||
|
||||
**2/** **@AgileJebrim** ^2061098721262133300
|
||||
|
||||
**@xyzw_io**
|
||||
|
||||
No. We don’t really have a public presence at this time detailing our future products. It’s mostly just my X account, @IsochronTech (empty atm), and my Discord server.
|
||||
|
||||
https://www.isochrontechnologies.com
|
||||
|
||||
**3/** **@AgileJebrim** ^2061099593874440320
|
||||
|
||||
I suppose I should mention http://www.jebscape.com too as that’s part of our IP as well. Our Pred product in many ways is building upon the lessons learned in that project and is borrowing some of the code and design principles from it. I give our team members access to that server source for inspiration.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: "I don’t think hardware vendors are going to practically be able to ditch the CPU from system architectures any more than they’ll ditch the GPU, but I do think the GPU should become the master device driving decisions rather than just a slave accelerator for heterogeneous apps."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2060513369065754969"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2060513369065754969"
|
||||
date: 2026-05-30
|
||||
archived: 2026-08-26
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "I don’t think hardware vendors are going to practically be able to ditch the CPU from system architectures any more than they’ll ditch the GPU, but I do think the GPU should become the master device driving decisions rather than just a slave accelerator for heterogeneous apps."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2060513369065754969
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-05-30 00:07:24
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2060513369065754969
|
||||
|
||||
I don’t think hardware vendors are going to practically be able to ditch the CPU from system architectures any more than they’ll ditch the GPU, but I do think the GPU should become the master device driving decisions rather than just a slave accelerator for heterogeneous apps.
|
||||
|
||||
We (Isochron) believe we have a method of doing something like that by creating a GPU-native RTOS. It however won’t boot directly into it (although that would be nice) as we still depend upon existing third party drivers for I/O, but the GPU RTOS would run in parallel alongside a CPU-based OS as a hard real-time coprocessor without interference from the CPU.
|
||||
|
||||
What’s key here is that all control logic is on the GPU itself and is what tells the CPU what to do, such as load data from disk or send packets out over the network.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-nate_the_sneak-why-you-guys-trying-to-rebuild-the-world-in-the]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-NOTimothyLottes-unfortunately-few-know-how-to-author-programs]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-JesseStojan-its-arm-based-so-its-not-like-a-gpu-in-the]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-loganb-seems-unrealistic-to-have-hard-real-time-in-a]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-olenbaranasalat-what-problem-are-you-solving-what-is-the-cpu]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-30-Sacb0y-i-dont-think-thats-a-good-idea-theres-some]], [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to/2026-05-31-xyzw_io-this-isochron-https-www-isochron-org-about]]
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: "@AgileJebrim Why?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/_s_u_r_a_/status/2091080756806521239"
|
||||
author: "asdb"
|
||||
handle: _s_u_r_a_
|
||||
post_id: "2091080756806521239"
|
||||
date: 2026-08-22
|
||||
archived: 2026-08-27
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Why?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2090977998593827103"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/_s_u_r_a_/status/2091080756806521239
|
||||
- Author: asdb (@_s_u_r_a_)
|
||||
- Posted: 2026-08-22 08:31:17
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@_s_u_r_a_** ^2091080756806521239
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Why?
|
||||
|
||||
**2/** **@AgileJebrim** ^2091110649526972527
|
||||
|
||||
Because they’re designed to be data parallel and work with GPUs from the start.
|
||||
Because they don’t require integrating with an existing bloated library.
|
||||
|
||||
SPIR-V is just an incredibly simple and straightforward binary format. We write to it directly as an array of uint32s. You can even read the bytecode in a hex editor directly easily enough if you wanted. Think of it like Java bytecode; it’s portable across a wide range of hardware and vendors.
|
||||
|
||||
PTX unfortunately requires generating ASCII output to work with it, so a little more complicated but still nothing like linking to LLVM. It is good for accessing more low level control over NVIDIA GPUs.
|
||||
|
||||
We’re also creating our own IR that I suppose one could hypothetically target via code too. We’re doing it internally anyways until our visual editor is ready.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead]]
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
---
|
||||
title: "@AgileJebrim ptx, my ass: https://redplait.blogspot.com/2026/08/parser-of-ptx-instructions.html"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/real_redp/status/2091228915142472141"
|
||||
author: "red plait"
|
||||
handle: real_redp
|
||||
post_id: "2091228915142472141"
|
||||
date: 2026-08-22
|
||||
archived: 2026-08-27
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim ptx, my ass: https://redplait.blogspot.com/2026/08/parser-of-ptx-instructions.html"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2090977998593827103"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/real_redp/status/2091228915142472141
|
||||
- Author: red plait (@real_redp)
|
||||
- Posted: 2026-08-22 18:20:01
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@real_redp** ^2091228915142472141
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
ptx, my ass: https://redplait.blogspot.com/2026/08/parser-of-ptx-instructions.html
|
||||
|
||||
**2/** **@AgileJebrim** ^2091230269747397000
|
||||
|
||||
**@real_redp**
|
||||
|
||||
FWIW I target SPIR-V in part because it’s a binary format (ASCII asm sucks) and in part because it’s more portable than PTX.
|
||||
|
||||
**3/** **@AgileJebrim** ^2091230640842612865
|
||||
|
||||
**@real_redp**
|
||||
|
||||
The main advantage of PTX is that it gets you direct access to a lower level API into NVIDIA hardware than anything else available unless we manage to reverse engineer PSO binary caches (something I’m still debating attempting) to write directly in SASS.
|
||||
|
||||
**4/** **@real_redp** ^2091231795350044950
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
he-he
|
||||
I made tool to patch sass
|
||||
|
||||
**5/** **@AgileJebrim** ^2091233823228940511
|
||||
|
||||
**@real_redp**
|
||||
|
||||
Which generation? Is it available?
|
||||
|
||||
**6/** **@AgileJebrim** ^2091234694201331796
|
||||
|
||||
**@real_redp**
|
||||
|
||||
I see you have a disassembler. It looks to be CUDA-specific? I’d love to see you do one for Vulkan PSOs too, especially for Ampere.
|
||||
https://github.com/redplait/denvdis/tree/master
|
||||
|
||||
**7/** **@AgileJebrim** ^2091235158682730697
|
||||
|
||||
**@real_redp**
|
||||
|
||||
Actually, I think this path might work as is combined with the Cubin extension in Vulkan.
|
||||
“sed-like tool for inline patching of sass instructions within cubin files.”
|
||||
Lots of possibilities! 🤔
|
||||
|
||||
How mature is this?
|
||||
|
||||
**8/** **@real_redp** ^2091235642898325872
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
enough to do crazy things like https://redplait.blogspot.com/2026/07/optimization-of-sass-stall-counts.html
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim Are people seriously starting from ptx 😭 I thought you went there after you got a good grip on cuda"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/thisispiyushK/status/2091255763121721523"
|
||||
author: "lsm_"
|
||||
handle: thisispiyushK
|
||||
post_id: "2091255763121721523"
|
||||
date: 2026-08-22
|
||||
archived: 2026-08-27
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Are people seriously starting from ptx 😭 I thought you went there after you got a good grip on cuda"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2090977998593827103"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/thisispiyushK/status/2091255763121721523
|
||||
- Author: lsm_ (@thisispiyushK)
|
||||
- Posted: 2026-08-22 20:06:42
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@thisispiyushK** ^2091255763121721523
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Are people seriously starting from ptx 😭 I thought you went there after you got a good grip on cuda
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead]]
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
title: "Start with SPIR-V or PTX instead."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2090977998593827103"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2090977998593827103"
|
||||
date: 2026-08-22
|
||||
archived: 2026-08-27
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "Start with SPIR-V or PTX instead."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2090977998593827103
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-08-22 01:42:58
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2090977998593827103
|
||||
|
||||
Start with SPIR-V or PTX instead.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead/2026-08-22-_s_u_r_a_-why]], [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead/2026-08-22-real_redp-ptx-my-ass-https-redplait-blogspot-com-2026-08]], [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead/2026-08-22-thisispiyushK-are-people-seriously-starting-from-ptx-i-thought]]
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
---
|
||||
title: "So if a true “No Graphics API” requires 0 lines of user CPU code, does that make it infinitely better than this? Asking for a friend."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2095604397602382070"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2095604397602382070"
|
||||
date: 2026-09-03
|
||||
archived: 2026-09-04
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "So if a true “No Graphics API” requires 0 lines of user CPU code, does that make it infinitely better than this? Asking for a friend."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2095604397602382070
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-09-03 20:06:37
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2095604397602382070
|
||||
|
||||
So if a true “No Graphics API” requires 0 lines of user CPU code, does that make it infinitely better than this? Asking for a friend.
|
||||
|
||||
**2/** **@NOTimothyLottes** ^2095649154076709316
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
If a new gfx API can be implemented over current graphics APIs, it is by definition not adding anything useful (it’s a lower common denominator software architecture). One shouldn’t try to confuse a project’s abstraction layer with what is actually needed to do something new.
|
||||
|
||||
**3/** **@ozeniken** ^2095654079586324657
|
||||
|
||||
**@NOTimothyLottes** **@AgileJebrim**
|
||||
|
||||
seb's api requires vulkan extensions published THIS year. it's not lowest common denominator and it's not (much of) an abstraction layer, it's a refined subset of what you need on modern gpus. full vulkan is the lowest common denominator because it has to support gpus from 2012
|
||||
|
||||
**4/** **@NOTimothyLottes** ^2095656131473412099
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
What we have actually needed for GPUs since the first GCN isn’t available via extensions today. For example no extension fixes anything broken in the common way both Windows and Linux handle multi queue sync primitives with coalesced CPU interrupts.
|
||||
|
||||
**5/** **@NOTimothyLottes** ^2095657109291438332
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
No extension provides a way to use a precompiled GPU binary generated with external assembler or compiler. Meaning all the existing documented shader side issues that haven’t been fixed in a decade plus are still there.
|
||||
|
||||
**6/** **@NOTimothyLottes** ^2095658814972264736
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
Also sebbbi tends to be a proponent for the slowest way to access buffers on all the AMD based consoles, using generic 64-bit pointers, and likely that new extension you are referring to is to get this HW buffer slow path.
|
||||
|
||||
**7/** **@NOTimothyLottes** ^2095661843813396514
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
Back when I worked at AMD I covered the HW fast paths for binding/etc via a bind everything once/frame model using giant DYNAMIC buffer to get the USER SGPR preload. Later “extensions” had been more modeled on slower DX12 like portability and actually dont support HW fast path.
|
||||
|
||||
**8/** **@NOTimothyLottes** ^2095663350071930982
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
Best interface on all GCN and RDNA for vector buffer access is TBUFFER instructions which to this day has no extension support for from AMD. HW path: one preloaded descriptor can access any type with just a 32-bit index and tons of free HW address generation features.
|
||||
|
||||
**9/** **@NOTimothyLottes** ^2095665044050629025
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
No one PC side ever exposed a proper interface to LDS. Which is why when you look at the disassembly it’s littered with ALU waste to map a implicit scaled index based shader language to a byte offset based HW ISA and no API reskin is set to fix this mess either
|
||||
|
||||
**10/** **@NOTimothyLottes** ^2095665525351129571
|
||||
|
||||
**@ozeniken** **@AgileJebrim**
|
||||
|
||||
Or for real horrors look at all the disassembly of shaders that use atomics where the compiler force inserts all sorts of stupid programmer workarounds which de-optimize fast algorithms. Again no gfx API reskin is set to fix these problems.
|
||||
|
||||
**11/** **@ozeniken** ^2095666556445356123
|
||||
|
||||
**@NOTimothyLottes** **@AgileJebrim**
|
||||
|
||||
these are valid criticisms but you're missing the point, this is a forward looking api. https://x.com/SebAaltonen/status/2095567431481655668?s=20
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: "@AgileJebrim Are you planning a closed or open beta anytime soon?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ExodusPgame/status/2097328969733337562"
|
||||
author: "Exodus 🇮🇱"
|
||||
handle: ExodusPgame
|
||||
post_id: "2097328969733337562"
|
||||
date: 2026-09-08
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Are you planning a closed or open beta anytime soon?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2097298982703649017"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ExodusPgame/status/2097328969733337562
|
||||
- Author: Exodus 🇮🇱 (@ExodusPgame)
|
||||
- Posted: 2026-09-08 14:19:27
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ExodusPgame** ^2097328969733337562
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Are you planning a closed or open beta anytime soon?
|
||||
|
||||
**2/** **@AgileJebrim** ^2097331912138187180
|
||||
|
||||
No. We’re still making breaking changes at this time. Once we put something out there, the interface will basically be locked in place. We want to ensure we get it right.
|
||||
|
||||
Furthermore, since we care so much about rigorous guarantees, we’re going to be testing this to death long before any user actually sees anything. I don’t think it helps reputation-wise to release something that fails to deliver on its promises. I have no desire to release broken software, which is generally what betas are for.
|
||||
|
||||
I currently do plan on offering free GPU-interpreted scripting in a browser-like environment, akin to Shadertoy, Compute Toys, and FragCoord, but as a native application that is able to have proper I/O. You’ll get a fraction of the throughput performance of a compiled application, won’t own the code, and the source must be made publicly available, but otherwise you’ll get to try out most of the capabilities to see if it’s right for you.
|
||||
|
||||
My guess is that it’ll be available sometime in 2028. There’s still a lot of work to do.
|
||||
|
||||
**3/** **@ExodusPgame** ^2097333660026286434
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Fair enough.
|
||||
I'm looking forward to try it when it's available.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-09-08-what-separates-an-engineer-from-a-developer-is]]
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
---
|
||||
title: "@AgileJebrim That is a maturity developers will have to learn over time."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/stikves/status/2097581823081828424"
|
||||
author: "sukru tikves"
|
||||
handle: stikves
|
||||
post_id: "2097581823081828424"
|
||||
date: 2026-09-09
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim That is a maturity developers will have to learn over time."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2097298982703649017"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/stikves/status/2097581823081828424
|
||||
- Author: sukru tikves (@stikves)
|
||||
- Posted: 2026-09-09 07:04:12
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@stikves** ^2097581823081828424
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
That is a maturity developers will have to learn over time.
|
||||
|
||||
Debating the merits of languages and tools is fun. I still do that occasionally for intellectual amusement.
|
||||
|
||||
However the best tool for the job is rarely your favorite one. And forcing otherwise hurts the product.
|
||||
|
||||
**2/** **@AgileJebrim** ^2097673978487648648
|
||||
|
||||
Tbh this mindset is actually one of the few useful things I learned in university. I have an ABET-accredited Software Engineering degree and spent multiple semesters learning actual engineering principles rather than just Computer Science.
|
||||
|
||||
The professor for Requirements Engineering in particular drilled into us hard about identifying the user’s problem (which they often don’t know) and solving it, always maintaining bidirectional traceability with every commit (every change must have a specific requirement it fulfills, all kept within the NFR constraints). People have a nasty habit of getting distracted and wasting time on things that don’t actually address the user’s problem.
|
||||
|
||||
The Software Architecture course focused specifically on how to translate the NFR constraints into quality attributes that governed the design of the architecture. You don’t even establish a path forward unless you’ve first established technical feasibility. I spent years intermittently doing research first to ensure I had a reasonable technically feasible path forward on achieving isochronous execution in a data parallel environment before I began development on a tool project to guarantee delivering it.
|
||||
|
||||
**3/** **@stikves** ^2097688057252380964
|
||||
|
||||
Yes, a proper engineering discipline will help. And also properly planning your execution even before you write a single line of code.
|
||||
|
||||
However that is also hard, and most corporations won't like it. Or... let's be honest most "coders" don't like it.
|
||||
|
||||
So...
|
||||
|
||||
We had "imitations" of those things that did more harm than they helped.
|
||||
|
||||
"Waterfall is outdated, let's use iterative methods. And, this Kanban thing worked for Japanese Auto companies, so let's invent something called Agile"
|
||||
|
||||
"Here is the 2 week sprint with User Stories and some UML. Let's play this theater"
|
||||
|
||||
Now the entire software industry is trying to undo the damage (some are unfortunately still smitten with these ideas)
|
||||
|
||||

|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-09-08-what-separates-an-engineer-from-a-developer-is]]
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
---
|
||||
title: "What separates an engineer from a developer is keeping the USER’s problem front and center in every architectural design decision."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2097298982703649017"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2097298982703649017"
|
||||
date: 2026-09-08
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "What separates an engineer from a developer is keeping the USER’s problem front and center in every architectural design decision."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2097298982703649017
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-09-08 12:20:18
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2097298982703649017
|
||||
|
||||
What separates an engineer from a developer is keeping the USER’s problem front and center in every architectural design decision. NFR-driven constraints matter. Bidirectional traceability matters.
|
||||
|
||||
And yet I keep hearing people spend hours debating the pros and cons of this language feature, that coding style, and that framework platform, all completely divorced from how they enable devs to offer customers the highest quality solutions for the lowest price.
|
||||
|
||||
The end user doesn’t care if you used const by default, a borrow checker, or advanced metaprogramming tools. How do these trace back to providing an affordable quality attribute that they do care about?
|
||||
|
||||
If you’re not choosing/designing your software stack with the quality of the user experience front and center, you’re just wasting time and needlessly adding cost, making yourself less competitive against others offering similar functionality but with better quality execution.
|
||||
|
||||
For the particular constraints I choose to prioritize within my projects, everything revolves first and foremost around eliminating lag/stutter for the end user, followed by secondary priorities of lowering both dev costs and hardware operating costs of using the software. Higher quality, lower costs.
|
||||
|
||||
EVERY design tradeoff decision made for delivering on a functional requirement revolves around whether I can deliver on these 3 things that drive the nonfunctional requirements. If a particular design decision and implementation cannot trace itself back to both a functional and nonfunctional requirement, then it’s both a waste of time and counterproductive.
|
||||
|
||||
I pursue portable isochronous data parallel execution with static resource allocation because that’s the logical conclusion analyzing these NFRs lead to. They’re not optional if one wants to achieve the goals set forth for offering the best quality of service for the lowest price, regardless of the specific functional nature of the project in question.
|
||||
|
||||
If it helps for your software product to be interactive and immediately responsive to user input, then it can benefit from my approach. This isn’t just for my own niche problem domain.
|
||||
|
||||
The tools don’t currently exist for making it cheap and easy to rapidly produce such software; thus we’ve gotta make them ourselves. To lower the cost of such tools, we should make them publicly available and treat them as a product too.
|
||||
|
||||
Minimally, in a buyer’s market, product cost = (dev cost / number of customers) + profit margin.
|
||||
|
||||
Maximally, in a seller’s market, product cost = value add (cost of customer’s alternatives - their savings & profit by choosing us).
|
||||
|
||||
This latter is why custom pricing exists for B2B sales; we must be cheaper and less risky than the cost of them either rolling their own or going with a competitor. It unfortunately does have a scaling problem, so we do want to choose a bit of both. Different customers value real-time guarantees and low costs differently. We’re also constrained by the reality of most user software running on general purpose multitasking operating systems running third party software, which cannot perfectly guarantee isochrony.
|
||||
|
||||
This thus all leads to us offering multiple tiered products. Serve the customers for which our NFRs are a cheaper nice-to-have, but not hard guarantees, gaining scale and lowering costs in the process, whilst simultaneously targeting the safety/mission-critical market for which our value add is non-optional and demands a safety-certified real-time environment with the most premium quality.
|
||||
|
||||
Every internal debate revolves around how to deliver on all of these aforementioned goals. They must be front and center in every discussion until this problem of providing a solution for the cheap and rapid production of guaranteed hard real-time (stutter-free) software on cheap hardware is solved. Only after that can we (and our future customers) focus on the functionality of the end user software itself, regardless of the domain in question.
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2026-09-08-what-separates-an-engineer-from-a-developer-is/2026-09-08-ExodusPgame-are-you-planning-a-closed-or-open-beta-anytime]], [[archive/threads/AgileJebrim/2026-09-08-what-separates-an-engineer-from-a-developer-is/2026-09-09-stikves-that-is-a-maturity-developers-will-have-to-learn]]
|
||||
|
||||
**2/** **@AgileJebrim** ^2097301188068692290
|
||||
|
||||
There is a major tradeoff that this approach comes with, which is that all software wanting to be stutter-free must be rewritten from scratch, likely also including all the legacy data that it depends upon. This is a real greater short-term cost that business customers must account for. Those who do choose us will however over the long-term have the potential to disrupt existing industries and compete against the legacy big players that decide not to proactively lead.
|
||||
|
||||
I expect developers working on new greenfield projects without existing legacy content to hold them back will likely be our primary customers.
|
||||
|
||||
**3/** **@SebAaltonen** ^2097360487700738543
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
That's the core issue with high performance code. Only seasoned experts are able to write it. Requires architectural planning and rigor. Hard to scale to large teams. In gamedev, code isn't the product. Code has to be good enough to ship. There's always more important stuff.
|
||||
|
||||
**4/** **@AgileJebrim** ^2097371437296230681
|
||||
|
||||
**@SebAaltonen**
|
||||
|
||||
Part of lowering dev costs is providing the tools that automate achieving these quality attributes to then avoid needing high levels of skill among both the programmers and content creators. The tools should prevent them from shooting themselves in the foot on performance.
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
---
|
||||
title: "@AgileJebrim Why would you do this."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/MrJayLC/status/2110067671874327005"
|
||||
author: "John"
|
||||
handle: MrJayLC
|
||||
post_id: "2110067671874327005"
|
||||
date: 2026-10-13
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Why would you do this."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2110051793379975227"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/MrJayLC/status/2110067671874327005
|
||||
- Author: John (@MrJayLC)
|
||||
- Posted: 2026-10-13 17:58:30
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@MrJayLC** ^2110067671874327005
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Why would you do this.
|
||||
Jitter would be the variance observed between frame times.
|
||||
Predictability is the match between estimated and measured jitter.
|
||||
Determinism means that a given input produces a given output 100% of the time.
|
||||
|
||||
Isochrony is a new one for me.
|
||||
|
||||
**2/** **@AgileJebrim** ^2110068785361084841
|
||||
|
||||
**@MrJayLC**
|
||||
|
||||
It’s predictably within a target time. If you’re early you can just busy-spin or do something else until you reach the predicted time and then interrupt. This is what traditional hard real-time generally targets but it’s also much harder to verify what the worst-case actually is.
|
||||
|
||||
**3/** **@AgileJebrim** ^2110069372878279122
|
||||
|
||||
**@MrJayLC**
|
||||
|
||||
Determinism in the context of timing means that a given data input executes with the same timing 100% of the time. A different data input may have a different timing.
|
||||
|
||||
Isochrony is the same timing every periodic tick every single time regardless of the data inputs or lackthereof.
|
||||
|
||||
**4/** **@AgileJebrim** ^2110069846046048412
|
||||
|
||||
It’s cheap to verify worst-case because you do not need to identify what the worst-case actually is. It’s already known. The others require complex analysis of a program to identify the worst-case state. This can become a very difficult combinatorics problem and be hardware-specific.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim i remember when I had to explain that a system was isochronous..."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/suumiboor/status/2110074153248215185"
|
||||
author: "Suumiboor"
|
||||
handle: suumiboor
|
||||
post_id: "2110074153248215185"
|
||||
date: 2026-10-13
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim i remember when I had to explain that a system was isochronous..."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2110051793379975227"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/suumiboor/status/2110074153248215185
|
||||
- Author: Suumiboor (@suumiboor)
|
||||
- Posted: 2026-10-13 18:24:16
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@suumiboor** ^2110074153248215185
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
i remember when I had to explain that a system was isochronous... not a fun time.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@AgileJebrim Just start measuring jitter."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/tautolog/status/2110055056813031491"
|
||||
author: "The Ontic"
|
||||
handle: tautolog
|
||||
post_id: "2110055056813031491"
|
||||
date: 2026-10-13
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Just start measuring jitter."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2110051793379975227"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/tautolog/status/2110055056813031491
|
||||
- Author: The Ontic (@tautolog)
|
||||
- Posted: 2026-10-13 17:08:23
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@tautolog** ^2110055056813031491
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Just start measuring jitter. The rest then satisfy it.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time]]
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
---
|
||||
title: "@AgileJebrim Isochronous yes..."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ramshven/status/2110246798988349687"
|
||||
author: "ramshankar"
|
||||
handle: ramshven
|
||||
post_id: "2110246798988349687"
|
||||
date: 2026-10-14
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "@AgileJebrim Isochronous yes..."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2110051793379975227"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ramshven/status/2110246798988349687
|
||||
- Author: ramshankar (@ramshven)
|
||||
- Posted: 2026-10-14 05:50:18
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ramshven** ^2110246798988349687
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Isochronous yes... Isochrony!? What?
|
||||
|
||||
**2/** **@AgileJebrim** ^2110248006071013402
|
||||
|
||||
**@ramshven**
|
||||
|
||||
Adjective and noun
|
||||
|
||||
**3/** **@ramshven** ^2110249010347082076
|
||||
|
||||
**@AgileJebrim**
|
||||
|
||||
Worked with isochronous transfers/packets etc, never heard the 'isochrony' form before xD
|
||||
|
||||
**4/** **@AgileJebrim** ^2110249759260676264
|
||||
|
||||
**@ramshven**
|
||||
|
||||
Another noun form is isochronism but that sounds like an ideology.
|
||||
|
||||
**5/** **@AgileJebrim** ^2110250655860588579
|
||||
|
||||
**@ramshven**
|
||||
|
||||
I just shortened it all and made up Isochron to name my business after. 😜
|
||||
|
||||
**6/** **@ChaShaChaSha** ^2110320102033797249
|
||||
|
||||
**@AgileJebrim** **@ramshven**
|
||||
|
||||
The “Isochron Programming Language”or the “Isochron Programming Paradigm”does have a nice ring to it.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time]]
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "Definitions we use when timing hard real-time ticks:"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/AgileJebrim/status/2110051793379975227"
|
||||
author: "Jebrim"
|
||||
handle: AgileJebrim
|
||||
post_id: "2110051793379975227"
|
||||
date: 2026-10-13
|
||||
archived: 2026-11-16
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
description: "Definitions we use when timing hard real-time ticks:"
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/AgileJebrim/status/2110051793379975227
|
||||
- Author: Jebrim (@AgileJebrim)
|
||||
- Posted: 2026-10-13 16:55:25
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@AgileJebrim** ^2110051793379975227
|
||||
|
||||
Definitions we use when timing hard real-time ticks:
|
||||
|
||||
Jitter - Max time minus min time
|
||||
|
||||
Predictability - Bounded latency and jitter for a given input
|
||||
|
||||
Determinism - Constant latency, minimal jitter, for a given input
|
||||
|
||||
Isochrony - Constant latency, minimal jitter, for *any* input
|
||||
|
||||
Branches: [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time/2026-10-13-tautolog-just-start-measuring-jitter-the-rest-then-satisfy]], [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time/2026-10-13-MrJayLC-why-would-you-do-this-jitter-would-be-the]], [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time/2026-10-13-suumiboor-i-remember-when-i-had-to-explain-that-a-system]], [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time/2026-10-14-ramshven-isochronous-yes-isochrony-what]]
|
||||
|
||||
**2/** **@AgileJebrim** ^2110052034133291509
|
||||
|
||||
Isochronous > Deterministic > Predictable
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: AgileJebrim
|
||||
type: note
|
||||
draft: false
|
||||
description: Archived threads by AgileJebrim.
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- AgileJebrim
|
||||
---
|
||||
|
||||
- [[archive/threads/AgileJebrim/2024-12-18-you-left-out-the-bit-where-i-also-said-no]]
|
||||
- [[archive/threads/AgileJebrim/2025-02-09-check-your-compiler]]
|
||||
- [[archive/threads/AgileJebrim/2025-08-28-its-easy-to-assume-that-people-reading-my-tweets]]
|
||||
- [[archive/threads/AgileJebrim/2026-02-27-a-strange-notion-that-assumes-that-text-is-the]]
|
||||
- [[archive/threads/AgileJebrim/2026-05-12-we-have-code-reviews-at-isochron-and-i-require-my]]
|
||||
- [[archive/threads/AgileJebrim/2026-05-24-ive-taken-to-using-a-simple-interview-question]]
|
||||
- [[archive/threads/AgileJebrim/2026-05-30-i-dont-think-hardware-vendors-are-going-to]]
|
||||
- [[archive/threads/AgileJebrim/2026-08-22-start-with-spir-v-or-ptx-instead]]
|
||||
- [[archive/threads/AgileJebrim/2026-09-03-so-if-a-true-no-graphics-api-requires-0-lines-of]]
|
||||
- [[archive/threads/AgileJebrim/2026-09-08-what-separates-an-engineer-from-a-developer-is]]
|
||||
- [[archive/threads/AgileJebrim/2026-10-13-definitions-we-use-when-timing-hard-real-time]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW GameMaker introduced me to the Entity paradigm."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/HQuarterma43504/status/2036819288124985764"
|
||||
author: "AWACS Sky Keeper"
|
||||
handle: HQuarterma43504
|
||||
post_id: "2036819288124985764"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW GameMaker introduced me to the Entity paradigm."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/HQuarterma43504/status/2036819288124985764
|
||||
- Author: AWACS Sky Keeper (@HQuarterma43504)
|
||||
- Posted: 2026-03-25 14:55:35
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@HQuarterma43504** ^2036819288124985764
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
GameMaker introduced me to the Entity paradigm. Each entity has "events" like On Create, On Destroy, Every Step, On Draw, On Collision, Timer, and so on. And you write code for these events.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
---
|
||||
title: "@BOENSAW Entities don’t have to go but having a mental framework where entities run functions is probably not helpful."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Jonathan_Blow/status/2036815488173703237"
|
||||
author: "Jonathan Blow"
|
||||
handle: Jonathan_Blow
|
||||
post_id: "2036815488173703237"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Entities don’t have to go but having a mental framework where entities run functions is probably not helpful."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Jonathan_Blow/status/2036815488173703237
|
||||
- Author: Jonathan Blow (@Jonathan_Blow)
|
||||
- Posted: 2026-03-25 14:40:29
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Jonathan_Blow** ^2036815488173703237
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Entities don’t have to go but having a mental framework where entities run functions is probably not helpful.
|
||||
|
||||
**2/** **@anicic_filip** ^2037079338512769397
|
||||
|
||||
**@Jonathan_Blow** **@BOENSAW**
|
||||
|
||||
Could you expand on that?
|
||||
I've seen:
|
||||
- entities with no function pointers, use of switches by entity type, with logic ran per case
|
||||
- entities with function pointers
|
||||
- OOP child classes with method overrides.
|
||||
|
||||
Is this what you are describing as a mental framework?
|
||||
|
||||
**3/** **@Jonathan_Blow** ^2037294870939972085
|
||||
|
||||
**@anicic_filip** **@BOENSAW**
|
||||
|
||||
My game code has evolved toward "iterate over all entities of type X, do Y on them, at the place in the code where this needs to happen". The entity does not own the function, the game engine owns the function.
|
||||
|
||||
**4/** **@Jonathan_Blow** ^2037295493085319580
|
||||
|
||||
(So instead of having a generic tick function where you switch on entity type, and then a generic pre-tick because of course you need that, and pre-pre-tick, and post-tick, etc, you just have small bits of code where you iterate over things by type and do what that type needs. If you store the entities by type in the first place (which is a very efficient way to do it due to uniform size), then these iterations are much faster than iterating over randomly-typed entities in random order.
|
||||
|
||||
**5/** **@Jonathan_Blow** ^2037295938583314583
|
||||
|
||||
**@anicic_filip** **@BOENSAW**
|
||||
|
||||
A real-world example (but most loops have more in the body; this one is chosen for readability):
|
||||
|
||||

|
||||
|
||||
**6/** **@Jonathan_Blow** ^2037296285506822315
|
||||
|
||||
**@anicic_filip** **@BOENSAW**
|
||||
|
||||
The idea of a generic tick function for entities is really not great to begin with, because in a complex game you end up caring a great deal about what order things happen in, then you need to go to great pain to impose this order. Instead, you can just say "do A, then B, ..."
|
||||
|
||||
**7/** **@iquilezles** ^2037321785008668834
|
||||
|
||||
Once I saw a project where everything was entities with a .tick(), plus a gigantic priority table intended to orchestrate the mess. Because reasoning the flow was still too hard, developers had added yield() for_rand_number_of_frames everywhere, "to give other entities some time to run their tick()s". Naturally all actions took multiple frames to execute, and they still had flow/synch bugs everywhere anyways.
|
||||
|
||||
I advised them to burn thing down and move on to just an app loop with { do_thing_A(); do_thing_B(); ... do_thing_Z(); }. But they didn't. The project failed a year after under the weight of its own spaghetti design.
|
||||
|
||||
You could say the problem was that particular team of coders, not the design per-se. But, I mean, I've seen this story repeat with different teams repeat 3 or 4 times by now...
|
||||
|
||||
**8/** **@Jonathan_Blow** ^2037322309502185845
|
||||
|
||||
**@iquilezles** **@anicic_filip** **@BOENSAW**
|
||||
|
||||
Everyone wants to think they are in the Matrix and doing some super cool entity simulation reality engine. In reality it is just clumsy code failing to do something simple, at great cost in complexity, speed and reliability.
|
||||
|
||||
**9/** **@BOENSAW** ^2037340571690471473
|
||||
|
||||
**@Jonathan_Blow** **@iquilezles** **@anicic_filip**
|
||||
|
||||
I think part of the appeal is also hiding code so that it appears simpler because you can't see all of it at once. not that that's good, lol
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
---
|
||||
title: "@BOENSAW How do you even have a functioning game without entities"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/KnightOfTh3Wind/status/2036777757875581351"
|
||||
author: "Knight Errant"
|
||||
handle: KnightOfTh3Wind
|
||||
post_id: "2036777757875581351"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW How do you even have a functioning game without entities"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/KnightOfTh3Wind/status/2036777757875581351
|
||||
- Author: Knight Errant (@KnightOfTh3Wind)
|
||||
- Posted: 2026-03-25 12:10:33
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@KnightOfTh3Wind** ^2036777757875581351
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
How do you even have a functioning game without entities
|
||||
|
||||
**2/** **@BOENSAW** ^2036779389757894720
|
||||
|
||||
**@KnightOfTh3Wind**
|
||||
|
||||
I'm just guessing, but over time I've realized less and less things actually need to be compartmentalized into boxes and can just be managed as a part of global state
|
||||
|
||||
**3/** **@SagelessRanger** ^2036781762752205009
|
||||
|
||||
**@BOENSAW** **@KnightOfTh3Wind**
|
||||
|
||||
Can you make this expand on this idea this sounds very interesting and potentially more clear to manage
|
||||
|
||||
**4/** **@BOENSAW** ^2036786837029863443
|
||||
|
||||
**@SagelessRanger** **@KnightOfTh3Wind**
|
||||
|
||||
Take a cutscene for a simple example. A naive approach might be something like "npc object spawns a textbox object and sends text from its text variable". Doesn't sound so bad but what if two NPCs activate at once, what if the textbox or npc gets destroyed somehow... error prone
|
||||
|
||||
**5/** **@BOENSAW** ^2036787552238342282
|
||||
|
||||
**@SagelessRanger** **@KnightOfTh3Wind**
|
||||
|
||||
Something more along this line of thinking would be like "interaction system detects conditions to begin the cutscene state which reads from a script and draws textboxes automatically". less interdependence, no reliance on external objects, no way to muddy the state
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Object { data stuff; function stuff }"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/MelinShioto/status/2036791325593379203"
|
||||
author: "Emeline Hex"
|
||||
handle: MelinShioto
|
||||
post_id: "2036791325593379203"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Object { data stuff; function stuff }"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/MelinShioto/status/2036791325593379203
|
||||
- Author: Emeline Hex (@MelinShioto)
|
||||
- Posted: 2026-03-25 13:04:28
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@MelinShioto** ^2036791325593379203
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Object { data stuff; function stuff }
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW everything is just functions and variables, it's functions all the way down"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/MildlyNuclear/status/2036815667723166017"
|
||||
author: "BL1NDLY☢NUCL34R"
|
||||
handle: MildlyNuclear
|
||||
post_id: "2036815667723166017"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW everything is just functions and variables, it's functions all the way down"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/MildlyNuclear/status/2036815667723166017
|
||||
- Author: BL1NDLY☢NUCL34R (@MildlyNuclear)
|
||||
- Posted: 2026-03-25 14:41:12
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@MildlyNuclear** ^2036815667723166017
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
everything is just functions and variables, it's functions all the way down
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW there's a whole book about this https://www.dataorienteddesign.com/dodbook/"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/NotHenryFonda/status/2036657302204260461"
|
||||
author: "does not have flies in his eyes"
|
||||
handle: NotHenryFonda
|
||||
post_id: "2036657302204260461"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW there's a whole book about this https://www.dataorienteddesign.com/dodbook/"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/NotHenryFonda/status/2036657302204260461
|
||||
- Author: does not have flies in his eyes (@NotHenryFonda)
|
||||
- Posted: 2026-03-25 04:11:54
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@NotHenryFonda** ^2036657302204260461
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
there's a whole book about this https://www.dataorienteddesign.com/dodbook/
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW So, not an ecs but only a es"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/RaykiruS/status/2036787677765288054"
|
||||
author: "雷琪如"
|
||||
handle: RaykiruS
|
||||
post_id: "2036787677765288054"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW So, not an ecs but only a es"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/RaykiruS/status/2036787677765288054
|
||||
- Author: 雷琪如 (@RaykiruS)
|
||||
- Posted: 2026-03-25 12:49:58
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@RaykiruS** ^2036787677765288054
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
So, not an ecs but only a es
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Patterns are guidelines, but coding is a holistic and spiritual activity."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/Ryunocore/status/2036858460520755594"
|
||||
author: "Ryunocore"
|
||||
handle: Ryunocore
|
||||
post_id: "2036858460520755594"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Patterns are guidelines, but coding is a holistic and spiritual activity."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/Ryunocore/status/2036858460520755594
|
||||
- Author: Ryunocore (@Ryunocore)
|
||||
- Posted: 2026-03-25 17:31:14
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@Ryunocore** ^2036858460520755594
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Patterns are guidelines, but coding is a holistic and spiritual activity. Unironically follow your heart.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW The only thing you ever need to think about is how the data flows, and sometimes when it flows if the paths leak."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/TheWireWhiz/status/2036795872302739892"
|
||||
author: "WireWhiz"
|
||||
handle: TheWireWhiz
|
||||
post_id: "2036795872302739892"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW The only thing you ever need to think about is how the data flows, and sometimes when it flows if the paths leak."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/TheWireWhiz/status/2036795872302739892
|
||||
- Author: WireWhiz (@TheWireWhiz)
|
||||
- Posted: 2026-03-25 13:22:32
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@TheWireWhiz** ^2036795872302739892
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
The only thing you ever need to think about is how the data flows, and sometimes when it flows if the paths leak. Everything else is an abstraction over that.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
---
|
||||
title: "@BOENSAW Thats because entities and ECS are the new shiny thing and everyone loves to jump on the cool train."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/_Detrend_/status/2036773206984470619"
|
||||
author: "detrend.exe"
|
||||
handle: _Detrend_
|
||||
post_id: "2036773206984470619"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Thats because entities and ECS are the new shiny thing and everyone loves to jump on the cool train."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/_Detrend_/status/2036773206984470619
|
||||
- Author: detrend.exe (@_Detrend_)
|
||||
- Posted: 2026-03-25 11:52:28
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@_Detrend_** ^2036773206984470619
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Thats because entities and ECS are the new shiny thing and everyone loves to jump on the cool train.
|
||||
|
||||
12 years down the line people will hate on these the same way everyone hates on OOP now because they will not be fresh and new anymore.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Finding out being Turing complete just requires less and not more?"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/_flashman_harry/status/2036755293187592636"
|
||||
author: "HF"
|
||||
handle: _flashman_harry
|
||||
post_id: "2036755293187592636"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Finding out being Turing complete just requires less and not more?"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/_flashman_harry/status/2036755293187592636
|
||||
- Author: HF (@_flashman_harry)
|
||||
- Posted: 2026-03-25 10:41:17
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@_flashman_harry** ^2036755293187592636
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Finding out being Turing complete just requires less and not more?
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW All that matters is memory and logic, everything else is a made up abstraction"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/ccallac7/status/2036802494194729189"
|
||||
author: "Charlie Callahan"
|
||||
handle: ccallac7
|
||||
post_id: "2036802494194729189"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW All that matters is memory and logic, everything else is a made up abstraction"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/ccallac7/status/2036802494194729189
|
||||
- Author: Charlie Callahan (@ccallac7)
|
||||
- Posted: 2026-03-25 13:48:51
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@ccallac7** ^2036802494194729189
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
All that matters is memory and logic, everything else is a made up abstraction
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW There are no universal pattern common to every game, especially if you are searching for efficiency."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/galactix____/status/2036789325338194102"
|
||||
author: "𝖦𝖺𝗅𝖺𝖼𝗍𝗂𝖼"
|
||||
handle: galactix____
|
||||
post_id: "2036789325338194102"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW There are no universal pattern common to every game, especially if you are searching for efficiency."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/galactix____/status/2036789325338194102
|
||||
- Author: 𝖦𝖺𝗅𝖺𝖼𝗍𝗂𝖼 (@galactix____)
|
||||
- Posted: 2026-03-25 12:56:31
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@galactix____** ^2036789325338194102
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
There are no universal pattern common to every game, especially if you are searching for efficiency. Each game have its own optimization specifics
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Objects, arrays, singletons."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/neverworksgames/status/2036777865643991443"
|
||||
author: "Neverworks Games"
|
||||
handle: neverworksgames
|
||||
post_id: "2036777865643991443"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Objects, arrays, singletons."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/neverworksgames/status/2036777865643991443
|
||||
- Author: Neverworks Games (@neverworksgames)
|
||||
- Posted: 2026-03-25 12:10:59
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@neverworksgames** ^2036777865643991443
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Objects, arrays, singletons. That's it.
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
---
|
||||
title: "@BOENSAW I feel like the actually useful patterns just emerge by themselves if you try doing something that needs them."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/nouriosplpolska/status/2036762408027316597"
|
||||
author: "N🐸"
|
||||
handle: nouriosplpolska
|
||||
post_id: "2036762408027316597"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW I feel like the actually useful patterns just emerge by themselves if you try doing something that needs them."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/nouriosplpolska/status/2036762408027316597
|
||||
- Author: N🐸 (@nouriosplpolska)
|
||||
- Posted: 2026-03-25 11:09:33
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@nouriosplpolska** ^2036762408027316597
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
I feel like the actually useful patterns just emerge by themselves if you try doing something that needs them.
|
||||
|
||||
**2/** **@BOENSAW** ^2036778414791909453
|
||||
|
||||
**@nouriosplpolska**
|
||||
|
||||
That's very much been my experience. it's not that they aren't useful under certain scenarios, but they're just as often not and rather than following a rigid structure it's better just to use the right tool for the situation
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW team fat struct!"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/samloeschen/status/2036835437797396644"
|
||||
author: "sam"
|
||||
handle: samloeschen
|
||||
post_id: "2036835437797396644"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW team fat struct!"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/samloeschen/status/2036835437797396644
|
||||
- Author: sam (@samloeschen)
|
||||
- Posted: 2026-03-25 15:59:45
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@samloeschen** ^2036835437797396644
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
team fat struct!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Eventually you realize literally nothing matters except for love and friendship!!!!"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/struc_ture/status/2036758034144510171"
|
||||
author: "_SCORE"
|
||||
handle: struc_ture
|
||||
post_id: "2036758034144510171"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Eventually you realize literally nothing matters except for love and friendship!!!!"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/struc_ture/status/2036758034144510171
|
||||
- Author: _SCORE (@struc_ture)
|
||||
- Posted: 2026-03-25 10:52:11
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@struc_ture** ^2036758034144510171
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Eventually you realize literally nothing matters except for love and friendship!!!!
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW Just go full haskell and realize that everything is a function"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/HaskellEnjoyer/status/2036997821379822035"
|
||||
author: "Tech Priest Daniil 🎗️🇮🇱"
|
||||
handle: HaskellEnjoyer
|
||||
post_id: "2036997821379822035"
|
||||
date: 2026-03-26
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Just go full haskell and realize that everything is a function"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/HaskellEnjoyer/status/2036997821379822035
|
||||
- Author: Tech Priest Daniil 🎗️🇮🇱 (@HaskellEnjoyer)
|
||||
- Posted: 2026-03-26 02:45:00
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@HaskellEnjoyer** ^2036997821379822035
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Just go full haskell and realize that everything is a function
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW This is a take for the whole software industry"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/RafaAsor/status/2037115807667232798"
|
||||
author: "Rafs"
|
||||
handle: RafaAsor
|
||||
post_id: "2037115807667232798"
|
||||
date: 2026-03-26
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW This is a take for the whole software industry"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/RafaAsor/status/2037115807667232798
|
||||
- Author: Rafs (@RafaAsor)
|
||||
- Posted: 2026-03-26 10:33:50
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@RafaAsor** ^2037115807667232798
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
This is a take for the whole software industry
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: "@BOENSAW Functions that Operate on Structs/Classes/Entities/Objects makes things simple."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/angus_mang/status/2037008038134006163"
|
||||
author: "AngusMang"
|
||||
handle: angus_mang
|
||||
post_id: "2037008038134006163"
|
||||
date: 2026-03-26
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW Functions that Operate on Structs/Classes/Entities/Objects makes things simple."
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/angus_mang/status/2037008038134006163
|
||||
- Author: AngusMang (@angus_mang)
|
||||
- Posted: 2026-03-26 03:25:36
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@angus_mang** ^2037008038134006163
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
Functions that Operate on Structs/Classes/Entities/Objects makes things simple. C++ or heavy, container-ized / encapsulated Class/Structs muddies. Serves for poor organization and juggling abstract ideas instead of.
|
||||
Big ass block thing
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "@BOENSAW you are almost there unc"
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/eta9499/status/2037038809129394422"
|
||||
author: "James (η)"
|
||||
handle: eta9499
|
||||
post_id: "2037038809129394422"
|
||||
date: 2026-03-26
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "@BOENSAW you are almost there unc"
|
||||
in_reply_to: ""
|
||||
parent_post_id: "2036653149948424230"
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/eta9499/status/2037038809129394422
|
||||
- Author: James (η) (@eta9499)
|
||||
- Posted: 2026-03-26 05:27:53
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** **@eta9499** ^2037038809129394422
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
you are almost there unc
|
||||
|
||||
## Related
|
||||
|
||||
- Spine: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the]]
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: "the more experienced I get programming games the more that I realize patterns like inheritance and components don't matter, the only thing that matters is functions and entities which run functions..."
|
||||
type: archive
|
||||
source: twitter
|
||||
source_url: "https://x.com/BOENSAW/status/2036653149948424230"
|
||||
author: "boen"
|
||||
handle: BOENSAW
|
||||
post_id: "2036653149948424230"
|
||||
date: 2026-03-25
|
||||
archived: 2026-08-25
|
||||
draft: false
|
||||
tags:
|
||||
- archive
|
||||
- twitter
|
||||
- BOENSAW
|
||||
description: "the more experienced I get programming games the more that I realize patterns like inheritance and components don't matter, the only thing that matters is functions and entities which run functions..."
|
||||
in_reply_to: ""
|
||||
---
|
||||
|
||||
## Source
|
||||
|
||||
- URL: https://x.com/BOENSAW/status/2036653149948424230
|
||||
- Author: boen (@BOENSAW)
|
||||
- Posted: 2026-03-25 03:55:24
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** **@BOENSAW** ^2036653149948424230
|
||||
|
||||
the more experienced I get programming games the more that I realize patterns like inheritance and components don't matter, the only thing that matters is functions and entities which run functions... entities might be the next thing to go
|
||||
|
||||
Branches: [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-NotHenryFonda-theres-a-whole-book-about-this-https-www]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-_flashman_harry-finding-out-being-turing-complete-just-requires]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-struc_ture-eventually-you-realize-literally-nothing-matters]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-nouriosplpolska-i-feel-like-the-actually-useful-patterns-just]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-_Detrend_-thats-because-entities-and-ecs-are-the-new-shiny]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-KnightOfTh3Wind-how-do-you-even-have-a-functioning-game-without]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-neverworksgames-objects-arrays-singletons-thats-it]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-RaykiruS-so-not-an-ecs-but-only-a-es]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-galactix____-there-are-no-universal-pattern-common-to-every]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-MelinShioto-object-data-stuff-function-stuff]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-TheWireWhiz-the-only-thing-you-ever-need-to-think-about-is]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-ccallac7-all-that-matters-is-memory-and-logic-everything]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-Jonathan_Blow-entities-dont-have-to-go-but-having-a-mental]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-MildlyNuclear-everything-is-just-functions-and-variables-its]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-HQuarterma43504-gamemaker-introduced-me-to-the-entity-paradigm]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-samloeschen-team-fat-struct]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-25-Ryunocore-patterns-are-guidelines-but-coding-is-a-holistic]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-26-HaskellEnjoyer-just-go-full-haskell-and-realize-that-everything]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-26-angus_mang-functions-that-operate-on-structs-classes]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-26-eta9499-you-are-almost-there-unc]], [[archive/threads/BOENSAW/2026-03-25-the-more-experienced-i-get-programming-games-the/2026-03-26-RafaAsor-this-is-a-take-for-the-whole-software-industry]]
|
||||
|
||||
**2/** **@BenboQuest** ^2036656311367266745
|
||||
|
||||
**@BOENSAW**
|
||||
|
||||
i only been saying this
|
||||
Loaded 100 of 3430 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user