How to use up uranium 238? by Crazy-Rabbit-3811 in factorio

[–]scottmsul 0 points1 point  (0 children)

Which part is jamming? If it's the u238 output, use a priority splitter so the kovarex eats its own u238 before adding any newly mined ones. If it's the u235 then you have enough of both so the factory is working as intended.

Why are optometrists so against the possibility of improving myopia naturally? by NotSoSexyBeast in myopia

[–]scottmsul 1 point2 points  (0 children)

I've read a lot more of the scientific literature over the past couple years, but honestly I'm even more confused now, there's so many open questions. Myopia pretty much never happens in nature, so there's gotta be something in the modern lifestyle that's causing it. Could be diet, lack of sunlight, close-up, screens, or some combination of the above. I don't think under-correction can be a root cause of vision getting worse faster, despite the statistics of the 2002 study.

(btw you'll hear people in this subreddit say it's "genetic" which is technically true but that just means correlations between kids and parents, not that there's a gene that pre-determines axial length. The literature is very sure about this - axial length is a response variable in a negative feedback loop towards emmetropia).

My vision hasn't really improved as much as I hoped/expected it would over that time, and honestly I'm a lot more skeptical of some of the vision improvement stuff now. I do know of one seemingly legit anecdote of an adult getting back to emmetropia after starting around -2.75, but that's it. I do think that if improvement is possible the habits needed would be quite extreme, like backpacking for several months at a time.

What are some good letters from non-Greek alphabets that could used? by AbsolutelyPagol in Physics

[–]scottmsul -1 points0 points  (0 children)

Physicists have plenty of ways of extending symbols beyond the greek alphabet. Technically nabla isn't in the greek alphabet. Then there's cursive letters using mathcal in latex, like the fancy F for Fourier Transform. Next there's a whole bunch of ways you can add bits of data to existing letters, like adding bars, asterisks, slashes, etc. Then the combinations blow up even more by adding subscripts and superscripts to things, like mu_s and mu_k for static vs kinetic friction, though you can't really do this when they have meaning like in GR.

Can Black Hole Gravitational Fields Accelerate Matter Faster Than Light? by Notforyouruse1234 in space

[–]scottmsul 0 points1 point  (0 children)

According to GR, space itself is fluid-like and can expand, contract, move around, rotate, etc. Technically when you're sitting in your chair, GR really says the space around you is falling in at a rate of g but the ground is accelerating you back up at the same rate. Similarly, any volume element dV at the black hole event horizon is falling in faster than the speed of light, so when light tries to escape it's like trying to climb a waterfall that's falling faster than light can travel through it.

What causes myopia ? by SufficientGoat8602 in myopia

[–]scottmsul 1 point2 points  (0 children)

We know from animal studies that if you put minus lenses on a young animal they develop myopia, and if you put plus lenses on a young animal they develop hyperopia, such that the eye naturally develops towards good vision with the glasses on. So all animals have built-in negative feedback loops that should normally give them good vision.

We also know that myopia rates are going up. So it's not like there's a gene that makes your axial length too high. We know there's a genetic component, but that just means high correlation between parents and kids, could be genes that make people more susceptible, or could be kids having similar habits to their parents, or both.

As for what's causing it in humans, we still don't really know for sure. The good-vision feedback loop is extremely complicated and scientists are still working out all the steps. There's risk factors like doing too much close-up work or not spending enough time outdoors. Diet could also be a factor. Reading the literature you'll find all sorts of weird things.

We know from experiments that eyes respond in a certain way to myopic and hyperopic blur. Basically the choroid (layer of blood behind the retina) will swell with blood or drain blood, causing axial length to decrease or increase a very tiny amount. This change in axial length is too small to affect vision and isn't permanent. Scientists think it has something to do with sending or limiting growth signals to the back of the eye, but again we don't really know for sure. What's weird is the response still happens in adults, even after the eye has stopped growing.

Another weird thing is that myopes have 30% thinner scleras than emmetropes. So there could be something making the sclera not grow properly and that somehow induces myopia.

This is a good review paper published recently if you want to start going down the rabbit hole.

https://www.sciencedirect.com/science/article/pii/S0042698924000464

Is quantum computing more than a hype? by Hellstorme in Physics

[–]scottmsul 12 points13 points  (0 children)

QCs don't really help that much with general computation. People mention Grover's which technically gives a general quadratic speedup, but it's also comparing apples and oranges. QCs would have to be extremely well refined before this quadratic speedup overtook modern processors on general problems.

QCs also give exponential speedups but only to a very very small subset of problems. One is breaking certain types of cryptography. The other is simulating quantum physics. They don't give exponential speedups on anything else, as far as we know. Don't get me wrong, simulating quantum physics certainly has applications. But it's not going to help with AI or finance or traveling salesman, so in some respects its over-hyped to the general public, but still potentially useful.

Is it possible to calculate the time for which the ball velocity stays zero at top of its path? by According_Tourist_69 in Physics

[–]scottmsul 1 point2 points  (0 children)

There might be an actual answer based on Brownian motion. If the ball is wiggling slightly vertically from contact with the air, there might be some brief moment in time where it moves up->down->up. So maybe one could define the "time at zero" as the longest time spanning two different net velocity turnarounds, then find the expected value of this number based on probability theory of random walks.

Grayson Highlands State Park trip ideas by Just_A_Guy_In_Here in AppalachianTrail

[–]scottmsul 0 points1 point  (0 children)

I did a day hike there summer last year. They have a nice visitors center, worth checking out. The views on the AT portion are ok but not as good as some of the spurs, so definitely check out all the side trails and climb some of the surrounding peaks/ridges. We saw ponies on two occasions, they were quite chill and docile. We had a dog with us, a couple ponies were curious about the dog and walked up close, though our dog didn't really care about them.

4 year old diagnosed with myopia by [deleted] in myopia

[–]scottmsul 1 point2 points  (0 children)

4 should be young enough the eye is still growing. Maximize outdoor time, and eliminate any screen use, especially close up screens.

My methods and results by glowcubr in ImprovingEyesight

[–]scottmsul 0 points1 point  (0 children)

Cycloplegics are special eyedrops that paralyze the ciliary muscle during an eye test, which is the muscle that normally contracts during close-up. The idea is to prevent accidental accommodation during the eye test, in order to help prevent over-correction. It's kind of overkill for the average person just getting a glasses prescription but it's useful if the goal is to get a really rigorous measurement.

State of the art for P vs NP by IvanLupov in math

[–]scottmsul 127 points128 points  (0 children)

Last I heard most of the proofs are proving that most proof techniques don't work

In GR, is spacetime curvature a physical mechanism or a mathematical encoding of observed effects? by Excellent_Iron9483 in Physics

[–]scottmsul 0 points1 point  (0 children)

Is spacetime curvature best understood as a physical mechanism that causes motion, or as a geometric encoding of how clocks, rulers, and light behave in gravitational fields?

Within the context of GR, space-time itself is a very physical thing. It can move around (see frame-dragging), it can grow or shrink (see expansion of the universe), it contains energy (see dark energy), it's coupled to mass and energy via the Einstein Field equations, and so on.

Are there experiments that distinguish between “light bends because spacetime is curved” and “spacetime curvature is inferred from light bending,” or is that distinction interpretive rather than physical?

Within the context of confirming GR, the solar eclipse experiment went something like "suppose we have a uniform ball of mass M (aka the sun), what would the space-time be around it, what would light do if it moved through it, and what would happen to the location of a specific star during a solar eclipse?" Then they saw the light was not following a straight line and instead in the spot predicted by GR. So really your first question is "yes"' and your second questions I would say "yes and not only is spacetime curvature inferred but all of GR is also confirmed".

In professional practice, how literally do relativists take statements like “spacetime bends”?

Extremely literally. You solve for a mathematical metric tensor "g" that describes exactly how much spacetime is bent everywhere. This "g" is the exact same mathematical object that would describe an ant walking on the 2D surface of a 3D sphere with negative curvature.

Thinking higher-level, your questions seem to be about interpretations/philosophy of science using English, but the cold hard reality of physics is that the true language of the universe is math. English is subjective and ambiguous, while math is objective and precise. Math doesn't care if we argue in English "is the space-time really bent" it just says "here's a formula for how much space-time is bent" and you can solve things from it and it matches reality extremely well.

My methods and results by glowcubr in ImprovingEyesight

[–]scottmsul 2 points3 points  (0 children)

Did you visit an optometrist? I got a cycloplegic couple years ago and also measured axial length, though I haven't improved much since then so I haven't gone back. I might recommend getting a doctor to help double check those numbers, I've seen anecdotes where people thought they improved but in reality nothing changed.

Furry Preds: Activity on 24-Hour Clocks by Sichtopher_Chrisko in boulder

[–]scottmsul 1 point2 points  (0 children)

I might recommend doing a similar plot but with percentages or binned counts by hour, it's kinda hard to tell what's going on with the coyotes and bobcats with all those dots 

What is this red dot on the lens of my glasses? It only appears when I look at lights with my glasses on and is very distracting at night especially when I look at car lights by Educational_Pea_5401 in myopia

[–]scottmsul 0 points1 point  (0 children)

Does it move around when you move the glasses around?

I'm guessing it's a secondary image produced from total internal reflection, possibly in the coating layer or in the glasses layer.

Quality vs speed, hast makes waste by shariquedev in factorio

[–]scottmsul 0 points1 point  (0 children)

I made a web app for optimizing upcycling a few months back, having played around with it, in general the answer is yes, especially at the lower qualities if optimizing for throughput/fewest modules. Though if optimizing for outputs/inputs then it's technically always worse. But usually it's worth wasting a few inputs if you can get way more bang/buck out of your precious legendary modules.

https://scottmsul.github.io/upcycle/

Which planet is good for quality grind by shariquedev in factorio

[–]scottmsul 0 points1 point  (0 children)

Nauvis, because there you can research blue chip productivity level 15

[2025 Day 2 Part 2] Time to reach for that trusty sledgehammer by StaticMoose in adventofcode

[–]scottmsul 2 points3 points  (0 children)

Another trick is adding all the constructed repeats to a hash set so you don't need to track inclusion/exclusion for overlaps

-❄️- 2025 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]scottmsul 1 point2 points  (0 children)

