-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some useful features? #141
Comments
-- yes, this is already supported, one can use
-- this might be useful. Implementing this for user defined types in general case might be tricky though. So starting with fundamental types seems like a good low-hanging-fruit goal. If you going to work on this then first thing would be to prototype how to extract such constant declarations from AST, - please ping me if/when you have draft that can do it so we on the same page on general implementation framework.
-- hmm... i am not sure how useful this will bee: If someone need to supply an extra define to distinguish between Binder-run and general code compilation then this could be done by simply using
-- we routinely use Binder on Mac's (thats how all Mac PyRosetta versions is created: http://www.pyrosetta.org/dow). Most likely issue that you hitting is that you need to to point Binder to the correct version of libc++ headers. This is because now Apple provide various Xcode versions each with separate libc++ headers. On recent MacOS/Xcode install passing |
Hi @lyskov , thanks a lot for the answers!
Ok. then there is an issue. See #142
I had a draft for it. But at some point I've started to think about the proper implementation of things like this:
where in the first case the
Yes. This is what I'm doing and as well as many other people. So this is just a matter of optimization and standardisation.
Agree. Originally I thought about this part in another context: to have an option for binder to stamp the codes with something like
OK. thanks! I will have a look. Hopefully this will work. My first idea was that the problem is with the installation of clang I use -- my working mac is just a secondary laptop and it is really weak and recompilation of the whole llvm is not attractive.
The formating with clang-format in CI or cmake is trivial. It is not that important if it is in CI, cmake or just in command line. The initial formatting is important. But when/if you do that it is up to you. Best regards, Andrii |
Hi @lyskov ,
just before doing some work and creating the merge requests:
Maybe I've missed that, but is that possible to prevent creation of bindings for certain constructors?
It would be nice to have bindings for some constants. Of course it makes no sense to bind 'double x;', but binding 'const double zeta5=1.036927755143369926331365486457034168057080919;' makes a lot of sense. Actually I'm not sure how that would work in the general case, but at least for the fundamental types that should be OK. What is your opinion?
It could make sense to assure that during the parsing binder defines itself, e.g. BINDER and optionally its version BINDER_MAJOR, BINDER_MINOR. Then one could write some useful constructions like
and similar. What is your opinion?
Best regards,
Andrii
The text was updated successfully, but these errors were encountered: