https://github.com/onelivesleft/jai-misc
Misc modules for Jai
https://github.com/onelivesleft/jai-misc
Last synced: 4 months ago
JSON representation
Misc modules for Jai
- Host: GitHub
- URL: https://github.com/onelivesleft/jai-misc
- Owner: onelivesleft
- Created: 2021-10-05T19:45:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-27T14:26:01.000Z (over 4 years ago)
- Last Synced: 2025-08-04T17:16:21.353Z (11 months ago)
- Language: Batchfile
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Misc Jai Modules
## Decorated_Sort
The standard `Sort` library allows you to easily sort arrays in-place, by creating a function which generates an index value for each item in your array. However, it calls this function repeatedly for each comparison, which may be inefficient if the function is non-trivial.
`Decorated_Sort` works by calling the function once on every item in the array, and then sorting these generated values separately, in a buffer. The buffer can then be used to read the items in order. Effectively this is a performance gain at the expense of space.
## Error
Provides a print-like called `print_error` which outputs to stderr.
## File_For
Lets you read through a file inside a `for` loop, using a pre-allocated buffer (or by specifying a size and letting it set up the buffer for you).
## Iter
Provides tools for iteration
## Metaprogram
Replacement Default_Metaprogram with upgraded features.
## Plot
Shows a window and lets you draw in it with simple draw commands (`plot`, `line`, etc.)
## Struct
Utilities for working with structs
## U128
Provides a `U128` type that currently supports bitwise and comparison operators.