r/rust • u/KeironLowe • 18h ago
đď¸ discussion Laravel Rust
Iâm primarily a PHP engineer, but wondering how the Rust Community feel about the announcement of Laravel Rust (https://laravel.com/rust)?
127
Upvotes
26
u/Puspendra007 18h ago
Anyone used it? Performance? Speed? Any review?
Rust having a great structure already so what's special in this laravel rust?
41
u/nicoburns 15h ago
Well damn. I think we can officially declare ourselves to be "web yet".
For those unaware, Laravel is one a very select few frameworks that competes with Ruby on Rails. Most language ecosystems do not have an equivalent.
A version for Rust is big deal.
10
u/mikidimaikki 18h ago
Damn! I think Topcoat is aiming for something similar as Laravel when it comes to productivity. Almost feels like April fools to see Laravel rewritten in Rust all the sudden, but I would expect there to be a long tail of bugs to be tackled. The first commit is less than two months ago btw: https://github.com/laravel/rust
10
u/protocod 17h ago
I've learned programming by doing some Laravel websites a long time ago. Docker didn't exist, REST API wasn't a thing.
I've wonderful memories with Laravel. Great development experience. I tried other framework back then, Django, Ruby On Rails but my favorite stays Laravel.
Many years later, during my computer science degree I started to enjoy system programming more and now I'm doing rust professionally since 2021.
Axum is a great piece of software but it's like a low level library for making async Http server where something like Laravel is a battery included framework designed for productivity by using convention over configuration principle, scaffolding, ORM etc.
However programming and web development is so much different nowadays. I don't know if I would enjoy to do website like I did many years ago.
17
u/real_serviceloom 18h ago
Looks pretty good ngl
20
u/Far-Habit-2713 18h ago edited 16h ago
Wow. This is actually nice!
Like exactly what o actually need to bootstrap new service. Skills included. Authentication and authorization. When it comes to frontedy i usually do simple backed generation with htmx for dynamic but im open for something new that will actually speed up development.
7
u/wartab 16h ago
Checked a bit of the documentation and this does seem pretty cool. It's building on top of Axum, Tokio, Serde etc.
6
u/lambdacomplex_ 17h ago
Is this completely new web framework for Rust, isn't it? If it has no connection to PHP, I will give it a try.
10
u/_nathata 17h ago
I don't hate it
3
u/jpmateo022 14h ago
It has a good architecture probably may bring more developers to learn Rust.
But I did not expect the Laravel team will be the one making the rust version because I thought they only focus on JS and PHP
7
u/millenialSpirou 6h ago
looks like slop to me https://github.com/laravel/rust/blob/0.x/.agents/skills/writing-laravel-rust-apps/scripts/docs-path.sh
2
u/tastychaii 16h ago
Thanks OP for sharing
2
u/DryanaGhuba 16h ago
It's interesting, but as usual I stopped being happy about rust projects as they usually low effort llm driven
1
u/Beneficial_Owl_6445 16h ago
WoW
1
u/Alternative-Tie-4970 16h ago
I am completely out of the loop of this one. What is it trying to do?
1
u/kyle787 14h ago
This is kinda crazy actually. I remember using Laravel years ago when it just came out, made Yii and symfony feel like working with sticks and stones lol
1
u/dhbradshaw 12h ago
Love it
1
u/dumindunuwan 10h ago
Taylor Otwell write Rust now đ
1
u/FiammaOfTheRight 8h ago
Benchmarks are strange. Also, my lazy ass internal framework that i did because i needed to handle client disconnects somehow outpreforms this on same bench even though i have no idea how to write proper server.
Compile times are going to cook vibecoding on Rust vs LaraPHP, slowing down the verification loop. Code being in Rust going to cook a lot of devs who cant read it, leading to further "dont read ship". Abstraction over using sqlx for DB is going to unsolve main bottleneck - db operations
Not sure whats the point, considering that most of stuff was advertised as "easy to use with llms". Well, just tell llm go get you hyper + sqlx and roll with it, it'll be faster.
1
u/deanrihpee 7h ago
ah Laravel, my previous jobs are maintaining and updating legacy servers using Laravel, now we have rust version? might try for a bunch of test projects that has been dead and have been migrated to other framework for a long time
1
u/Anbaraen 6h ago
Has anyone reviewed the code yet? I want to know if it's actually good, idiomatic Rust or if it's a vibecoded mess.
1
u/DavidXkL 1h ago
I would definitely prefer topcoat or Leptos over this for now đ
1
u/Sad_Journalist3328 15h ago
I think best thing in Rust and development is https://github.com/cornucopia-rs/cornucopia
I have done both ORM-s and SQL and: SQL is query language that is build for queries, ORM looses percision and abstracts away that can, and I would claim, needs to be clear and direct.
It is awesome that there is optionated full "do it like that" set of rules, i believe LLMs will be benefiting also.
0
u/fat_coder_420 17h ago
We already have axum.
I dont think its meant for rust developers. Everyone is re-writing in rust since its so easier with AI agents. So i think its primarily for php developers wanting to migrate their apps to php but have a familiar php/laravel architecture.
0
u/source-drifter 16h ago
i though we have laravel at home
https://loco.rs/
0
u/dumindunuwan 11h ago edited 8h ago
10x speed and 8x less memory over Laravel PHP
https://laravel.com/rust/docs/structure layered folder structure instead modular, not the best way to write in Rust. However with tokio, serde, serde_json; A wrapper. Definitely this will outperform Laravel PHP implementations but not Axum, Ntex or Actix.
Also https://github.com/laravel/rust no /crates folder or similar layout. Feels this is just 1:1 Laravel PHP -> Laravel Rust rewrite which will make it easier to adapt Laravel PHP devs to Laravel Rust with 10x speed and 8x less memory consumption.
However, don't write PHP in Rust Syntax!
Same with PHP in Go Syntax! Ex. https://www.goravel.dev
-1
u/TTachyon 17h ago
Where did they announce it? This is the first I heard of it.
Until some good reasons are presented why should anyone use this, I don't have an opinion. But also when I hear framework/batteries-included, I get a bad feeling. These kind of words have a bad reputation for me.