Navigate Select ESC Close

Mojo Is FASTER Than Rust

2024-02-10 Science & Technology
123.0k
3.1k
416
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Recorded live on twitch, GET IN https://twitch.tv/ThePrimeagen Become a backend engineer. Its my favorite site https://boot.dev/?promo=PRIMEYT This is also the best way to support me is to support yourself becoming a better backend engineer. Article link: https://www.modular.com/blog/outperforming-rust-benchmarks-with-mojo By: Mohamed Mabrouk MY MAIN YT CHANNEL: Has well edited engineering videos https://youtube.com/ThePrimeagen Discord https://discord.gg/ThePrimeagen Have something for me to read or react to?: https://www.reddit.com/r/ThePrimeagenReact/ Kinesis Advantage 360: https://bit.ly/Prime-Kinesis Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other)) https://turso.tech/deeznuts

Top Comments (10)

@shinjiku144 2024-02-10

How to scare a VIM user? Make them use their mouse 9:08

457 5 replies
@Dooezzz 2024-02-10

'Tensor is one eigenvalue less than elevensor' 😂

339 7 replies
@thatmg 2024-02-10

What an idiomatic pythonic nascent article this was.

75 1 replies
@CaptainOachkatzl 2024-02-10

write bad code -> write optimized code in different language -> post article -> wait till prime posts it with clickbait title

398 5 replies
@ragectl 2024-02-11

No performance benchmark articles or claims should be taken seriously unless they provide the full code examples, environment details, and details of all optimizations applied. Saying x is faster than y is "trust me bro" level.

40 1 replies
@magfal 2024-02-10

I taught a bioinformatician that he could run python or rust inside the database they were using: Postgres He took one of his jobs and moved it to the db to skip the overhead. It was a bit more than 100 times faster than how they had been doing that task.

144 9 replies
@djupstaten2328 2024-02-10

iterators/generators/coroutines are actually faster than traditional (while and for-in) loops in python because they are very thin c-wrappers under the hood (thinner than the original ones).

68 10 replies
@Endelin 2024-02-10

Watch Mojo be the name of some obscure snake species.

43 2 replies
@psychoinferno4227 2024-02-11

The rust crate is searching for both '\n' and '\r' while the Mojo function is only searching for one character which defaults to '\n'. Is it any wonder the Mojo version is faster when the Rust version is doing twice the work?

24
@halneufmille 2024-02-10

The end of the blog post of viralinstruction about this benchmark sums up my thought about Mojo and Julia perfectly: To me, Julia seems like such an obvious solution to the two-language problem in bioinformatics (and in deep learning). All the hard problems with bridging speed and dynamism have essentially been solved in Julia. At the same time, the language remains niche, mostly because it still has too many rough edges and usability issues, such as latency, the inability to statically analyse Julia or compile executable binaries. But these issues are not fundamental to the language - they're rather in the category of ordinary engineering problems. Solving them is mostly "just" a matter of putting in tens of thousands of professional dev hours, which is a matter of getting tens of millions of euros to pay for hiring people to do the job. It does grate me then, when someone else manages to raise 100M dollars on the premise of reinventing the wheel [a.k.a. Mojo] to solve the exact same problem, but from a worse starting point because they start from zero and they want to retain Python compatibility. Think of what money like that could do to Julia!

57 13 replies

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot