I don’t think it makes any sense to keep investing in an old language, while writing code for today.

Which make me ask, will it ever be ported/modernized?

  • Fushuan [he/him]@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    10
    ·
    1 day ago

    … Is this bait??? How in the hell is python an old language??? It gets new releases, it’s readable, it’s used everywhere for everything (sometimes when it shouldn’t but this is not the case tho). It has tools and binds for basically everything.

    Also, comparing it with a compiled language, good one. Guess what is and what isn’t used in serverless functions, Lambda doesn’t even support Go ffs. It’s java, ruby, node and python. And from those most use node or python.

    What the hell, good bait I guess. I’m coming back to write more lol.

    • graynk@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      22 hours ago

      Guess what is and what isn’t used in serverless functions, Lambda doesn’t even support Go ffs. It’s java, ruby, node and python. And from those most use node or python.

      I assume that this isn’t bait, so I’ll answer.

      1. It doesn’t matter what Lambda supports
      2. There isn’t a dedicated runtime for Go because it doesn’t need a runtime. It will work on OS-only runtime like any other language that gets compiled down to a binary: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-provided.html
      • Fushuan [he/him]@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        20 hours ago

        About 1, I was commenting on the serverless world, a big part of today’s cloud infrastructure, and AWS is one of the major cloud providers. I feel like, to show the relevance of a language compared to another, it kinda does matter that you can’t code directly and let the provider compile your small-ish program.

        About 2, it works with the generic runtime for sure, but almost everything does, technically C++ does too lol, meaning that you need to upload the binary that you compile locally or via some sort of pipeline. Which is worse than say, using typescript and letting them transpiled it into is so Node can run it. It’s not supported in that way.

        In any case, you wouldn’t really use a compiled language like Go to have small-ish serverless functions. Go does have a use case ofc, I’m just making a case of how not obsolete python is.

        • graynk@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          19 hours ago
          1. Yes and it all does not matter in the slightest for discussing if a language is a right choice for something like Piefed. Not that there’s much to engage with in the original post - I almost regret leaving a comment on a post like this, but I feel this may be a learning for some.
          2. There is zero significance in it being supported in “that” way. There used to be a Go-specific runtime (before there were OS runtimes), but they have dropped it because it made no sense once OS runtimes appeared. If you use TS you likely already have a build step somewhere before deployment unless your function is dead simple (which admittedly it should be, but rarely is). Might as well compile a binary, it’s not that complicated. And yes, using a compiled language like go (or C, yes) may absolutely be the correct choice depending on what you need - if it’s in a hot path which serves a lot of traffic then it may lead to much better warm up times and better throughput, as there isn’t a whole runtime to boot and script to interpret like there would be with Node and/or Python (let’s not talk about Java). I’m simplifying a bit, but hope that helps.

          I’m just making a case of how not obsolete python is.

          There’s no need to do that, it’s self-evident and the original post does not deserve a second of anyone’s time.

          • Fushuan [he/him]@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            2
            ·
            5 hours ago
            1. You are right, I guess I was unnecessarily defending python too much.
            2. Iirc with typescript was is the one that takes care of the transpilation step, so you can technically just code and the press deploy like with python or js. But yeah, you are right, this discussion is irrelevant to the topic of the post.

            Agreed that the OG post doesn’t deserve anyone’s time, which is why I acknowledged that they successfully baited me lol. I think I did.

            Have a great day! <3