Applied WebAssembly: Compiling and Running C++ in Your Web Browser - Ben Smith - CppCon 2019

  Рет қаралды 48,943

CppCon

CppCon

4 жыл бұрын

CppCon.org
Discussion & Comments: / cpp
Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2019
-
Applied WebAssembly: Compiling and Running C++ in Your Web Browser
WebAssembly is a new technology in all modern browsers designed to let you run high-performance code. Maybe you've heard of WebAssembly before, read an article or two, or even tried to use it with your software project. Since WebAssembly is a low-level language, it's easy to get bogged down in the technical details, and leave without knowing whether WebAssembly will be useful for you. In this talk, I'll take a top-down approach, showing a real problem and how WebAssembly can help.
From August to December this year, I'll be teaching C++ to students at Morehouse College. Having a tool like Compiler Explorer is invaluable as a teaching aid, since it allows the students to immediately see C++ compilation results, on any device that has a web browser. But Compiler Explorer and tools like it require a server to do compilation, so they're hard to use offline. With WebAssembly, we can run the compiler client-side, in the browser, no server required.
First, I'll show how I ported the clang compiler and linker to WebAssembly. Since Clang 8 supports WebAssembly as a compilation target, we can even run the resulting executable sandboxed in the browser. Next, we'll dive into how Clang compiles C++ constructs into WebAssembly. Finally, we'll look at some of the new WebAssembly features in development.
-
Ben Smith
Ben Smith is a Software Engineer at Google, on the WebAssembly team. His primary work involves adding new features to V8, Chrome's JavaScript and WebAssembly engine. He's also the chair of the WebAssembly Community and Working Groups, where he helps move new features forward. From August to December 2019, he will be teaching introductory C++ classes at Morehouse University, as part of the Google-in-Residence program.
-
Videos Filmed & Edited by Bash Films: www.BashFilms.com
*-----*
Register Now For CppCon 2022: cppcon.org/registration/
*-----*

Пікірлер: 12
@definty
@definty 2 жыл бұрын
14:10 starts
@jonathan_cline
@jonathan_cline 2 жыл бұрын
Thank you lol, starting rolling my eyes after a bit there
@Arcsecant
@Arcsecant 2 жыл бұрын
Second
@ciCCapROSTi
@ciCCapROSTi 7 ай бұрын
thanks, that talk about diversity was turbocringe.
@jaysistar2711
@jaysistar2711 4 жыл бұрын
I use WASM for quite a bit, now. I'd like to see more presentations on it, especially when it comes to plugins and extensions.
11 ай бұрын
We actually use wasm-clang to provide an in-browser execution tool of short C snippets in our university's introductory C course :) So thanks for that!
@ladislavdobrovsky8826
@ladislavdobrovsky8826 3 жыл бұрын
seen this 3rd time now, still awesome talk
@TheOnlyAndreySotnikov
@TheOnlyAndreySotnikov 2 жыл бұрын
I am curious how good C++ engineers survive in Google. I hate Google C++ Style Guidelines and their linter. And, Bazel...
@__hannibaalbarca__
@__hannibaalbarca__ Жыл бұрын
Me too
@mmocny
@mmocny 4 жыл бұрын
Great Talk!
@TheOnlyAndreySotnikov
@TheOnlyAndreySotnikov 2 жыл бұрын
Gosh, this guy loves talking about himself. You can skip the first 14 minutes.
@madonobel
@madonobel Жыл бұрын
😂
Better Code: Relationships - Sean Parent - CppCon 2019
1:19:31
Don’t take steroids ! 🙏🙏
00:16
Tibo InShape
Рет қаралды 57 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 25 МЛН
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 488 М.
Let's Talk About WebAssembly and WASI
2:09:33
Tsoding Daily
Рет қаралды 26 М.
CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"
1:07:35
CppCon 2019: Jason Turner “The Best Parts of C++"
58:36
CppCon
Рет қаралды 89 М.
An introduction to WebAssembly
25:23
Coding Tech
Рет қаралды 185 М.
Why i think C++ is better than rust
32:48
ThePrimeTime
Рет қаралды 264 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,8 МЛН
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 1,5 МЛН
XL-Power Best For Audio Call 📞 Mobile 📱
0:42
Tech Official
Рет қаралды 770 М.
#miniphone
0:18
Miniphone
Рет қаралды 7 МЛН
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 821 М.
Приехала Большая Коробка от Anker! А Внутри...
20:09
РасПаковка ДваПаковка
Рет қаралды 83 М.