> > Hint: 311366 LOC; 40.997 sec; 2.2GiB peakmem
> 
> is a dream in my world

That's just half the story - i.e. converting Nim to C, in a single thread, in 
40s. The other half, compiling those C files in parallel - on 8 CPU cores - 
takes 2m 30s.

"cloc" reports 1,055,542 lines of C code in "nimcache".

Yes, the generated C is that verbose and hairy. And don't get me started on 
having to read it to understand what's going on...

> Nim's syntax might not be as off putting as you think

I'm complaining about the implementation, not the syntax. Those look like sum 
types, but are actually generics in disguise: 
<https://nim-lang.org/docs/manual.html#generics-type-classes>

So they're only compile-time constructs and convert any procedure having 
parameters of those fake types into generic procedures.

Reply via email to