-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support native extensions #108
Comments
That's very specific to the implementation language (C++). But we could do is something like There is already an AST node for builtins, but it is only introduced during desugaring, it is not part of the actual syntax of the language. We could make it part of the actual syntax and allow adding more builtins as well. |
This is awesome! |
I think this is related: https://groups.google.com/forum/#!topic/jsonnet/OhWV2RKlUFE I didn't see this documented at all in the standard library so I started that thread. Also, I still don't see any documentation about "std.native" |
dlopens a libarary, calls jsonnet_regexp_registered_functions() (or some other well-known name), which returns a list of builtins to register and declare in the nativeExtension object.
The text was updated successfully, but these errors were encountered: