at 26:36, we can declare variables inline like below: let (mut first, mut second) = (0, 1); OR let (mut first, mut second): (u32, u32) = (0, 1); //with implicit type declaration
@@AhmedAbdurrub that's wrong. Rust doesn't allow type annotations directly inside the tuple pattern like you have written. The correct way is: let (mut x, mut y): (i32, i32) = (0,1); This form correctly annotates the types for both x and y U can try it out if you have doubt.
@@ranit-biswas I meant the compiler would auto infer the types for the variables written in tuple pattern. However, you could explicitely mention the types as you stated.
@@AhmedAbdurrub yes right. when u write this way let (mut x, mut y) = (0,1); then auto type annotations would happen. But the way you have stated in your prev comment, i.e. let (mut x: i32, mut y: i32) = (0,1); This is incorrect
@@DeepanshuGautam-c5b try reading it and doing it the way you wish to. If someone feels that his video has helped him, why does one need to come up with what you've said ? You might be versed enough to understand everything from the documents . People like him and I can't at the moment.
You are the best. I read the docs but wss still confused. your explanations and good examples has made rust look easy, interesting and now makes me appreciate its beauty. Thanks so much
at 6:14:07 you should have gone from 0 threads to 7 as you are depending upon in to add that much lakhs or whatever the value you want to get ahead of with every iteration
Glad that Rust is gaining more traction in India. The more people learn it, the higher chances that companies will notice India has Rust talent and open more Rust jobs.
India, don't have Rust jobs? So If I create a Multithreaded server in Rust will the recruiter even consider that as a relevant project (keeping in mind the Complexity of the Language)?
@@annay2252 I don't think it will take anything away from the relevancy of your projects. Languages almost don't matter in that choice, _given that you qualify for other pre-requisites_ . So, if they're looking for a Go engineer, and you've enough Go experience/projects, _and then_ you have some Rust projects, it'll show that you understand the core of your domain much deeper, making your chances significantly higher. Of course since backend is not as exclusive of a domain and skills so transferrable across technologies, I doubt my example is actually that relevant. If you have experience in backend + projects in Rust, I suppose that's also good enough for a Go position.
@@annay2252 And to answer your first question, India has a growing amount of Rust jobs. It's surely significantly higher than what I used to see 1 year back on LinkedIn. But an increase from 1 to 2 is still a 100% increase, so take any statistics regarding relative growth with a grain of salt. Also there's a very high chance that most Rust jobs you'll encounter will be for web3, which is not something I'm sold on (yet, except for few niches).
Amazon tutorial !! Covers all the core topics and the advanced ones !! I had one small doubt at 1:56:03 the stack memory that the string type takes is always going to be 32 bits or it depends on the system architecture ?
Hi Harkirat Bhaiya , cohort 2 student here , first of all I want to appreciate your efforts and thank you to make such a awesome marathon , additionally I want to make a request to make a short video on job opportunities in rust , thank you !!
I wonder how you type that fast 🤯, if possible could you make a video out of it 🙏(about the shortcuts, going up and down and end of the line, making the changes...)
Hello kirat! we value your efforts! any actual jobs in rust, and i'm just begining with rust, what could be the road map? can we use rust in place of js to create full stack projects?
I am Complete Beginners But I Have Little Much Knowledge About HTML, CSS and Js And I'm Confused About what to do Next I think I'm Buy Harkirat Bhaiya's Cohort What to do Or Which cohort I buy In The next day's Please Guide me My Friends...
I would suggest you to buy harkirat's web dev cohort 3.0. Get a basic understanding of HTML, CSS and Some good level of JavaScript and then you are good to go with harkirat's course
Harkirat course is the best it will save a year I say if u try to do things on your own it will atleast take 1 year. But one condition if u have at least 4 hours daily buy it
🚨🚨🚨🚨Hello harkirat bhaiya I'm just starting out my 2nd year from yesterday I want to start learning web dev from scratch can I join your cohort 3.0 is it good for me to learn from there❓❓❓❓❓❓❓❓❓❓❓❓❓❓
@@PersonalAccount-j6o huuh u mean no one can say that "mujhe rust aati hai maine rust complete kar li " like no one can say "maine dsa complete kar li " ?
at 26:36, we can declare variables inline like below:
let (mut first, mut second) = (0, 1);
OR
let (mut first, mut second): (u32, u32) = (0, 1); //with implicit type declaration
its gonna be let (mut first: i32, mut second : i32) = (0, 1);
@@AhmedAbdurrub that's wrong. Rust doesn't allow type annotations directly inside the tuple pattern like you have written.
The correct way is:
let (mut x, mut y): (i32, i32) = (0,1);
This form correctly annotates the types for both x and y
U can try it out if you have doubt.
@@ranit-biswas I meant the compiler would auto infer the types for the variables written in tuple pattern. However, you could explicitely mention the types as you stated.
@@AhmedAbdurrub yes right. when u write this way let (mut x, mut y) = (0,1); then auto type annotations would happen.
But the way you have stated in your prev comment, i.e. let (mut x: i32, mut y: i32) = (0,1);
This is incorrect
Giving such precious knowledge away for free. Uplifting the community as usual. Keep Going... You are a legend.... Wish you the best
He is not giving away anything lol. He is just reading out the rust lang book. Which is already available for free.
True
@@DeepanshuGautam-c5b try reading it and doing it the way you wish to. If someone feels that his video has helped him, why does one need to come up with what you've said ? You might be versed enough to understand everything from the documents . People like him and I can't at the moment.
I started learning Rust from yesterday and today this video comes up. TIMING!
same here brother
Same Bro 😅
@@videosbuff Learn Golang
@@Z3U5.0g why?
@@021biomedical It’s better
waheguru chardi kla bakshe veer
Just yesterday, I was thinking about learning Rust and even set it up locally. And today, this guy comes out with a Rust marathon-perfect timing!
You are the best. I read the docs but wss still confused. your explanations and good examples has made rust look easy, interesting and now makes me appreciate its beauty. Thanks so much
Such a quality content for free. Best thing is, it is relatable and not some 10hr video taking unreal examples
You are a legend, very easy to understand. Thank you very much, waiting for async / tokio video 😊
the way harkirat teach us ✨, thank youuuu
btw if u guys know c++ througly then this language u can learn easily
at 6:14:07 you should have gone from 0 threads to 7 as you are depending upon in to add that much lakhs or whatever the value you want to get ahead of with every iteration
LETSGOOO!!!!! Been waiting fr this for so long
same
Kirat has officially become torchbearer for the new blockchain world now!
Rust can be used for blockchain?
For solana development probably @@NishaUchil
@@NishaUchil yes
@@NishaUchil langauge required to build smart contracts on solana blockchain.
Just when I needed it the most, thank you very much bhai.
Thankyou so much for this !! I recently completed your 1st part some days ago and I was eagerly waiting for this
felt like marathon , completed the whole video in a day , gonna make some cool rust project next day then anchor contracts .
Thanks Harkirat
I did same!! However made few cool projects earlier then came here as i faced problems but after this i feel confident
One of the best of lessons in teaching Rust, really appriciated
Glad that Rust is gaining more traction in India. The more people learn it, the higher chances that companies will notice India has Rust talent and open more Rust jobs.
India, don't have Rust jobs? So If I create a Multithreaded server in Rust will the recruiter even consider that as a relevant project (keeping in mind the Complexity of the Language)?
@@annay2252 I don't think it will take anything away from the relevancy of your projects. Languages almost don't matter in that choice, _given that you qualify for other pre-requisites_ . So, if they're looking for a Go engineer, and you've enough Go experience/projects, _and then_ you have some Rust projects, it'll show that you understand the core of your domain much deeper, making your chances significantly higher. Of course since backend is not as exclusive of a domain and skills so transferrable across technologies, I doubt my example is actually that relevant. If you have experience in backend + projects in Rust, I suppose that's also good enough for a Go position.
@@annay2252 And to answer your first question, India has a growing amount of Rust jobs. It's surely significantly higher than what I used to see 1 year back on LinkedIn. But an increase from 1 to 2 is still a 100% increase, so take any statistics regarding relative growth with a grain of salt. Also there's a very high chance that most Rust jobs you'll encounter will be for web3, which is not something I'm sold on (yet, except for few niches).
Life time was not hard because of your accurate explanation
Want next part mannn!!!
eager to complete rust to understand backend..
really nice video thanks kirat, also
GIVE MORE
ASYNC VIDEO NEEDED
Wooooooo, I was following him when he was in IIT Roorkee (not Bombay okay), i literally seen him growing 😅 but unable to apply his things on me
I guess you mean IIT Roorkee
kya fan banega re tu 😂😂
He was in IIT ROORKEE NOT BOMBAY LMAO
@@ayushnews5735
Brokie go and get a job
@@ayushnews5735😂
Thank you for understanding better about lifetime
Most awaited video ❤
Dil Jeet liya paaji aaj ka material mil gya ❤❤
Thank you for this rust language 🙏
There are many more concepts which is not included you can go for Rust Book to learn more Rust saying as a rust junkie
I agree as a Rustacean.
thanks man cant wait for the next part
Hi sir big fan,i watch all your videos, you gave so much depth knowledge.
Finally, it’s here. ❤️
Thank you so much for teaching rust ❤❤❤❤❤❤
FINALLY COMPLETED !!!
The more controversies and fight on X make harkirat more authentic
Amazon tutorial !!
Covers all the core topics and the advanced ones !!
I had one small doubt at 1:56:03 the stack memory that the string type takes is always going to be 32 bits or it depends on the system architecture ?
Great video please do a video for backend on rust as well
Avi mjaaa ayega biduuu ✨
talk bout timing, i know what i am going to do this weekend yey
mindblowing rust bootcamp man
Hi Harkirat Bhaiya , cohort 2 student here , first of all I want to appreciate your efforts and thank you to make such a awesome marathon , additionally I want to make a request to make a short video on job opportunities in rust , thank you !!
Wooo wating for it since yesterday brcos i wach part 1 yesterday 😂😂
5:36:56
gareeb bolna ka tareeka thoda casual tha 🤣🤣🤣🤣🤣🤣
I wonder how you type that fast 🤯, if possible could you make a video out of it 🙏(about the shortcuts, going up and down and end of the line, making the changes...)
Thanks 🙏.
Harm Rihanna again.😂
waiting for it for past one month
damn i was waiting for this
A lot of love from Pakistan ❤
would love to see similar tutorial on GO
I was waiting for it, but I completed rust book TwT now lol~
Thank you so much 😊😊😊
Sir, drop a marathon video on solana development too with projects
Bro please post such video for Javascript and React. We have many beginners level videos but no advanced level videos
love it! ♥
2:48:13 this came to my mind and he actually wrote it!!! xD
Day 4 -> 4:34:51
Lo bhai, mal aa gayaa 🎉
Thanks Bhai app hamara liya kitna free knowledge lata ho
Harkirat is the GOAT
Hello kirat! we value your efforts! any actual jobs in rust, and i'm just begining with rust, what could be the road map? can we use rust in place of js to create full stack projects?
😳 finally!
Ultra pro max legend
im not in the position to watch this but i know this tutorial is great
Next specifically on concurrency in golang and how to utilise it efficiently🙏
Finally!!!!
bro casually drops a 6 hour rust bootcamp like it's nothing
Aisa hi ek golang ka bhi ksrdo bhaiyya
Let's go ❤
Are eternal wait come to an end🙃
kirat looks dead inside on this thumbnail
Please teach golang ( especially for cloud & devops Tasks)
2:48:16 what was that?
humour
hey Harkirat could you plz learn us with rust book? it's help us most..
Do a dsa primer.
bhaiya when is cohort coming
Bhaiya so much respect for you bombay aao to btao
What is the use of rust? Why should i learn this?
used for creating smart contracts on solana blockchain
@@AhmedAbdurrub and ICP
I am Complete Beginners But I Have Little Much Knowledge About HTML, CSS and Js And I'm Confused About what to do Next I think I'm Buy Harkirat Bhaiya's Cohort What to do Or Which cohort I buy In The next day's Please Guide me My Friends...
I would suggest you to buy harkirat's web dev cohort 3.0.
Get a basic understanding of HTML, CSS and Some good level of JavaScript and then you are good to go with harkirat's course
Harkirat course is the best it will save a year I say if u try to do things on your own it will atleast take 1 year.
But one condition if u have at least 4 hours daily buy it
@@TejasM-su4on yes I'll Try It Bhai 👍
@@Biradar_Ganesh yes That Web Dev and Devops Cohort
1:08:17
Vaiya rust ka ek project lao
im new to web 3 and wanted to learn , which could be best for me " Solidity " or " Rust " ?
it depends on what are you working on, if u r working Etherum go for solidity and if u are working with solana go for Rust
bro add some more free courses on topic like reactjs
harkirat can you tell which keyboard you are using
He use macbook
where is part 3
2:40:55 Best example LMAO!!!!
Python Please!!!
Timestamps please
Come on, admit it, are you hammered while clicking on this thumbnail? 🍻
Any one please suggest me where i can contribute open source #rust projects
github
6:20:25 lol
somewaht rust same as golang, looks like golang inspired from rust, javascript and python
what is * here?
Done
🚨🚨🚨🚨Hello harkirat bhaiya I'm just starting out my 2nd year from yesterday I want to start learning web dev from scratch can I join your cohort 3.0 is it good for me to learn from there❓❓❓❓❓❓❓❓❓❓❓❓❓❓
Bro thinks he's Tech Jesus(he is)
Do you prefer Golang over Rust? I mean Rust can easily become unsafe and complicated.
It's not unsafe but it's complicated
@@venugopal-nc3nz Go to google and search “unsafe rust”
Bro speaks in 1.5x fr
I watch in 2x
@@Schrödinger3 I watch in 3x
@@kishorevb8331 I watch at 5.5x
@@khushvadher i dont watch
job he bhai market me 😢. sirf videos se paise kmavo tum log
those who are thinking they will learn rust by watching this are real life🤡🤡🤡🤡
Wdym???
@@SahilKumar-qx3xi i mean "those who r thinking they will learn rust are real life jokers"
@@PersonalAccount-j6o huuh u mean no one can say that "mujhe rust aati hai maine rust complete kar li " like no one can say "maine dsa complete kar li "
?
agdddddddddddddddddddddddddddddddddddd
First comment😅
Great thumbnail genrated from AI but at the top AI halicinate we can do it better.
fn main() {
let vec = vec![1,2,3,4];
let mut new_vec = Vec::new();
let first_iter = vec.iter();
let odd_iter = first_iter.filter(|x| *x % 2 != 0);
for i in odd_iter {
new_vec.push(i * 2);
}
println!("{:?}", vec);
println!("{:?}", new_vec);
}
//output
[1, 2, 3, 4]
[2, 6]