293 points · by adrianthedev · 1d ago · 223 comments
I don't get this. Frameworks generally end up tied to their implementation language because they should be taking maximum advantage of whatever the language provides. You can non-idiomatically port a framework out of its home language and retain similarity as is possible, while still possibly losing some things that just can't be ported, or you can idiomatically port the framework in to the new language and get something that is harmonious with the new language but has significant deviations from the original.
Or you can split the difference and get the worst of both worlds.
It's not like you can take something that implements some particular authorization technique and cross that module between languages.
And the gap between PHP to either of Rust or Go is enormous, meaning the gap between the two choices I outline above is also going to be quite substantial.
It was a baroque implementation of a rails-style framework, that was heavily influenced by enterprise java coding style.
It's rather elegant, and exceptionally well-documented.
However it is probably not what you want for an app in the LLM era. There seem to be considerable simplifications in this design that are more appropriate for Go.
The main advantage here will be the integration with Inertia, though I guess Livewire is a much bigger challenge to implement.
Against the average PHP project perhaps but against Symfony it's not.
Laravel documentation has always focused primarily on the new user forgetting that the thing about new users is that it is a temporary state.
It worked for them clearly so hard to say it's a bad idea but I always (and still do) prefer the way Symfony more thoroughly documents everything.
Of course, that could change tomorrow with a fork, but idk if we’ll see if. If the agent is writing the code, it can slop out the same UI with Inertia. Tbh Livewire and Inertia are quite similar in that at their core, they are more both wire protocols with well defined behavior and outputs. The difference is that Inertia targets json as an output format and Livewire returns html/blade in a manner not terribly different from HTMX (though not the same and with more JS under the hood).
You have request()->params, response() in the framework But all the raw data is still there in $_GET & $_POST, file_get_contents('php://input'). You can still echo "" to the browser, and still send header() from everywhere.
It almost looks like php developers around 2009 were really wanting to write enterprise Java, but had to use php at their day jobs, so they gradually made php pretend to be something else.
Laravel uses autoloading (so as most other PHP frameworks), and magic methods (https://www.php.net/manual/en/language.oop5.magic.php) etc, which are features of PHP language.
Of course you can replace most of them, for example, swap `__get` with a manually implemented `.get`, but then you're talking about general programming patterns, not language/framework any more.
For Go specifically, it don't have class method override or even class, the `struct` embedding works a little bit differently. So at least that part will be different, and the difference will probably water fall all the way down to the point it effects how user use the framework.
It is some sort of a cargo cult engineering where you feel like you’re building a legacy enterprise app to achieve trivial outcomes.
Not worth it at all.
But Go is great as is, not need for a Laravel on top.
Just like I would not use Spring for .NET, or ASP.NET MVC for Java.
I never felt that it was a major issue while moving between ecosystems, to carry old patterns around, that is how you get the old meme "You can code FORTRAN in any language".
I've used multiple frameworks in Java, TypeScript, Python and probably other languages that I forgot, and Laravel is literally existing in a superior plane compared to any of them.
The simple fact that it's available in other languages makes those languages more attractive.
Know PHP since version 5, and have put up with it on my ISP hosting.
Yeah, I really don't understand.
Edit: The Go database and validation layers also use struct tags and runtime reflection all over the place which is truly disgusting but typical for Go.
It's somewhat like the unofficial "Goravel" port.
LLMs write rust pretty well and since it is C++ performance without c++ baggage and so everyone is "rewritting" their stuff in it because no one gives a shit about devex if the dev is not really required.
I think it took me maybe a week or two tops?
So yeah, this is unsurprising, I've debated porting a few different projects I love to Go or Rust similar to this endeavor but doing both Rust and Go seems excessive to me.
Second, Taylor Otwell very clearly claims that these new Rust and Go versions aren't slop ports of Laravel (his words). They're implemented from scratch.
Third, why would doing both Go and Rust be excessive? There is no value in changing the language of a framework to begin with, because the framework is tied to the language by design. So the only reason to reimplement it is to attract developers from the new language. And if it's as easy as you claim to create such port, then why wouldn't they want to attract both Go and Rust developers??
Correct, I misspoke when I meant to say Bun, that's on me.
> Second, Taylor Otwell very clearly claims that these new Rust and Go versions aren't slop ports of Laravel (his words). They're implemented from scratch.
He did it in 8 weeks with AI, I'm not calling it Slop, but just want to be very clear that AI was definitely involved, which is what I'm suggesting is that the right developer paired with an AI model can port a project they're familiar with to a new language. I've spent most of my career involved in total rewrite projects, they don't just happen in 8 weeks, with a single developer.
> Third, why would doing both Go and Rust be excessive? Instead of focusing on one single instance of Laravel, or even two now he's focusing on three renditions of it, it's a bit of mental overhead to manage and maintain something that could be so critical to many businesses.
I do love this initiative either way, both Go and Rust in my eyes need something like Laravel, I never found something quite like a Laravel in either, there's some close ones in Rust, but they're not adopted industry wide as far as I can tell.
I thought because of the verbosity and simple grittiness of Go, you could never make anything Laravel like in being a joy to write and use. Looking through the examples, it looks as though Generics, and likely the recent generic methods improvement has enabled this. I was suspicious of Generics in Go at the time, but it really has enabled some really cool patterns and use cases.
Shame this was released in the AI world, I'd have enjoyed writing this by hand!
All of that to say if you've never used Laravel for "easy" apps you have no idea how productive you can be. Blade is a _fantastic_ templating language and support for partials paired with HTMX is painless. I would have liked to see them use templ...
I'm optimistic to see how this shakes out and will give it a spin on my next project.
Coming from Django I thought that too but now that I have made a few LLM-assisted ports of Django apps to Go I'm not so sure. Even pluggable apps are possible with Caddy.
This being from the creator of Laravel makes it very interesting too.
(Of course not)
If Simon is reading this, It would be really cool to get a django port within golang. I seriously forward this idea and hopefully one day it becomes true!
(I am preemptively declaring my disinterest in any potential clever reply saying “it’s called SQL”)
As Tyler outlined, both versions Rust and Go are supposed to fill the gap between the bare capabilites and a full-stack, batteries included framework like Laravel has always been.
GoLang for example is cluttered and hard to grasp, even though it's utterly fast and well documented, it tends to be become chaotic imo.
Providing the architecture that Laravel has, it gives people some solid mental foundations in order to scale it for bigger applications.
On top, there are build in instructions for AI and as he also outlined, these two frameworks are rather supposed to be used with AI since both languages (Rust and Go) and not super well-known like PHP for example.
"We shall have a web server, and only the web server" "But sir what about middlewa..." "Only the server, and nothing else"
https://www.youtube.com/watch?v=JYqfVE-fykk&pp=ygUYbmF0ZSBiY...
I've only used Laravel on one project. I hadn't used PHP in like a decade at that point. Even still, the concepts from Rails translated just fine. And I think that's the actual sweet spot. CRUD app/apis. I know that having done ancient Java Servlets and JSPs, I know that I could build all the stuff I needed from scratch. Once I used SpringBoot, I realized I never would have to again. It was "good enough".
Nice fella, really good at coding.
It’s the obvious missing one, given languages popularity and available devs.
I also remember I heard Taylor say (I think it was in a podcast) a few years ago that if he had to reimplement Laravel in any language it would be Ts/js.
I think laravel-ts is not on the roadmap for now.
They wanted to contribute a batteries-included web framework where one was needed, not where there are already enough.
I can see how this might be triggering to PHP folks and Golang folks too, given the typical stance that large batteries included frameworks aren't a good fit for go. But not sure I agree with that - I definitely notice a lot of repeated patterns building small personal web services in Go, and that makes me still gravitate back towards Django. (Admittedly this is probably less of a concern building large tools).
As an aside, please pass on my thanks to whoever wrote your AI SDK documentation. It's probably the thing that made the entire general process of implementing tools and approvals concrete to me. Just plain and simple.
As with everything that Laravel does, the sheer human-to-human clarity of the documentation is basically second to none. Don't ever change that!
To make it the default choice for the bazillion micro apps that people will build using muse, ChatGPT and Claude
But the next "Rails" is going to be something with a great agent experience (AX?) if that's even a thing. I haven't thought much about this. My agents hum along making their own choices for the most part. MY guess is that the best agent experience is tooling which cuts down the "wait, actually..." type of thinking.
But Laravel is PHP, and PHP is laravel, and things like the package system, no building, php style debugging, being able to hotpatch vendor code, just all sorts of stuff to me, is so PHP'-ey that it's hard to imagine what it looks like in a language that is not OOP or language feature ... heavy ?
It's not really something that would just work even if you had the few most popular plugins; the fundamental value of WordPress is being able to add more plugins!
It might be more feasible in a compiled language that has a JIT-type, REPL-type approach on top; Swift does.
Actually, I meant this to be a joke, but...
https://laravel.com/blog/introducing-laravel-for-go
Apparently they also released Laravel Rust yesterday:
https://www.reddit.com/r/laravel/comments/1yb5lib/laravel_go...
...and a Diet Coke
Why!?
One thing Laravel has are standard APIs (from PSR but also their own) so you can replace the parts with others if you want to.
I being facetious of course but there are some concepts, like Inertia, which would work well with .NET.
But of course Blazor occupies that space, so...
I mean, what are the point of using a library of framework anyway? I can generate all the code my app needs myself, for my specific use case.
Pre-AI the whole point of frameworks was to avoid writing the same code again and again for each app by putting the most common parts into a framework.
Now that code is cheap, you can just generate it every time, who cares.
I think that this is an "and" situation, not an "or" situation.
I don't know why we would want to generate the code over and over again if we can have an abstraction and then spend our time, tokens, and future maintenance more effectively.
I agree with you if we are talking about something battle-tested like old Laravel.
But if we are talking about something slop-ported, like these new "Laravels", I don't see how it is applicable. Who says that my AI-slop will be worse than their AI-slop? Mine will probably be generated using a newer model. The moment they pushed their slop to Github it starts getting obsolete, because of the newer models being released.
Several patterns are notably rewritten to being Go-like.
I am sure there was some machine translation based on schemas, but there's a lot of real human thought here.
If we are talking full AI-driven "agentic" development, we should probably be measuring cost in tokens. Unless the framework is popular enough to be in the weights, agent will have to pull docs or source code into its context. Is it really cheaper than generating and keeping in the context an ultra specific web framework?
I think Laravel for Rust/Go has the right idea: battle tested architecture, fittings, and patterns that agents can adopt, without all the magic of a Rails or ceremony of a Spring Boot. The value is in agents being able to repeatably do high quality work: we don't need every agent and every app to invent CSRF from first principles, we need agents to know they have a CSRF solution that has been thoroughly tested by a community and ready to be used.
Could we do this with disparate packages rather than a framework? Sure, in theory, and many are today. But the value of a framework is in every agent understanding it without needing to scan the entire codebase. If I can load up a Laravel-Go skill in my session that uses 5000 tokens and gives the agent a high level overview of how the entire framework operates, then it doesn't need to burn 100k tokens re-deriving it from first principles. Multiply that by several devs over each of dozens of apps at a company and that's real savings.
The answer is NO. Frameworks optimized for humans, LLMs can recreate the common conventions and patterns in seconds.
But still pushing an ORM. Counter productive, especially in this day'n'age.
Also an answer: because I still want to be able to read the code. Call me old-fashioned but Rust is a bit write-only.
LLMs really like Go just fine, and it compiles so quickly.
PHP is done.