i wrote stuff like that for soil. i'm glad those times are over. having to write stuff in C is 99% of the problem.
-
-
Replying to @paniq @pervognsen
but in terms of a C reflection interface, for what it is, your implementation is okay. :)
1 reply 0 retweets 0 likes -
Replying to @paniq
Again, not about implementation, but thanks for continually missing the point. Muted.
1 reply 0 retweets 0 likes -
Replying to @pervognsen
i wasn't the one inviting scrutiny with my bragging ;)
1 reply 0 retweets 0 likes -
Replying to @paniq
Unmuted. :) I wasn't saying I invented this design, I'm saying the widespread designs are bad compared to this one.
1 reply 0 retweets 1 like -
Replying to @pervognsen @paniq
You can use something like this and have really nice API integration all the way from the compiler to runtime reflection and FFI.
1 reply 0 retweets 1 like -
Replying to @pervognsen
i see. would you have an example for a design you consider bad?
2 replies 0 retweets 0 likes -
Replying to @paniq
libffi only does functions, not data. Something like ctypes do their own data access, so that's unfortunately not a good example.
1 reply 0 retweets 0 likes -
Replying to @pervognsen @paniq
So a better example is the way reflection APIs are traditionally done where a Field or a Method is some opaque interface.
1 reply 0 retweets 1 like -
Replying to @pervognsen @paniq
E.g. Java or C# or any in that general camp.
2 replies 0 retweets 2 likes
Please write a proper C++ metadata and introspection spec and we'll adopt it and push for standardization!
-
-
Replying to @TimSweeneyEpic
The fact that template data layout is non-parametric in the argument types makes that a very hard problem, unfortunately.
1 reply 0 retweets 1 like -
Replying to @pervognsen @TimSweeneyEpic
Were they parametric you could represent a template instance type as template descriptor + argument type descriptors.
1 reply 0 retweets 0 likes - 15 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.