Plutus, Haskell, Nix, Purescript, Swift/Kotlin. laser-focused on FP: formality, purity, and totality; repulsed by pragmatic, unsafe, “move fast and break things” approaches


AC24 1DE5 AE92 3B37 E584 02BA AAF9 795E 393B 4DA0

  • 12 Posts
  • 278 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle



  • demesisx@infosec.pubtoLinux@programming.devI wrote a bash dependency checker
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    24 days ago

    Wanted to perhaps introduce you to using nix along with direnv and flakes to make your dependencies declarative rather than determined by factors beyond your control.

    In my bash scripts, I often create a .envrc file that points to my flake and sits alongside the bash file. Then, when I navigate into the directory of the script/project, I can make direnv and nix automatically load all dependencies (which virtually guarantees them eliminating the need to check for them).












  • I started a fork of Lemmy geared toward inventory called Lemventory. I’m currently attempting to achieve dev/build tooling parity in Nix before I even touch a single line of their code. But that’s just my idiosyncratic way…anyone who actually knows rust and has their tooling ready could jump in and my Nix stuff wouldn’t get in the way.

    If you’re interested, it’ll probably be a pretty simple rewrite at first. So, you could branch my fork and explore the conversions that would need to be made to enable it if you want.




  • Here’s the gist of my idea so far:

    stores (or alliances of stores in similar industries) :: instances

    inventory items :: posts

    counts :: votes

    item categories (or entire stores depend on implementation) :: communities

    moderators are only allowed to post items to their own community or instance.

    comments can still exist (perhaps as item reviews with the same upvote/downvote mechanic).

    No actual transactions would be processed over this protocol. It would be solely for inventory broadcast/aggregation (like Shopify in that it houses the inventory of many vendors except without the transaction ability built-in since pub-sub is horrible for that kind of thing).

    Edit: if you have any opinions (even “what a stupid idea!”) I’d be open to them. I haven’t even written a single line of code yet and it’s a fresh idea in my head waiting to be shot down by someone less idealistic than myself.



    • switched to a split ergonomic mechanical keyboard
    • working on a fork of Lemmy geared toward inventory called “Lemventory”
    • moderating multiple Lemmy communities that are basically ghost towns (and I don’t care)
    • got rid of my Instagram (and all centralized forms of social media except YouTube) and replaced it with Pixelfed and others
    • letting my NixOS flag fly much more regularly now
    • hexbear defederation only created a Streisand Effect and piqued my curiosity about Marxism. I’m now much better educated about it and have come to conclude that lemmy.world is basically filled with smug, tech-bro, hive-mind, blue maga, chuds that support censorship of simple ideas and subscribe to blind, disingenuous American exceptionalism that wouldn’t even stand up to the most generous critical analysis.