Readit News logoReadit News
codebrrr commented on The surprising genius of sewing machines [video]   youtube.com/watch?v=RQYuy... · Posted by u/gumby
codebrrr · 2 years ago
The computerized flat knitting machines are even more genius.

I like to call them clothes printers.

codebrrr commented on In 2024, please switch to Firefox   roytanck.com/2023/12/23/i... · Posted by u/Vinnl
bluescrn · 2 years ago
What's the real use case of PWAs?

They just seem like another way to attempt to shift users from the 'proper web' into a place where blocking ads is more difficult.

Personally, I wish we could purge the vast majority of 'apps' from the world, they shouldn't be apps in the first place, most have no need to run native code, they should be links to websites, sites that can work on more-or-less any device in any browser.

codebrrr · 2 years ago
On Windows the Twitter, Instagram, TikTok apps are PWAs. I like to use them because I can pin them to the start menu, have them start on a separate window by default and remember the window position.
codebrrr commented on I'm a world champion pea thrower   theguardian.com/lifeandst... · Posted by u/sandebert
burrish · 2 years ago
Loving this story and the UK's passion for creating the most random competition.

You might ask yourself "What if there was a competition about X ?" and then find out that the UK has been doing it for +20 years!

codebrrr · 2 years ago
Let's invent a new one: throw a CPU towards a motherboard. It must land in the socket in the proper orientation. Furthest distance wins.
codebrrr commented on Unexpected ways memory subsystem interacts with branch prediction   johnnysswlab.com/unexpect... · Posted by u/r4um
codebrrr · 2 years ago
I'm pretty sure the following optimization is invalid, since a is not a bool array, but one of positive/negative numbers (see top of article):

> You can use arithmetics to go branchless.

    if (a[i] > 0) {
       cnt++;
    }
> Rewriting using arithmetic takes advantage of the fact that the expression a[i] > 0 has an arithmetic value 1 if true and 0 if false. So the whole expression can be rewritten as:

    cnt += a[i]

u/codebrrr

KarmaCake day13December 29, 2023View Original