Re:Artichoke – A Ruby made with Rust
by aardvark179 on Sunday August 04, 2019 @09:06AM
(#20606290)
What is your plan for C extensions? They are heavily used in Ruby and tend to create a tricky barrier to optimisation. The fact the standard library is mostly written in C doesn’t help either.
[ Parent
| on HN ]
Re:Artichoke – A Ruby made with Rust
by jashmatthews on Sunday August 04, 2019 @11:22AM
(#20607041)
Same thing LuaJIT does. Implement the really performance critical functions in IR and emit direct calls to C implementations of the complex ones.
In LuaJIT the FFI specifies enough type information to be able to call native functions from a trace.
I’m targeting optimizing through ActiveSupport String.blank? now I’ve got some micro benchmarks running.