Skip to content

Don't rewrite it in Rust. Rewrite the 5% that's slow: profile your app, port the hot functions with your coding agent, prove they behave the same. Python, JS/TS, Ruby, Java, Kotlin, Go, PHP, C/C++, C#, R.

ruby: fix shim call in the NaN test after #126

EL4CTEO85be624c56f4
diff --git a/src/ruby.rs b/src/ruby.rs
index b627af5..55acaaa 100644
--- a/src/ruby.rs
+++ b/src/ruby.rs
@@ -470,7 +470,7 @@ mod tests {
line: 1,
sources: vec![],
};
- fs::write(dir.join("shim.rb"), shim(&port, "../.fast/lib/libfa_app_rb_mean.so")).unwrap();
+ fs::write(dir.join("shim.rb"), shim(&port, &[], "../.fast/lib/libfa_app_rb_mean.so")).unwrap();
let check = r#"
require_relative "recorder"
nan, inf = Float::NAN, Float::INFINITY