r/ProgrammingLanguages • • Mar 08 '26

Introducing Eyot - A programming language where the GPU is just another thread

https://www.cowleyforniastudios.com/2026/03/08/announcing-eyot/
94 Upvotes

48 comments sorted by

View all comments

Show parent comment

1

u/GidraFive Mar 08 '26 edited Mar 08 '26

Well, OP reduced it to one line of code. Although, as I pointed out, it leaves a lot of questions open, which might eventually expand it to more lines.

I've researched a thing on non-deterministic computations, and there are quite a few ideas that I feel could actually keep that at a level of "just a function call" complexity, like angelic/demonic nondet and ambient processes. The idea is that amount of threads, corresponding data, and the environment of execution is implied/tracked in evaluation context. But that creates a concern for maintainability of such code, since now maybe too much information is implied and now its really hard to keep track of how it actually executes.

I still need to think about it some more, and try some PoCs for this as well, maybe that will be a dead end after all.

1

u/tsanderdev Mar 08 '26

For me you'd either specify the dispatch size manually, or if you use the special "InvocationBuffer" type in the function parameters for the shader, it asserts that all of them have the same size and uses that as the dispatch size. The shader can then read and write the index pointed to by each invocation, which doubles as memory and thread safety protection as well.