| ▲ | jerf 5 hours ago |
| 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. |
|
| ▲ | pampa 5 hours ago | parent | next [-] |
| 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 4 hours ago | parent | next [-] | | 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. | | |
| ▲ | yurishimo an hour ago | parent | next [-] | | 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). | |
| ▲ | pampa 4 hours ago | parent | prev [-] | | 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. | | |
| ▲ | 9dev 6 minutes ago | parent | next [-] | | yet at the same time, you can do stuff like this in PHP: $result = ' PHP 8.6 '
|> trim(...)
|> strtolower(...)
|> str_replace(' ', '-', ?)
|> (fn(string $s): string => match ($s) {
'php-8.6' => 'New hotness!',
default => 'Something else',
});
People always seem to get hung up on the standard library and the runtime, but the language itself is amazing by now. | |
| ▲ | dofm 4 hours ago | parent | prev [-] | | > Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords. I was not talking about PHP, but Laravel. |
|
| |
| ▲ | tredre3 4 hours ago | parent | prev [-] | | 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. | | |
| ▲ | hkpack 4 hours ago | parent [-] | | 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. | | |
| ▲ | pampa 2 hours ago | parent [-] | | 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. |
|
|
|
|
| ▲ | unglaublich 5 hours ago | parent | prev | next [-] |
| https://laravel.com/blog/a-letter-to-the-laravel-community |
| |
| ▲ | giancarlostoro 5 hours 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. | | |
|
|
| ▲ | sfdsfef3f3f 4 hours ago | parent | prev | next [-] |
| 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. |
| |
| ▲ | dofm 4 hours 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 5 hours ago | parent | prev | next [-] |
| Yup! Released yesterday. |
|
| ▲ | jasonlotito 5 hours ago | parent | prev | next [-] |
| This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating. |
| |
|
| ▲ | 4 hours ago | parent | prev | next [-] |
| [deleted] |
|
| ▲ | helsenki 4 hours ago | parent | prev | next [-] |
| [dead] |
|
| ▲ | giancarlostoro 5 hours ago | parent | prev [-] |
| 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 5 hours ago | parent | next [-] | | Bun, I think Claude Code is still JavaScript or TypeScript | | |
| ▲ | giancarlostoro 4 hours 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 4 hours ago | parent [-] | | > Bun is what hosts Claude Code What? I'm not sure you know what you're talking about | | |
| ▲ | satvikpendem 4 hours 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 an hour ago | parent [-] | | I'm aware of that. "Bun hosts Claude Code" is a nonsensical sentence. Bun is a JS runtime. It doesn't "host" anything. |
|
|
|
| |
| ▲ | tredre3 4 hours ago | parent | prev | next [-] | | 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 4 hours 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. |
| |
| ▲ | flexagoon 4 hours ago | parent | prev [-] | | "It wasn't a PR stunt, they were just trying to show how impressive their product is" | | |
| ▲ | giancarlostoro 4 hours 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. |
|
|