sus

joined 1 year ago
[–] sus 12 points 7 months ago* (last edited 7 months ago)

slow inverse square root:

float slowinvsqrt(float x)
{
    const long accuracy = 100000000;    // larger number = better accuracy
    if (x <= 0.0f) {
        return NAN;
    }
    if (x == 1.0f) {
        return 1.0f;
    }
    if (x < 1.0f) {
        return 1.0f / slowinvsqrt(1.0f/x);
    }

    int max_power = log(accuracy) / log(x);
    long pow1 = pow(x, max_power - 1);
    long pow2 = pow(x, max_power);
    double current = 1.0;
    double previous = 1.0;

    for (long i = 0; i<10*accuracy; i++) {
        current = sin(current);
        if (i == pow1) {
            previous = current;
        }
        if (i == pow2) {
            return current / previous;
        }
    }
}
[–] sus 8 points 7 months ago

if you accelerate it to exactly the speed of light, it will destroy everything within about 15 billion lightyears (galaxies further than that are safe because they recede from you faster than light)

[–] sus 5 points 7 months ago

it soars because the profit was near zero before and is now returning to "normal" (their competitor SK hynix made a 5 billion operating loss in one quarter last year)

[–] sus 1 points 7 months ago
[–] sus 16 points 7 months ago (1 children)

and the carbon fiber hull was cheap because it's shelf life had expired.

[–] sus 2 points 7 months ago (1 children)

I'd think game journalism has been mostly replaced by youtube reviewers / video essays, no?

[–] sus 7 points 7 months ago* (last edited 7 months ago) (1 children)

steam's drm is a complete joke though? Tons of game developers add their own drm on top because it is so trivial to bypass steam's own.

Their main product is a marketplace/content delivery system

[–] sus 3 points 8 months ago* (last edited 8 months ago) (1 children)

CRT TV with extra steps

[–] sus 10 points 8 months ago* (last edited 8 months ago) (1 children)

at least it probably saves you from the worst fate: that nobody cares about the game enough to try to discover the things

(I'm fairly sure that datamining is not that common outside highly popular games, well assuming the data isn't neatly in plaintext)

[–] sus 19 points 8 months ago

because AbstractTransactionAwarePersistenceManagerFactoryProxyBean needs to spin up 32 electron instances (one for each thread) to ensure scalability and robustness and then WelcomeSolutionStrategyExecutor needs to parse 300 megabytes of javascript to facilitate rendering the "welcome" screen

[–] sus 6 points 8 months ago (3 children)

if all 330 million 'mericans tried living in the woods, shit would go south really quickly

[–] sus 4 points 8 months ago

as long as we don't have a time machine, Jesus' existence is an unfalsifiable claim. Of course you're not going to see definitive proof that he didn't exist

view more: ‹ prev next ›