Readit News logoReadit News
m2f2 commented on Many lung cancers are now in nonsmokers   nytimes.com/2025/07/22/we... · Posted by u/alexcos
m2f2 · a month ago
Non-paywall: https://archive.ph/nsMoH

Site is flagged as it hosts pedop. material.

m2f2 commented on Fun with uv and PEP 723   cottongeeks.com/articles/... · Posted by u/deepakjois
pxc · 2 months ago
When you solve the dependency management issue for shell scripts, you can also use newer language features because you can ship a newer interpreter the same way you ship whatever external dependencies you have. You don't have to limit yourself to what is POSIX, etc. Depending on how you solve it, you may even be able to switch to a newer shell with a nicer language. (And doing so may solve it for you; since PowerShell, newer shells often come with a dependency management layer.)

> any script that needs those things

It's not really a matter of needing those things, necessarily. Once you have them, you're welcome to write scripts in a cleaner, more convenient way. For instance, all of my shell scripts used by colleagues at work just use GNU coreutils regardless of what platform they're on. Instead of worrying about differences in how sed behaves with certain flags, on different platforms, I simply write everything for GNU sed and it Just Works™. Do those scripts need such a thing? Not necessarily. Is it nicer to write free of constraints like that? Yes!

Same thing for just choosing commands with nicer interfaces, or more unified syntax... Use p7zip for handling all your archives so there's only one interface to think about. Make heavy use of `jq` (a great language) for dealing with structured data. Don't worry about reading input from a file and then writing back to it in the same pipeline; just throw in `sponge` from moreutils.

> The language just plain sucks too much

There really isn't anything better for invoking external programs. Everything else is way clunkier. Maybe that's okay, but when I've rewritten large-ish shell scripts in other languages, I often found myself annoyed with the new language. What used to be a 20-line shell script can easily end up being 400 lines in a "real" language.

I kind of agree with you, of course. POSIX-ish shells have too much syntax and at the same time not enough power. But what I really want is a better shell language, not to use some interpreted non-shell language in their place.

m2f2 · 2 months ago
Nice, if only you could count on having it installed on your fleet, and your fleet is 100pct Linux, no AIX, no HPUX, no SOLARIS, no SUSE on IBM Power....

Been there, tried to, got a huge slap in the face.

Dead Comment

Dead Comment

m2f2 commented on MinC Is Not Cygwin   minc.commandlinerevolutio... · Posted by u/thingfish
blueflow · 4 months ago
The operating system interface that Unix, BSD and Linux share is called POSIX. The term POSIX is not widely known, so people sometimes make up for it by using "Linux" in-place because it is the most popular implementation.

This explains people who argue that Android is not Linux, despite it featuring a Linux kernel and self-identifying as so: They are intending to say that Android is not POSIX.

We need to make POSIX (as concept/word) more popular.

m2f2 · 4 months ago
Especially to package writers that assume bash is available everywhere, hope that bin/sh is the same as bin/ksh...sed -i... not on unices, grep missing a ton of options....

Time to ask an AI ?

m2f2 commented on MinC Is Not Cygwin   minc.commandlinerevolutio... · Posted by u/thingfish
m2f2 · 4 months ago
How long will cygwin lifetime be?

A proud cygwin user myself, with cygwin in the PATH since the 2000s, I recently sideloaded Ubuntu under wsl.

Right now, wsl is my primary terminal app, I've mounted C:\ as /c, added a symlink to bypass the ugly Onedrive default name, and... I'm happy.

Slowly, I removed 90% of the mixed BAT scripts, converted to bash the rest, and I now enjoy it.

As the old timer that I am, I limp around powershell, so no luck with that.

Cygwin on the other hand seems to be slowly dying, as more and more packages are now unsupported/unmaintained, with Redhat apparently willing to smother it at the first viable moment.

Any thought?

m2f2 commented on Python’s new t-strings   davepeck.org/2025/04/11/p... · Posted by u/tambourine_man
m2f2 · 4 months ago
If this is just for sql queries ... it'd be overkill especially where you need to compare the usual PREPARE statements with the hassle of keeping everyone on 3.14 and above.
m2f2 commented on $70M in 60 Seconds: How Insider Info Helped Someone 28x Their Money   data-and-politics.ghost.i... · Posted by u/pulisse
m2f2 · 5 months ago
As a foreigner I cannot comment on this, else I will be rejected at the airport by the ICE.

That's called freedom my friends.

m2f2 commented on Ask HN: What are you working on? (March 2025)    · Posted by u/david927
thorio · 5 months ago
Considering quitting my mind-melting corporate job to have the freedom of mind to pursue another attempt of starting my own business. So the decision is, what I'm working on. Background: they announced large scale restructurings last week and that could be my chance of getting some money for leaving (region beta paradox in full swing here).

Anyone else?

m2f2 · 5 months ago
Same thing. I was happy (?) until a guy from Minnesota went out of his cage to micromanage me. I took cash and left.

Boss of guy from Minnesota was kicked out of the company. I'm told the guy from Minnesota is now sooooo much nicer now.

m2f2 commented on Choosing death penalty by firing squad because it's safer   pbs.org/newshour/show/sou... · Posted by u/thund
lfsh · 6 months ago
'Pleaing guilt' means 'taking the blame'. It is not a proof of guilt. So the answer to your question should be: no.
m2f2 · 6 months ago
In general, when will the US stop considering acceptable that... you cannot lie to the police, but the police can lie to you?

When will everyone believe that making someone take the blame in exchange for a shorter time in jail is beneficial to society at large... when the real perpetrator walks away unscathed, and a innocent is jailed for something he didn't even commit?

u/m2f2

KarmaCake day189January 4, 2021View Original