Simd support
NOTE: SIMD support is available only for Java 21+ and interpreter mode
If you are using a version of Java that supports JEP 448 - Vector API you can leverage Vector instructions.
After adding the dependency:
<dependency>
<groupId>com.dylibso.chicory</groupId>
<artifactId>simd</artifactId>
</dependency>
You can instantiate a module with SIMD support by explicitly providing a MachineFactory
:
import com.dylibso.chicory.simd.SimdInterpreterMachine;
var module = Parser.parse(new File("your.wasm"));
var instance = Instance.builder(module).withMachineFactory(SimdInterpreterMachine::new).build();