Skip to content

Extension Functions and Data Structures

Aaron Langford edited this page Dec 24, 2017 · 1 revision

In Sandstorm, users can extend the types of computations that can be performed in a Sandstorm system. Users may write programs, operators, data structures, and functions and upload them to Sandstorm. Sandstorm compiles these programs into executable binaries and makes them available internally and externally as the user specifies.

Namespaces

All functions, including those in the core Sandstorm interface, have a namespace associate with them. Function signatures must be unique within their namespace.

Uploading a new function to an existing namespace is an additive operation, and will not destroy any old functions that live in that namespace.

Updating a function is allowed.

Deleting a function is allowed.

Each [USER LEVEL INSTANCE?] has a catalog where meta data is stored about the functions available in each namespace.

Using Functions in other functions

When you use a function from another namespace, you must import that function in the code you upload to Sandstorm. The scope of an import statement is just the file that the import statement is contained in.

Clone this wiki locally