jobs
OrigoZero
Date: 2 weeks ago
City: Remote
Contract type: Full time
Remote
The jobs namespace — 4 functions.
globals/jobs/find
jobs.find(name: string) -> JobHandle?
Look up a registered job by name. Returns a JobHandle or nil for anonymous / unknown names. Single FFI crossing — returns the id directly, no registry snapshot.
Parameters
local job = jobs.find("animation_blend_main")
globals/jobs/inspect
jobs.inspect(target: JobHandle | string) -> JobInfo?
Return a snapshot row by job handle or by name without retrieving a full handle. Single FFI crossing — pulls only the matching row.
Parameters
local info = jobs.inspect("animation_blend_main")
globals/jobs/list
jobs.list(phase: string?) -> { JobInfo }
List registered job summaries. Pass a phase name to filter to a single phase. Single FFI crossing — only the requested rows cross the bridge.
Parameters
local rows = jobs.list("main")
globals/jobs/register
jobs.register(descriptor: table) -> JobHandle?
Register a substrate job. Returns a JobHandle on success, nil on validation failure. Dispatches by executor.kind: - "kernel" / "stub" → standard __jobs.register (JSON-only descriptor). - "luau" → __jobs.register_luau(descriptor, executor.run) so the Luau function survives the JSON crossing as a stable registry ref. The dispatcher invokes the run closure once per frame; the closure captures any bindings/buffers it needs. - "compute" → the shader reference resolves to its registration key, and the job queues one dispatch per frame. origin is auto-filled with the VFS path of the calling script unless the descriptor already supplies one — surfaced under /zero/runtime/jobs///origin.txt for agent traceability. Single FFI crossing — auto-origin runs Rust-side via lua_getinfo, no separate stack-inspection trip.
Parameters
local job = jobs.register({ phase = "main", executor = { kind = "kernel", kernel = "copy_buffer" }, reads = {{resource={kind="buffer",id=src.id},mode="r"}}, writes = {{resource={kind="buffer",id=dst.id},mode="w"}} }) local job = jobs.register({ phase = "main", executor = { kind = "luau", run = function() print("tick") end } }) local job = jobs.register({ phase = "main", executor = { kind = "compute", shader = asset.resolve("carve", "computeShader"), buffers = { "heights" }, workgroups = { 64 } } })
globals/jobs/find
jobs.find(name: string) -> JobHandle?
Look up a registered job by name. Returns a JobHandle or nil for anonymous / unknown names. Single FFI crossing — returns the id directly, no registry snapshot.
Parameters
- name string — Job name supplied to jobs.register.
local job = jobs.find("animation_blend_main")
globals/jobs/inspect
jobs.inspect(target: JobHandle | string) -> JobInfo?
Return a snapshot row by job handle or by name without retrieving a full handle. Single FFI crossing — pulls only the matching row.
Parameters
- target JobHandle | string — JobHandle, or job name string.
local info = jobs.inspect("animation_blend_main")
globals/jobs/list
jobs.list(phase: string?) -> { JobInfo }
List registered job summaries. Pass a phase name to filter to a single phase. Single FFI crossing — only the requested rows cross the bridge.
Parameters
- phase string (optional) — Optional phase filter — nil returns every job.
local rows = jobs.list("main")
globals/jobs/register
jobs.register(descriptor: table) -> JobHandle?
Register a substrate job. Returns a JobHandle on success, nil on validation failure. Dispatches by executor.kind: - "kernel" / "stub" → standard __jobs.register (JSON-only descriptor). - "luau" → __jobs.register_luau(descriptor, executor.run) so the Luau function survives the JSON crossing as a stable registry ref. The dispatcher invokes the run closure once per frame; the closure captures any bindings/buffers it needs. - "compute" → the shader reference resolves to its registration key, and the job queues one dispatch per frame. origin is auto-filled with the VFS path of the calling script unless the descriptor already supplies one — surfaced under /zero/runtime/jobs///origin.txt for agent traceability. Single FFI crossing — auto-origin runs Rust-side via lua_getinfo, no separate stack-inspection trip.
Parameters
- descriptor table — Job declaration with the JobDescriptor shape — name?, phase, reads?, writes?, executor, ordering?, pure?, origin?, metadata?. Param is typed as table rather than JobDescriptor because the LSP doesn't yet narrow string literals to their literal types in record fields, so a JobDescriptor annotation rejects the tagged-union executor discriminator on every call site (literal kind = "kernel" infers as kind: string, doesn't subtype KernelExecutor.kind: "kernel"). Runtime validation in __jobs.register enforces the actual structure; see the JobDescriptor type alias above for the canonical shape.
local job = jobs.register({ phase = "main", executor = { kind = "kernel", kernel = "copy_buffer" }, reads = {{resource={kind="buffer",id=src.id},mode="r"}}, writes = {{resource={kind="buffer",id=dst.id},mode="w"}} }) local job = jobs.register({ phase = "main", executor = { kind = "luau", run = function() print("tick") end } }) local job = jobs.register({ phase = "main", executor = { kind = "compute", shader = asset.resolve("carve", "computeShader"), buffers = { "heights" }, workgroups = { 64 } } })
How to apply
To apply for this job you need to authorize on our website. If you don't have an account yet, please register.
Post a resumeSimilar jobs
Business Development Executive (Johor Bahru)
Fresha,
Remote
6 days ago
The AI-powered OS for beauty,wellness and self-careAbout FreshaFresha is the AI-powered operating system for the global beauty, wellness and self-care industry, connecting and powering everything from salons and barbers to spas, medspas, fitness studios and health practices.Trusted by millions of consumers and businesses worldwide. Fresha is used by 140,000+ businesses and 450,000+ stylists and professionals worldwide, processing over 1 billion...
Material Handler (Warehouse)
The Hershey Company,
Remote
1 week ago
Job description:Responsibilities:-Inspect the forklift prior to use. Complete and sign the forklift checklist. Observe forklift and Work Saver battery transport to the charging station when battery charge is low. Safely operate Fork truck through employee traffic areas as well as other areas.Check updated production schedule to confirm which item is scheduled to run and the correct packaging components are transported...
Wok - Renaissance Johor Bahru
Renaissance Hotels,
Remote
1 week ago
Additional InformationJob Number26104198Job CategoryFood and Beverage & CulinaryLocationNo 2 Jalan Permas 11, Bandar Baru Permas Jaya, Johor Bahru, Johor, Malaysia, 81750 VIEW ON MAPScheduleFull TimeLocated Remotely?NPosition Type Non-ManagementPosition SummarySupervise and coordinate activities of cooks and workers. Determine how food should be presented and create decorative food displays. Ensure proper portion, arrangement, and food garnish to be served. Monitor the quantity...