Ruby null

a112121788 · August 28, 2021 · Last by imwildcat replied at December 16, 2021 · 2464 hits
Topic has been selected as the excellent topic by the admin.

null

速度不在一个数量级,可读性和美感也不在一个数量级

感觉是个可行的办法,我觉得比较吸引人的是可以 Runtime 从网络 Load WASM。

如果只是提高本地 gem 性能的话,C ext 会比较成熟。

不知道楼主能不能用 C ext 和 wasmer-ruby 做个 profiling,看看在本地 gem 的 case 下哪个 overhead 更小。

数据类型比较严格,需要保证 i64,超过就凉了吧。。。

Reply to pynix

只是个演示。类型不严格的话,很难保证性能。

我就不懂 为什么不直接使用 rust 或者 go 而需要 ruby 过一手才香

Reply to Jim

确实,这么玩不如直接用 Rust 算了

huacnlee mark as excellent topic. 31 Aug 10:12
Reply to gaicitadie

WebAssembly 可读性还是很好的

我感觉挺好,直接用 Rust,你能赶上 ror 的开发速度?

写 Ruby 的 Rust binding 最好的是官方的 https://github.com/mozilla/uniffi-rs 吧?

You need to Sign in before reply, if you don't have an account, please Sign up first.