Python vs Rust (for simulation) Alisa Dammer ML Engineer at Repo: - - PowerPoint PPT Presentation

python vs rust
SMART_READER_LITE
LIVE PREVIEW

Python vs Rust (for simulation) Alisa Dammer ML Engineer at Repo: - - PowerPoint PPT Presentation

Python vs Rust (for simulation) Alisa Dammer ML Engineer at Repo: https://github.com/Alisa-lisa/conferences/tree/master/EP_2019 https://www.youtube.com/watch?v=hgry3vkuI 5Y What is Simulation? Approximate imitation Simulation States


slide-1
SLIDE 1

Python vs Rust…

(for simulation)

Alisa Dammer ML Engineer at Repo: https://github.com/Alisa-lisa/conferences/tree/master/EP_2019

slide-2
SLIDE 2

What is Simulation?

Approximate imitation States Transitions Simulation

https://www.youtube.com/watch?v=hgry3vkuI 5Y

slide-3
SLIDE 3

Types

Continuous Discrete-event Mixed

  • Taxi
  • Post Office
  • Manufacturing

pipeline

  • Network

protocols

  • Physics
  • Biology
  • Chemistry
  • Advanced

engineering systems

  • Forestry
  • Health care
  • Higher complexity

systems

slide-4
SLIDE 4

Tools

  • Frameworks (GUST)
  • Libraries (SimPy)
  • Game Engines (Unity)
  • Programming languages
slide-5
SLIDE 5

Important points

slide-6
SLIDE 6

Scenario

  • Spawn 0..N taxi requests with P chance
  • Request can be assigned to a FREE car only
  • Request gets cancelled after X seconds, if not

assigned

  • Cars are either FREE or OCCUPIED
  • 1 day of simulation
slide-7
SLIDE 7

Criteria

Objective:

  • Amount of code
  • Testing simplicity
  • Documentation generation (API or usage manual)
  • Performance
  • Memory usage
  • Ecosystem
  • Language versions (Major updates, breaking changes, etc.)

Subjective:

  • Code simplicity
  • Development speed
slide-8
SLIDE 8

Python

  • Lines: 94,
  • Performance: 209.036s+-16.96s
  • Memory usage:
slide-9
SLIDE 9

Rust

  • Lines: 160
  • Performance: 154.5ms +- 4.4ms
  • Memory usage:
slide-10
SLIDE 10

Comparison

criteria Python Rust Amount of code Test Simplicity Documentation Memory efficiency Performance Ecosystem Versions Simplicity Development speed

slide-11
SLIDE 11

Conclusion

What do you want to reach and what are your pain points?