diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-05-15 16:16:15 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-05-15 16:16:15 -0400 |
| commit | 0215858aa48d04f50deb8520368618ad4c9d5331 (patch) | |
| tree | 9cfffcc8596391f01e9c14be65016ec5acbce00b | |
| parent | cc9e334aa33b7505d4e4100eb2e2f60acfeeb965 (diff) | |
Switch from dbqn to bqn for src/ scripts
| -rw-r--r-- | docs/running.html | 1 | ||||
| -rw-r--r-- | running.md | 2 | ||||
| -rwxr-xr-x | src/cjs.bqn | 2 | ||||
| -rwxr-xr-x | src/pr.bqn | 2 |
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> @@ -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 @@ -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 |
