Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
ZeSystem ( ZeSystem@programming.dev )  to Rust@programming.devEnglish · 1 个月前

Wid: My package manager project

github.com

external-link
message-square
28
link
fedilink
3
external-link

Wid: My package manager project

github.com

ZeSystem ( ZeSystem@programming.dev )  to Rust@programming.devEnglish · 1 个月前
message-square
28
link
fedilink
GitHub - ZeSystem-Inc/wid
github.com
external-link
Contribute to ZeSystem-Inc/wid development by creating an account on GitHub.

Wid: My package manager project

Hi guys,

This is my package manager project. Wid, as the name implies is a Windows Downloader. My project is open-source and GPL v3 license. You can figure out the rest by experimenting. You can learn the commands by entering the “wid” command into cmd.

Repo: https://github.com/ZeSystem-Inc/wid Releases: https://github.com/ZeSystem-Inc/wid/releases

alert-triangle
You must log in or # to comment.
  • CameronDev ( CameronDev@programming.dev ) 
    link
    fedilink
    arrow-up
    6
    ·
    1 个月前

    Some feedback:

    let remote_url = "https://gist.githubusercontent.com/ZeSystem-Inc/20ddc1ac41d73c6033cee3b4a5ab1a85/raw";
    

    You have effectively hardcoded the list of software you support, ideally you should be able to dynamically update the list, otherwise you have no way to revoke or update versions if required. And if its hardcoded, why bother network requesting for it, just build it into the binary. Would be a little larger binary, but even faster.

    No dependency resolution – eliminates fragility.

    Meaningless, there is no dependency resolution because thats done for you by the installers.

    Written in Rust – memory-safe, zero-cost, ultra-fast.

    The task you are doing is entirely IO bound, rusts performance is irrelevant.

    • ZeSystem ( ZeSystem@programming.dev ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      Actually, I have a Gist for this that you can use. I update the Gist from time to time. In fact, the sources.list file can be customized specifically.

      • exdor ( exdor@programming.dev ) 
        link
        fedilink
        arrow-up
        1
        ·
        1 个月前

        The point is that you pinned a specific commit instead of a branch like main

        And yeah calling dependency resolution fragile is weird. It is not an actual package manager, just a download tool.

        • ZeSystem ( ZeSystem@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          1 个月前

          I already use tags for releases. The commit hash is for development. You can check the releases page.

    • ZeSystem ( ZeSystem@programming.dev ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      Actually, it’s not static. I’m updating the package list.

      • CameronDev ( CameronDev@programming.dev ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 个月前

        Updating the gist gives a new URL no?

        • ZeSystem ( ZeSystem@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          1 个月前

          I think you should use wid. I already use my own download tool. It’s better than winget, choco, and ninite.

          • CameronDev ( CameronDev@programming.dev ) 
            link
            fedilink
            arrow-up
            10
            ·
            1 个月前

            Better is a wild claim.

            You’re right, gists do seem to update with the static url, however that isnt necessarily better, it now means your gist is effectively under your control, and you can replace the installers with malware packed ones. Operating a software repository/installer requires that people trust you, and that is basically impossible for a no-name dev with no history.

            You ideally should be doing checksum checks as well.

            • ZeSystem ( ZeSystem@programming.dev ) OP
              link
              fedilink
              arrow-up
              1
              ·
              1 个月前

              I use official links and check versions.

              • CameronDev ( CameronDev@programming.dev ) 
                link
                fedilink
                arrow-up
                6
                ·
                1 个月前

                Sure, you might today, but tomorrow? How can anyone trust that you wont start serving malicious links?

                • ZeSystem ( ZeSystem@programming.dev ) OP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 个月前

                  It’s open source. Anyone can audit it. You can create your own sources.list, but if you distribute it, you must open the code. Also, “wid info <package_name>” shows the exact URL it downloads from. Example: wid info llvm shows the official GitHub release link.

        • ZeSystem ( ZeSystem@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          1 个月前

          No, when I edit the gist, the URL doesn’t change. There are 32 packages right now. I’ve just added Epic Games. I use GitHub Gist.

      • one_old_coder ( one_old_coder@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 个月前

        it’s not static

        It is static. Please stop, it’s embarrassing.

        • ZeSystem ( ZeSystem@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          1 个月前

          The URL is static. The content is dynamic because I update the Gist. That’s how Gist works.

          • one_old_coder ( one_old_coder@piefed.social ) 
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 个月前

            And it’s a very bad and dangerous idea, I’ll leave it as an exercice to the reader.

  • TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 个月前

    I want to explain what this is to my kids. Can you describe it in a way that Dr. Seuss would?

  • INeedMana ( INeedMana@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 个月前

    How could Wid help me type like this person does?

    • ArsonButCute ( ArsonButCute@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 个月前

      deleted by creator

      • INeedMana ( INeedMana@piefed.zip ) 
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        1 个月前

        Look at OP’s history. It’s an LLM that in some other post got entangled into writing limerics for commenters. I started looking for an publicly available iocaine instance but couldn’t find any. So who knows, maybe sending that LLM after San might poison it just a little bit? Even if it would only be in the comment, that would still be a small win

        I get where you’re coming from. But my comment is not a jab at San

        • ArsonButCute ( ArsonButCute@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 个月前

          Actually, my bad, you’re totally in the right here. I’m sure this actually aligns pretty heavily with San’s goals

          • INeedMana ( INeedMana@piefed.zip ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 个月前

            It’s fine, your intention was right. I appreciate you standing up for someone else

        • algernon ( algernon@lemmy.ml ) 
          link
          fedilink
          arrow-up
          4
          ·
          1 个月前

          FWIW, https://poison.madhouse-project.org/ is the iocaine demo host, it’s equally garbage for all visitors, and is an endless maze of junk.

          Feel free to send LLMs that way.

        • exdor ( exdor@programming.dev ) 
          link
          fedilink
          arrow-up
          4
          ·
          1 个月前

          Hillarious isnt it!

        • ZeSystem ( ZeSystem@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          1 个月前

          Where is the evidence?

    • ZeSystem ( ZeSystem@programming.dev ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      deleted by creator

    • ZeSystem ( ZeSystem@programming.dev ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      Wid is a package installer, not a writing assisant. It installs software on windows

  • Flipper ( Flipper@feddit.org ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 个月前

    Can you even take a project on github serious, if the author can’t even use git?

    • ZeSystem ( ZeSystem@programming.dev ) OP
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      I use git regularly. Commits, tags, and releases are all there. If you see something specific I’m doing wrong, feel free to point it out.

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 28 users / week
  • 221 users / month
  • 757 users / 6 months
  • 118 local subscribers
  • 8.33K subscribers
  • 1.27K Posts
  • 3.76K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • EdTheLegendary ( EdTheLegendary@programming.dev ) 
  • torcherist ( torcherist@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code