C++ roadmap
Luke Hutchison
luke.hutch at gmail.com
Mon Aug 12 19:27:44 UTC 2019
Thanks for the response, I'm glad your team is working on it, and I'm
excited to see what can be done. Panama is one of the most interesting
things to come to the JDK in a long time IMO!
It seems that there are a lot of different languages and LLVM compiler
frontends that are currently interested in leveraging Clang for automated
or semi-automated C++ interoperability (Swift and MLIR, as Samuel pointed
out, as well as Python, Java, and probably others). There are a lot of very
hard problems to solve when mapping the semantics of C++ onto other
languages, and some of the solutions to those problems would work for more
than one language, if mapped through an appropriate abstraction. Would it
be possible to round up the interested parties to see if it is possible to
implement some sort of abstraction layer or "Futamura projection" style
partial evaluator and code generator on top of Clang/LLVM that would
simplify expressing C++ semantics in a more generic way using just basic
language features, and that could be shared by all these projects to avoid
re-inventing the wheel in each case?
On Sun, Aug 11, 2019 at 6:52 AM Luke Hutchison <luke.hutch at gmail.com> wrote:
> I tried the most recent Panama JDK 14 build with a C++ header file, and
> got the following error message (in the form of a RuntimeException):
>
> "Unknown type name 'namespace'"
>
> I couldn't find a switch in the jextract commandline tool for enabling C++
> support, so assume this means that C++ is not currently supported. I don't
> see any mention of the lack of C++ support on the Panama "homepage" or
> documentation, but I saw a claim somewhere online that Panama only supports
> C, and has no real immediate plans to support C++. However, discussion in
> the panama-dev archives seems to indicate that C++ support was always
> planned.
>
> Is there any experimental switch that will enable the use of C++ header
> files right now in Panama? If not, what is the roadmap for C++?
>
>
>
More information about the panama-dev
mailing list