3 ms·
C interop is very easy, so you can do embedded dev by disabling memory management and standard lib, and staying very close to the generated C code. Or you can
by benob 5y ago
C interop is very easy, so you can do embedded dev by disabling memory management and standard lib, and staying very close to the generated C code.
Or you can do high level stuff thanks to well though generics and meta programming.
The js backend is not mature enough to cover high performance web apps. It is more like a gimmick currently. Maybe a wasm layer could be as successful as rust's...
- auxym 5y ago> Or you can do high level stuff thanks to well though generics and meta programming. Metaprogramming is also surprisingly useful for low-level, embedded programming. Eg, using compile-time logic (branching, looping) to decide which bit in which register you want to twiddle, instead of doing it at runtime, which saves computation and (sometimes) code size.