22

If you use a compiled language, you should periodically look at Godbolt and see what your code is doing and what changes to your code will do in the compiled output.

In this case a positively insane way of calculating squares and cubes generates 311 lines of ARM assembler output that will swallow your memory. With even something as simple as -O1 on the command line it's replaced by one or two multiplications respectively. With -fwhole-program it removes the functions entirely and interlaces them into the loop in main().

Know your tools. It makes huge differences!

15
DEBUNKING STARLINK (www.youtube.com)

You know, for a lauded "genius", Apartheid Edgelord seems to have a problem with basic arithmetic.

32
39
106
[-] ttmrichter@lemmy.world 96 points 10 months ago

As a coda: Tesla Drivers Upset That Government Wants Their Cars to Be Safer

“Got to love government always making things less enjoyable,” tweeted a disappointed customer on Wednesday.

Apparently driving on misplaced faith that kills people is enjoyable. Tesla is a cult, not a car company.

176

It's so frustrating that something anybody even only peripherally aware of attempts to automate driving knew for years is only slowly coming out while the Apartheid Edgelord gets richer and richer from his lethal lies.

[-] ttmrichter@lemmy.world 36 points 10 months ago

Work with me here. Picture something like this as the general aesthetic of the car.

913
submitted 10 months ago* (last edited 10 months ago) by ttmrichter@lemmy.world to c/enoughmuskspam@lemmy.world

... and you feel nothing

[-] ttmrichter@lemmy.world 44 points 10 months ago

Musk says X advertiser backlash is "going to kill the company."

GOOD! Just fucking die already!

[-] ttmrichter@lemmy.world 35 points 11 months ago

It's OK. He's going to save humanity and settle the stars by ... ah ... killing hundreds of idiots who think he can actually get them to Mars.

26
submitted 11 months ago by ttmrichter@lemmy.world to c/anarchism@lemmy.ml

cross-posted from: https://lemmy.ca/post/9471383

“That’s how you end up with a 4th quarter profit of $529 million, available to common shareholders,” Weston Jr. emphasized. “People don’t like dying.”

Steal food. It's the moral thing to do.

(Yes, I know this is satire, but it is, like all great satire, cutting so perilously close to reality it's frightening.)

[-] ttmrichter@lemmy.world 36 points 11 months ago

In 2001, when I left Canada, I had fond memories of Tim Horton's donuts and other confections. In 2016 when I went back for some paperwork and stayed a month I was absolutely shocked at just how crap Tim Horton's donuts had become: stale, lifeless, and oversugared/underflavoured. (I'd never liked the coffee so I didn't try it.)

Something big was lost in that decade and a half.

Fucking capitalists.

[-] ttmrichter@lemmy.world 40 points 1 year ago

Don't stop with Europe, Dilbert Stark! Get out of Africa, Asia, South America, Oceania, and eventually North America as well!

[-] ttmrichter@lemmy.world 39 points 1 year ago

This group is against the pro-Musk spam.

6
Philosophy of coroutines (www.chiark.greenend.org.uk)

I've been using coroutines since I first encountered them in the same book that this author found them in. Unlike him I've used them all over the place professionally and in my personal stuff. I prefer them to threads, to FSMs, and to the callback Hell of reactors for most of my work. This article has a good explanation of why.

[-] ttmrichter@lemmy.world 50 points 1 year ago

By stopping asking how to make it more popular and starting making it a place that could become popular.

95
submitted 1 year ago by ttmrichter@lemmy.world to c/canada@lemmy.ca

I'm pretty sure this is the most accurate summary of modern Canada.

[-] ttmrichter@lemmy.world 55 points 1 year ago

Speaking one language that is mildly gendered (English), two that are strongly (and in the case of the second bizarrely!) gendered (French, German) and one that is almost entirely ungendered (Mandarin), I have not found any utility whatsoever in grammatical gender.

I suspect that grammatical gender is just an ur-form of grammatical classifiers that has stuck around for non-useful amounts of time. I suspect this because one of the grammatical "gender" divisions that's in use in many languages isn't masculine/feminine(/neuter) but rather animate/inanimate. So I suspect that grammatical gender was a classification mechanism whose system and utility was distorted into uselessness over the thousands of years of spread and development.

So why do we have classification mechanisms? Well, in Mandarin there's classifier words. (In English too: "a sheet of paper", not "a paper", but it's waaaaaaaaaaaaay stricter in Mandarin.) The classifiers in Mandarin, given the sheer amount of punning potential in oral language, are likely a redundant piece of information to help nail down which specific word you mean in contexts where it might be unclear. For example in a noisy environment, or if someone is speaking unclearly, "paper" (纸张[zhǐ zhāng]) might be confused with "spider" (蜘蛛 [zhī zhū]). But if I say 一只蜘蛛 [yī zhī zhī zhū]—a spider—it's harder to confuse that with 一张纸张 [yī zhāng zhǐ zhāng]—a piece of paper.

So I'm positing that perhaps at some point grammatical gender was used as a primitive form of classification for disambiguation that some languages just never grew out of. Which is why in German men are masculine, women are feminine, boys are masculine, and girls are neuter. It has nothing to do with actual physical gender and is just a weird, atrophied, and somewhat useless remnant of language.

[-] ttmrichter@lemmy.world 41 points 1 year ago

In many, many, many cuisines it is common to leave even the large spice elements in whole. Partially for the aesthetic and partially as proof of ingredients.

[-] ttmrichter@lemmy.world 36 points 1 year ago

Dude couldn't tell the difference between plastic and tree bark!?

[-] ttmrichter@lemmy.world 35 points 1 year ago

Mastodon is "dead" because you're not making the switch from spoon-fed algorithmically-supplied content to content you have to actively seek out. Mastodon supplies tools for this, but if these aren't for you, then yes, Mastodon is useless to you.

To make Mastodon "not dead" you have to take some actions of your own to become part, in effect, of an actual community. These steps helped me:

  1. Follow some #hashtags of interest. As you find people posting interesting content on that hashtag, follow them. Engage with some of those directly, responding to their posts. Do this for a couple of weeks and you'll have a full feed.

  2. Occasionally look into the local feed. Skip over stuff that bores you. Read stuff that interests you. If you see the same names making interesting content, follow them. Also, engage with the stuff that interests you by responding to posts.

  3. Make content as well as the replies mentioned above. Apply relevant #hashtags so it's findable. But keep in mind that the system is not going to stuff this in other people's feeds on your behalf. This isn't Twitter or any other corporate microblogging setup. You need to get followers, which you can get by following steps 1 and 2. Otherwise you're just going to get the occasional person seeing your posts who is doing step 2.

  4. Boost boost boost boost boost. There's no algorithm cramming posts into other people's feeds. The only way things go "viral" in Mastodon is if people spread it around. You have to be part of the process instead of abrogating that to an algorithm designed to foster "engagement" by spreading dissent and hate.

view more: next ›

ttmrichter

joined 1 year ago