State of the C++ modules support

When the new C++ modules are expected to be supported?
Yuri
Yuri82d ago
Hi @Awesome ! Cheerp is currently based on Clang 16, and it does have some level of support for C++ modules. The example from the quickstart here just works: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#quick-start That said, there might be some incomplete features. We don't do anything special that concerns modules, so the next time that we update our Clang base, we will automatically gain any improvement done there.
Awesome
Awesome82d ago
I was more concerned about C++23, which includes std modules as well, although thanks for letting know! Are there any plans of releasing Cheerp with the newer Clang base in the near future?
Yuri
Yuri82d ago
From what I understand, the compiler support should be there, but libcxx needs to be built with special flags, which we are currently not using. Even for upstream libcxx, the support is incomplete, and using it requires a special cmake setup: https://libcxx.llvm.org/Modules.html General build system support for this feature is quite lacking currently. To answer your question: We will probably rebase on the most recent clang (and libcxx) later this year, and if by then modules look a bit more practically usable, we will consider enabling them for our libcxx build.
Awesome
Awesome82d ago
Okay, got it, I think it covers my question, thanks!
Want results from more Discord servers?
Add your server
More Posts
Cheerpj hangs after "Jar is loaded,main is starting"I am trying to use cheerpj to run my Java Swing app in a browser. I can run the example SwingSet3.jaStretch to Fit Height IssueRunning a basic application in the example html provided on the CheerpJ website. My html code is efProblems with CheerpjHello, I am trying to get my Java app running in CheerPJ - I was successful in creating a simple "HeCache Results for Faster Startup?Hello new user here. Performing initial research into potential commercial application usage. 1) AmUnknownHostException happened when the Java application connect to serverUnknownHostException happened when the Java application connect to server. The host name is the sameHTTP server returned compressed partial data. That should not happen. CheerpJ cannot run.Browser shows error "HTTP server returned compressed partial data. That should not happen. CheerpJ cAccesing the standard out and standard error stream from the Java processHow do I from javascript access the output streams from the started Java process?Any plan on adding internet access without Tailscale?Hi there ! Do you plan on adding internet access without the need to install Tailscale etc, that wour[((0 + c) | 0)] is not a function when instantiating objectHello, thank you all for developing CheerpJ, it is an impressive tool! I am playing around with tryiI'm always looking for the URL of the latest build of cj3loader.js by searching articlesI'm always looking for the URL of the latest build of cj3loader.js by searching articles, but is the