News for hackers. Stuff that matters.
Re:My favorite prime number generator by btilly on Thursday August 24, 2023 @05:23PM (#37254715)
sigh

I have no idea why you are trying to evangelize C++ here. I use a wide variety of languages for different purposes. For Project Euler type tasks I switched to Python about 15 years ago because of yield, and the convenience of using objects as hash keys. If you make different choices and they work for you, then have fun.

Re:My favorite prime number generator by CyberDildonics on Thursday August 24, 2023 @06:25PM (#37255347)
double sigh

You seem to be saying there is some advantage to python because of the yield feature and I just don't think that's true. You can keep state in a class and call a method. There are a lot of disadvantages though.

triple sigh