Rust For PHP Developers

  Рет қаралды 26,135

Nuno Maduro

Nuno Maduro

Күн бұрын

You’ve probably heard stories about the Rust programming language, and you’re probably wondering why it’s becoming so popular. In this talk, you’ll see what Rust is from a PHP developer’s perspective. Get ready for a live-coding session, where we are going to recreate an existing PHP application in Rust, from scratch, and demystify all the awesomeness behind it.

Пікірлер: 43
@myagmarsurensedjav
@myagmarsurensedjav Жыл бұрын
Wow, very impressive talk. Thank you Nuno
@wadecodez
@wadecodez Жыл бұрын
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 11 ай бұрын
Glad it was helpful!
@spicynoodle7419
@spicynoodle7419 Жыл бұрын
This is very interesting because PHP and Rust are polar opposites. The most dynamic language vs the most static language
@joaosalomao6249
@joaosalomao6249 11 ай бұрын
Really cool! Thanks Nuno
@saidbakr
@saidbakr 5 ай бұрын
You are a magician! Wonderful.
@vitorcampos7077
@vitorcampos7077 Жыл бұрын
Rust is awesome
@ulrich-tonmoy
@ulrich-tonmoy Жыл бұрын
Hows zig compared to rust in safety
@neptronix
@neptronix Жыл бұрын
You just convinced me to never try Rust!
@Atiradeonvideo
@Atiradeonvideo Жыл бұрын
Nuno is doing so much stuff for the community, the language and the framework.
@jonathanhavens7183
@jonathanhavens7183 Жыл бұрын
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!
@johanrg70
@johanrg70 Жыл бұрын
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 Ай бұрын
But the tradeoff is you will forgot 'clear' command.
@shubhamsahuSD
@shubhamsahuSD Жыл бұрын
While me commenting.. "Livewire is love"
@HaraldEngels
@HaraldEngels 10 ай бұрын
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 4 ай бұрын
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.
@rajadking
@rajadking Жыл бұрын
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
@rickybarabba7866
@rickybarabba7866 Жыл бұрын
Great presentation...very inspiring.
@ErmandDurro
@ErmandDurro Жыл бұрын
Great video! Thank you Nuno 😃
@MohammadJunaid96
@MohammadJunaid96 Жыл бұрын
do you actually use light mode or is it just for the presentation? :|
@nunomaduro
@nunomaduro Жыл бұрын
It depends. I like to change.
@amritasingh627
@amritasingh627 Жыл бұрын
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 Жыл бұрын
It's never a bad idea to broaden your knowledge on different paradigms
@nunomaduro
@nunomaduro Жыл бұрын
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 Жыл бұрын
@@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" :)
@hassewilson
@hassewilson Жыл бұрын
What editor are you using?
@nunomaduro
@nunomaduro Жыл бұрын
Sublime Text.
@xipepe
@xipepe 9 ай бұрын
All of a sudden I want to try Rust without leaving PHP.
@TioJobs
@TioJobs Жыл бұрын
Wow! watching now!
@dmitriidemenev5258
@dmitriidemenev5258 Жыл бұрын
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.
@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.
@sabuein
@sabuein Жыл бұрын
Thank you.
@danielfelipe7817
@danielfelipe7817 Жыл бұрын
I was waiting for this 🤩
@Andrejs31
@Andrejs31 Жыл бұрын
Thank you for this!
@Ste90etS
@Ste90etS Жыл бұрын
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 9 ай бұрын
You described it very well.
@kingbeencent
@kingbeencent 4 ай бұрын
I really learned a lot with this video!!
@vitaliinevada7888
@vitaliinevada7888 8 ай бұрын
Very cool talk, thanks a lot for the inspiration.
@simpingsyndrome
@simpingsyndrome Жыл бұрын
next Typescript for PHP developers wkwk
@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 8 ай бұрын
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 3 ай бұрын
​@@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.
Laracon IN 2023: The future of PEST
36:38
Nuno Maduro
Рет қаралды 10 М.
PHP on the frontend! No more Javascript!
14:47
Aaron Francis
Рет қаралды 123 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 56 МЛН
The Rust Standard Library is SO Confusing...Until Now!
11:45
Travis Media
Рет қаралды 28 М.
PHP isn't dead feat. the Laravel Origins cast
11:25
OfferZen Origins
Рет қаралды 42 М.
An Introduction to Coding In Rust for Pythonistas
20:42
ArjanCodes
Рет қаралды 126 М.
In Defence of PHP - Stephen Rees-Carter - NDC Security 2023
59:47
NDC Conferences
Рет қаралды 19 М.
Parse Rust CLI Args With Clap 🦀 Rust Tutorial
54:03
Trevor Sullivan
Рет қаралды 11 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 146 М.
why rust libraries may never exist.
7:26
Low Level
Рет қаралды 257 М.
PHP is the future
34:27
Aaron Francis
Рет қаралды 177 М.
Why is the JavaScript ecosystem switching to Rust?
48:08
chris biscardi
Рет қаралды 131 М.