70 points adrianthedev 1 hour ago 79 comments

giancarlostoro 1 hour ago | parent

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.

adrianthedev 54 minutes ago | parent

Yeah. Taylor has definitely proven that he builds great frameworks.

chinathrow 43 minutes ago | parent

I wonder how he can ship this stuff now so fast.

mervz 39 minutes ago | parent

wtf do you mean? it's quite obvious...

chinathrow 39 minutes ago | parent

Slop?

hitcv 34 minutes ago | parent

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?

satvikpendem 17 minutes ago | parent

They're being sarcastic.

dsissitka 1 hour ago | parent

Announcement here:

https://laravel.com/blog/introducing-laravel-for-go

Apparently they also released Laravel Rust yesterday:

https://laravel.com/blog/introducing-laravel-for-rust

seki285 57 minutes ago | parent

Personally I'd choose Go because I will always feel more comfortable reading it.

sfdsfef3f3f 1 minute ago | parent

I'd choose Rust because it's far more expressive and far more can be expressed in the type system. Extractors and the error handling in the Rust version are good examples of that.

QGQBGdeZREunxLe 56 minutes ago | parent

Taylor is fully onboard the AI slop train. The backlash in the Laravel subreddit is interesting to witness.

https://www.reddit.com/r/laravel/comments/1yb5lib/laravel_go...

adrianthedev 55 minutes ago | parent

Jesus. Some folks...

vova_hn2 39 minutes ago | parent

> 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

...and a Diet Coke

adrianthedev 55 minutes ago | parent

Also the site is up https://laravel.com/go

rfgplk 1 hour ago | parent

Laravel C++ when? I've got some spare tokens if you'd like a quick port.

adrianthedev 58 minutes ago | parent

I don't think another port is incoming anytime soon. The release video only shows three squares. https://x.com/laravel/status/2128189909542617412

ameliaquining 52 minutes ago | parent

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.

jerf 58 minutes ago | parent

And also supposedly in Rust too? https://github.com/laravel/rust-framework

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.

adrianthedev 57 minutes ago | parent

Yup! Released yesterday.

unglaublich 57 minutes ago | parent

giancarlostoro 52 minutes ago | parent

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.

chinathrow 44 minutes ago | parent

To what framework? Symfony?

jonwinstanley 35 minutes ago | parent

Can’t see that happening.

giancarlostoro 53 minutes ago | parent

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.

saagarjha 47 minutes ago | parent

Bun, I think Claude Code is still JavaScript or TypeScript

giancarlostoro 31 minutes ago | parent

Bun is what hosts Claude Code, Bun was Zig, now its Rust, but yeah I guess I wrote CC instead of Bun.

flexagoon 28 minutes ago | parent

> Bun is what hosts Claude Code

What? I'm not sure you know what you're talking about

satvikpendem 18 minutes ago | parent

Claude Code runs on Bun, it's why Anthropic bought Oven. Maybe you should research the facts before making comments like these.

flexagoon 38 minutes ago | parent

"It wasn't a PR stunt, they were just trying to show how impressive their product is"

giancarlostoro 29 minutes ago | parent

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.

tredre3 33 minutes ago | parent

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??

giancarlostoro 23 minutes ago | parent

> 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.

pampa 50 minutes ago | parent

Laravel didn't really take advantages of the php language.

It was a baroque implementation of a rails-style framework, that was heavily influenced by enterprise java coding style.

dofm 41 minutes ago | parent

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.

pampa 28 minutes ago | parent

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.

dofm 18 minutes ago | parent

> Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords.

I was not talking about PHP, but Laravel.

tredre3 39 minutes ago | parent

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.

jasonlotito 43 minutes ago | parent

This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating.

sfdsfef3f3f 21 minutes ago | parent

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.

dofm 16 minutes ago | parent

Indeed — it's at least a bit closer to idiomatic Go than an "identical" port would be.

It's somewhat like the unofficial "Goravel" port.

