Closed lukstafi closed 4 months ago
The C-syntax part is refactored now. I'm not sure if there are sufficient extra commonalities for another layer of refactoring, that's not just "GPU optimization". GPU optimization is not a refactoring because we don't have that yet.
Multiple options of how to approach it, e.g. could be just a helper module. Or could be classes with inheritance, where
Backends
would convert from a class to a module. Or could be a functor. The helper module approach could provide a function taking a record argument, that's almost a functor.