cepl icon indicating copy to clipboard operation
cepl copied to clipboard

Allow use of lambda-g (and maybe defun-g) without a test compile

Open cbaggers opened this issue 7 years ago • 3 comments

Once a gpu-function is done, by which I mean will not be recompiled interactively, there is no point having it perform a test compile when the macro is expanded. There is also no point in emitting code to handling recompilation propagation. The advantage would be that we lower the cost of defining these functions and thus make loading faster.

We could achieve this with a :static tag in the &context section of the arguments.

Ideally we would only allow a static function to call other static function, but checking this would require compilation which rather defeats the point :p

cbaggers avatar Mar 18 '18 14:03 cbaggers

Is there something I can do to help with this? It is kind of important for my study, so I will do what I can to help.

ghost avatar Mar 24 '18 11:03 ghost

Phew, id be scared to build my study on such a beta project! But no theres nothing I really need, im on holiday and been working on Varjo a lot (we have reference documentation and a guide now :)

I'll start looking at this in an hour or two

cbaggers avatar Mar 25 '18 18:03 cbaggers

The problem with this is that the test compile is used to identify implicit uniforms. We still might be able to do this for lambda-g as it handles its compilation is a different way to defun-g

cbaggers avatar Mar 30 '18 17:03 cbaggers