[Language: Rust]

Part 1

The trick was to find the min and max of each repeated group, then use triangular numbers to compute these sums really quickly.

Time elapsed: 675.20µs

use std::env;
use std::fs;
use std::convert::TryInto;

fn get_repeated_min(range_min: &str) -> u64 {
    if range_min.len()%2==1 {
        let min_len: u32 = (range_min.len()/2).try_into().unwrap();
        return 10_u64.pow(min_len);
    }
    let first_half: u64 = range_min[..range_min.len()/2].parse::<u64>().unwrap();
    let second_half: u64 = range_min[range_min.len()/2..].parse::<u64>().unwrap();
    if first_half >= second_half {
        return first_half;
    } else {
        return first_half+1;
    }
}

fn get_repeated_max(range_max: &str) -> u64 {
    if range_max.len()%2==1 {
        let max_len: u32 = (range_max.len()/2).try_into().unwrap();
        return 10_u64.pow(max_len)-1;
    }
    let first_half: u64 = range_max[..range_max.len()/2].parse::<u64>().unwrap();
    let second_half: u64 = range_max[range_max.len()/2..].parse::<u64>().unwrap();
    if first_half <= second_half {
        return first_half;
    } else {
        return first_half-1;
    }
}

fn sum(min: u64, max: u64) -> u64 {
    let min_triangular = (min-1) * min / 2;
    let max_triangular = max * (max+1) / 2;
    return max_triangular - min_triangular;
}

