Skip to content

WASM perspectives with J2CL #204

Answered by gkdn
treblereel asked this question in Q&A
Discussion options

You must be logged in to vote

We don't rely on JavaScript arrays but we rely on stuff like String, Regex, Math. It is a subset of what you see here plus more String stuff which is hidden behind some not-yet-standardized APIs.

Currently we are highly focused on browser use cases; maybe that can change in the future but not very soon.

re. performance:

For some data point, J2CL Wasm mode is roughly 2x faster than the JS mode for heavy computation but not for everything.

JS regex is blazingly fast; much faster than re2j for average input. To put into perspective, our benchmarks shows J2CL/JS regex is 35x faster on the same input compared to re2j running on JVM. Re2j is good for guaranteed lower bounds but not for general …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by treblereel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants