def main
import qasim-bend-kit@0.1.0.2/usage/JSON_GPU.bend as JSONGPUimport Base
import qasim-bend-kit@0.1.0.2/libs/JSON.bend as Json
32# A native executable uses the GPU when available. --gpu off exercises the
33# CPU fallback. JavaScript executes this example sequentially.
34def main() -> IO(Unit):
35 do IO<Unit>:
36 actual : String = show_optional(Json.parse_many_gpu(
37 "null" <> "true" <> "[1,]" <> "-12.50e+3" <>
38 "{\"x\":[false,\"ok\"]}" <> Nil{}))
39 check(String.eq(actual, "null|true|ERROR|-12.50e+3 |{\"x\":[false,\"ok\"]}"))
Uses (8)
Used by (0)
No other definition uses this definition.