News for hackers. Stuff that matters.
Re:Attempts to make Python fast by jashmatthews on Wednesday October 21, 2020 @02:21PM (#24850577)
Chris already proved we can do exactly that for Ruby with TruffleRuby. I don’t think there’s any reason GraalPython couldn’t do the same given more work?
Re:Attempts to make Python fast by arc776 on Wednesday October 21, 2020 @02:41PM (#24850742)
I'm not familiar with Ruby, but it doesn't seem like TruffleRuby is really competitive with languages known for performance.

These are only simple benchmarks, but do indicate a rough ballpark for TruffleRuby: https://github.com/kostya/benchmarks

As I understand it, Crystal would be a good Ruby alternative if you want performance. This is of course a whole new language designed with performance in mind from the beginning and here is a repeating theme: you need to consider performance at the start, not 20 years later.

Re:Attempts to make Python fast by jashmatthews on Wednesday October 21, 2020 @03:01PM (#24850915)
Without running again using GraalVM EE which TruffleRuby needs for things like Partial Escape Analysis these benchmarks aren’t very useful. I’ve made the same mistake myself before when benchmarking TR.

Crystal has wildly different semantics to Ruby, so it’s not a good alternative at all.

Re:Attempts to make Python fast by arc776 on Wednesday October 21, 2020 @06:54PM (#24853160)
Ah, that's a good point. It would be interesting to see fairer benchmarks for TruffleRuby after reading about some of the optimisations they're able to make.