Web Assembly can be the future of the Web




Web Assembly can be the future of the web-development


Using and running javascript file on backend might be a good option but indeed it's a slow process, it is slow because javascript is a dynamic language. By saying 'dynamic' what i wanna say is that it is not a compiled language. That means it is not compiled it self but inside of the browser's v8 engine that was written on c++ (chrome v8 engine). 

Now, if u have to do some work on your front-end or back-end that requires more cpu power or tasks those are cpu intensive then using node js or javascript might not be a good option for those type of tasks. But web assembly can help you out of this freakin' problem. 




What you can do is using a higher language like c++ or rust or even python and use it with web assembly or WASM that compiles and run your written code on the browser. You can just convert your written c++ or rust code into a wasm file and put it in your browser to perform a specific task.

But now here rise a question , will WASM replace JavaScript?

The actual answer for this question. Now ,  wasm is indeed a great technology that evolved but wasm was not designed or build to work against javascript but with javascript. So, u have to Use JavaScript for sure to make your site dynamic but  you can use other language like c++ or rust or even python to perform higher cpu intensive tasks. 

You can check out WASM documentation to get started with it. 


Thank To Your For You Time. 

Please comment down below if u have any questions or suggestion according to this topic.

See ya

Comments

Popular Posts