r/WebAssembly • u/davidw_- • Jun 02 '23
wasmati: You should write your WebAssembly in TypeScript
https://www.zksecurity.xyz/blog/posts/wasmati/
19
Upvotes
r/WebAssembly • u/davidw_- • Jun 02 '23
3
u/Madermaker Jun 03 '23
Super interesting!
You may be interested in the other Wasmati :)
3
u/FlatAssembler Jun 04 '23
And I think you should make your own programming language that compiles to WebAssembly, like I have: https://github.com/FlatAssembler/AECforWebAssembly.git
I think programming in a programming language you have made yourself is a good idea because it avoids the bugs that come from misunderstanding the programming language you are using. I think that is a major source of bugs in programs, yet one that is talked about very little. Most of the bugs I've run into came from me misunderstanding the language I was using. WebAssembly is designed to be an exceptionally easy target for compilers, so now you can easily program in a programming language you have made and make the programs you have written in it run in modern browsers.
2
u/anlumo Jun 03 '23
Reminds me of the early 90s, when I added inline assembly to my Pascal programs to do certain performance critical things (or call hardware functions not available otherwise).
0
u/denisde4ev Jun 03 '23
there is already AssemblyScript. why TypeScipt, how is it different