Feasibility of porting Lucene to WebAssembly

254 Views Asked by At

I'm exploring the feasibility of porting Lucene to wasm. I have absolutely no experience in WebAssembly but from what I read, Java apps (or any VM language) seem to be more challenging than non-VM languages. Even though Lucene has been ported to other languages, I would ideally like to port it from Java.

Is it possible to port Lucene (Java edition) to wasm without too much work? If yes, which "interpreter" would be the most appropriate? I've heard of TeaVM, CheerpJ and JWebAssembly.

Where should I start?

1

There are 1 best solutions below

2
Horcrux7 On

Lucene build the search index on the file system. How should this work in the browser?

If you want compile it for a standalone runtime CheerpJ can be the better solution.