I’ve been trying to get luarocks to work on windows, and all it gives is cryptic gcc errors.

How does pip manage to work on most platforms without issues?

    • irelephant [he/him]OP
      link
      fedilink
      32 months ago

      Lack of windows support for most luarocks modules has stopped me from writing a lot of stuff in lua.

          • nitrofurano
            link
            fedilink
            12 months ago

            @irelephant it reminds me what my mother used to say all the time: “its not because most people are jumping into a hole that you have to as well” xD

        • irelephant [he/him]OP
          link
          fedilink
          12 months ago

          I was thinking of making a simple SSG (Static Site Generator), and I wanted to make it in lua.
          some other cli tools, like scraping scripts as well.

          • @[email protected]
            link
            fedilink
            22 months ago

            So web scraping speed is at issue? I believe Python has beautifulsoup for web scrapping.

            Unless it’s for a learning experience, would recommend to not reinvent the wheel. Have been there done that too many times.

            I feel like the village idiot cuz not properly learning that lesson.

            • irelephant [he/him]OP
              link
              fedilink
              12 months ago

              No, speed isn’t the issue. Its installing packages/modules on windows with luarocks, the lua package manager. It doesn’t work half the time on windows.

  • @[email protected]
    link
    fedilink
    English
    22 months ago

    I’d love to hear a technical answer, but one thing that’s probably part of it is the fact that pip is written in Python and Python runs everywhere without much problem (though uv also seems to work pretty flawlessly too lol)

  • @[email protected]
    link
    fedilink
    292 months ago

    I’m surprised to hear you say this because in all honesty, pip really sucks as far as package managers go. uv is a worthy replacement.

    • @[email protected]
      link
      fedilink
      3
      edit-2
      2 months ago

      I think this is talking about basic functionality, eg. can you do basic stuff with a clean install without everything immediately breaking

      There’s a lot of programming tools that are primarily developed for and on linux, and “windows support” is an afterthought which will result in linux being a very frictionless experience but windows being a minefield of problems and requiring careful manual setup

  • gid
    link
    fedilink
    English
    152 months ago

    If you’re getting gcc errors it sounds like the package you’re trying to install contains some c/c++ stuff that needs compiling.

    A lot of python packages that rely on things written in c/c++ ship those precompiled, which might account for why it feels easier for you.

    • irelephant [he/him]OP
      link
      fedilink
      1
      edit-2
      2 months ago

      Sorry if it was unclear, I constantly get cryptic gcc errors using luarocks a package manager for lua. Its years behind pip.

      • gid
        link
        fedilink
        English
        32 months ago

        No, you were clear. That’s what I understood you to mean.

        • irelephant [he/him]OP
          link
          fedilink
          22 months ago

          Ah, I’m the one who misread, sorry.

          Yeah, compiling things from scratch is the norm for lua packages, making them really only work on linux.

  • @[email protected]
    link
    fedilink
    English
    52 months ago

    Pick a language like Perl, where some packages are written in C and some are written in pure Perl, and you’ll get to experience the same cryptic GCC errors, sometimes. There’s no secret to pip; many Python developers upload wheels with pre-compiled binaries, including Windows-compatible binaries, and so you don’t have to run GCC because they already did it for you.

    • irelephant [he/him]OP
      link
      fedilink
      22 months ago

      Thanks, this is the explanation I was looking for.

      Also, lua is the same, packages are either written in c or pure lua.

    • @[email protected]
      link
      fedilink
      12 months ago

      another interesting thing is optimizing runtime using mypyc. This is how our dev toolchain is so quick.

      mypy, flake8, isort, … these kinda packages

      Have never tried using mypyc would appreciate anyone sharing their experience with mypyc or other Python package compilers.

  • @[email protected]
    link
    fedilink
    112 months ago

    It’s a 17 year old tool in the world’s most popular scripting language. It’s effectively had billions of tests run against it.