4 ms·
If I read this correctly the whole point of the rigamarole was to be able to use the rust crate 'lol_html'. Is there nothing comparable in the go world? If it
by bigbillheck 4y ago
If I read this correctly the whole point of the rigamarole was to be able to use the rust crate 'lol_html'. Is there nothing comparable in the go world? If it's that critical, why are you using go at all?
And couldn't you have also saved a bunch of effort at the end by tweaking the rust program so that it wasn't just a one-and-done and only need one call to exec?
- xena 4y agoThen I have to ship the binary around. That makes it no longer a single binary solution.
- bigbillheck 4y agoSorry, I should have said "one call to InstantiateModule" instead of exec. I don't know how go processes work, but surely you can do that in a different context so that the runtime stays alive and you just pass around a way to connect to it. Then on the rust side, you change it to work on lines of input, one line in means one line out. The current way, your go code starts a new system process to process every message, the way I'm suggesting it'll only start one for the whole run.
- xena 4y agoI could look into that, but then doing that would mean that the program wouldn't be only 50 lines of rust :)