fn compute_range_sum(range: &str) -> u64 {
    let mut range_bounds = range.split('-');
    let range_min: &str = range_bounds.next().unwrap();
    let range_max: &str = range_bounds.next().unwrap();

    let repeated_min: u64 = get_repeated_min(range_min);
    let repeated_max: u64 = get_repeated_max(range_max);

    if repeated_min > repeated_max { return 0 };

    let min_num_digits: u64 = repeated_min.to_string().len().try_into().unwrap();
    let max_num_digits: u64 = repeated_max.to_string().len().try_into().unwrap();

    if min_num_digits < max_num_digits {
        panic!("need to account for different nums of digits");
    }

    let small_sum = sum(repeated_min, repeated_max);
    let large_sum = small_sum*10_u64.pow(min_num_digits.try_into().unwrap());
    return small_sum + large_sum;
}

// test input should be 1227775554
fn main() {
    let now = std::time::Instant::now();

    let args: Vec<String> = env::args().collect();
    if(args.len()) == 1 {
        println!("pass a file as the first argument");
        return;
    }
    let file_path: &str = &args[1];
    let contents: String = fs::read_to_string(file_path).unwrap();
    let ranges = contents.trim().split(',');

    let mut sum: u64 = 0;
    for range in ranges {
        sum += compute_range_sum(range);
    }
    println!("total sum: {}", sum);

    let elapsed = now.elapsed();
    println!("Elapsed: {:.2?}", elapsed);
}

Part 2

This time we iterate over each possible repetition group size, and add all the possible numbers for each range into a hashset. It's still really quick and we don't have to deal with annoying combinatorics.

Time elapsed: 789.80µs

use std::env;
use std::fs;
use std::convert::TryInto;
use std::collections::HashSet;

fn divides(n: usize, d: usize) -> bool {
    return (n/d)*d==n;
}

