aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/running.html1
-rw-r--r--running.md2
-rwxr-xr-xsrc/cjs.bqn2
-rwxr-xr-xsrc/pr.bqn2
4 files changed, 5 insertions, 2 deletions
diff --git a/docs/running.html b/docs/running.html
index 606e5963..592be37e 100644
--- a/docs/running.html
+++ b/docs/running.html
@@ -6,6 +6,7 @@
<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a> / <a href="index.html">main</a></div>
<h1 id="how-to-run-bqn">How to run BQN</h1>
<p>There are currently two active BQN implementations: the self-hosted one in this repository, and the independent dzaima/BQN. Neither is entirely complete but they are quite capable for pure programming tasks (say, implementing a compiler). dzaima/BQN has good performance while self-hosted is a few hundred times slower. I tend to develop parts of applications in the online REPL and move to dzaima/BQN scripts in order to run them.</p>
+<p>Scripts in this repository use <code><span class='Value'>bqn</span></code> in the <code><span class='Comment'>#!</span></code> line if self-hosted or dzaima/BQN can run them, and <code><span class='Value'>dbqn</span></code> if only dzaima/BQN works.</p>
<h3 id="self-hosted-bqn">Self-hosted BQN</h3>
<p>See the subsections below for instructions on specific implementations.</p>
<p>This version of BQN is <a href="implementation/index.html">implemented</a> mainly in BQN itself, but a host language supplies basic functionality and can also replace primitives for better performance. This also allows <a href="doc/embed.html">embedding</a>, where programs in the host language can include BQN code. It fully supports all primitives except a few cases of structural Under (<code><span class='Modifier2'>⌾</span></code>), but is still missing some advanced features: block headers and multiple body syntax, derived 1-modifiers, and block returns.</p>
diff --git a/running.md b/running.md
index ecdc9bef..c9460e86 100644
--- a/running.md
+++ b/running.md
@@ -4,6 +4,8 @@
There are currently two active BQN implementations: the self-hosted one in this repository, and the independent dzaima/BQN. Neither is entirely complete but they are quite capable for pure programming tasks (say, implementing a compiler). dzaima/BQN has good performance while self-hosted is a few hundred times slower. I tend to develop parts of applications in the online REPL and move to dzaima/BQN scripts in order to run them.
+Scripts in this repository use `bqn` in the `#!` line if self-hosted or dzaima/BQN can run them, and `dbqn` if only dzaima/BQN works.
+
### Self-hosted BQN
See the subsections below for instructions on specific implementations.
diff --git a/src/cjs.bqn b/src/cjs.bqn
index 993bc386..d422d873 100755
--- a/src/cjs.bqn
+++ b/src/cjs.bqn
@@ -1,4 +1,4 @@
-#! /usr/bin/env dbqn
+#! /usr/bin/env bqn
# Javascript/JSON formatting
L ← "["∾"]"∾˜1↓·∾","⊸∾¨ # Native list/array
diff --git a/src/pr.bqn b/src/pr.bqn
index 04b8a7fc..fc7a759d 100755
--- a/src/pr.bqn
+++ b/src/pr.bqn
@@ -1,4 +1,4 @@
-#!/usr/bin/env dbqn
+#!/usr/bin/env bqn
# Process BQN runtime
rtt ← ('0'-˜⊑)⍟= ⊑ •args∾2 # Runtime type: 0, 1, or all