HyperStore v1.0.0
HyperStore provides high-performance multidimensional arrays (tensors) for TurboWarp. Unlike standard lists, HyperStore supports N-dimensional grids, bulk math operations, and direct memory management.
Changelog
v1.0.0
January 27, 2026
- 🎉 Initial Release: First public version of HyperStore.
- Added Fixed and Dynamic storage modes.
- Added bulk mathematical operations.
- Included full debugging suite.
For The Developer
Blocks designed to assist in debugging and getting extension status.
(extension [Version v] :: #ff4c4c)
Returns metadata about the extension.
Options:
Options:
Version, Author, Platform.
(list of developers \(JSON\) :: #ff4c4c)
Returns a JSON list of the authors.
Debugging & Logs
debug: log [grid1] to JS console :: #ff4c4c
Prints the internal JavaScript object of the specified store to the browser console (F12). Essential for inspecting complex data.
debug: log all stores to console :: #ff4c4c
Dumps the entire memory state to the browser console.
(debug: last error message :: #ff4c4c)
Returns the most recent error (e.g., "Dimension mismatch" or "Store not found").
debug: clear error log :: #ff4c4c
Resets the last error message to "None".
debug: simulate lag [0]ms :: #ff4c4c
Intentionally pauses execution for N milliseconds. Use this to test how your project handles lag spikes.
debug: set safe mode [true v] :: #ff4c4c
Sets the internal safe-mode flag. (Reserved for future strict-checking logic).
State & Memory
(debug: active store count :: #ff4c4c)
Returns the total number of storage objects currently in memory.
(debug: approx memory usage \(items\) :: #ff4c4c)
Returns the total count of individual values stored across all grids.
(debug: last accessed ID :: #ff4c4c)
Returns the ID of the storage most recently touched by any block.
(debug: type of [grid1] \(Fixed/Dynamic\) :: #ff4c4c)
Returns the creation mode of the storage.
<debug: is [grid1] empty/zeroed? :: #ff4c4c>
Returns true if every single value in the storage is 0.
debug: delete all empty stores :: #ff4c4c
Garbage collection helper. Deletes any storage object where all values are 0.
Storage Management
create fixed [grid1] shape [10,10] \(Clipped\) :: #ff4c4c
Creates a storage with a fixed size. Writing outside these bounds does nothing.
create dynamic [grid1] with [2] dimensions \(Infinite\) :: #ff4c4c
Creates an empty storage that auto-expands. If you write to coordinate
100,50, it grows to fit.Lifecycle
delete storage [grid1] :: #ff4c4c
Deletes the specific storage from memory.
delete all storage :: #ff4c4c
Wipes everything.
<storage [grid1] exists? :: #ff4c4c>
Returns true if the ID is found in memory.
(shape of [grid1] :: #ff4c4c)
Returns the current dimensions (e.g., "10,10").
Data Access
set value at [0,0] in [grid1] to [hello] :: #ff4c4c
Sets a value at the specified coordinates (0-indexed CSV).
(get value at [0,0] from [grid1] :: #ff4c4c)
Gets a value. Returns empty string if out of bounds.
fill [grid1] with [0] :: #ff4c4c
Sets every cell in the storage to the value.
Structure & Math
reshape [grid1] to [100,1] :: #ff4c4c
Changes dimensions without changing data. Total element count must remain consistent.
flatten [grid1] into new storage [flat1] :: #ff4c4c
Converts a multidimensional array into a 1D array in a new storage slot.
apply [Multiply v] to all in [grid1] with value [2] :: #ff4c4c
Performs math on every item in the storage. Options: Add, Subtract, Multiply, Divide, Modulo, Power.
I/O & Lists
(export [grid1] as JSON :: #ff4c4c)
Returns the full storage object as a JSON string.
import JSON [{}] into [grid1] :: #ff4c4c
Restores a storage object from a JSON string.
dump [grid1] to Scratch List [MyList v] :: #ff4c4c
Copies data from HyperStore to a standard Scratch list.
load [grid1] from Scratch List [MyList v] shape [10,10] :: #ff4c4c
Loads data from a Scratch list into HyperStore, forcing it to the specified shape.