-
Notifications
You must be signed in to change notification settings - Fork 297
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
Ability to call CompiledFunction from Callable #94
Comments
This is one of the things that I wanted to implement earlier, but, invoking compiled functions from native Go code is a bit challenging. Maybe not in the near term, but, I will definitely revisit this feature in the future version. I know that's not what you wanted, but, you can always write map/reduce functions in Tengo and use them via modules, if that works. |
Thanks, I'll give it a try. Perhaps I'll fork it and give it a go. I'll need to do that since "machine" is private to a Compiled. |
I'd say writing map/reduce functions in a module is better, but, if you want to experiment with running compiler/VM directly, my recommendation is to look at |
@kcsampson this functionality is now available in the |
I'd like to know when this feature will be merged @mccolljr |
I want to supply a Callable to my script via Indexable. But I want the arg to my Callable to be a func() declared in the script. The func() comes to the script as "*CompiledFunction". But I have no way to call the compiled function. My use case is to implement things like map/reduce, where the script is declaring lambda's.
`
`
The text was updated successfully, but these errors were encountered: