Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/mlochbaum/bqn-libs

Informal collection of BQN utilities
https://github.com/mlochbaum/bqn-libs

bqn

Last synced: 2 months ago
JSON representation

Informal collection of BQN utilities

Lists

README

        

# My BQN library

BQN utilities. Scripts resembling these may become part of a standard library at some point but for now they're not. They shouldn't be assumed to be stable or well-tested.

Here's what there is. For usage, see export lists at the top of each file.

- strings.bqn: common string operations like split, replace, and so on (no regex)
- primes.bqn: fast-ish sieve with typical prime and factoring utilities
- matrix.bqn: matrix decompositions and tools: APL `⌹` is `Inverse⊘Solve`
- polynomial.bqn: complex polynomial tools and solvers
- min.bqn: optimization/minimization methods
- roots.bqn: find zeros of real functions
- big{nat,int}.bqn: utilities for arbitrary-precision numbers. In progress.
- datetime.bqn: time and date, handling formats other than BQN's native `•UnixTime`
- hashmap.bqn: mutable hash table, a prototype for planned `•HashMap`
- json.bqn: JavaScript Object Notation
- csv.bqn: Comma-Separated Value file format
- xml.bqn: eXtensible Markup Language

Run all tests with `bqn test/main.bqn`, or any individual test with the same name as the file in the main folder. Similarly, files in the `benchmark/` folder run and report on performance measurements for the script of the same name.