compiler-research / cpycppyy Goto Github PK
View Code? Open in Web Editor NEWThis project forked from wlav/cpycppyy
License: Other
This project forked from wlav/cpycppyy
License: Other
The converter/executor logic has string-based tables which are used to dispatch based on the type. We should use the underlying opaque type pointer to improve efficiency, etc. This was part of what the review in PR #15 suggests as well.
I don't think so. :) And there seems to be a real benefit there to prevent crashes.
struct ScopeCursor {
void* fDecl;
};
Certain operations that can be performed on Decls and other on Types. We have interface GetScopeFromType and GetTypeFromScope if we need to convert but I'd prefer to have these explicit. This is more aligned to the underlying compiler API. I'd be happy if we had a special opaque entity for both. Eg:
typedef ScopeCursor* CppScope_t;
struct TypeCursor {
void* fType;
operator CppScope_t() { return GetScopeFromType(*this); }
};
typedef TypeCursor* CppType_t;
Here the compiler could enforce some checks if we try to call an interface with the unexpected parameter. We should look into better ways to strong typing as used here:
https://github.com/llvm/llvm-project/blob/4875e0670926b0a40ce0dd2c3d490b1866889f54/clang/include/clang-c/Index.h#L2243-L2247
Where the cursor can be classified to point to particular data type via an enum. Perhaps we could implement the former suggestion and extend it with the latter.
Issues occur when making use of a build of this repo with xeus-clang-repl on Apple Silicon. An initial investigation found the following issue
This issue is related to compiler-research/xeus-clang-repl#76
A pull request will be created shortly to suggest a fix for the above issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.