Replies: 3 comments 5 replies
-
Yes.
Yes. Here is an example: https://expr.medv.io/playground |
Beta Was this translation helpful? Give feedback.
-
@antonmedv is the intent to keep the WASM build under the paid Expr Editor only? I was looking to potentially run #669 (comment) also mentions running a WASM build on Cloudflare Workers. More generally speaking, I could see a WASM build as useful for multi-language support for |
Beta Was this translation helpful? Give feedback.
-
Building Expr as WASM is available for everyone. Expr Editor is editor, and actually it not even requires WASM, the whole lint/autocomplete can be done on the server.
It is totally doable to build Expr with custom Argo env as WASM and use it on client side. I will write some documentation on how to do that.
WASM build size mostly dominated by Go build results. In playground I got 1.9MB (gzipped) WASM size. (Note it is not possible to build reflect package with tinygo at the moment, as some reflect.Func bugs in tinygo). Right now it is possible to use Expr anywhere WASM is supported via building with Go. I'm now planning to implement Expr in two additional languages: JS and Rust (expr.js and expr.rs). PS About Expr Editor for Argo, we can also discuss term for editor component for Argo UI. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to port your library to javascript?
Is it possible to port your library to WASM and use in NodeJS / Browser?
Beta Was this translation helpful? Give feedback.
All reactions