usage/JSON_GPU.bend checks
raw source on the hub · import qasim-bend-kit@0.1.0.2/usage/JSON_GPU.bend as JSON_GPU
2 imports
import Base import ../libs/JSON.bend as Json
Definitions
def show_result source · line 4 · raw
@result:Result<&1, &1, 0xaca801afcf3e822677fd6d06895d2c71/libs/JSON.Error, 0xaca801afcf3e822677fd6d06895d2c71/libs/JSON.Value> -> String
def show_batch source · line 11 · raw
@batch:0xaca801afcf3e822677fd6d06895d2c71/libs/JSON.BatchResult -> String
def show_optional source · line 18 · raw
@batch:Maybe<&1, 0xaca801afcf3e822677fd6d06895d2c71/libs/JSON.BatchResult> -> String
def check source · line 25 · raw
@ok:Bool -> IO(Unit)
def main source · line 34 · raw
IO(Unit)
A native executable uses the GPU when available. --gpu off exercises the CPU fallback. JavaScript executes this example sequentially.