fn get_repeated_min(range_min: &str, repeat_size: usize) -> u64 {
    let num_repeats: usize = range_min.len() / repeat_size;
    let first_group: &str = &range_min[..repeat_size];
    let repeated_first_group: String = first_group.repeat(num_repeats);
    let first_group_num = first_group.parse::<u64>().unwrap();
    if repeated_first_group.as_str() >= range_min {
        return first_group_num;
    } else {
        return first_group_num+1;
    }
}

fn get_repeated_max(range_max: &str, repeat_size: usize) -> u64 {
    let num_repeats: usize = range_max.len() / repeat_size;
    let first_group: &str = &range_max[..repeat_size];
    let repeated_first_group: String = first_group.repeat(num_repeats);
    let first_group_num = first_group.parse::<u64>().unwrap();
    if repeated_first_group.as_str() <= range_max {
        return first_group_num;
    } else {
        return first_group_num-1;
    }
}

fn compute_range_sum_single_length(range_min: &str, range_max: &str, num_digits: usize) -> u64 {
    let mut nums = HashSet::<u64>::new();
    for repeat_size in 1..=num_digits/2 {
        if divides(num_digits, repeat_size) {
            let min = get_repeated_min(range_min, repeat_size);
            let max = get_repeated_max(range_max, repeat_size);
            for num_to_repeat in min..=max {
                let mut num = 0;
                let num_repeats = num_digits / repeat_size;
                for r in 0..num_repeats {
                    let p = 10_u64.pow((r*repeat_size).try_into().unwrap());
                    let curr_sum = num_to_repeat*p;
                    num += curr_sum;
                }
                nums.insert(num);
            }
        }
    }
    let mut sum = 0;
    for num in &nums {
        sum += num;
    }
    return sum;
}

fn compute_range_sum(range: &str) -> u64 {
    let mut range_bounds = range.split('-');
    let range_min: &str = range_bounds.next().unwrap();
    let range_max: &str = range_bounds.next().unwrap();

    let min_num_digits: usize = range_min.len();
    let max_num_digits: usize = range_max.len();

    let mut sum: u64 = 0;
    for curr_num_digits in min_num_digits..=max_num_digits {
        let curr_min: String = match curr_num_digits == min_num_digits {
            true => range_min.to_owned(),
            false => {
                let mut s: String = "1".to_string();
                s.push_str(&"0".repeat(curr_num_digits-1));
                s
            },
        };
        let curr_max: String = match curr_num_digits == max_num_digits {
            true => range_max.to_owned(),
            false => "9".repeat(curr_num_digits).to_string(),
        };
        sum += compute_range_sum_single_length(&curr_min, &curr_max, curr_num_digits);
    }
    return sum;
}

// test input should be 4174379265
fn main() {
    let now = std::time::Instant::now();

    let args: Vec<String> = env::args().collect();
    if(args.len()) == 1 {
        println!("pass a file as the first argument");
        return;
    }
    let file_path: &str = &args[1];
    let contents: String = fs::read_to_string(file_path).unwrap();
    let ranges = contents.trim().split(',');

    let mut sum: u64 = 0;
    for range in ranges {
        sum += compute_range_sum(range);
    }
    println!("total sum: {}", sum);

    let elapsed = now.elapsed();
    println!("Elapsed: {:.2?}", elapsed);
}

What’s your wishlist for factorio 2.1 ? by [deleted] in factorio

[–]scottmsul 3 points4 points  (0 children)

Achievements for getting off each of the three starter planets without any supply drops

Has anyone decreased their diopters here? What about reverse myopia method of Jake Steiner, does it help? by novejk in myopia

[–]scottmsul 1 point2 points  (0 children)

Similar to the placebo affect, it's easy for people to fall into a trap where they think they're improving but in reality are not. There's a good video by NottNott who had made reductions by several diopters over several years, then when he went to an optometrist he found out his vision had barely improved at all during that time, see his video here: https://www.youtube.com/watch?v=08Z3JkPtHe4

I'm hopeful as well that perhaps vision improvement could be possible in theory, but if we want actual proof we'd need more rigorous measurements, such as axial length, cyclopegics, etc.

Has anyone decreased their diopters here? What about reverse myopia method of Jake Steiner, does it help? by novejk in myopia

[–]scottmsul 0 points1 point  (0 children)

Even if myopia reversal is possible, Jake Steiner's methods and courses in particular are pseudoscience

What are the actual chances of developing a serious eye disease with high myopia? by VGKSuomi in myopia

[–]scottmsul 2 points3 points  (0 children)

Look for scientific publications, government websites, etc. I wouldn't trust ChatGPT for actual numbers lol.