permaweb / ao

The ao component and tools Monorepo - 🐰 🕳️ 👈
https://cookbook_ao.arweave.dev
Other
175 stars 57 forks source link

feat(dev-cli): Lua Bindings for C++ Physics Library and Compilation to WASM32 #931

Open PeterFarber opened 1 month ago

PeterFarber commented 1 month ago

Description

I’m proposing a feature that involves integrating a C++ physics library with Lua and compiling the resulting code into WebAssembly (WASM). This integration will enable Lua scripts to utilize the functionalities of the C++ physics library and ensure that the code can run efficiently in a web environment.

This feature aims to enhance the usability of the physics library by integrating it into Lua scripts and expanding its reach to web applications through WASM32. The result will be a shared library for Lua and a WASM module for web deployment.

1. Create Lua Bindings for the C++ Physics Library

2. Compile the C++ Code and Lua Bindings into a Shared Library

3. Compile the Lua Files into WASM32

Expected Outcome

Additional Information

Benefits

ppedziwiatr commented 1 month ago

How about adding lua binding for the EVM secp256k1 elliptic curves? :) I've started to develop it here https://github.com/warp-contracts/ao-redstone-oracle/tree/main/secp256k1