[Demo] WASM in datapack

preview_player
Показать описание
I'm experimenting with calling wasm module from datapack to allow a faster way to perform calculations in datapack.

This mod has recently reached a "workable" version and this is a demo video of that.
However, this is still very unstable so I don't recommend you use it.

Рекомендации по теме
Комментарии
Автор

I have shown two wasm functions in this demo.
1. *reverse* function which re-order the input text in the reversed order.
This shows that with WASM we can achieve general string-manipulation within Minecraft.
2. *sqrt_all* function which finds the square root of all numbers within the input list.
This shows that we can move complex computation over to WASM without paying any significant cost to the performance.

Boomber
join shbcf.ru