Out of curiosity, I tried how fast the cumulative sum is in Rust, and the time spent per element is around 0.005 ns. Below is the code I've used: use std::time::Instant; const SIZE: usize = 10000; fn cumsum(vec: Vec<i32>) -> Vec<i32> { let mut acc = 0; vec.iter() .map(|x| { acc += x; acc }) .collect() } fn main() { let vec = vec![1; SIZE]; let now = Instant::now(); let cumsum = cumsum(vec); let end = now.elapsed().as_nanos(); println!( "Time spent per element: {:?} ns", end as f64 / (SIZE as f64), ); println!("{:?}", cumsum.len()); }
@encapsulatioАй бұрын
Audio does not exist for the speaker.
@Bidek56Ай бұрын
Ritchie is the best ❤😂
@senhajirhazihamza77182 ай бұрын
It seems that the rust implementation is not equivalent to mojo’s because you allocate the space at first in the Mojo list (a malloc…) and in the second case of rust you does’nt, which means that rust will have to allocate the size by himself without knowing the size of the list, so each time when the precedent size allocated isn’t sufficient, rust will reallocate ( i might be wrong but it seems like that to me)
@iceX33Ай бұрын
This is true, but the time is taken after the list is populated in Rust and in Mojo. So the list population logic should be irrelevant, except if the Rust compiler decided to move `let tik = Instant: :now();` statement up.
@Whatthetrash2 ай бұрын
This is so cool! Nice to see you Arjan! :)
@CoombesJD2 ай бұрын
Thanks for this talk
@DaveAronson2 ай бұрын
There's a bit of a dropout at 11:54. Far as I can recall, the words between are: "any side effects. Mainly it could return any of *these* constants or expressions -- and many more, but I had to stop somewhere."
@grzegorzryznar51012 ай бұрын
Thank you for this! Keeping eye on Mojo from a while
@gretamozeikaite3174 ай бұрын
Can`t wait!!!
@Aidisstukas1954 ай бұрын
Let's go!
@ninjabeatz9058 ай бұрын
awesomeness
@user-qi5kb5th7y9 ай бұрын
man, 40 minutes in and you JUST STARTED talking about mypyc? what a waste of time this guy is.
@_elkd10 ай бұрын
Best talks on Pydantic
@andrechristensen448811 ай бұрын
P r o m o s m
@ekrako7611 ай бұрын
Is there a link to the slide deck?
@Follo_me Жыл бұрын
Санёк красава
@JPy90 Жыл бұрын
ídolo
@davidisavid Жыл бұрын
🔥🔥🔥🔥🔥
@ahmedelamraoui3585 Жыл бұрын
ربي وفقه لكل خير وأنعم عليه بالصحة والعافية ووفقه لما تحبه وترضاه يارب العالمين
@nunoalexandre6408 Жыл бұрын
Love it!!!!!!!!!!!!!!!!!
@robertmazurowski5974 Жыл бұрын
How do you configure mypy wiith fast api? I cant get it to work nicely together?
@akashb7515 Жыл бұрын
Dude never forgotten to give credit.
@shubham_dev_coders5629 Жыл бұрын
Awesome talk by FastApi creator.👌
@antoinel1029 Жыл бұрын
thank you, nice talk
@daytraderph Жыл бұрын
fastapi still don't have throttling like django
@Adam-yf2ux Жыл бұрын
Thanks for uploading ! Good stuff.
@CliffordFajardo2 жыл бұрын
00:40 - who is sebastian ramirez (creator of FastAPI) 2:20 - modern python features "f-strings" 3:57 - modern python features "Type annotiations" 9:30 - type annotations with FastAPI 11:09 - FastAPI's free autogenerated documentation 13:50 - standards FastAPI is built on 14:07 - modern python type annotations using Typer 17:28 - FastAPI with Pydantic (data validation section of FastAPI) 21:44 - FastAPI with SQL 23:54 - modern python with async/await & how FastAPI takes advantage of it 29:36 - performance with FastAPI 32:47 - FastAPI open source community 33:23 - start of Question & Answers from audience
@jriggatx2 жыл бұрын
As someone coming back to Python after about 4 years, I really appreciate this overview of the current ecosystem.
@gurmohitsinghgrover76942 жыл бұрын
So python will soon become scala 3.
@aureliojmnz29592 жыл бұрын
Hermosooo hombre. What package/module to implement two-factor authentication, or 2FA implementation through FastAPI?
@Cpd92 жыл бұрын
Already convinced in the first 2 mins 👌🏽
@juliocefe18072 жыл бұрын
23:57 "python as a programming languages is very fast when you compare it... don't look at me like that xdd... when you compare it with the network" xD
@gofudgeyourselves90242 жыл бұрын
ok
@__________________________69102 жыл бұрын
Wow
@jakalsable2 жыл бұрын
Thanks a lot for this comprehensive overview of your doing. I'm working with FastAPI and am loving it. :)