-
Notifications
You must be signed in to change notification settings - Fork 0
Np 1250 create emscripten binding #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Added support for building JavaScript bindings through Emscripten. - Introduced `WITH_JS_BINDINGS` option in CMake for enabling/disabling JS bindings. - Updated `conanfile.py` to include new options, dependencies, and packaging logic for `UvulaJS`. - Integrated `UvulaJS` bindings for import/export with TypeScript support. - Modified GitHub actions to support WebAssembly (`platform_wasm`) and npm package workflows. NP-1250
casperlamboo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For both the unwrapTyped and projectTyped function I have two similar remarks. They both return a emscripten::val which is untyped when integrated in a host platform. This seems counter to the comments around. Additionally I see you use std::vector<T> as arguments. Using cpp vectors in typescript is hella annoying. In neoprep we've often opted to just accept javascript lists and perform the conversion in cpp.
- Replaced custom structures with standardized TypeScript-like types (Float32Array, Uint32Array, Int32Array). - Refactored wrappers and return types to improve type safety in TypeScript. - Enhanced `project` and `unwrap` methods with new structured return types. - Updated Emscripten bindings to support TypeScript-friendly structures and arrays. NP-1250
…aJS` directory NP-1250
- Introduced `PolygonArray` class to wrap arrays for improved TypeScript typing. - Replaced `std::vector` with `Float32Array` and `PolygonArray` in key data structures. - Enhanced `unwrap` and `project` methods to utilize TypeScript-friendly return types. - Updated Emscripten bindings to register `PolygonArray` and support structured data types. NP-1250
…llocation - Disabled multithreading for Emscripten/WASM builds. - Simplified `TaskGroup` allocation logic. NP-1250
NP-1250