News for hackers. Stuff that matters.
Re:Artichoke – A Ruby made with Rust by Exuma on Sunday August 04, 2019 @01:27AM (#20604582)
I wonder how much this would change the performance of ruby... that's all kind of cool except no c extensions, that basically makes all the gems I use unusable.
Re:Artichoke – A Ruby made with Rust by dymk on Sunday August 04, 2019 @02:00AM (#20604673)
They're going to have to spend an immense amount of time implementing all the performance optimizations present in mri/yarv bytecode engine before they achieve performance parity.

The amount of engineering effort to remove the GIL and simultaniously make C extensions work is probably not worth simply choosing a multi-process w/ shared memory solution for true parallelism.

Re:Artichoke – A Ruby made with Rust by p4lindromica on Sunday August 04, 2019 @05:09AM (#20605308)
Hi, I'm the author of Artichoke.

I wouldn't say all gems are unusable. I implemented a Rack-compatible application server in an early version of Artichoke that is capable of serving a Sinatra Rack app.

https://github.com/artichoke/ferrocarril

Re:Artichoke – A Ruby made with Rust by pmontra on Sunday August 04, 2019 @02:11PM (#20608215)
JRuby doesn't support C extensions too https://github.com/jruby/jruby/wiki/C-Extension-Alternatives

It's a parallel world in which developers either use pure Ruby gems or Java jars. For example, the database drivers are JDBC adapters straight from the Java world not the usual mysql2 or pg gems. Obviously the programs that use them are not portable unless there is a compatibility layer. In that example, ActiveRecord abstracts the drivers.

I don't know anything about Rust but maybe it could end up in the same way.