Jai compiles 80,000 lines of code in under a second
Joakim
dlang at joakim.fea.st
Fri Sep 21 01:04:51 UTC 2018
On Friday, 21 September 2018 at 00:47:27 UTC, Adam D. Ruppe wrote:
> Of course, D can also take ages to compile one line of code. It
> all depends on that that line is doing... ctfe and templates
> are slow. C or Java style code compiling in D is very fast.
I was going to say this too, ie how much of that Jai code is run
at compile-time, how much is uninstantiated templates that is
just skipped over like D does, and how much is templates
instantiated many times? Lines of code is not a good enough
measure with those programming constructs.
I was just building the stdlib tests with LDC yesterday and they
took so much memory on a new Linux/x64 VPS with 2GB of RAM that I
had spun up that I couldn't even ssh in anymore. I eventually had
to restart the VPS and add a swapfile, which I usually have but
simply hadn't bothered with yet for this new Ubuntu 18.04 VPS.
The stdlib tests instantiate a ton of templates.
More information about the Digitalmars-d
mailing list