2 ms·
I tried to find it in the docs, but how the fuck does this work? Like, I'm most curious about how they work around javascript's dynamic typing. Do they look at
by foota 5y ago
I tried to find it in the docs, but how the fuck does this work? Like, I'm most curious about how they work around javascript's dynamic typing. Do they look at the actual input and then compute the types of values from there based on it? Or?
- daniel-thompson 5y agoIn a nutshell, type inference: https://github.com/gpujs/gpu.js#types https://github.com/gpujs/gpu.js#types Implementation for web-gl: https://github.com/gpujs/gpu.js/blob/1be50c09ed4edb7c7e846b1815414ef504089ab6/src/backend/web-gl/function-node.js#L50 https://github.com/gpujs/gpu.js/blob/1be50c09ed4edb7c7e846b1...