From Python to Rust. Part 2: Strings, Functions & Crates/Modules.

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 9

  • @GoonCity777
    @GoonCity777 4 года назад +7

    As a python developer who is fine enough with a superficial kowledge of rust for now, these videos are extremely incredible. Thanks! The C++ like speed gains are great and seemingly is built for modern situations.

  • @daydreamerforex3720
    @daydreamerforex3720 4 года назад

    amazing !
    waiting for the next one.

  • @LanaDominkovic
    @LanaDominkovic 3 года назад +1

    Awesome video. I am wondering how frequently is Rust used for Bioinformatics purposes comparing to Python?

    • @rebelScience
      @rebelScience  2 года назад

      Hi! There is no statistics on that, as people just use whatever is needed, when it is needed. Example: I would use Python for 90% of the code and 10% would be written in Rust, but only if it runs significantly faster than Python. I would say there is no reason to use anything but Python for Biotech, until you run into execution time issues. And even when you do, there probably is a way to optimize your Python, using NumPy for example.

  • @ayushverma2592
    @ayushverma2592 3 года назад

    nice video
    could you please explain how to use SAM and BAM file in rust

  • @hanes2
    @hanes2 4 года назад +1

    why do you use include!() instead of mod?

    • @rebelScience
      @rebelScience  4 года назад +2

      Hey! In my intro video and the rest of the Rust videos I mention that we are trying to make the code look as similar to each other as possible to let Python people transition as easy as possible. In my next videos I will go over a concept of namespaces and why we should use mod. Both, include and mod are a viable solution and a part of the official documentation. Using mod, of course, is a preferred way.

    • @hanes2
      @hanes2 4 года назад

      rebelCoder it looks like something from PHP include than pythons import