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
I used to think json was the best until I found json lines or line delimited json. Thank me later. I use it all the time. You can append until you’re blue in the face. It’s great for log files. Each line is a valid json file.
You laugh but that’s exactly what Erlang is (from my admittedly cursory observation of it). It’s a pretty powerful concept if you EXPECT every process to error and use that idea for control flow.
No problem. I hope others can be more helpful. I’m most often interested in working with a virtual condom over top of JavaSvript. 😜
Perhaps it is irrelevant to your question since it does require transpilation (Purescript Module), but I have recently fallen in love with the Deku UI framework in Purescript. It works in an FRP style and draws direct influence from React. Purescript is SUPER obscure, but in this context, FRP is really elegant. It even has a mechanism to type-check raw chunks of html at compile time.
The Documentation: https://deku-documentation.vercel.app/
the part most relevant to your question: https://deku-documentation.vercel.app/functional-reactive-programming/events
It feels like magic. I think of it as the glue that makes almost all of my software work together seamlessly. I can’t wait to use it for one-click deployments of my software on a server or high-availability cluster.
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
'';
};
});
}
I do this too. I used to add it to the milk before steaming but that had obvious drawbacks.
Y Tu Mama Tambien with my sister and her new boyfriend.
Threads used to bewilder me until I started using Haskell. Holy shit that felt like magic, turning an app parallel with two lines of code.
Now, I just have to worry about memory limits….
At least in the cannabis industry here, they have a piece of software that they use to submit their inventories to the state. My current plan is to look into incorporating my system into that so I get accurate reports that are required by law to be done anyway.
I’d love to discuss further the pitfalls of my idea and any special considerations I might need to make.
I’m not sure yet TBH, but you’re welcome to help or build your own.
I intend to make it an entirely free and open source platform that allows retailers to broadcast their inventory to aggregators. No ads just like Lemmy, though I suppose that the feed itself serves as kind of an ad.
It was intended for the cannabis industry. Then the plan was to roll it out to the rest of the retail world when it has evolved enough.
There’s also veilid.
I even started a community here: https://infosec.pub/c/lemventory
I’ve been looking into building this. I was originally planning to fork Lemmy to do it but now it looks like NOSTR might be better suited to it.
Absolutely! I never realized how powerful the media is until I read Chomsky in college.
It ALL hinges on making elections fair in the first place. Closed primaries and first past the post rules make banana republic democracies seem fair in comparison. Until those issues get solved, I only see the “adults in the room” deciding to boil the oceans for profit while codifying it into law more each year.
It’s hard not to be cynical.
If it’s as bad as it is in the US, they ALL want to privatize it.
I’ll never forget Joe Lieberman swooping in and literally letting health insurance companies completely rewrite (destroy) the Affordable Care Act from an incremental step toward Single Payer into a law that codifies their profiteering. It put everyone into three categories:
A.) people who make more than their incredibly low income means testing are required to shop for expensive private health insurance on the free market. Health insurance companies literally raised their rates right after this. Because of Joe, health insurance profits, medical bankruptcy, and death from being under/uninsured (70,000 people per year) are at an all-time high! Any real illness won’t be covered and you’ll be forced to cover it with a GoFundMe!
B.) people who face stiff fines if they don’t have health insurance (neoliberal paternalism much like charging people for plastic bags and sugary drinks)
C.) people who somehow manage to sneak in under the means testing income bar! If you are 300% or more below the actual poverty line, you get the most bare bones medical insurance possible!
Thanks for pulling it out of me.
Kind vibes to you, friendly and intellectually honest fellow fediverse Lemmy user. 🙏
It was because I thought the author both understood and even agreed with my point in principle but then did intricate mental gymnastics to disagree with my point and let everyone off the hook including the person that I was disagreeing with.
I don’t want to continue talking in circles with Centrists telling me that the piss pouring on my head is in fact charitable rain drops from the benevolent libs.
I was thinking about that just now.
They did Corbyn dirty in almost exactly the same way that they did Sanders. It has been worst-case-scenario from there on out.
Have they fully privatized NHS yet?
Like the Holographic Universe?
Reading that lead me to read the MUCH more interesting but FAR from easy to decode: Wholeness and the Implicate Order