• 10 Posts
  • 1.48K Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle




  • unoptimized code that does complex stuff.

    You can still have complex code that is optimized for performance. You can spend more resources to do more complex computations and still be optimized so long as you’re not wasting processing power on pointless stuff.

    For example, in some of my code I have to get a physics model within 0.001°. I don’t use that step size every loop, because that’d be stupid and wasteful. I start iterating with 1° until it overshoots the target, back off, reduce the step to 1/10, and loop through that logic until I get my result with the desired accuracy.















  • mnemonicmonkeys@sh.itjust.workstoComic Strips@lemmy.worldFast and furious
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    4 days ago

    I don’t see how having a motor to help you out and spending a few grand on a carbon fiber frame are much different.

    Some people cycle as a sport, and races don’t let you have e-bikes. Plus, putting in all the work to climb a hill under your own power and getting to ride down is rewarding. Sure, getting a carbon fiber bike makes the work a bit lighter, but you’re still the one putting in all the work, which isn’t the case with e-bikes.

    While the people in your example are failing to understand that people habe different motives for cycling, you’re doing the exact same thing here.