From 0215858aa48d04f50deb8520368618ad4c9d5331 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 15 May 2021 16:16:15 -0400 Subject: Switch from dbqn to bqn for src/ scripts --- docs/running.html | 1 + running.md | 2 ++ src/cjs.bqn | 2 +- 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 @@

How to run BQN

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.

This version of BQN is implemented mainly in BQN itself, but a host language supplies basic functionality and can also replace primitives for better performance. This also allows embedding, where programs in the host language can include BQN code. It fully supports all primitives except a few cases of structural Under (), but is still missing some advanced features: block headers and multiple body syntax, derived 1-modifiers, and block returns.

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 -- cgit v1.2.3