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 is not baroque, particularly (no more than Rails itself), and it clearly did make good use of PHP, IMO (particularly recent PHP).
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.
> It's rather elegant, and exceptionally well-documented.
I came from Java (and a little bit of Go) into a PHP Laravel world, have been there for 2 years. I find the Laravel documentation extremely lacking. The official documentation is very high level, vague and sparse. The code itself has almost no documentation at all. A lot of the times if you need to know how something low level works, you have to start reading code. And there's a lot of code in there.
I found the Java and Spring ecosystem (even though I hate it a lot) extremely well documented, and Go also very well documented. Laravel's documentation pales in comparison.
> that the thing about new users is that it is a temporary state
Not so much. When you come back to an app after years, this clarity of purpose is useful. Or when you have 32 years of built-up web developer cruft in your head.
Why would you write PHP with LLMs? The whole point of PHP / laravel is trading performance for speed of development. LLMs inherently solve speed of development so why even use PHP any more unless you're supporting a legacy code base?
I've worked on a single laravel project in the past and I didn't like it. Whenever I needed something just a little more complex than what the docs suggested I felt I had no way of figuring out how to do it and support forums were scarce of solutions.
For the same reason you would build something in React in the LLM era... because it's what the LLMs are good at. What Laravel has going for it is that it's opinionated, those opinions are conventions (loosely) and that is consistency. That results in llms being very good at building laravel things the laravel way.
In the same way they're great at building things on React.
But I don't know, I'm just some rando who built a whole huge ass "factory" (that would be an understatement) on Laravel, for mostly (albeit, here lately, mostly not) Laravel projects and it's _insane_. I may be biased. I may also be lucky to have jumped on that bandwagon.
And why follow it to Rust/Go? Same reason. The opinionated wave of consistency and quality into languages with different strengths.
> you would build something in React in the LLM era... because it's what the LLMs are good at
LLMs are very good at rust / go too. Rust / Go are also a lot more performant than php / laravel
> And why follow it to Rust/Go? Same reason
except if you want performance and decide to go for Rust / Go then LLMs wouldn't have been trained on laravel for rust / go because it's new so you'd be better off using an old framework.
LLMs do not care. I have written my own language/repl/vm in C3, and an AI generates my own language just fine. Its a totally new language, new syntax with semi general semantics (its basicallt go channels on an beam like runtime) that have (and will always have) one user, me.
Who guarantees that LLMs will generate code that fulfils quality and security requirements? A human still has to be responsible for the resulting product and when the human can't follow what the AI does, it is worthless. For a human to follow the AI results he has to read and understand the code, which brings us back to a well documented framework that helps to follow along.
> Whenever I needed something just a little more complex than what the docs suggested I felt I had no way of figuring out how to do it and support forums were scarce of solutions
> The whole point of PHP / laravel is trading performance for speed of development.
(For my 12-year-old self, it was being able to push a bunch of .php to a free host and have them run. I later even considered learning Haxe to have a better language while still being able to compile to PHP for that use case.)
On the other hand, why would you prefer any human-readable programming language or framework over another in the age of LLMs?
Like, why stop at Rust or Go when LLMs will soon be able to generate binaries for your target architecture better than any compiler can. The LLM could be writing dark verses in brainfuck behind the scenes for all I know. It doesn't matter anymore because we're not gonna read any of it.
Because they won’t be able to write assembly well. LLMs rely on strong guardrails and tools to perform well.
PHP performs poorly with LLMs not because it’s readable, but because it’s too dynamic and wishy-washy. Statically typed languages and strongly typed languages just perform better out of the gate, because the LLM has more context to reason about the code.
I program in PHP all day, I know. PHP is a bad language for LLMs. C# is better, Java is better, rust is better. LLMs will never replace compilers because they don’t need to. What compilers provide is a rich information system and strict structure. That’s exactly what LLMs rely on.
They do a piss-poor job as compared to the output of compiled languages. The assembly will be slower and more buggy, because assembly has no guardrails.
A type system and compiler is for correctness. Using them results in higher quality software. There’s just zero reason to have an AI write assembly. Unless it’s tiny pockets of ultra-optimized assembly in, say, a decoder.
Think of it this way. The mere fact a compiler exists allows the LLM to use 1/10 of the tokens to get the same result. Instead of constantly iterating through the logic in its context and trying to figure out what’s going on, it can rely on the compiler, which is deterministic, to help it.
LLMs are not much different from human programmers when it comes to seeing new code. If you were onboarding into a new codebase, with no context, would you prefer assembly, PHP, or dotnet? Dotnet first, PHP second, assembly last. Dotnet has more context in the code itself, so you can reason about it quicker, easier, and more accurately.
The same argument was used by Assembly developers when optimising compilers appeared.
What it matters is do they deliver a good enough product from management point of view, just like offshoring sweat shops.
If they do, it doesn't really matter to management, the new fancy LLM based tool is what gets used, and who doesn't want to, the door is at the end of the corridor.
There’s just no reason to use assembly as a target versus, say, dotnet. No reason.
It burns more tokens, it’s less performant, and it’s more buggy. You also can’t use existing libraries and tools.
And for that you get… nothing. Literally no benefit. So why would we do it?
There are uses for assembly in modern software, in niche small pockets to utilize hardware intrinsics for speed up in critical algorithms. But for applications? No, I don’t think so. It’s going to continue being programming languages, and I think programming languages with compilers, strong tools, and comprehensive type systems will prevail.
Even from the perspective of 100% LLM generated code, there’s just no benefit. You’re better off creating a one-off compiler for some DSL and having the LLM generate that even. LLMs do well with formal, strict languages. They don’t do well with things like assembly or wishy-washy languages.
I think that’s the whole reason we use LLMs at all. Yes they can understand natural language, but we don’t make programs in natural language because its too all over the place. LLMs excel most when they generate code. Nobody does business logic in an LLM, they get the LLM to generate code for the business logic.
You should try out other languages and you’ll see the difference. LLMs hallucinate array keys that don’t exist, program extremely defensively (?? fucking everywhere) and make trivial type mistakes. It doesn’t see, or forgets, that a string was converted to a DateTime 500 lines earlier and then makes a mistake.
The LLM has almost no guardrails to fall back on. The best is php -l and unit tests. It has to reason about the code from scratch every time, and in doing so it makes mistakes and wrong assumptions. That’s much less of a problem in other languages.
> You should try out other languages and you’ll see the difference
I do? I work in several languages. Nothing has stood out about PHP that is worse for LLM reasoning. It's one of the most widely used languages in the world, it obviously performs pretty will with LLMs.
What languages are you working in?
> LLMs hallucinate array keys that don’t exist
I use data objects, which are typed. PHP has types, did you not know that? If you're using raw dynamic arrays, yeah, an LLM might hallucinate keys with enough context rot. That is true of any dynamic syntax, and using raw arrays hasn't been standard practice in quite some time.
> It doesn’t see, or forgets, that a string was converted to a DateTime 500 lines earlier and then makes a mistake
I don't know man, this is not remotely close to my experience. Unless you were doing this like 2 years ago when LLMs were an entirely different beast. That's the only explanation I can think of for your LLM being incapable of reading 500 lines of PHP code.
> It has to reason about the code from scratch every time, and in doing so it makes mistakes and wrong assumptions
This sentence makes less sense the more I read it. What about PHP do you think makes LLMs "reason from scratch every time"?
Yes I know that, please don't be an asshole. As I've said I work on a 10 million line plus PHP monolith every day. Yes, arrays are used extensively, we don't use classes for everything.
Classes also don't save you, because classes are just arrays with more steps. You can absolutely dynamically add properties to classes. Should you? No. In a legacy codebase that's 20+ years old do people do that? yes.
> That's the only explanation I can think of for your LLM being incapable of reading 500 lines of PHP code.
There's a lot of other stuff going on in those 500 lines. It's not like 500 lines of code translates into 500 lines worth of tokens. And you know that!
The LLM has to reason and think about the code. 500 lines of code could be enough to pollute the context enough.
> What about PHP do you think makes LLMs "reason from scratch every time"?
The fact that if you want to understand parts of the behavior, you have to read the code. The type system is too weak. The semantics too flexible.
Consider the following:
function someFunc(): array
{
///... some hundred lines of code, nesting, etc
$date ??= '';
}
Is date defined here? What's the type of date? Is it a datetime, an array, a string, what? In every other language, you would know just by reading that singular line. In PHP, you can't. You need to read the entire function.
What if $date was set 3 levels of nesting deep? It's function-scoped, so now it's defined. Now we have to reason about what runtime conditions can cause $date to be defined or undefined?
In C#, you don't have to do that reasoning. At all.
That's ONE tiny feature of PHP that makes it harder to statically analyze. ONE. There's hundreds of PHP features like this that just don't exist in other languages. Dynamic includes are another. I have seen classes that light up like a christmas tree in the editor. Errors, which should be criticals, everywhere.
But guess what. The class works and isn't buggy. That's not even possible in 99% of languages. But in PHP, it is, because we're including random files in different code paths and that's defining and setting variables for us.
Each of these features is, in it of itself, bad for static analysis and therefore bad for LLMs. But when you combine them together, it gets worse, more than the sum of its parts. Because now there are permutations, combinations of evil things.
PHP is just not a good language for LLMs, period. It's my experience in a very large codebase, which I can almost assure you is larger and more complex than whatever you're working on. It MIGHT work if you only stick to the most modern features and work in small codebases with tightly defined conventions. It does not work in the applications I work on. Well, I mean, it works, but just obviously not as well as dotnet or Java.
> Yes, arrays are used extensively, we don't use classes for everything
"LLMs don't perform well in a 10 million LOC legacy codebase that predates many of the type features they've added over the years" is a much narrower claim than "LLMs perform badly with PHP," which is what you originally claimed. I don't disagree with you, I would not have bothered responding if you had just said that, and I personally would use C# over PHP. But I'm still gonna argue that modern PHP is not as bad as you are claiming, and the right tooling can prevent most complaints.
> It's my experience in a very large codebase, which I can almost assure you is larger and more complex than whatever you're working on
For what it's worth, my niche is legacy software including PHP 5.6, and I've worked on a lot of projects. I just haven't had the same issues as you across dozens of companies with different dev cultures. But they are much smaller codebases. Though, it sounds like you're running into issues with small chunks of code anyway.
> 500 lines of code could be enough to pollute the context enough.
I certainly had this issue before 2026 but I admit, I haven't worked on code complicated enough that 500 lines makes the LLM useless.
> You can absolutely dynamically add properties to classes
This is deprecated in 8.2 and pretty much every static analyzer and IDE catches it. You can make an LLM run a tool to catch this in the exact same way you run a compiler. This is why I assumed your PHP knowledge was outdated, I wasn't being facetious or sarcastic. It's not uncommon for people to work in PHP and not be completely familiar with PHP 8.
> Is date defined here? What's the type of date? Is it a datetime, an array, a string, what? In every other language, you would know just by reading that singular line. In PHP, you can't. You need to read the entire function.
This type of code is understandably problematic and shouldn't be allowed for general app code, but no, you would not know the type of this var in "every" other language. This is allowing PHP to reassign the type of a variable based on runtime conditions. C# doesn't make this "more readable," it wouldn't allow it in the first place. Which might be preferable to you, but that's a feature trade-off. Other dynamic languages let you do this, and they have the exact same problem. It's not like PHP implemented this in an extra confusing way. You're not able to know what this is until runtime, that's how it's written.
PHPStan will tell you this is a union of DateTime and whatever possible types preceded it. And that's what you'd get in something like Typescript too.
> That's ONE tiny feature of PHP that makes it harder to statically analyze.
You can absolutely use static analysis tools to prevent this, much like the C# compiler prevents type reassignment. The issues you have listed are optional dynamic features that static analysis can prevent, and many PHPStan rules already can. People just don't use static analysis much because they are either in new projects and can write sensible code in the first place, or they are in large codebases like you and don't have time to fix all of the errors that come up. That's not the same as PHP being difficult to analyze. There's no reason a new codebase can't prevent this with static analysis.
> It MIGHT work if you only stick to the most modern features and work in small codebases with tightly defined conventions
I'm not a PHP evangelist. It's a language with trade-offs, and I sure as hell do not enjoy working on old PHP code. I work in whatever language I need to for the project. I just don't think what you're saying is accurate for all cases. Why wouldn't LLMs work for a large PHP codebase if you use modern type features and enforce conventions through tooling? That would lead to syntax that is much closer to C#, with the option to use dynamic features as needed. Then it would be easy to analyze with your IDE (versus your situation where introducing static analysis will require fixing a bunch of errors).
> Each of these features is, in it of itself, bad for static analysis and therefore bad for LLMs
I'm not really convinced LLM reasoning requires the same things static analysis does. Static analyzers walk a tree. LLMs run text through billions of parameters, and sometimes they stroke out if they read too much. It's good to have a compiler that catches mistakes the LLM makes, but the idea that LLMs get less confused with more type information has yet to be proven.
In fact, I would not be surprised if clogging up context with types just makes it rot quicker, but it doesn't matter because strong compilers catch bugs so the LLM can self correct. No matter what you're using, it's good to have tooling to catch mistakes.
LLMs work best with strict guardrails and static analysis. That’s why the GRH was written in lean, and not natural language. It would not be possible without something like lean.
The more dynamic something is, the more underspecified, the worse LLMs perform. The most dynamic language is natural language, which has no types and no formal structure. You can define logic in natural language.
Would we do that though? No. It won’t perform well.
It’s a spectrum. At one end is natural language, at the other is something like Lean. PHP sits closer to the natural language edge than C#.
I use an LLM every day on a codebase that’s at least 10 million lines long.
LLMs perform poorly in huge monoliths (not enough context) and they perform poorly in PHP (not enough context in the code). It’s just intrinsic to how LLMs work.
Even with types the code does not have enough context.
You can type a variable as array. Now what's in? You don't know unless you read a lot of code.
You can type a variable as a class. Now what's in it? You still don't know, because properties and methods may be dynamically added in various code paths. What methods can you call on this class? You don't know, because it uses magic methods for resolution.
You see a variable in a function. Is it defined? What's it's value or type? You don't know, because there are no local types in PHP. And you don't know if the variable is defined because it could have been defined 3 layers of nesting deep in the function. You have to read more code to find out.
You call a function. Is it defined? You don't know, because it could have been included in an include() somewhere else in the class or function.
You just have to read 10x as much code to get the same amount of context that a language like C# gives you for free via the compiler.
I wonder about that as well. Laravel is so easy to work with, read and whatnot. If anything the comment means people shouldn't care about code simplicity anymore (because of LLMs), which I oppose, a lot.
Livewire will likely not be ported in the near future as it is a sort of framework for Laravel PHP itself. Its also owned and maintained by a different developer but got the blessing to use the official name from Taylor himself.
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).
Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords.
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.
Funny, I saw a comment here on another thread postulating that scripting languages / languages with runtimes would be more popular in the feature because of the fast time to patch vulnerabilities on running machines, whereas with Rust and the like you'd have to deal with long compile times...
The only other languages with similar features I know of would be F#, Elixir, probably OCaml. I wouldn't call that "many". Also, it's besides the point I was making; PHP is a capable, JIT-compiled scripting language by now, including a fully optional, gradual, yet runtime-enforced type system; fibers/green threads, generators, streams, FFI, pluggable SAPIs, etc.; great performance, especially so with JIT and opcode caching enabled; and a lot more. On top of that, you get an extremely well-maintained ecosystem with a single, standard package manager that avoids many of the supply chain security issues of other ecosystems, several healthy application servers and widely used frameworks, ubiquitous tooling and integrations...
There's a lot to criticise about PHP, but also a lot to like.
You hanging on the syntax. Many programming languages provide functional primitives, which is what you're talking about. Yes, the |> operator is specific to some languages.
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.
On the contrary, Laravel took advantage of all the dynamic features of PHP to great effect. It's the only way they could manage to come close to Rails' level of magic.
I don’t know - when we tried Laravel for a $job, it was a disaster - overcomplicated mess of facades and dependency-injected abstractions which breaks in a non-trivial ways after each update.
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.
Yep. Exactly my experience with laravel. Enterprise java patterns in a dynamic language, without compile time safety net. Write once is ok, long term support is problematic.
it is built on symfony, and a heavy part of it was the doctrine ORM, until very recently. i don't think it was laravel solely taking those patterns, but you are right that it was heavily rails inspired. i would wager that these recent steps are also DHH inspired, who taylor otwell amires.
The only downside is even though he says Laravel is not going anywhere people will still panic and some companies might attempt to jump ship to literally any other PHP framework.
I always preferred Symfony over Laravel when I had to make PHP things. Laravel is awesome, but Symfony always struck me as the right tool when you know exactly what you need (besides a different language).
I really don't get to whose is this for, Laravel folks chose it because of PHP, and if I would be using Go or Rust, I would pick something designed for them in first place, not a port from another framework.
Just like I would not use Spring for .NET, or ASP.NET MVC for Java.
Well, PHP developers migrating to Go, I guess? But AFAIK the Go community still prefers a "library-type" approach to development (or, if at all, lighter frameworks) rather than using Laravel-type frameworks that dictate how you should structure your application.
Still, they would be better off picking a Go "native" framework.
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".
You simply don't understand how LIGHTYEARS ahead of any other web framework Laravel is.
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.
I have been programming since 1986, Web development since 1997, worked on a startup that had "Rails" with Tcl, the founders went on to create one of the very first RAD environments for Web, OutSystems.
Know PHP since version 5, and have put up with it on my ISP hosting.
It doesn't seem like they're going for exact ports of the framework as there are significant differences in the implementations and APIs of each. For example, in the Rust version they can guarantee at compile time that routes can only be called under certain circumstances (via Axum extractors), such as with an authenticated user, whereas the Go version has to resort to runtime checks/errors. The Go database layer also seems to have similar issues and I imagine the Go type system is just far too limiting to get all the way to something comparable to Rust, Ocaml, C#, Java or especially frameworks in dynamically typed languages. There's definitely issues in some of their use of Go channels as well.
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.
This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating.
For PHP (really Laravel) devs who wont be writing this code (LLMs will write it) but will be reading it.
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.
So.. back when Claude Code went from Zig to Rust people were accusing the developer of doing it as a PR stunt, only I knew it was not, its insanely trivial to port projects using Claude, I had done it months prior, I took a C# project from 2009... had Claude go file by file, write up docs, and port it all to Rust. It had its bugs and quirks, but the insane amount of it that actually worked was impressive. I was also able to add new things that the old code base didn't have, including additional SQL databases, the original only supported MySQL.
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.
There's a lot wrong with your comment. First, Claude Code was and still is a TS/JS application. Bun, its runtime, went from zig to rust. However the javascript engine is still C++.
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??
> First, Claude Code was and still is a TS/JS application. Bun, its runtime, went from zig to rust. However the javascript engine is still C++.
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.
Except me and others have already done what he clearly did because it became pretty obvious to anyone paying attention to Zig that Zig was becoming friction on their efforts that wasn't there had they been using literally any other language.
The community has generally complained (rather heavily) against frameworks. I've said for a decade we really need DjanGO ... Buffalo was an attempt... echo is great (and really needs to replace gin, it's much better docs).
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.
I think it's more than just "Laravel flavour in X programming language". We had those since forever.
Having the "Taylor and the Laravel team" seal of approval makes this special.
What I mean here is that this is clearly not a hands-off, loop-driven autoconversion in the way people understand LLM rewrites to be.
I think you'd have to know Laravel, PHP and a bit of Go to see why, but it really can't be an autoconversion, and it isn't.
It's really quite different; still has some Laravel feel and the packages cover the same ground, but it has been clearly rethought in many places. It's quite neat, not forced or clunky.
Slop is low effort mostly autonomous coding. Carefully designing systems and then implementing them with an LLM is not slop. That’s how the Linux kernel works. The Linux kernel is obviously not slop.
If you design the rewrite, then it’s LLM assisted programming.
There’s a lot that goes into designing systems and software. The actual code is a minority of the effort that goes into software. LLMs are good at the “actual code” part, but not much else. That’s how I see it.
Quantitatively the floor of the measure of slop is directly proportional to the amount of artifacts (code, assets, documentation, processes, etc...) affected by an agent, and qualitatively by how important each piece is.
If someone spends 6 months creating a game themselves (no agents), then the project may have a zero sized amount of slop.
If that person then uses LLMs/agents to create a store page for the game: the game itself may not contain any slop, but the sloppy store page may suggest things that do not reflect the reality of the game itself which impacts the whole project, so now the project has moved from a possibly zero sized amount of slop to a guaranteed non-zero amount of slop.
If a human being produced the store page instead, then the project may not be compromised with slop. It may still be sloppy/shoddy/etc... for other reasons, but not due to LLMs/agents.
I, for one, can still read code. I read some random files in the Laravel Rust repo and sadly they are slop. It’s full of unintelligible comments and weird code. Examples:
“Like any trait's methods, you can call them only where `StreamExt` is imported.” Thank you Claude for telling me basic facts about the PL I’m currently using in doc strings. very useful.
I’m only passably familiar with Rust but I feel like this is pretty much cursed:
I am not familiar with Rust, but are you saying the pattern there is too verbose or complicated? At the very least it does seem fairly readable for me who is not familiar with rust even if it is more boilerplatey than if else. It is expecting a specific combination of config for a specific queue drivers and is validating and returning errors for the user if it doesn't match. Could be more schema driven or? Or I mean I can quite quickly understand what it is doing without knowing Rust myself. Or it could be more registry driven to register driver and expected conf? Not sure if really worth over just just 4 or 5?
I also don’t know Rust but I think what GP is saying is that the subject of the comment is actually inherent to developing in Rust, so it shouldn’t need to be there?
I have realised that these no-shit-Sherlock comment blocks are perhaps something that needs to be tolerated to some extent, simply because they provide contextual cues only at the point of reading the file.
If the LLM only gets things wrong with this aspect at this particular point (which is entirely possible) then as untidy or silly as it looks, this is probably the right place for that cue. If it can be removed and its presence annoys a human reader, a human reader should remove it.
This is especially useful if you’re using a local LLM with less deep training in a particular language/tool/concept.
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.
Y'know, switching from PHP, to Node, and eventually settling on Go many years ago now. I always lamented that Go didn't have something as nice DevExp wise as Laravel, and missed Laravel dearly. So this is a lovely surprise.
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!
This is really interesting, and makes a lot of sense to me. I always saw Go as a very viable option to create web apps in a similar capacity to PHP itself. From day 1 you could build a web app out of the box, no nonsense. PHP always made it very straightforward to build web apps and Go has always done the same.
This being from the creator of Laravel makes it very interesting too.
There is 100+ people working at Laravel today, most of these are engineers. It's a very well funded company and they're very diversified across products.
how much longer will people continue to cope about AI generated code being slop despite the fact that AI is better at programming than 99% of programmers?
I would say because most people don't run with something built by 99% of programmers. You take Google, Microsoft, Apple, and a few other companies and you corner the majority of products people generally use. The other programmers have much smaller user bases. So slop in Windows is much more alarming than slop in something like notion.
AI is used in the Linux kernel. It’s only resulted in higher quality code, less bugs and less vulnerabilities.
It’s obvious that LLMs in the hands of good engineers results in higher quality code than those engineers could produce alone. Which makes sense. LLMs allow you to:
That doesn’t change anything. It’s still the case that the kernel has LLM assisted code and many vulnerabilities are being patched at a much higher rate.
It may be better than some, but judging by a quick read of the codebase of Laravel Rust, idiomatic code is either not Taylor's or not his LLM's strong suit
I am not a fan of frameworks in Go. Unlike other languages, Go has a comprehensive net/http package. I don't see a compelling reason to carry the cruft of a framework. Its considerably easier to understand the code in my opinion and you don't have to fight the framework,for reasonably complicated projects because your code is the framework.
The Go team and community agrees, which is why they generally advise against using frameworks or libraries that don't follow the same coding standards as the SDK (like testing libraries introducing a "DSL" of sorts using e.g. chaining)
As someone who spent 10+ years writing and maintaining an open source Go framework I'd say the timing is about right. We can be pretty pessimistic about the lack of need for frameworks in the age of AI but laravel has a huge user base meaning a lot of php and so much of that would benefit from migrating to Go or having some adjacent Go stack for it's existing users. As for new users, I don't know, it's hard to say if it's the right thing but definitely it can be useful for migration for an existing audience.
What a beautiful thing! This is a really nice idea. I mean Laravel is great, PHP is terrible, Go is the best language ever; their combination is nice! What a cool thing!
I would love to see a port of Django to rust or go or, heck, even php. Not that I'm going to abandon python, but the level of care taken in building of Django makes it the perfect jumping point for any of these flavors/rebuilds.
Yeah I'd had the same thought. I'd be curious as to what Simon thinks of this.
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!
Meanwhile we're going the opposite way and removing libs in favor of net/http with < 10 custom helpers. In one of my project I just added render.JSON, render.Error, bind.JSON and copy-pasted a few middlewares from chi-router (logging, recover, the basics). If I need other helpers like form data or multipart, I'll just add them.
I’m pretty sure Laravel Typescript is coming next.
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 still love Laravel. When I occasionally need to build websites for my clients,I still use laravel because it offers a very smooth and effortless deployment process for hosting.
Agreed, if I want a monolith, it’s the first I reach for and is not even close. The whole experience is effortless, from initial commit to deploy. Especially now with Laravel cloud
Really interesting, will be curious to see how this plays out. Kudos to the Laravel folks for trying something new and exciting - I haven't heard of major cross-language frameworks like this.
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).
Laravel is shaping a new era of AI development, and this is what Laravel thinks. In this phase of AI development, it matters even more, because many people don't read AI-generated code and simply publish it, which often causes production crashes. AI is now shaping the industry, and Laravel is ready for it.
That was the fun part of the Go subreddit yesterday. All the carping about how Go would have been a better language for Laravel. Reading those comments, I kept thinking, "are you serious? If they'd have ported it to Go, you folks would have spent a few hours saying things like 'net/http' is good enough for me. Or "an ORM??? noooo". Then, Laravel Go was annouced and sure enough: "We don't want that here". Exactly.
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".
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!
Whats an example of an ambitious web application? Whenever I see that term I think back to the ember.js days, and more recently redwood.js, and i immediately think marketing speak and it turns me off. But i'm probably missing something. So what is an ambitious web application??
i feel like Laravel is great for developer UX. That will continue to have a place, as not all developers want to give up that control.
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.
people talk a lot about slop and code bases going to hell. a good framework makes things like that harder (a little) to do wrong. there's a right way to do everything in Laravel.
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 feels like php exists only for legacy applications now. Some weeks ago I saw Php rewritten in rust but why not directly port Wordpress to go/rust along with its 4 or 5 most popular plugins?
WordPress really is quite inherently PHP — or at least, quite inherently an OO-optional, scripting language thing.
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.
I'd choose Rust because it's far more expressive and far more can be guaranteed at compile time. Extractors, the struct tags and runtime reflection all over the Go database/validation layers and the Rust error handling are good examples of that.
> If Taylors ClawBot (do people still use it?) reads this. While you at it, I'd take 1x Laravel for D, 1x Laravel for Common Lisp and 1x Laravel for Java. Scratch the last one, make it 2 different Laravels for Java
Why would you want to go in the direction of a large framework? Large frameworks made Java uninhabitable (raise your hand if you do not immediately head for the door when you see anything Spring in Java), and it made frontend development unbearable.
Everything is included, have similar APIs and is connected to work with each other. And with compiled native languages anything you don't use doesn't get compiled into the final build.
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.
That is also the problem. It may be an advantage if the framework is near congruent with your application needs and if the people who you work with you are sufficiently disciplined, but in general, frameworks tend to represent a much, much bigger surface than what is required by your application.
Large frameworks also become a problem if you need to deviate from what they provide. Essentially: when there is a better solution for something that would have lower cost (time, money, maintenance and security surface area, complexity etc). You have already paid for it, so there will be a reluctance to pay for it again. (Again, by "pay" I mostly don't mean money).
It takes you much longer to learn Spring, and become good at designing and programming with it, than it takes you to learn Java, and learn to use Java effectively. And I assume we're professionals so merely being able to use it is not the bar we are aiming for; we want to aim higher, right?
> It takes you much longer to learn Spring, and become good at designing and programming with it, than it takes you to learn Java, and learn to use Java effectively
I don't see why you can't learn both. I've used Laravel, but I also use PHP in a dozen other contexts
The real problem is there's shit I want to take out of Laravel starter templates, and it's possible, but they should not be defaults for begginers. It's a pretty straightforward framework underneath, but stuff like Volt, Inertia, Livewire etc. is completely unnecessary and pushes people into exactly the situation you describe. If you don't know what they are, you'd have a hard time untangling them when the project is in progress.
I couldn't even tell you if templates still have that stuff because they churn through it all so fast.
Think of it in terms of return on investment and the fact that you have a limited number of productive years. Would you want to spend years becoming a Spring expert and work on the kind of projects Spring is used in? Because the vast majority of those projects are really no fun to work on.
The main reason I have stayed away from large frameworks for the last 25 years isn't even that it takes time to learn them, but that if you do employ them, you have to make proper use of them and express yourself in terms of the framework. Going outside the framework undermines the rationale for using it in the first place. Whatever you design has to be designed in terms of the framework.
Which has limited expressiveness. And the irony is, the more comprehensive a framework is the more it limits your freedom and ability to express new things.
Since you have to use it to get any benefit from it, it becomes like a cancer that metastasises and infects everything. You are not programming, say, Java. You are using Spring. Java just becomes an incidental implementation aspect. You also incur this cost on _everyone_ who has to do non-trivial work on a system as well.
From a management point of view this is unacceptable except for certain groups of similarly shaped systems that require no creativity and where almost all of the code is essentially boilerplate. And you will make top tier talent unavailable to these projects because good luck getting them to work on systems where you have taken away all of their freedom.
From an engineering point of view it just encourages poor design and inflexible system design. Incapable of following both improvements in how we design things and new technology, libraries, and tools that become available.
And with agentic coding, most of the remaining, yet fragile arguments disappear. Not only does the LLM help you do the boilerplate, it leaves you the opportunity to reduce the amount of boilerplate you need by spending more time doing system design that eliminates it.
Large frameworks have been a dead idea for 20 years now. And they became even less relevant in the past few years.
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.
There was a recent discussion on HN (https://news.ycombinator.com/item?id=50712143) about C++'s deficiencies for full-stack-ish development use cases; I would expect those to be an obstacle here.
On the one hand, AI makes this kind of porting doable, but on the other hand it makes it less useful.
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.
This is a common line of conversation now with libraries and applications. I think it discounts the idea that using something that already exists and is maintained allows you to worry about less still. It is cheaper to write that code yourself, but then you still have to maintain it. Sometimes that is worth it, but something like a web framework feels like a great place to be, because you get this heavy abstraction, plus the speed up from the LLMs.
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 think it discounts the idea that using something that already exists and is maintained allows you to worry about less still.
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.
Yeah, I do agree with you in concept! I would love for this and the Laravel Rust to succeed, but you're right that these don't get that auto stamp of approval. My comment was vague in that I was more so talking about the concept.
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?
There is very little reason not to use the most popular web framework possible for a new product. If we use Java, Claude knows Spring, no docs needed for 99.9% of the typical cases. No one will look at the code anyway, there will be no time, so who cares? This will be for sure cheaper then rewriting HTTP handlers using raw sockets every time.
This is silly. A rust version I can see as being the future. Laravel in go too sounds like chucking stuff at the wall to see what sticks. I doubt I'll use either of them now as a result as I expect the maintenance overhead will lead to one being killed in a few years.
Not sure what you mean? Go is a natural choice for a web service due to tooling, being easy to read, and having an entire HTTPS implementation in the standard library. Imperfect type system but generally low baggage language
I'd argue that frameworks in the age of Agentic engineering are more important than ever. That being said, human-centric frameworks that optimize for people writing code are a thing of the past.
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.
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.
reply