Re:Tauri – Electron alternative written in Rust
by duped on Wednesday January 05, 2022 @03:47PM
(#29814699)
Couldn't you just package your favorite regex library and expose it through a JS function binding in your app?
[ Parent
| on HN ]
Re:Tauri – Electron alternative written in Rust
by fabiospampinato on Wednesday January 05, 2022 @04:34PM
(#29815281)
That's a big "just", but yes in theory that's doable, however:
- The performance you are going to get will be terrible compared to the native implementation.
- Oniguruma, which I think is Ruby's engine, weighs half a megabyte on its own, that's comparable to the core bundle of the app I'm working on. That's a lot to my eyes.
- If you need to use this engine in dependencies that just assume that lookarounds are available then you are going to need to fork every single dependency just to wire it with the regex engine you compiled, super messy.