Formerly u/CanadaPlus101 on Reddit.

  • 4 Posts
  • 1.02K Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle

  • Interesting. I’ve tried Linux phones, they’re not a bad idea per se. It looks like Waydroid is literally just emulating LineageOS, though, so I do start to wonder what the point is.

    I suppose one advantage would be you can actually hack your system a bit, instead of having everything locked into the ROM.


  • And even this improvement wasn’t universally appreciated: some people found error messages they couldn’t ignore more annoying than wrong results, and, when judging the relative merits of programming languages, some still seem to equate “the ease of programming” with the ease of making undetected mistakes.

    This guy was writing in the year x86 was first introduced, and I still feel like I see this attitude around.

    (He manages to shoehorn in a “kids these days” paragraph too, though)








  • In the end we inplemented NoTaD pointers (“notified on target destruction”, essentially weak pointers but this was back in the day when weak pointers and smart pointers weren’t really well defined) that would discover when the thing they took a precious pointer to was actually no longer valid.

    It’s weird to me that programming practice has changed that much in 20 years. That’s still closer to today than to Dennis Richie doing his thing.










  • I get OP was a joke, but I was trying to make a serious observation.

    Say you have some kind of stochastic algorithm that works on the assumption it’s fed a composite number most of the time. Maybe something like Pollard’s Rho algorithm, where whatever number theoretic structure you need accumulates slowly over time as a result. You decide to just pick a large number at random for each iteration.

    Implicitly, you’ve solved the problem of finding a composite number by assuming all (large) numbers are composite, like in this post. It is pretty close, like also mentioned in this post. If that’s not good enough, you could also use a primality test that fails some small portion of the time, which do exist, and use less power than guaranteed tests.