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

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

help-circle
  • demesisx@infosec.pubtopolitics @lemmy.worldTrump wins.
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    10 days ago

    I see everyone pointing the finger at the wrong place. We have two corrupt privately run parties. First past the Post literally puts us here. Places like Sweden won’t have this problem because they allow their politics to represent nuance rather than two corporate parties. Meanwhile, the UK which DOES have FPTP, is watching NHS get eroded by the same brand of neoliberalism that strip-mined the entire American economy.

    sweden’s parliament a few years ago


  • demesisx@infosec.pubtopolitics @lemmy.worldTrump wins.
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    11 days ago

    I’d like to take this moment to shine the spotlight on [email protected], [email protected], [email protected], [email protected], and [email protected]

    The mods of this community (and indeed this whole instance) demonstrated that pulling out all stops to censor even the most valid and well-worded criticisms of Kamala Harris’s absolute shit, right wing platform are a recipe for disaster.

    I hope it’s clear now: If your supposed leftist candidate can’t even run to the left of the GOP, they are going to lose. This is what happens when corporatists take over your entire party and you jump to their defense, pulling out all the stops against actual leftists, trying to raise the alarm that our party has been stolen because you’re a stupid identity politics dupe.


  • demesisx@infosec.pubtoLinux@lemmy.worldxxx
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    12 days ago

    I’m genuinely curious why you’d want to do that. Mine is timed to coincide with the circadian rhythms of the GPS coordinates and those are provided as hard-coded values in my config. I suppose the only optimization I could imagine is a script where it would get my IP then correspond that with GPS coordinates so I could have circadian screen coloring wherever I go with my laptop.

    My point is, it’s a setting that I don’t turn off because that would defeat the purpose of the app.











  • I’m glad you asked!

    Formal verification is an automatic checking methodology that catches many common design errors and can uncover ambiguities in the design. It is an exhaustive methodology that covers all input scenarios and also detects corner case bugs.

    One of the most futuristic companies I know of is Runtime Verification that uses formal Methods in industry. They have a list of accomplishments that seem like vaporware including a semantic babel fish called the K framework that can translate between languages based on formal, semantic definitions of each.





  • This is why I decided to learn Nix. I built dev environment flakes that provision the devshell for any language I intend to use. I actually won’t even bother unless I can get something working reliably with Nix. ;)

    For example, here’s a flake that I use for my Python dev environment to provide all needed wiring and setup for an interactive Python web scraper I built:

    
    {
      description = "Interactive Web Scraper";
    
      inputs = {
        nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
        utils.url = "github:numtide/flake-utils";
      };
    
      outputs = { self, nixpkgs, utils }: utils.lib.eachSystem ["x86_64-linux"] (system: let
        pkgs = import nixpkgs { system = system; };
      in rec {
        packages = {
          pyinputplus = pkgs.python3Packages.buildPythonPackage rec {
            pname = "pyinputplus";
            version = "0.2.12";
            src = pkgs.fetchPypi {
              inherit pname version;
              sha256 = "sha256-YOUR_SHA256_HASH_HERE";
            };
          };
    
          pythonEnv =
            pkgs.python3.withPackages (ps: with ps; [ webdriver-manager openpyxl pandas requests beautifulsoup4 websocket-client selenium packages.pyinputplus ]);
        };
    
        devShell = pkgs.mkShell {
          buildInputs = [
            pkgs.chromium
            pkgs.undetected-chromedriver
            packages.pythonEnv
          ];
    
          shellHook = ''
            export PATH=${pkgs.chromium}/bin:${pkgs.undetected-chromedriver}/bin:$PATH
          '';
        };
      });
    }