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?
[ Parent
| on HN ]
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.