logoalt Hacker News

Laravel Go

47 points • by adrianthedev • today at 6:16 PM • 30 comments • view on HN

Comments

jerf • today at 6:29 PM

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.

➕ show 4 replies
leetrout • today at 6:33 PM

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.

➕ show 1 reply
xXSLAYERXx • today at 6:42 PM

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

➕ show 1 reply
giancarlostoro • today at 6:24 PM

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.

➕ show 1 reply
ahmedfromtunis • today at 6:41 PM

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.

pmkary • today at 6:39 PM

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!

altbdoor • today at 6:32 PM

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

➕ show 1 reply
grzes • today at 6:37 PM

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.

dsissitka • today at 6:24 PM

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

➕ show 3 replies
vova_hn2 • today at 6:42 PM

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.

adrianthedev • today at 6:29 PM

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 • today at 6:31 PM

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

sebastianconcpt • today at 6:39 PM

Okay but why Goravel when you can Rustavel?

rfgplk • today at 6:27 PM

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

➕ show 2 replies
pushpak1300 • today at 6:20 PM

[dead]