3 ms·
If that scaled completely linearly - I'm sure it doesn't, but it might be close enough - it would mean that it could compile a few kloc in less time than most i
by piinbinary 6y ago
If that scaled completely linearly - I'm sure it doesn't, but it might be close enough - it would mean that it could compile a few kloc in less time than most interpreters/VMs take to boot up.
For me, "instant" compiler and test feedback would be the ideal development experience. (Plus a good debugger)
I think sadly there are some features (e.g. HM-style type inference) that I want to have but would be an order of magnitude or two slower than this. But still, I'd love to see a compiler for a modern language use something like this as a goal. Even 10kloc/thread*sec would be quite good, now that we have 16+ thread CPUs readily available.
- 082349872349872 6y agoBack in the days of floppy drives, an interesting technical challenge was: write a system that boots, compiles itself, and enters its REPL before the drive mechanics manage to hit full RPM. What would the equivalent be on current systems? I suppose it might be possible to write a system that boots in a single bandwidth-delay product, but somehow that doesn't have the same attraction. ando wok fash nawit towsh nagut (running light without overbyte)
- willcipriano 6y agoBefore the flash drive heat throttles itself?
- e12e 6y agoThe "other" fast compiler (tcc) can do this: https://bellard.org/tcc/tcc-doc.html https://bellard.org/tcc/tcc-doc.html > TCC can be invoked from scripts, just as shell scripts. You just need to add #!/usr/local/bin/tcc -run at the start of your C source: #!/usr/local/bin/tcc -run #include <stdio.h> int main() { printf("Hello World\n"); return 0; } And famously, with some patches it can compile the Linux kernel at boot time (in reasonable time): https://bellard.org/tcc/tccboot.html https://bellard.org/tcc/tccboot.html