Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby is not slow anymore

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Ruby is not slow anymore

Slide 25 has the video. You can find it here https://youtu.be/qxZ2ste7RyA

Avatar for Pavel Kalashnikov

Pavel Kalashnikov

April 03, 2023
Tweet

Other Decks in Programming

Transcript

  1. 1 2 3 4 5 6 7 8 9 10

    11 12 13 14 the_fastest_lang.rb faster.cpp @kalashnikovisme @evilmartians def sum_eq_n?(arr, n) return true if arr.empty? && n == 0 arr.product(arr).reject do |a,b| a == b end.any? { |a,b| a + b == n } end Is this slow?
  2. 1 2 3 4 5 6 7 8 9 10

    11 12 13 14 the_fastest_lang.rb faster.cpp @kalashnikovisme @evilmartians def some_method sleep Random.rand(1_000_000) end or this?
  3. MRI / YARV - slow ? @kalashnikovisme @evilmartians JRuby /

    JVM - slow ? What virtual machine? (interpreter, runtime)
  4. MRI / YARV - slow ? @kalashnikovisme @evilmartians JRuby /

    JVM - slow ? Rubinius - slow ? What virtual machine? (interpreter, runtime)
  5. @kalashnikovisme @evilmartians Ruby Class Magnus Type String RString Integer Integer

    Float Float Array RArray Hash RHash Symbol Symbol Class RClass Module RModule
  6. Thanks for watching @kalashnikovisme @evilmartians and don’t forget to subscribe!

    @kalashnikovisme @kalashnikovisme kalashnikovisme.medium.com [email protected] @evilmartians @evilmartians https://evilmartians.com