Rust For PHP Developers

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

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

  • @Atiradeonvideo
    @Atiradeonvideo Год назад +15

    Nuno is doing so much stuff for the community, the language and the framework.

  • @spicynoodle7419
    @spicynoodle7419 Год назад +21

    This is very interesting because PHP and Rust are polar opposites. The most dynamic language vs the most static language

  • @jonathanhavens7183
    @jonathanhavens7183 Год назад +8

    Loved this. Personally, I've rarely seen rust tuts that provide insights in comparison to PHP.
    Laracasts series that expands on this video? Would be awesome! A Laracasts series that expands on this using full-blown framework like Rust's 'Rocket' would be incredible! Especially coming from you!
    Regardless, thank you for this Nuno!

  • @wadecodez
    @wadecodez Год назад +3

    Well done! I use Laravel daily and was looking for a simple introduction to Rust because the borrow checker and lifetimes are a bit of a burden. Looking forward to what the Laravel community brings to Rust!

    • @nunomaduro
      @nunomaduro  10 месяцев назад

      Glad it was helpful!

  • @Ste90etS
    @Ste90etS Год назад +6

    Great! You should have a series “X for PHP developers” with other languages! You are great at explaining things in a comprehensible yet engaging way!

    • @xipepe
      @xipepe 8 месяцев назад

      You described it very well.

  • @johanrg70
    @johanrg70 Год назад +5

    If you are using the terminal all the time, there's one shortcut that you should learn immediately and that is cmd+L or ctrl+L, this clears the terminal window, don't type clear.

    • @fil22222
      @fil22222 27 дней назад

      But the tradeoff is you will forgot 'clear' command.

  • @rajadking
    @rajadking Год назад +1

    Fantastic tut bro! I'm a laravel guy and we were internally talking about learning Rust for a fintech project and your video helps very much to begin the journey. PS: I was pleased to meet you in Laracon India 2023

  • @myagmarsurensedjav
    @myagmarsurensedjav 11 месяцев назад +1

    Wow, very impressive talk. Thank you Nuno

  • @ErmandDurro
    @ErmandDurro Год назад +2

    Great video! Thank you Nuno 😃

  • @rickybarabba7866
    @rickybarabba7866 Год назад +2

    Great presentation...very inspiring.

  • @HaraldEngels
    @HaraldEngels 9 месяцев назад +2

    Wow, watching this video was an enlightenment. I will go on now to learn some Rust. What would have been of interest for me is, how to connect Rust via FFI with PHP.

    • @Gramini
      @Gramini 3 месяца назад

      An alternative approach to combining Rust with PHP would be a PHP extension written in Rust. There's a library/crate called "ext-php-rs" that does the heavy lifting. Might be easier than dealing with FFI.

  • @TioJobs
    @TioJobs Год назад +1

    Wow! watching now!

  • @sabuein
    @sabuein Год назад +1

    Thank you.

  • @Andrejs31
    @Andrejs31 Год назад +1

    Thank you for this!

  • @joaosalomao6249
    @joaosalomao6249 10 месяцев назад +1

    Really cool! Thanks Nuno

  • @danielfelipe7817
    @danielfelipe7817 Год назад +1

    I was waiting for this 🤩

  • @vitaliinevada7888
    @vitaliinevada7888 7 месяцев назад

    Very cool talk, thanks a lot for the inspiration.

  • @saidbakr
    @saidbakr 3 месяца назад

    You are a magician! Wonderful.

  • @kingbeencent
    @kingbeencent 3 месяца назад

    I really learned a lot with this video!!

  • @shubhamsahuSD
    @shubhamsahuSD Год назад +1

    While me commenting.. "Livewire is love"

  • @vitorcampos7077
    @vitorcampos7077 Год назад +1

    Rust is awesome

  • @dmitriidemenev5258
    @dmitriidemenev5258 Год назад +1

    Hi,
    On 20:33 I would use pattern matching instead of dealing with indices
    ```rust
    match args.as_slice() {
    [] => unreachable!("env::args() is expected to always provide the executable path as the first arg"),
    [_executable] => display_help(),
    [_executable, command, c_args @ ..] => handle_command((command, c_args)),
    };
    ```
    And on 21:35 I would use plain `return` keyword instead of `process::exit(0)`. Even though it's rarely used, it's handy in this case.

  • @amritasingh627
    @amritasingh627 Год назад +2

    loved the video, just one question why is it related to PHP? are we going to use Rust in PHP? I am confused.

    • @yungifez
      @yungifez Год назад +4

      It's never a bad idea to broaden your knowledge on different paradigms

    • @nunomaduro
      @nunomaduro  Год назад +5

      Rust and PHP solve different problems. However, in this video, I try to explain Rust from a PHP developer perspective so it gets a little bit easier for them.

    • @virtual-reality
      @virtual-reality Год назад +1

      @@nunomaduro this is perfect. because i was having trouble with gravitational forces, but i was good at magnetism. so my teacher basically re-taught gravity stuff using magnetism. sometimes all you need is a "topic-adaptor" :)

  • @ulrich-tonmoy
    @ulrich-tonmoy Год назад +1

    Hows zig compared to rust in safety

  • @MohammadJunaid96
    @MohammadJunaid96 Год назад +1

    do you actually use light mode or is it just for the presentation? :|

    • @nunomaduro
      @nunomaduro  Год назад +1

      It depends. I like to change.

  • @neptronix
    @neptronix Год назад +2

    You just convinced me to never try Rust!

  • @hassewilson
    @hassewilson Год назад +1

    What editor are you using?

  • @bjo004
    @bjo004 Год назад

    06:42. Installing Rust on Windows is a bit more involving. You'll need some Windows SDKs and the curl command will not work on Windows.

  • @xipepe
    @xipepe 8 месяцев назад

    All of a sudden I want to try Rust without leaving PHP.

  • @aleksandarsavanovic4746
    @aleksandarsavanovic4746 Год назад

    I think it wold be great idea for someon to make Rustvel, combining speed of the Rust and elegancy of Laravel, i know thre are many php specific "things" in Laravel but i don't think it would be that difficult to make same fucntionalities in Rust, plus Rust is great for OOP and functional programming....and you can make front and back end with it so the framework could highspeed fullstac.

    • @chibuzorogbu4081
      @chibuzorogbu4081 7 месяцев назад

      sorry no reflections in Rust, but then again there is the crowd for rust that tend to think differently about all batteries-included frameworks.

    • @edism
      @edism 2 месяца назад

      ​@@chibuzorogbu4081 exactly, in Rust, you'd need to rely on static analysis and code generation rather than runtime introspection. Rust’s macro system and generics can help here. Procedural macros allow for compile-time code introspection and manipulation, emulating Laravel’s features. This approach benefits from Rust's performance, security, and reliability, avoiding the overhead of runtime reflection.

  • @simpingsyndrome
    @simpingsyndrome Год назад

    next Typescript for PHP developers wkwk