Show more

@jokeyrhyme @nixCraft how could significant whitespace introduce invisible bugs? The entire point of it is that it’s easily visible.
Only way I can think of is mixing spaces and tabs in indentation in a way that on some editors will make a block appear to have the same indent but not be treated as such, but Python 3 already thought of that:

Indentation is rejected as inconsistent if a source file mixes tabs and spaces in a way that makes the meaning dependent on the worth of a tab in spaces; a TabError is raised in that case.

Amikke boosted

A few times I have told the anecdote that the singly most baffling thing I ever saw in a code review — not the most insecure, just the most “how could a real programmer have written this? how could this ever make sense?” thing — was simply a C++ variable “number_of_trucks” … declared as float. Unambiguously referring to real physical trucks in a fleet.

Reader, it’s been over ten years and I am blowing the gods damn whistle. I had edited that story to protect the guilty: the variable was named number_of_planes. It was shipped by a company whose name begins with “B” and rhymes with “GOING out of business.”

Amikke boosted

@pansocial @nixCraft “Supply and demand work reliably under impossible conditions that do not exist” is an insane take, just because both supply and demand can be manipulated to some extent doesn’t mean they don’t work lol. They work very well and pathological extremes such as the US’s insulin problem (which only affects the US, which uses regulatory bodies to stifle competition and artificially keep insulin price high) are caused by either monopolies or regulations that make it hard or impossible for healthy competition to occur.

Anyway, I’m not gonna waste any more time arguing over economy on the Internet, if you don’t believe that automating work makes its results cheaper then continue to pay manual computers for doing math for you and buy only hand-crafted goods as surely they should have the same price as mass-produced ones.

@pansocial @nixCraft the nice thing about a market ecosystem is that the companies compete with each other and so price=supply/demand works. Cheaper production does make them lower prices because that’s how they stay competitive.

And I think you misunderstood what I meant by profit being net value provided to society. Revenue is receiving money proportional to value provided to the payers. Cost is spending money proportional to value taken from the payees. Profit is therefore proportional to the net value provided to society. It doesn’t matter what they spend the money on, they had to provide value to earn it and the monetary profits they receive are only a reward for it.

Amikke boosted

The stylish, unknown & extremely rare SEGA AI COMPUTER (1986) promised natural language processing and "artificial intelligence" via its Prolog interpreter.

We're making available today, for the first time ever: system roms, game cards, tapes recordings, scans, photos, MAME driver & more: smspower.org/SegaAI

Amikke boosted

@pansocial @nixCraft profit in this case is just net value provided to society. Yes, people whose work is no longer needed will need to switch to other jobs, that’s what always has to happen in cases like this lest you have a system where people do work that is no longer needed just to continue to pull resources from society, effectively transforming from workers to parasites. Avoiding this is one of the reasons capitalism actually works unlike the alternatives.

Helping people switch to other jobs? I’m all for it. Trying to hinder progress that will benefit the whole of society just so the workers that it would replace can continue pretending to be needed? No, thanks. How did it go, the needs of the many outweigh the needs of the few?

As for automation not benefiting workers, that’s absolutely not the case. Everyone wins when jobs get automated and their results become cheaper and more widely available. For those who lose jobs because of it it may still be net negative, but they’re a tiny fraction of all workers across the system.

Amikke boosted

A few days ago, my groovebox, the #SynthstromDeluge, running the new and awesome community-built firmware, crashed, which was very cool.

Not that it crashed, but what happened next: It displayed a colorful pattern on its pads.

That's a stack trace. It's listing the last steps the code made before crashing. The devs are have asked to be sent photos of these, to help them find bugs.

I've pasted it on Discord, and there's a _bot_ that recognizes these images and decodes them into addresses!

Jesus, I knew nixpkgs were a huge and well maintained repository, but not that it’s to that level, sorted by project up to date the top 6 repos are all nixpkgs, including 4 deprecated versions.

Arch and Gentoo users in shambles.

@nixCraft taking away hard work and jobs is always a net positive, the fetishising of labour needs to stop. If steam machines were invented today y’all would be crying about them taking away hard work from manual laborers.

That’s the point. Work is something that is done because it’s needed, not because it’s wanted. The moment you want to stop automating your work because that would leave you without it you’re no longer a worker that provides needed services, you’re holding the society hostage to still pay you.

@mjambon @freemo wait there's a federal discount for tipped employees? Hahahahahahaha how did they manage to do the exact opposite of a sensible policy?

@freemo for WM I’ve been using Plasma’s Wayland session for way over a year too, I adapted PipeWire early though and had no problems with screenshots or the like, only rare WM crashes and restarts. But these gradually stopped over updates and now I haven’t had a problem for months now, maybe even half a year.

The fact that SDDM still used X and so my system still autostarted it just to display the login manager which would then launch a wayland session was a bit annoying though. Especially since X would often refuse to shut down gracefully alongside the rest of the system and slowed down any reboots by the 1m30s of systemd being patient before shooting it in the head.

It seems that the switch of SDDM to wayland worked and I’m now finally writing this from a system with no native X server running anywhere, only XWayland inside of my Plasma session.

Nice.

@freemo fingers crossed for the process to be as painless as possible lol

@nixCraft this was annoying to me when an install created a stupidly small boot partition that was filling up with with a few kernels+initramfs and whatever system I had at the time tried to keep more.

palworld 

@icedquinn it’s hilarious when they step one foot into the base and 10+ fairly powerful pals just delete them from existence

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.