cbaggers / cepl

Code Evaluate Play Loop
BSD 2-Clause "Simplified" License
860 stars 52 forks source link

Inline pipelines get 2 errors for each gpu-code issue #261

Open cbaggers opened 6 years ago

cbaggers commented 6 years ago

The gpu-function fails and then it it compiled into the pipeline which if called (which is usually the case due to livecoding) fails again.

related to https://github.com/cbaggers/cepl/issues/260 as it is more evidence that we need a special codepath for this feature, not just a macro that expands to defun-g + non-inline-defpipeline

cbaggers commented 6 years ago

AH! we could emit define-vari-function instead of defun-g. This solves this and the other bug :)

cbaggers commented 6 years ago

of course then we need a way to compile vari functions, but it's a place to start :)