Laravel Go

(github.com)

57 points | by adrianthedev 35 minutes ago

17 comments

  • jerf 21 minutes 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 14 minutes ago
      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 minutes ago
        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.

      • tredre3 2 minutes ago
        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.
    • unglaublich 20 minutes ago
      • giancarlostoro 16 minutes ago
        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 8 minutes ago
          To what framework? Symfony?
    • adrianthedev 20 minutes ago
      Yup! Released yesterday.
    • giancarlostoro 17 minutes ago
      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 10 minutes ago
        Bun, I think Claude Code is still JavaScript or TypeScript
      • flexagoon 1 minute ago
        "It wasn't a PR stunt, they were just trying to show how impressive their product is"
    • jasonlotito 6 minutes ago
      This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating.
  • leetrout 17 minutes ago
    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 16 minutes ago
      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.
  • giancarlostoro 26 minutes ago
    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 17 minutes ago
      Yeah. Taylor has definitely proven that he builds great frameworks.
      • chinathrow 7 minutes ago
        I wonder how he can ship this stuff now so fast.
        • mervz 3 minutes ago
          wtf do you mean? it's quite obvious...
  • ahmedfromtunis 9 minutes ago
    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.
  • hmokiguess 1 minute ago
    Soon: Laravel Markdown
  • hk1337 4 minutes ago
    I thought Taylor had said, on Twitter/X I think, that they were not heading in that direction not long ago?
  • xXSLAYERXx 8 minutes ago
    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??
  • pmkary 12 minutes ago
    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 3 minutes ago
      The notion that it will get the same support attention as Laravel (human documentation, thoughtful design etc.) is what is most appealing.
  • altbdoor 19 minutes ago
    Curious how this differs/compares to https://github.com/goravel/goravel
    • adrianthedev 11 minutes ago
      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.
  • dsissitka 26 minutes ago
    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

  • adrianthedev 21 minutes ago
    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 20 minutes ago
    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 2 minutes ago
      Most of our infra team are Go guys and gals. Several of our broader teammates come from Rust backgrounds.
  • grzes 14 minutes ago
    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.
  • vova_hn2 9 minutes ago
    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.

  • sebastianconcpt 11 minutes ago
    Okay but why Goravel when you can Rustavel?
  • rfgplk 24 minutes ago
    Laravel C++ when? I've got some spare tokens if you'd like a quick port.
  • pushpak1300 31 minutes ago
    [dead]