StaticAnyStaticBaseStaticBoolStaticCharStaticCoreStaticDataStaticFloat16StaticFloat32StaticFloat64StaticFunctionStaticInt16StaticInt32StaticInt64StaticInt8StaticMainStaticModuleStaticNothingStaticnthreadsStaticPkgStaticStringStaticSymbolStaticTaskStaticUStaticUStaticUStaticUStaticversionStaticdefaultSet the default scope mode for Julia.scope().
The scope mode to use by default:
'default': Scope-based with concurrent async support (thread-safe)'safe': All objects use FinalizationRegistry (closure-safe)'perf': Lock-free stack-based (single-threaded LIFO only)Note: Julia.scopeAsync() always uses "safe" mode regardless of this setting.
StaticautoStaticcallCall a Julia function with variable arguments.
The Julia function to be called.
The arguments to be passed to the function. Non-JuliaValue objects will be automatically wrapped by Julia.autoWrap. Since the automatic wrapping does not work perfectly all the time, be sure to wrap the objects yourself in order to feed the function with the exact types.
StaticcallCall a Julia function with keyword arguments and variable arguments.
The Julia function to be called.
Keyword arguments to be passed to the function. If a plain object is provided, it will be automatically wrapped as a JuliaNamedTuple. Be sure to wrap it yourself to get exact typing.
Variable arguments to be passed to the function. Non-JuliaValue objects will be automatically wrapped by. Be sure to wrap it yourself to get exact typing.
StaticcloseClose the Julia runtime and also close the dynamic library.
Status code to be reported.
StaticdeleteDelete an object from the global scope maintained by jlbun.
Name of the object to be deleted.
Whether the object was deleted.
StaticevalEvaluate a Julia code fragment and get the result as a JuliaValue.
Julia code to be evaluated.
StaticgetFetch a Julia function from the given module.
Module to be fetched from.
Name of the function to be fetched.
StaticgetRetrieve an object from the global scope maintained by jlbun.
Name of the object to be retrieved.
StaticgetGet the string representation of a Julia value's type. Uses caching to avoid repeated FFI calls for common types.
Pointer to a Julia object, or a JuliaValue object.
StatichandleStaticimportImport a module and get a JuliaModule object referring to that module.
Name of the module to be imported.
StaticincludeShortcut for Julia.Base.include.
Relative path of the file to be included.
Module to include the file. Default to Main.
OptionalmapFn: JuliaFunctionMapping function that will be applied to each Expr in the included file.
StaticincludeShortcut for Julia.Base.include_string.
Code string to be included.
Module to include the file. Default to Main.
OptionalmapFn: JuliaFunctionMapping function that will be applied to each Expr in the included code string.
StaticinitInitialize the Julia runtime. All other methods need to be called after this.
Extra options for initialization.
StaticprintStaticprintlnStaticreprGet a string representation of a JuliaValue using Julia's repr() function, with the given MIME.
Object to be represented.
The MIME to use. Default to MIME.Default.
StaticscopeExecute code within a scoped context where Julia objects are automatically tracked and released when the scope ends.
Objects created through the scoped julia proxy are automatically tracked
and released when the scope ends. This provides automatic memory management
without manual setGlobal() or deleteGlobal() calls.
A function that receives a ScopedJulia proxy and returns a value.
Optionaloptions: JuliaScopeOptionsThe return value of the function.
StaticscopeExecute async code within a scoped context where Julia objects are automatically tracked and released when the scope ends.
Note: Async scopes always use "safe" mode to prevent race conditions
with concurrent async operations. The mode option is ignored.
An async function that receives a ScopedJulia proxy.
Optionaloptions: JuliaScopeOptionsOptions (mode is always forced to "safe")
A promise that resolves to the return value of the function.
StaticsetSava an object to the global scope maintained by jlbun.
Name to use.
Object to be saved.
StaticstringStringify a JuliaValue using Julia's string() function,
Object to be stringified.
StatictagEvaluate a Julia code fragment and get the result as a JuliaValue.
This method supports value-interpolation, meaning that the tagged
values will be automatically wrapped and interpolated into the code.
Strings separated by tagged values
Tagged values to be interpolated
StatictypeofGet the type of a Julia value.
Value to get the type of.
StaticwrapWrap a function with several arguments so that it can be run in a JuliaTask.
Function to be wrapped.
Keyword arguments.
Variable arguments.
StaticwrapWrap a pointer as a JuliaValue object.
Uses Map lookup for common types (O(1)) before falling back
to string comparison for parametric and special types.
Pointer to the Julia object.
Get the default scope mode for
Julia.scope(). Does not affectJulia.scopeAsync()which always uses "safe" mode.