Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iola1999/ssimulacra2-js
A ssimulacra2 calculation tool implemented using js. 使用 js 实现的 ssimulacra2 计算工具。
https://github.com/iola1999/ssimulacra2-js
Last synced: 2 months ago
JSON representation
A ssimulacra2 calculation tool implemented using js. 使用 js 实现的 ssimulacra2 计算工具。
- Host: GitHub
- URL: https://github.com/iola1999/ssimulacra2-js
- Owner: iola1999
- Created: 2022-12-10T17:04:58.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T16:33:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T14:53:11.558Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 346 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssimulacra2-js
> Update: It is recommended to use [@nrs-binding/ssimulacra2](https://github.com/plwljobue77256/nrs-binding-ssimulacra2) in Node.js environment.
Pure JS
使用 js 实现 [ssimulacra2](https://github.com/cloudinary/ssimulacra2) 计算。
包含两种实现:
- src/index: 手动翻译 [https://github.com/rust-av/ssimulacra2](https://github.com/rust-av/ssimulacra2) Rust 代码为 Javascript 实现
- src/wasm: 调用 [https://github.com/iola1999/calc-s2-rust](https://github.com/iola1999/calc-s2-rust) 的 Wasm 实现
其中纯 js 实现的目前还有精度问题(结果不正确),性能相较 Wasm 也较差。Wasm 方案是正常可用的。