-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add JSON output to check
command
#20
Comments
Hi! Thanks for the issue :)
|
Sure! My use-case is to embed numscript in WASM so I can call it from anywhere :) Would you describe me on how we could use numscript as a golang dependency, since almost all if not all of the library is inside |
Sounds interesting :) The library is intended to be mostly "internal", as it's hard to guarantee semver for many parts of it, e.g. the AST representation The currently exposed API surface is focused on the runtime part ( Last but not least: we are also considering releasing a numscript WASM build too - but no promises yet. So if you happen make progress with it feel free to ping us, or even consider contributing directly here :) In case you haven't, you can also join Formance's Slack, which has a #contributors channel |
Sorry for the delay! End of the year sure is a crazy time. We would love to use the public API if possible, but we'd need to wait to have a way to get the Our final step would be for the WASM file to be called from elixir as a library, and maybe from javascript & flutter in the frontend. In the backend we want to use Numscript as a DSL to process complex rules from traditional contracts. And in the frontend we want to display the users what the output of their transactions would be, and how their money would go through each step of the pipeline. We are open to back porting the changes! But it is ok if you need more time to stabilize the API. We are still at the experimentation phase too. |
That is very interesting! Using numscript in a broader context than just the Formance ledger is surely one of the design goals, and I would love to hear more about the use cases you are trying to accomplish. It would be great to arrange a live call if you have the time - you can text me in the Formance community slack to arrange that, name's By the way, if I understood correctly, what you are most interested into would be the "run" command output, which is the one that outputs the postings. The "check" command is basically a linter. Every error that is caught by the "check" command would be a runtime error as well. |
It would be very helpful to get the output of the check command in JSON format, so it can be used pragmatically.
The text was updated successfully, but these errors were encountered: