Files

1.3 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
Before moving all GPU-side, I had source recompile while running. archive twitter https://x.com/NOTimothyLottes/status/1737499394633560366 NOTimothyLottes NOTimothyLottes 1737499394633560366 2023-12-20 2026-08-26 false
archive
twitter
NOTimothyLottes
Before moving all GPU-side, I had source recompile while running.

Source

Thread

1/ @NOTimothyLottes ^1737499394633560366

Before moving all GPU-side, I had source recompile while running. I'd place all global data in one structure, and pass that pointer to the DLL/SO on reload. This was done via self-including to make code layout easy. I still do that practice today:

2/ @NOTimothyLottes ^1737500234870067342

Using {DEF_,TYP_,RAM_,ROM_} defines to denote what pass of the self include to place the code in. So anything in RAM_ for example gets dumped into the global data structure. Nice for keeping code concept locality in the source.