3 ms·
I would say possibly to use a different programming language for GPU than CPU. I like the idea of Checkout (see [0]) for GPU programming, although unfortunately
by zzo38computer 7y ago
I would say possibly to use a different programming language for GPU than CPU. I like the idea of Checkout (see [0]) for GPU programming, although unfortunately it is not implemented and the preprocessor is not yet invented. (The trigonometric functions are also missing. They should probably have at least sine, cosine, and arctangent, since these functions seem like useful to me when doing graphics.)
[0] http://esolangs.org/wiki/Checkout http://esolangs.org/wiki/Checkout
- neutronicus 7y agoI think using trig and especially inverse trig is almost always an antipattern in graphics code. Careful use of dot and cross product will almost always be both more performant and more robust.
- dnautics 7y agoJulia has done a fair job of mapping high level mathematical primitives to the GPU (though I disagree with their approach)