Laravel Go

(github.com)

238 points | by adrianthedev 16 hours ago

43 comments

  • jerf 16 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 16 hours 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.

      • nirui 4 hours ago
        It really depends on what you mean by detail.

        Laravel uses autoloading (so as most other PHP frameworks), and magic methods (https://www.php.net/manual/en/language.oop5.magic.php) etc, which are features of PHP language.

        Of course you can replace most of them, for example, swap `__get` with a manually implemented `.get`, but then you're talking about general programming patterns, not language/framework any more.

        For Go specifically, it don't have class method override or even class, the `struct` embedding works a little bit differently. So at least that part will be different, and the difference will probably water fall all the way down to the point it effects how user use the framework.

      • dofm 16 hours 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.

        • cantalopes 11 hours ago
          Nothing wronf with laravel (php) in llm era
          • jack_pp 7 hours ago
            Why would you write PHP with LLMs? The whole point of PHP / laravel is trading performance for speed of development. LLMs inherently solve speed of development so why even use PHP any more unless you're supporting a legacy code base?

            I've worked on a single laravel project in the past and I didn't like it. Whenever I needed something just a little more complex than what the docs suggested I felt I had no way of figuring out how to do it and support forums were scarce of solutions.

            • Implicated 3 hours ago
              For the same reason you would build something in React in the LLM era... because it's what the LLMs are good at. What Laravel has going for it is that it's opinionated, those opinions are conventions (loosely) and that is consistency. That results in llms being very good at building laravel things the laravel way.

              In the same way they're great at building things on React.

              But I don't know, I'm just some rando who built a whole huge ass "factory" (that would be an understatement) on Laravel, for mostly (albeit, here lately, mostly not) Laravel projects and it's _insane_. I may be biased. I may also be lucky to have jumped on that bandwagon.

              And why follow it to Rust/Go? Same reason. The opinionated wave of consistency and quality into languages with different strengths.

            • myspy 2 hours ago
              Who guarantees that LLMs will generate code that fulfils quality and security requirements? A human still has to be responsible for the resulting product and when the human can't follow what the AI does, it is worthless. For a human to follow the AI results he has to read and understand the code, which brings us back to a well documented framework that helps to follow along.
            • spider-mario 2 hours ago
              > The whole point of PHP / laravel is trading performance for speed of development.

              (For my 12-year-old self, it was being able to push a bunch of .php to a free host and have them run. I later even considered learning Haxe to have a better language while still being able to compile to PHP for that use case.)

            • stef25 2 hours ago
              > Whenever I needed something just a little more complex than what the docs suggested I felt I had no way of figuring out how to do it and support forums were scarce of solutions

              Details ?

              Laravel docs & ecosystem are top-shelf

            • kijin 6 hours ago
              On the other hand, why would you prefer any human-readable programming language or framework over another in the age of LLMs?

              Like, why stop at Rust or Go when LLMs will soon be able to generate binaries for your target architecture better than any compiler can. The LLM could be writing dark verses in brainfuck behind the scenes for all I know. It doesn't matter anymore because we're not gonna read any of it.

              • preg_match 5 hours ago
                Because they won’t be able to write assembly well. LLMs rely on strong guardrails and tools to perform well.

                PHP performs poorly with LLMs not because it’s readable, but because it’s too dynamic and wishy-washy. Statically typed languages and strongly typed languages just perform better out of the gate, because the LLM has more context to reason about the code.

                I program in PHP all day, I know. PHP is a bad language for LLMs. C# is better, Java is better, rust is better. LLMs will never replace compilers because they don’t need to. What compilers provide is a rich information system and strict structure. That’s exactly what LLMs rely on.

                • pjmlp 3 hours ago
                  > Because they won’t be able to write assembly well.

                  They already do a good enough job, it is only a matter of improving it.

                  https://www.phoronix.com/news/Frame-X11-Server-Assembly

                • spiderfarmer 3 hours ago
                  > I program in PHP all day, I know. PHP is a bad language for LLMs.

                  That statement is so absurdly false that I'm fully convinced you never used an LLM for serious PHP development.

              • jack_pp 4 hours ago
                Why drive a car when you can teleport in the future?
              • scandals 5 hours ago
                Introducing BFCode... the Brainfuck llm you didnt know you needed
        • yurishimo 12 hours ago
          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 15 hours ago
          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 15 hours ago
            > Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords.

            I was not talking about PHP, but Laravel.

          • 9dev 11 hours ago
            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 11 hours ago
              I still like and enjoy PHP. But after PHP2Shell I am done with it and any other scripting languages for future server-side web projects.

              I think scripting languages tend to represent too great an attack surface, for humdrum reasons (like over-capable default configurations).

              So I welcome this effort (not least because I quite like Go)

              • udbhavs 6 hours ago
                Funny, I saw a comment here on another thread postulating that scripting languages / languages with runtimes would be more popular in the feature because of the fast time to patch vulnerabilities on running machines, whereas with Rust and the like you'd have to deal with long compile times...
            • craigmcnamara 4 hours ago
              I look at that and "amazing" is not how I'd describe what I'm seeing.
      • tredre3 16 hours 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.
        • hkpack 15 hours ago
          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 14 hours ago
            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.
      • ZYbCRq22HbJ2y7 10 hours ago
        it is built on symfony, and a heavy part of it was the doctrine ORM, until very recently. i don't think it was laravel solely taking those patterns, but you are right that it was heavily rails inspired. i would wager that these recent steps are also DHH inspired, who taylor otwell amires.
    • pjmlp 3 hours ago
      I really don't get to whose is this for, Laravel folks chose it because of PHP, and if I would be using Go or Rust, I would pick something designed for them in first place, not a port from another framework.

      Just like I would not use Spring for .NET, or ASP.NET MVC for Java.

      • rob74 2 hours ago
        Well, PHP developers migrating to Go, I guess? But AFAIK the Go community still prefers a "library-type" approach to development (or, if at all, lighter frameworks) rather than using Laravel-type frameworks that dictate how you should structure your application.
        • pjmlp 2 hours ago
          Still, they would be better off picking a Go "native" framework.

          I never felt that it was a major issue while moving between ecosystems, to carry old patterns around, that is how you get the old meme "You can code FORTRAN in any language".

      • stef25 2 hours ago
        As a Laravel dev, this absolutely wants me to check out Rust & Go. They were quite intimidating previously.
      • iLoveOncall 2 hours ago
        You simply don't understand how LIGHTYEARS ahead of any other web framework Laravel is.

        I've used multiple frameworks in Java, TypeScript, Python and probably other languages that I forgot, and Laravel is literally existing in a superior plane compared to any of them.

        The simple fact that it's available in other languages makes those languages more attractive.

        • pjmlp 1 hour ago
          I have been programming since 1986, Web development since 1997, worked on a startup that had "Rails" with Tcl, the founders went on to create one of the very first RAD environments for Web, OutSystems.

          Know PHP since version 5, and have put up with it on my ISP hosting.

          Yeah, I really don't understand.

    • unglaublich 16 hours ago
      • giancarlostoro 16 hours 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.
        • iLoveOncall 2 hours ago
          Laravel doesn't need anything besides eventual security updates and PHP version upgrades, why would anyone panic?
        • chinathrow 16 hours ago
          To what framework? Symfony?
          • piyh 8 hours ago
            I'm waiting for Django assembly
          • WesolyKubeczek 12 hours ago
            You say this as if it's something bad.
            • steve_adams_86 7 hours ago
              I always preferred Symfony over Laravel when I had to make PHP things. Laravel is awesome, but Symfony always struck me as the right tool when you know exactly what you need (besides a different language).
        • jonwinstanley 16 hours ago
          Can’t see that happening.
          • giancarlostoro 15 hours ago
            To be fair, I see it happening less so with PHP, but with either Go or Rust it could be a possibility.
    • sfdsfef3f3f 15 hours ago
      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 15 hours ago
        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 16 hours ago
      Yup! Released yesterday.
    • tempest_ 7 hours ago
      For PHP (really Laravel) devs who wont be writing this code (LLMs will write it) but will be reading it.

      LLMs write rust pretty well and since it is C++ performance without c++ baggage and so everyone is "rewritting" their stuff in it because no one gives a shit about devex if the dev is not really required.

    • jasonlotito 16 hours ago
      This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating.
      • NetOpWibby 12 hours ago
        Sir, this is HackerNews; we don't do that here.
    • helsenki 15 hours ago
      [dead]
    • giancarlostoro 16 hours 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 16 hours ago
        Bun, I think Claude Code is still JavaScript or TypeScript
        • giancarlostoro 16 hours ago
          Bun is what hosts Claude Code, Bun was Zig, now its Rust, but yeah I guess I wrote CC instead of Bun.
          • flexagoon 15 hours ago
            > Bun is what hosts Claude Code

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

            • satvikpendem 15 hours ago
              Claude Code runs on Bun, it's why Anthropic bought Oven. Maybe you should research the facts before making comments like these.
              • flexagoon 12 hours ago
                I'm aware of that. "Bun hosts Claude Code" is a nonsensical sentence. Bun is a JS runtime. It doesn't "host" anything.
                • thunderfork 9 hours ago
                  A runtime "hosts" a (non-browser) JS application in much the same way a JVM "hosts" a Java application, or a VM "hosts" an OS, no?
      • tredre3 16 hours ago
        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 15 hours ago
          > 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 16 hours ago
        "It wasn't a PR stunt, they were just trying to show how impressive their product is"
        • giancarlostoro 15 hours ago
          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.
  • vegancap 26 minutes ago
    Y'know, switching from PHP, to Node, and eventually settling on Go many years ago now. I always lamented that Go didn't have something as nice DevExp wise as Laravel, and missed Laravel dearly. So this is a lovely surprise.

    I thought because of the verbosity and simple grittiness of Go, you could never make anything Laravel like in being a joy to write and use. Looking through the examples, it looks as though Generics, and likely the recent generic methods improvement has enabled this. I was suspicious of Generics in Go at the time, but it really has enabled some really cool patterns and use cases.

    Shame this was released in the AI world, I'd have enjoyed writing this by hand!

  • asim 47 minutes ago
    As someone who spent 10+ years writing and maintaining an open source Go framework I'd say the timing is about right. We can be pretty pessimistic about the lack of need for frameworks in the age of AI but laravel has a huge user base meaning a lot of php and so much of that would benefit from migrating to Go or having some adjacent Go stack for it's existing users. As for new users, I don't know, it's hard to say if it's the right thing but definitely it can be useful for migration for an existing audience.
  • leetrout 16 hours 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 hours 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.
      • 0x23alfonso 16 hours ago
        yeah, can confirm Taylor put a lot of thought into this
        • conradfr 15 hours ago
          A lot of tokens.
          • dofm 15 hours ago
            It's not an "LLM rewrite" in any direct sense.
            • spartanatreyu 10 hours ago
              Of course not, he clearly states:

              > But this framework is not a "slop fork" [...] every detail of how you interact with Laravel Rust was hand-curated and hand-tuned by me.

              Just ignore the previous sentence where he says:

              > I made heavy use of cloud agents [...] to reimagine Laravel in two months instead of fifteen years.

              • dofm 10 hours ago
                These two sentences are not inconsistent.
                • trog 9 hours ago
                  Slop is when someone else uses AI to do something. Hand-curated is when I do it!
                  • dofm 8 hours ago
                    What I mean here is that this is clearly not a hands-off, loop-driven autoconversion in the way people understand LLM rewrites to be.

                    I think you'd have to know Laravel, PHP and a bit of Go to see why, but it really can't be an autoconversion, and it isn't.

                    It's really quite different; still has some Laravel feel and the packages cover the same ground, but it has been clearly rethought in many places. It's quite neat, not forced or clunky.

                  • preg_match 5 hours ago
                    Slop is low effort mostly autonomous coding. Carefully designing systems and then implementing them with an LLM is not slop. That’s how the Linux kernel works. The Linux kernel is obviously not slop.

                    Slop != AI. LLM assisted programming != vibe coding.

                    • pjmlp 3 hours ago
                      "LLM assisted programming" is when I get code completion suggestions, not when it rewrites the whole thing in my name.
              • dkh 10 hours ago
                So is your view that the moment an AI agent has come into contact with any part of your project, the totality of the project is now slop?
                • spartanatreyu 6 hours ago
                  No.

                  Quantitatively the floor of the measure of slop is directly proportional to the amount of artifacts (code, assets, documentation, processes, etc...) affected by an agent, and qualitatively by how important each piece is.

                  If someone spends 6 months creating a game themselves (no agents), then the project may have a zero sized amount of slop.

                  If that person then uses LLMs/agents to create a store page for the game: the game itself may not contain any slop, but the sloppy store page may suggest things that do not reflect the reality of the game itself which impacts the whole project, so now the project has moved from a possibly zero sized amount of slop to a guaranteed non-zero amount of slop.

                  If a human being produced the store page instead, then the project may not be compromised with slop. It may still be sloppy/shoddy/etc... for other reasons, but not due to LLMs/agents.

    • JodieBenitez 15 hours ago
      > I've said for a decade we really need DjanGO

      Coming from Django I thought that too but now that I have made a few LLM-assisted ports of Django apps to Go I'm not so sure. Even pluggable apps are possible with Caddy.

  • thiht 1 hour ago
    Meanwhile we're going the opposite way and removing libs in favor of net/http with < 10 custom helpers. In one of my project I just added render.JSON, render.Error, bind.JSON and copy-pasted a few middlewares from chi-router (logging, recover, the basics). If I need other helpers like form data or multipart, I'll just add them.
  • giancarlostoro 16 hours 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 16 hours ago
      Yeah. Taylor has definitely proven that he builds great frameworks.
      • chinathrow 16 hours ago
        I wonder how he can ship this stuff now so fast.
        • JonArnfred 3 hours ago
          There is 100+ people working at Laravel today, most of these are engineers. It's a very well funded company and they're very diversified across products.
        • mervz 16 hours ago
          wtf do you mean? it's quite obvious...
          • satvikpendem 15 hours ago
            They're being sarcastic.
          • chinathrow 16 hours ago
            Slop?
            • ParadisoShlee 8 hours ago
              "slop" slop.
            • hitcv 16 hours ago
              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?
              • skydhash 13 hours ago
                I would say because most people don't run with something built by 99% of programmers. You take Google, Microsoft, Apple, and a few other companies and you corner the majority of products people generally use. The other programmers have much smaller user bases. So slop in Windows is much more alarming than slop in something like notion.
                • hitcv 12 hours ago
                  huh? AI better at programming than 99% of FANG programmers too.
                  • skydhash 11 hours ago
                    Extraordinary claims require extraordinary evidence (or just ordinary ones would do in this case ;) )
                    • preg_match 5 hours ago
                      AI is used in the Linux kernel. It’s only resulted in higher quality code, less bugs and less vulnerabilities.

                      It’s obvious that LLMs in the hands of good engineers results in higher quality code than those engineers could produce alone. Which makes sense. LLMs allow you to:

                      - research more deeply

                      - design more thoughtfully

                      - test more aggressively

              • dkh 10 hours ago
                I mean, considering there are still people in this thread decades later making jokes because Laravel is/was PHP, probably forever
      • craigmcnamara 4 hours ago
        That's a funny way to say copies the best parts of Rails into a sub-par language.
  • samtechie 15 hours ago
    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 reasonably complicated projects because your code is the framework.
    • tschellenbach 12 hours ago
      A lack of standardization slows down both humans and AI
      • Cthulhu_ 40 minutes ago
        The Go team and community agrees, which is why they generally advise against using frameworks or libraries that don't follow the same coding standards as the SDK (like testing libraries introducing a "DSL" of sorts using e.g. chaining)
      • bborud 10 hours ago
        So it gets better when we add another thing that creates more divergence and more presumptive standards?

        (Of course not)

  • muddi900 2 hours ago
    Laravel is the exact opposite of how the Go philosophy works. It would be interesting to explore though.
  • pmkary 16 hours 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 16 hours ago
      The notion that it will get the same support attention as Laravel (human documentation, thoughtful design etc.) is what is most appealing.
      • Capricorn2481 12 hours ago
        Did they triple their staff or something? They just announced Laravel Rust yesterday.
        • Cthulhu_ 40 minutes ago
          I suspect with the advent of AI they don't need the same number of resources to support other languages as they would have in the Before Times.
        • n1c 2 hours ago
          They raised a ton of money late 2024 to build out Cloud (and friends).
  • ahmedfromtunis 16 hours 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.
    • dkh 9 hours ago
      The ORM alone… it would be cool to spin that out into something that could be used the same in many other programming languages

      (I am preemptively declaring my disinterest in any potential clever reply saying “it’s called SQL”)

  • normcu 4 hours ago
    I still love Laravel. When I occasionally need to build websites for my clients,I still use laravel because it offers a very smooth and effortless deployment process for hosting.
  • adrianthedev 16 hours 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 16 hours ago
      Most of our infra team are Go guys and gals. Several of our broader teammates come from Rust backgrounds.
    • 0x23alfonso 16 hours ago
      yeah, I was reviewing/looking/signaling good or bad, the first iterations of rust
    • mervz 15 hours ago
      Yeah, his name is Claude.

      Nice fella, really good at coding.

  • 0xblinq 14 hours ago
    I’m pretty sure Laravel Typescript is coming next.

    It’s the obvious missing one, given languages popularity and available devs.

    I also remember I heard Taylor say (I think it was in a podcast) a few years ago that if he had to reimplement Laravel in any language it would be Ts/js.

    • dsagent 12 hours ago
      They tried it out this year and didn't think it brought much more to the table then what tools already exist.

      I think laravel-ts is not on the roadmap for now.

      Source: https://www.youtube.com/watch?v=HWpn8fidqQI&t=2470s

    • sbarre 7 hours ago
      The blog post introducing Laravel Go specifically says they're not looking at Typescript because there's plenty of established TS frameworks.

      They wanted to contribute a batteries-included web framework where one was needed, not where there are already enough.

    • rd07 7 hours ago
      Not an official Laravel implementation, but there is AdonisJS
  • kqgnkqgn 15 hours ago
    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).

  • capitanazo77 6 hours ago
    Hopefully they implement laravel as serverless functions.

    To make it the default choice for the bazillion micro apps that people will build using muse, ChatGPT and Claude

  • gexla 8 hours ago
    i feel like Laravel is great for developer UX. That will continue to have a place, as not all developers want to give up that control.

    But the next "Rails" is going to be something with a great agent experience (AX?) if that's even a thing. I haven't thought much about this. My agents hum along making their own choices for the most part. MY guess is that the best agent experience is tooling which cuts down the "wait, actually..." type of thinking.

    • sroerick 6 hours ago
      Maybe something like a near one-shot experience for code, agents, workflows, deployment
    • calvinmorrison 7 hours ago
      people talk a lot about slop and code bases going to hell. a good framework makes things like that harder (a little) to do wrong. there's a right way to do everything in Laravel.

      But Laravel is PHP, and PHP is laravel, and things like the package system, no building, php style debugging, being able to hotpatch vendor code, just all sorts of stuff to me, is so PHP'-ey that it's hard to imagine what it looks like in a language that is not OOP or language feature ... heavy ?

  • adrianthedev 16 hours 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!
  • dofm 15 hours ago
    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.
    • aarondf 13 hours ago
      number one on our list!
      • dofm 11 hours ago
        Awesome!

        As an aside, please pass on my thanks to whoever wrote your AI SDK documentation. It's probably the thing that made the entire general process of implementing tools and approvals concrete to me. Just plain and simple.

        As with everything that Laravel does, the sheer human-to-human clarity of the documentation is basically second to none. Don't ever change that!

  • xXSLAYERXx 16 hours 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??
    • edoceo 10 hours ago
      International commercial loan origination, underwriting and servicing.
    • chinathrow 16 hours ago
      High traffic?
      • hitcv 16 hours ago
        the site you're literally on right now isn't ambitious and gets high traffic
    • mystifyingpoi 16 hours ago
      Nothing, it's just marketing fluff.
  • hiccuphippo 15 hours ago
    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 15 hours ago
      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.

  • altbdoor 16 hours ago
    Curious how this differs/compares to https://github.com/goravel/goravel
    • adrianthedev 16 hours 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.
    • hadi77ir 15 hours ago
      The difference is that Laravel's code is now purely LLM-generated, while goravel is 5 years old and is more modular.
    • codynaut 12 hours ago
      [dead]
  • hmokiguess 16 hours ago
    Soon: Laravel Markdown
    • mystifyingpoi 16 hours ago
      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...

  • dsissitka 16 hours 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 16 hours ago
      Also the site is up https://laravel.com/go
    • seki285 16 hours ago
      Personally I'd choose Go because I will always feel more comfortable reading it.
      • sfdsfef3f3f 15 hours ago
        I'd choose Rust because it's far more expressive and far more can be guaranteed at compile time. Extractors, the struct tags and runtime reflection all over the Go database/validation layers and the Rust error handling are good examples of that.
    • QGQBGdeZREunxLe 16 hours ago
      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...

      • vova_hn2 16 hours ago
        > 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 16 hours ago
        Jesus. Some folks...
  • bborud 10 hours ago
    Why would you want to go in the direction of a large framework? Large frameworks made Java uninhabitable (raise your hand if you do not immediately head for the door when you see anything Spring in Java), and it made frontend development unbearable.

    Why!?

    • garbagepatch 5 hours ago
      Everything is included, have similar APIs and is connected to work with each other. And with compiled native languages anything you don't use doesn't get compiled into the final build.

      One thing Laravel has are standard APIs (from PSR but also their own) so you can replace the parts with others if you want to.

      • bborud 39 minutes ago
        > Everything is included

        That is also the problem. It may be an advantage if the framework is near congruent with your application needs and if the people who you work with you are sufficiently disciplined, but in general, frameworks tend to represent a much, much bigger surface than what is required by your application.

        Large frameworks also become a problem if you need to deviate from what they provide. Essentially: when there is a better solution for something that would have lower cost (time, money, maintenance and security surface area, complexity etc). You have already paid for it, so there will be a reluctance to pay for it again. (Again, by "pay" I mostly don't mean money).

        It takes you much longer to learn Spring, and become good at designing and programming with it, than it takes you to learn Java, and learn to use Java effectively. And I assume we're professionals so merely being able to use it is not the bar we are aiming for; we want to aim higher, right?

  • CodeCompost 4 hours ago
    Great. Do .NET next.

    I being facetious of course but there are some concepts, like Inertia, which would work well with .NET.

    But of course Blazor occupies that space, so...

  • seki285 11 hours ago
    When is this expected to leave beta? I personally wouldn't try it until a 1.0 at least
  • cdrnsf 7 hours ago
    I'm looking forward to Laravel COBOL.
  • racl101 11 hours ago
    What then is is the essence of Laravel? If it was created by Taylor Otwell?
    • pluc 9 hours ago
      I think essence of Laravel would be reducing Taylor Otwell's bath water
  • hk1337 16 hours ago
    I thought Taylor had said, on Twitter/X I think, that they were not heading in that direction not long ago?
  • MentallyRetired 9 hours ago
    We all missed out on CSP and AS4.
  • vova_hn2 16 hours 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.

    • jjice 16 hours ago
      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 15 hours ago
        > 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.

        • jjice 15 hours ago
          Yeah, I do agree with you in concept! I would love for this and the Laravel Rust to succeed, but you're right that these don't get that auto stamp of approval. My comment was vague in that I was more so talking about the concept.
    • dofm 15 hours ago
      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.

    • mystifyingpoi 16 hours ago
      Is it really economical to generate a half-assed, ultra specific to the current needs web framework every time from scratch?
      • vova_hn2 15 hours ago
        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?

        • mystifyingpoi 15 hours ago
          There is very little reason not to use the most popular web framework possible for a new product. If we use Java, Claude knows Spring, no docs needed for 99.9% of the typical cases. No one will look at the code anyway, there will be no time, so who cares? This will be for sure cheaper then rewriting HTTP handlers using raw sockets every time.
    • slopinthebag 7 hours ago
      yeah 100%. why would i wanna use someone else's slop when I can use my own slop?
  • HeadOfProbing 11 hours ago
    It's interesting, but are frameworks that relevant anymore in the age of AI coding? Why would someone rewrite a Go server using this?
    • nameless912 9 hours ago
      I'd argue that frameworks in the age of Agentic engineering are more important than ever. That being said, human-centric frameworks that optimize for people writing code are a thing of the past.

      I think Laravel for Rust/Go has the right idea: battle tested architecture, fittings, and patterns that agents can adopt, without all the magic of a Rails or ceremony of a Spring Boot. The value is in agents being able to repeatably do high quality work: we don't need every agent and every app to invent CSRF from first principles, we need agents to know they have a CSRF solution that has been thoroughly tested by a community and ready to be used.

      Could we do this with disparate packages rather than a framework? Sure, in theory, and many are today. But the value of a framework is in every agent understanding it without needing to scan the entire codebase. If I can load up a Laravel-Go skill in my session that uses 5000 tokens and gives the agent a high level overview of how the entire framework operates, then it doesn't need to burn 100k tokens re-deriving it from first principles. Multiply that by several devs over each of dozens of apps at a company and that's real savings.

    • dlisboa 10 hours ago
      > are frameworks that relevant anymore in the age of AI coding?

      The answer is NO. Frameworks optimized for humans, LLMs can recreate the common conventions and patterns in seconds.

  • anentropic 1 hour ago
    Now do Laravel OCaml....
  • grzes 16 hours 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.
  • keyle 12 hours ago
    Isn't there go ravel already?
  • flossly 12 hours ago
    Better than PHP.

    But still pushing an ORM. Counter productive, especially in this day'n'age.

  • nchmy 15 hours ago
    Laravel Typescript when?
  • rvz 1 hour ago
    I said this before [0] and I have always meant it.

    PHP is done.

    [0] https://news.ycombinator.com/item?id=50187419

  • sebastianconcpt 16 hours ago
    Okay but why Goravel when you can Rustavel?
    • dofm 15 hours ago
      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.

    • hiccuphippo 15 hours ago
      Build speed. May be even faster with Zigavel or C3vel.
      • keyle 9 hours ago
        Hanging in there for Lispavel /s
  • rfgplk 16 hours ago
    Laravel C++ when? I've got some spare tokens if you'd like a quick port.
  • nprateem 14 hours ago
    This is silly. A rust version I can see as being the future. Laravel in go too sounds like chucking stuff at the wall to see what sticks. I doubt I'll use either of them now as a result as I expect the maintenance overhead will lead to one being killed in a few years.
    • evantbyrne 12 hours ago
      Not sure what you mean? Go is a natural choice for a web service due to tooling, being easy to read, and having an entire HTTPS implementation in the standard library. Imperfect type system but generally low baggage language
      • nprateem 3 hours ago
        I mean can we really expect them to triple their maintenance effort, not just php and rust but now also go
  • ballcatcher 3 hours ago
    [dead]
  • pushpak1300 16 hours ago
    [dead]