Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

bqn

Last synced: 28 days ago
JSON representation

Informal collection of BQN utilities

Awesome Lists containing this project

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.