Build the future of the web with WebAssembly and more (Google I/O '18)

  Рет қаралды 91,750

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 87
@0x8080
@0x8080 6 жыл бұрын
Microsoft is leveraging Web Assembly to run a Mono based C# web framework in the browser. The project is called "Blazor". It's really cool, you should all check out their Github.
@harisrg92
@harisrg92 5 жыл бұрын
I have checked that out. It's is really Cool. It enables you to run .NET on the browser which no one could have ever thought of. I believe, "Blazer" is the beginning of the end of JavaScript monopoly on the browser.
@movax20h
@movax20h 5 жыл бұрын
@@harisrg92 My friend, mkol, made it possible to run arbitrary .NET applications in the web browser about 8 years ago, the project is named il2js.
@travistrue2008
@travistrue2008 5 жыл бұрын
Unity Tech's been doing something similar for a while with WebGL builds for video games. In the past, they'd compile IL to C++, and then compile the C++ to compiled JS via emscripten, but now that we've got web assembly, they can just compile to that, which is pretty neat!
@404Assassin
@404Assassin 5 жыл бұрын
got any Blazor project links, similar in capability to the apps from the video?
@antoniojohnson7693
@antoniojohnson7693 4 жыл бұрын
@@404Assassin Blazor is more of a single page application alternative to things like Angular and React. With Blazor, you can use the same objects on both front end and back end. The main point is to be able to use C# (which is an amazing language) to handle front end logic. You can still interact with JavaScript from the C# too.
@feyntmistral1110
@feyntmistral1110 6 жыл бұрын
Now... What if I DON'T want to write javascript to draw stuff on the screen...?
@SuperToughnut
@SuperToughnut 6 жыл бұрын
Use sdl and webgl. You can write code with egl and it will get compiled to webgl. Sdl is already natively supported and it is a commandline option for emscripten.
@RiadBaghbanli
@RiadBaghbanli 5 жыл бұрын
WA makes browser a new OS.
@MikeMitterer
@MikeMitterer 6 жыл бұрын
Amazing!! Wasm looks very promising... During the the wohle talk I had the feeling that Java was left out on purpose. C++, Rust, Kotlin... no word about Java ;-)
@BeatSyncBytes
@BeatSyncBytes 6 жыл бұрын
C, C++ byte code can be run natively with java you need JVM
@guai9632
@guai9632 6 жыл бұрын
kotlin has its kotlin native subproject which targets llvm, and they kinda get wasm for free. for java there would be whole another story
@GabrielDalposso
@GabrielDalposso 6 жыл бұрын
Great AutoCAD example of the feature! Now, bring me Maya, please.
@GabrielDalposso
@GabrielDalposso 6 жыл бұрын
I'd accept Blender as well.
@computervision557
@computervision557 6 жыл бұрын
How long before multi-thread support of WebAssembly could become mature ?
@hexrcs2641
@hexrcs2641 6 жыл бұрын
3 years
@tobiumevolume9890
@tobiumevolume9890 6 жыл бұрын
it has alr been done eady, us it right ing now
@navaneethagastya
@navaneethagastya 6 жыл бұрын
Web assembly doesn't need multi threading. We can make use of webworkers, JavaScript and webassembly to have multi core execution. JavaScript and webassembly are complementary :)
@lemonphi
@lemonphi 6 жыл бұрын
Yes, I need that too! Parallel graph algorithms at native speed in the browser - hello applications of the 2020s ;)
@akari8736
@akari8736 6 жыл бұрын
It's being worked on in this repo: github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md
@benderunit44
@benderunit44 6 жыл бұрын
how about old c++ games? curious to see in detail how easy was it to port autocad
@chucktrier
@chucktrier 5 жыл бұрын
As a c++ dinosaur its awesome
@nikilk
@nikilk 6 жыл бұрын
WA is super awesome. Closing the gap between native... Nice! Not too long into the future before we run AAA 3d games at 120fps in a browser ;) Wishful thinking?
@john91051
@john91051 5 жыл бұрын
Uhh.. no, it's pointless. Why should we need the browser if it's compiled code running opengl and stuff? The DOM, page rendering and javascript become quite useless, the only reason to use the browser for them is for cross-compatibility...? Nah
@helinw
@helinw 6 жыл бұрын
And Go supports it too (to some extent).
@koblongata
@koblongata 6 жыл бұрын
If Apple and Microsoft abandoned WebAssembly that will be the time I start using all Google products.
@marshawk9766
@marshawk9766 6 жыл бұрын
Blazor (C# and HTML) for WebAssembly
@wpleary2
@wpleary2 5 жыл бұрын
I always knew Agent Smith was a Google operative.
@LiveseyMD
@LiveseyMD 6 жыл бұрын
The "#include " is still C and not C++, the "#include " should be used when you're talking about C++. What makes this code be C++ is compiler that takes it as C++ input probably because of "cpp" extension.
@movax20h
@movax20h 5 жыл бұрын
No. The extension doesn't matter actually. #include , is still C++. You can include C code in C++. Compiler knows which one to use based on invocation, i.e. emcc, em++. similar to clang++ and clang, and gcc and g++. It switches to default different language, enabled different linker library and stuff.
@wesleyolis
@wesleyolis 6 жыл бұрын
Just a thought. Why not allow/upgrade the JS compilers(V8) to output a binary file of the parsed js. Then one would get the load time speed benefits out the box, with out many hurdles, implement another extension, or just have a new global function that if called, assumes the remain file is all binary. Would be nice to be able to have different file extension, so one can hot compile the parse stage on the server to the required browser v8 versions and then cache the output. In the same way http request headers, specify the accepted transfer support encoding, one add the v8 engine supported version in the request. One could actually use the request headers only and not even need to implement a new file extension. This then also would work well with edge compute, were the edge nodes would perform the caching and compiling of parsed v8 resources. The main end point, need only server js and not have to worry about handling the load when their updates to v8 engine, browsers. Maintain of all front-end(endpoint) js code, would be done by all the caching servers, simplifying deployment, as one no longer need to deploy all versions of binary formate to the support the role out of ever green browsers, or wait for mass role out of compiler updates to browsers, before worth update the server frontend, endpoints. The only complexity that is going to arise probably is from tree shaking and shared code, in which case a backwards compatible loader function from js would be need to bind and pass information about memory spaces allocations. Still end up with on ambiquitius language then, but don't loose all compiler optermization for hot code.
@willinton06
@willinton06 4 жыл бұрын
Wesley Oliver because JS is not suitable for that, being a prototype oriented loosely typed language has many disadvantages, including that one
@arturocoronel
@arturocoronel 6 жыл бұрын
And slides?
@4144758
@4144758 5 жыл бұрын
Coding Starts @ 9:20
@SimonHoNet
@SimonHoNet 6 жыл бұрын
Very cool... I'd like to know that does webassembly supports C++14 (or later)?
@Dabayare
@Dabayare 6 жыл бұрын
They could have helped alot if they accomodated php since it sat on C.
@bogomya
@bogomya 6 жыл бұрын
So exciting!
@utopialabsvideos9408
@utopialabsvideos9408 6 жыл бұрын
Hagrid says: "Viruses, Harry, viruses everywhere"...
@ricardofabilareyes
@ricardofabilareyes 6 жыл бұрын
So existing!
@nathanielnizard2163
@nathanielnizard2163 5 жыл бұрын
I'll make a tour tomorrow as things change fast in 6 months . But this video made me sad when dealing with that enscriptem stuff. I'll jump on the train when go or another pleasant functional language has full support and the binary has better access to the Dom. Right now I feel it has very limited uses, I'm even surprised about the perf gain with all the bloating.
@derstreber2
@derstreber2 6 жыл бұрын
14:13 "You can now write the javascript that you know and love while staying in that same c++ file." .... ........ Ok, I'm going to say this slowly and try to be as concise as possible. 1. The less mandatory javascript in the pipeline, the better. Ideally none. If JS doesn't need to be intimately linked with wasm, why is it? I understand where you are coming from with calling C/C++ code from javascript, not a bad idea, a page out of python's playbook, and a wise decision if you want to keep JS healthy for the foreseeable future. Personally I don't really want to deal with JS any more than I have to. 2. The garbage collector, my gut says keep it out of the wasm spec entirely. I know you will likely include one that you think will work great for your purposes but I guarantee that some other lang/langs compiling to wasm will have a different way of thinking about memory management and they will have to include their own anyway. Perhaps people will want to choose to use a different garbage collector algorithm when they compile because of how their particular program performs with one over another. 3. If you don't go through with #2 and do include a GC, let me turn it off, or at the very least don't turn it on unless I request to use it. I don't want some GC running in the background checking to see if it can free memory that I am managing manually. I am very much pro choice when it comes to what languages people decide to use. I know your attitude is that "WASM will not replace JS", but can we not have a choice of what language we use in our tool chain? Is it really necessary that javascript be in the equation at all to get the wasm into the browser? (In short, I do not see wasm and JS inter-operation as a positive, or at least I am highly skeptical that it will not result in a negative.) I do know javascript, however, if given a choice between the words "love" and "loath" to describe my feelings for the language, the point on that line would lay far far closer to the latter than the former. I am clearly biased, make no mistake about it. And I will say it again like thus: javascript killed a part of my soul, and I would not hesitate to throw the power switch on the world's last NodeJS deployment. I am clearly not your intended audience. Oh well.. take it or leave it. I do know many that would hold similar sentiment though. I am not too terribly broken, my faith in web standards was never strong to begin with.
@NikolajLepka
@NikolajLepka 5 жыл бұрын
What the Emscripten toolchain should really do is just to add DOM manipulation functions to C/C++/Rust and keep it at that and just leave in-line JS out of it all. That way you get the benefits of the in-line JS shown without the drawbacks of _actually_ having to write JS
@antanaskiselis7919
@antanaskiselis7919 5 жыл бұрын
I don't think javascript is the problem. Designin UI's is the problem. These are a lot more complicated than typical web backend stuff. And generally the languages aren't fit to do UI's efficiently, that is, syntax is not favorable. Although we might as well javascriptify some of the languages. Imagine doing UI's without spread operator. Have fun.
@abc-yg6tk
@abc-yg6tk 5 жыл бұрын
Modern javascript is actually very good to write when using Typescript, not vanilla JS. The problem is at the low level how it hits a limit of optimisation which WASM is improving. I use to write C# for a few years and now I realise with typescript, you can write code in a more functional way where functions are first class citizens with very small and succinct code that is easily testable. It works very well with UI frameworks like React. If you don't believe me, here is the actual code in 2019 to create a simple toggle UI using react. const MyToggleUI = () => { const [ on, toggler ] = useToggle(); if(on) return Turn Off return Turn On } How short and easy is that compared to C#?
@Oswee
@Oswee 6 жыл бұрын
This is really promissing...
@nosouponhead
@nosouponhead 5 жыл бұрын
It's not actual Assembly since it's not being assembled into machine code. The browser still has to compile WA into real Assembly per-platform, in which case, why is this better than JavaScript?
@georgeallen7487
@georgeallen7487 5 жыл бұрын
wasm is assembly just not an assembly that any physical CPU could execute without a virtual machine. Web Assembly is a much lower level language than javascript and is consequently faster than javascript. I would not say either is "better" because they are used in conjunction with each other. Also unless I'm mistaken, a browser does not actually compile any asm it is just a program that follows a protocol given plain text. Fact check me as I am shaky on that last bit.
@silakanveli
@silakanveli 6 жыл бұрын
I always think that why is it so hard for Google to create simple solutions..it is always simple things done most complicated way. Maybe there is just too many smart people competing these things..
@kennychancafe8860
@kennychancafe8860 6 жыл бұрын
Two years later.... -> WebBinary : The revolutionary future of the web (Yes, we still can make it more complicated :))
@zorarandhawa5653
@zorarandhawa5653 6 жыл бұрын
Nice ❤️
@frisoflo
@frisoflo 6 жыл бұрын
nice!
@safaswaid8420
@safaswaid8420 5 жыл бұрын
Is there a php to web assembly prospect?
@youneskasdi
@youneskasdi 6 жыл бұрын
JavaScript is awesome but isn't meant to do what the developers these days are pushing it to do that's why you see browsers using so much resources it's mostly JavaScript codes i would love to see JavaScript keep growing but only in what it was meant to simple interactivity and not building an entire 3d video game based on it or whatever some crazy developers are doing these days
@justchill1120
@justchill1120 6 жыл бұрын
learn C/C++, Rust...
@robertaradi9994
@robertaradi9994 6 жыл бұрын
He's Dwight Schrute from The Office! Btw, very interesting video!
@myphilosophy6064
@myphilosophy6064 6 жыл бұрын
Can I use WebAssembly with NodeJS?
@hatsoroush23
@hatsoroush23 6 жыл бұрын
Yes
@madmanga64
@madmanga64 5 жыл бұрын
please throw JavaScript into the center of the sun and never speak of it again
@TheUlrix
@TheUlrix 5 жыл бұрын
For Years I repeat the same HTML, CSS, JavaScript should die !
@crljet
@crljet 6 жыл бұрын
nice
@arminharper510
@arminharper510 5 жыл бұрын
I dont think it's gonna change anything for developers, even now as we speak people use different stacks for web developing:js, php, ruby etc. And there are jobs for all of them :D also since WA is not a language itself and other languages have to be compiled to WA, who says u cant write JS codes and compile them into WA which itself has to be compile into real assembly :D
@willinton06
@willinton06 4 жыл бұрын
JS says you can’t compile JS to WA
@jaroslavhuss7813
@jaroslavhuss7813 5 жыл бұрын
Everybody speaks about Web AssIembly, but its C++/rust which is promoted. Well, would be cool to compile JS in to Wasp ;) (since everybody knows JS, right?)
@JaapvanderVelde
@JaapvanderVelde 6 жыл бұрын
Webassembely.
@afifahrahmadani511
@afifahrahmadani511 5 жыл бұрын
Xwayangkyu lit
@josefromspace
@josefromspace 6 жыл бұрын
How did we go from "the future of technology" to "Autocad"?
@lplee5101
@lplee5101 6 жыл бұрын
新语言新特性 真是灰常的棒棒
@computervision557
@computervision557 6 жыл бұрын
c,c++,Rust,哪里新了?
@adampinuelas6139
@adampinuelas6139 3 жыл бұрын
ASMA
@navaneethagastya
@navaneethagastya 6 жыл бұрын
I have few points to flag: Web assembly is not faster because it is complied from non-JS languages. its faster because its more low level And, If JavaScript is able to scale from simple text based apps of late 90s to complex apps of now a days, I dont think we need new technology. The language is successful in handling anything. Mark my words, 20 years down the line, you will use JS... And, I am sure some day people would prefer to compile WebAssembly from JS ....
@nikolaoszois7067
@nikolaoszois7067 6 жыл бұрын
I believe the main point is that existing smart compilers such gcc could do real magic to create optimized assembly code, so why not just translate the produced assembly from the gcc to web assembly? So in order to write transform javascript to wasm then we need to create a really smart compiler.. but isn't a waste of time?.
@elmo2you
@elmo2you 6 жыл бұрын
Maybe JS can do it all, for your personal (current) use case and dev needs. But, as Autodesk clearly demonstrates, WebAssembly is giving the web new capabilities, for which traditional JS just doesn't cut it. JS might still survive for a long time, but not with the monopoly it had so far. Probably not even remaining the dominant web programming language.
@utopialabsvideos9408
@utopialabsvideos9408 6 жыл бұрын
Hahahaha! The Web is going back to C and C++?????? Please, LOL!
@romanscharkov
@romanscharkov 6 жыл бұрын
Not really, use Rust or Go, C/C++ is just a pile of legacy.
@antanaskiselis7919
@antanaskiselis7919 5 жыл бұрын
​@randomguy8196 Not dynamic languages. The result is something much slower than current javascript. Not much can be done about it either. So no Ruby / Python. For the likes like PHP, they don't really care to begin with. Rust is the best language for WebAssembly at the current day. You may try Go but they are only experimenting. And probably the end result will be nowhere as efficient as with Rust. Although it's super easy to set up. They might optimize it with new versions of Go. (current day is 1.11)
@Chr0n0s38
@Chr0n0s38 5 жыл бұрын
@@romanscharkov C/C++ still have their place in the world. C is still the most popular systems development language, and with projects like CertikOS I don't see that changing. C++ is very popular for game development, about as popular as C# actually.
@konstantinrebrov675
@konstantinrebrov675 4 жыл бұрын
Compiled Languages will be dominant in the future.
@movax20h
@movax20h 5 жыл бұрын
WebAssembly is promising, but it is still not good. It is still slower than JVM or .NET VM (i.e. Mono), and slower than native C++. It lacks optimizations, good in browser optimizing compiler, very low overhead memory operations, SIMD and multithreading. There are many benchmarks on the web where WebAssembly is still 30 times slower than native C++ app, even if the app is mostly CPU bound (no io, no syscalls, no javascript calls, etc). It still bad.
@BeatSyncBytes
@BeatSyncBytes 6 жыл бұрын
Is this secure? Really??
@0x8080
@0x8080 6 жыл бұрын
Yep, it's sand-boxed by the browser.
@gofudgeyourselves9024
@gofudgeyourselves9024 5 жыл бұрын
Flutter's HummingBird with Web Assembly???
@CattleRustlerOCN
@CattleRustlerOCN 5 жыл бұрын
Awesome but its one step closer to server based os's and software that you "rent" monthly and don't ever own. The "money grab" implications of this are huge. Its also a way to end software piracy which is a good thing but I can see the big software corps bleeding the users dry as well.
@hohojimmy4443
@hohojimmy4443 3 жыл бұрын
So CS is dead BS up
What's new in Chrome DevTools (Google I/O '18)
34:29
Chrome for Developers
Рет қаралды 24 М.
Lin Clark: A Cartoon Intro to WebAssembly | JSConf EU
29:41
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 14 МЛН
WebAssembly for Web Developers (Google I/O ’19)
39:56
Chrome for Developers
Рет қаралды 197 М.
Code beautiful UI with Flutter and Material Design (Google I/O '18)
27:49
Google for Developers
Рет қаралды 298 М.
Compiling for the Web with WebAssembly (Google I/O '17)
35:59
Chrome for Developers
Рет қаралды 61 М.
Web Components and the Polymer Project: Polymer 3.0 and beyond (Google I/O '18)
40:52
Dan Callahan: Practical WebAssembly | JSConf Budapest 2017
36:06
Real World WebAssembly (Chrome Dev Summit 2017)
27:54
Chrome for Developers
Рет қаралды 18 М.
The power of Headless Chrome and browser automation (Google I/O '18)
33:46
Chrome for Developers
Рет қаралды 198 М.
What's new in Angular (Google I/O '18)
40:12
Chrome for Developers
Рет қаралды 185 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН