Live data from Hacker News

Circle: C++ Automation Language

circle-lang.org

21–27 of 27 posts

Re: Circle: C++ Automation Language

#22
Links to the “whitepaper” just link to the repo. Is this the whitepaper: https://github.com/seanbaxter/circle/tree/master/new_whitepa... ?

There 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

#24
post #15

This 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 }]…

In c++ there are some hacks that can start to help getting someswhere close (https://ossia.io/posts/reflection/) but this solution with attributes is what everyone dreams of

Re: Circle: C++ Automation Language

#26
post #5

This 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…

What’s wrong with an array

Re: Circle: C++ Automation Language

#27
It's very neat but closed-source and by the looks of it is likely to stay that way. I can't see it being used in any mission-critical projects unless the source is fully disclosed and viewed/analysed by the community... until then it's a "nifty black box".
Post reply on HN