Circle: C++ Automation Language
21–27 of 27 posts
Re: Circle: C++ Automation Language
#22There are also 3 walkthroughs that are kind of buried:
1. https://github.com/seanbaxter/circle/blob/master/walkthrough...
2. https://github.com/seanbaxter/circle/blob/master/walkthrough...
3. https://github.com/seanbaxter/circle/blob/master/walkthrough...
Re: Circle: C++ Automation Language
#23This was the only thing holding me back from finishing my metacircular TODO app.
Re: Circle: C++ Automation Language
#24This seems useful for code generation. Cannot relate this to any previous problems I encountered using c++ Any other interesting use of this?
My favorite use is putting user-defined attributes on data members, and using reflection to generate a UI to manipulate those values. I do it with these shadertoys: https://github.com/seanbaxter/shaders#reflection-and-attribu... Just mark your declarations up with custom attributes: [[.imgui::range_float { .1, 5 }]] float Zoom = 1.5; [[.imgui::range_float { 0, 1 }]] float Speed = .15; [[.imgui::range_float { .1, 1 }]…
Re: Circle: C++ Automation Language
#25Re: Circle: C++ Automation Language
#26This seems useful for code generation. Cannot relate this to any previous problems I encountered using c++ Any other interesting use of this?
Seems that it could be used to solve an old-time classic: generate a mapping from an enum value to its string representation. Another use case that comes to my mind is maybe automating test case generation. Occasionally I was running into situations where I thought code generation could be useful, but not sure what could be a "killer app" equivalent for this feature. Related topic: standardizing reflection in c++. ht…