Lin Clark on WebAssembly

 The author was talking about some stuff that immediately caught my attention, the lack of efficiency and reliability in the performance in some code created on JavaScript, most likely due to the way it was implemented and the memory management that it does in order for it to have its annoying any type for everything.


As a person who has done many, many development project for web in JS, I can firmly say that I don’t like it and most of the time I try my hardest to avoid it. As a matter of fact since the discovery of Typescript I have never gone back to using the dynamic use of JavaScript.


Now that the author is talking about modules (black boxes) that can be used that run smoothly on any device and web navigator. It immediately caught my attention because it mentioned that, of course, no one is going to actually write assembly code directly, they are most likely to use a compiler, or interpreter for it to do the hard work so the hard part of the development up to the compiler in question for it to spit out efficient and reliable code. 


The other thing that caught my attention was that it will be able to handle the manual use of memory, C/C++ wise, using alloc and free notations. Which I would also enjoy as it not only means the performance in speed will inevitable improve, but also the use of memory. This way the over excess of memory allocation that some browsers like Chrome have that are so specially annoying.


One of my concerns is that not many people will enjoy the sudden jump from an easy notation to develop from into a super efficient, but difficult one. As not many npm packages have their Typescript implementation, so it will be true that not many packages will also not have their webAssembly implementation.

Comentarios

Entradas más populares de este blog

Language Design and Implementation using Ruby and the Interpreter Pattern

Internals of GCC

Mother of all compilers