News for hackers. Stuff that matters.
Re:Nim 1.6 by benob on Tuesday October 19, 2021 @08:38AM (#28917409)
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...

Re:Nim 1.6 by auxym on Tuesday October 19, 2021 @02:49PM (#28921898)
> 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.