Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@IllSlapU currently it generates 900approx lines of code for a factory.. we refactor daily so class name refactoring require this factory to be updated... And obviously I don't want any errors...
-
@zubin10 any way for c++ factory that gives class instance by name ? We have a module and we frequently update it .. add new classes and refactor stuff .. now we have our own scripting language which we use to load classes and use them .. this python code helps me to save painful time of updating the factory class in branch merge ... And it's auto triggers..
-
Don't mind me, but, if you want your code to jump through hoops like this, consider a major refactoring so all this is unnecessary, or rewrite your code in a language that has better support for what you want to do (if extreme flexibility then allow me to recommend Haskell. With TemplateHaskell it can be bent and twisted in insane ways).
Plus, are you sure that you can't do what you want with C++ templates, runtime type information, or some sort of custom type system?
What you have right now sounds like a system that could break any time. -
@RememberMe the whole framework runs on both Android and iOS ... And we develop natively on Mac and Linux... So c++ is only way with native perfomance for mobile and server platforms .. i am also thinking of a major refactoring .. will probably load instructions through JSON rather than dedicated class ..
-
@RememberMe most of the code is for real-time systems that runs processing code through GPU (using OpenGL es) and some classes are very complex pipelines of GPU instructions... It's kinda very complex filters you will get in shadertoy
Yes that's python vomiting some pure C++. Why because i am lazzy AF
undefined
af
lazzy