70 points adrianthedev 1 hour ago 79 comments
giancarlostoro 1 hour ago | parent
This being from the creator of Laravel makes it very interesting too.
dsissitka 1 hour ago | parent
https://laravel.com/blog/introducing-laravel-for-go
Apparently they also released Laravel Rust yesterday:
seki285 57 minutes ago | parent
sfdsfef3f3f 1 minute ago | parent
QGQBGdeZREunxLe 56 minutes ago | parent
https://www.reddit.com/r/laravel/comments/1yb5lib/laravel_go...
adrianthedev 55 minutes ago | parent
vova_hn2 39 minutes ago | parent
...and a Diet Coke
adrianthedev 55 minutes ago | parent
rfgplk 1 hour ago | parent
adrianthedev 58 minutes ago | parent
ameliaquining 52 minutes ago | parent
jerf 58 minutes ago | parent
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
giancarlostoro 53 minutes ago | parent
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.
flexagoon 38 minutes ago | parent
giancarlostoro 29 minutes ago | parent
tredre3 33 minutes ago | parent
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
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
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'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
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
I was not talking about PHP, but Laravel.
tredre3 39 minutes ago | parent
jasonlotito 43 minutes ago | parent
sfdsfef3f3f 21 minutes ago | parent
dofm 16 minutes ago | parent
It's somewhat like the unofficial "Goravel" port.
adrianthedev 58 minutes ago | parent
adrianthedev 56 minutes ago | parent
aarondf 38 minutes ago | parent
0x23alfonso 35 minutes ago | parent
mervz 29 minutes ago | parent
Nice fella, really good at coding.
altbdoor 55 minutes ago | parent
adrianthedev 47 minutes ago | parent
hadi77ir 8 minutes ago | parent
leetrout 54 minutes ago | parent
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
grzes 50 minutes ago | parent
pmkary 48 minutes ago | parent
dofm 39 minutes ago | parent
sebastianconcpt 48 minutes ago | parent
hiccuphippo 18 minutes ago | parent
dofm 10 minutes ago | parent
dofm 9 minutes ago | parent
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
vova_hn2 45 minutes ago | parent
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
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 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
vova_hn2 14 minutes ago | parent
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
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
hk1337 40 minutes ago | parent
hiccuphippo 20 minutes ago | parent
dofm 12 minutes ago | parent
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
kqgnkqgn 12 minutes ago | parent
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