aboutsummaryrefslogtreecommitdiff
path: root/implementation/codfns.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-19 19:48:55 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-19 19:48:55 -0400
commit0f47b5d1eeeba8315e5428181197d5de77195a64 (patch)
treea04f28d11bfe5773e303cedbf8d0e71f681d2ec7 /implementation/codfns.md
parent5e1bfb982429882797d726ffb22f81c8115cf91a (diff)
Got a statement backwards
Diffstat (limited to 'implementation/codfns.md')
-rw-r--r--implementation/codfns.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/implementation/codfns.md b/implementation/codfns.md
index 57d1952d..5a0ae10e 100644
--- a/implementation/codfns.md
+++ b/implementation/codfns.md
@@ -68,7 +68,7 @@ I stress here that I don't think there's anything wrong about the way Aaron has
BQN's compiler could certainly be made to run on a GPU, and it's fascinating that this is possible merely because I stuck to an array-based style. In Co-dfns, Aaron found a maximum factor of 6 improvement by running on the GPU, and this time it's the GPU runtime that we should expect to be slower than Dyalog. So we could expect an array-based compiler to run faster on large source files in this case. The problem is this: who could benefit from this speed?
-Probably not BQN. Recall that the BQN compiler runs at 3MB/s. This is fast enough that it almost certainly takes much longer to compile the program than to run it. The exception would be when a lot of code is loaded but not used, which can be solved by splitting the code into smaller files and only using those which are needed.
+Probably not BQN. Recall that the BQN compiler runs at 3MB/s. This is fast enough that it almost certainly takes much longer to run the program than to compile it. The exception would be when a lot of code is loaded but not used, which can be solved by splitting the code into smaller files and only using those which are needed.
The programmers who complain about compile times are using languages like C++, Rust, and Julia that compile to native code, often through LLVM. The things that these compilers spend time on aren't the things that the BQN compiler does! BQN has a rigid syntax, no metaprogramming, and compiles to bytecode. The slow compilers are churning to perform tasks like:
- Type checking