News for hackers. Stuff that matters.
Re:Learn C in Y Minutes by flohofwoe on Tuesday April 13, 2021 @07:30AM (#26790799)
Not really, but it depends. For instance, C is pretty great for compiling simple logic into WASM modules because the size overhead is minimal compared to most higher-level languages, or even C++ with careless use of the stdlib (and the missing memory safety isn't such a critical problem because everything runs in the WASM sandbox anyway).

E.g. I think the size of my WASM demos is quite reasonable for what they do:

https://floooh.github.io/tiny8bit/

https://floooh.github.io/sokol-html5/

However, AssemblyScript is also a pretty good choice for this type of stuff from what I'm hearing (while for instance languages with a complex runtime like C# are not).

There are no comments on this comment yet.