hayden4r4 / blackscholes-rust

A Black-Scholes pricing model built in Rust
MIT License
8 stars 6 forks source link

Wasm implementation #12

Open day01 opened 2 days ago

day01 commented 2 days ago

Description Currently, to utilize blackscholes-rust, we need to compile the application on a normal server. However, as the development landscape evolves, there is a significant shift towards using WebAssembly (Wasm) in both backend and frontend applications.

Proposal: I propose that we enable blackscholes-rust to be compiled into WebAssembly. This transition would align with the modern development trends and could provide several benefits including improved performance and portability across different platforms.

Steps to Achieve This:

Benefits:

hayden4r4 commented 1 day ago

I like this, I split this out initially because of some of the drawbacks of wasm, I wanted to maintain a "clean" codebase and then have a seperate wasm one. If we can port the cpp->rust and eventually combine wasm and non-wasm to a single codebase without making too many compromises on the cleanliness of the code that would be great

day01 commented 1 day ago

Actually, my current solution is ready for mving to wasm by introduce js feature for Random function. I think it will be available in current month.

if it will be work fine I suggest to publish not only rust but rust, wasm n python module in single codebase, bcs it is real.