adrianthedev 58 minutes ago | parent

It makes a lot of sense now that they took over and kept maintaining Inertia. It's the dynamic front-end for everything they released Very smart!

adrianthedev 56 minutes ago | parent

I'm curious if they have a Rust guy (or gal) and a Go guy on the team that will look after these releases.

aarondf 38 minutes ago | parent

Most of our infra team are Go guys and gals. Several of our broader teammates come from Rust backgrounds.

0x23alfonso 35 minutes ago | parent

yeah, I was reviewing/looking/signaling good or bad, the first iterations of rust

mervz 29 minutes ago | parent

Yeah, his name is Claude.

Nice fella, really good at coding.

altbdoor 55 minutes ago | parent

Curious how this differs/compares to https://github.com/goravel/goravel

adrianthedev 47 minutes ago | parent

Yeah. I'm curious too. But I'd like to find out from a human who used both (or will use laravel go), not an AI summary.

hadi77ir 8 minutes ago | parent

The difference is that Laravel's code is now purely LLM-generated, while goravel is 5 years old and is more modular.

leetrout 54 minutes ago | parent

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.

adrianthedev 53 minutes ago | parent

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.

0x23alfonso 36 minutes ago | parent

yeah, can confirm Taylor put a lot of thought into this

conradfr 29 minutes ago | parent

A lot of tokens.

dofm 15 minutes ago | parent

It's not an "LLM rewrite" in any direct sense.

grzes 50 minutes ago | parent

it makes sense. they want to bring as many folks to their laravel cloud offering as possible so targeting various popular languages is natural path.

pmkary 48 minutes ago | parent

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!

dofm 39 minutes ago | parent

The notion that it will get the same support attention as Laravel (human documentation, thoughtful design etc.) is what is most appealing.

sebastianconcpt 48 minutes ago | parent

Okay but why Goravel when you can Rustavel?

hiccuphippo 18 minutes ago | parent

Build speed. May be even faster with Zigavel or C3vel.

dofm 10 minutes ago | parent

There actually is already a "Goravel" out there, before this, which presumably validated the broad idea.

dofm 9 minutes ago | parent

There actually is already a "Goravel" out there, before this, which presumably validated the broad idea.

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.

ahmedfromtunis 46 minutes ago | parent

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.

vova_hn2 45 minutes ago | parent

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.

jjice 36 minutes ago | parent

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.

vova_hn2 24 minutes ago | parent

> 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.

mystifyingpoi 31 minutes ago | parent

Is it really economical to generate a half-assed, ultra specific to the current needs web framework every time from scratch?

vova_hn2 14 minutes ago | parent

Not sure, if there is a difference anymore.

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?

dofm 11 minutes ago | parent

This is not particularly an automatic LLM-rewrite, as far as I can see.

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.

xXSLAYERXx 45 minutes ago | parent

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??

chinathrow 44 minutes ago | parent

High traffic?

hitcv 35 minutes ago | parent

the site you're literally on right now isn't ambitious and gets high traffic

mystifyingpoi 35 minutes ago | parent

Nothing, it's just marketing fluff.

hk1337 40 minutes ago | parent

I thought Taylor had said, on Twitter/X I think, that they were not heading in that direction not long ago?

hmokiguess 37 minutes ago | parent

Soon: Laravel Markdown

mystifyingpoi 34 minutes ago | parent

Define your app in Markdown. Every HTTP request gets injected to Claude at the end of the prompt, the response is sent back to the browser.

Actually, I meant this to be a joke, but...

hiccuphippo 20 minutes ago | parent

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?

dofm 12 minutes ago | parent

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.

dofm 17 minutes ago | parent

Would be nice to see a version of AI SDK in the total package before it leaves beta; the Laravel AI SDK is really quite well-architected.

kqgnkqgn 12 minutes ago | parent

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).

samtechie 4 minutes ago | parent

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 a reasonably complicated projects because your code is the framework.