DEV Community

Discussion on: TLDR; Nim en Spanish

Collapse
 
juancarlospaco profile image
Juan Carlos • Edited

On Nim you can directly manage memory.

Nim has 6 Garbage Collectors to choose from, or no GC at all,
is easy just changing 1 compiler parameter, you can tune the GC.
They also are adding a memory management without GC,
kinda like Rust, but without BorrowChecker.

Is a Compiler, not a Transpiler. Nim by default targets C.

Feels very similar to Python writing it, but has C-like performance.

Nim is faster than Python and Cython.
🤪

Collapse
 
taillogs profile image
Ryland G

You say it’s a compiler just because it targets C? Doesn’t the fact it can be translated to python make it a transpiler?

It’s not memory management if you have a gg really.

Overall very cool, will try it out.

Thread Thread
 
juancarlospaco profile image
Juan Carlos

I dont understand if you want Manual or GC memory management,
but you can do both on Nim.

I dont say it’s a compiler because it targets C,
theres compilers that wont target C, is compiler because it is,
you can say its a Transpiler for the JavaScript target yeah,
but for others is a compiler, whatsoever thats just wording :P

It compiles to native Python, like Cython,
not Python source code, that would be slow,
one of the benefits of Nim is the high efficiency of the generated code.
🙂