3 ms·
Agreed. Ruby is more consistent than Python IMO, and has especially beautiful semantics for the list processing. It’s interesting, Ruby can be a bit more perfo
by burlesona 6y ago
Agreed. Ruby is more consistent than Python IMO, and has especially beautiful semantics for the list processing.
It’s interesting, Ruby can be a bit more performant too. I discovered this when I taught some ML stuff to a ruby group, and converted some Q Learning programs and maze navigating stuff from Python to Ruby, and was surprised to see the Ruby version run around 1.3-1.8x faster depending on what the code was doing. It’s not enough difference to really matter, but it just reinforced my “aww shucks” feeling that Ruby could have served that ecosystem very well.
- forgingahead 6y agoSounds fascinating - do you have the lecture / any code samples of that online?
- 7thaccount 6y agoAll the performance benchmarks I've seen over the years have shown Python to be significantly faster than Ruby. Keep in mind it doesn't matter a whole lot as the scientific stuff calls out to C or Fortran anyway.