Avatar

Matty_r

Matty_r@programming.dev
Joined
3 posts • 9 comments
Direct message

This should be the new isEven()/isOdd(). Calculate the speed of the CPU and use that to determine how long it might take to achieve a ‘sleep’ of a required time.

permalink
report
reply

So what they’re saying is they could get all that extra revenue if they lower their price and just undercut the competition?

permalink
report
reply

For sure. It’s something I’ve considered for a while simply because I don’t need that extra heat/noise created by the GPU when I’m only doing my day job.

permalink
report
parent
reply

Hey, thanks for mentioning it. I had added a Maven pom.xml yesterday, as I had others mention that as well. Someone else has created a PR for GitHub actions as well, which is great.

I haven’t really used Maven before so maybe it could be improved? PRs welcome of course :)

permalink
report
parent
reply

Sweet. One of the hardest parts of getting into Rust initially was getting a good debugger going. Its not a huge problem these days, but it was pretty difficult a couple year ago.

permalink
report
reply

No, youre right - just because its old doesnt mean its insecure. But honestly, it’s very short sighted to think there may not be potential security issues. I haven’t gone through the code, and I’m not going to, but the amount of problems that could crop up due to using an app that is not being maintained are potentially huge.

Maybe its reaching out to a server to get a block list, and that server has now been exploited and is now distributing malware to your phone?

Maybe the way it handles blocking calls has a huge flaw which can be exploited by another app to gain higher privileges than its own?

Just looking at the issues list, a year ago someone even points out that through using a static analyzer they found 23 issues. Who knows the severity of them?

This is all speculation. But to just wave off a geniune concern is ignorant.

permalink
report
parent
reply

I was curious so had a look at that app. Hasn’t been updated in years and the original author appears unresponsive.

I would probably advise against that, at least from a security standpoint.

permalink
report
parent
reply

Ideally I’d choose Rust because I enjoy working with it, but don’t have enough time to commit to it at the moment. But being Practical I’d probably say Java, its easy to get stuff going and has been around forever so it’s easy to find solutions etc.

permalink
report
reply

I got up to a pack a day when I decided to quit. The biggest thing that helped me quit was getting an app on my phone which tracked the cost and how many you’re smoking. When you start reducing the amount smoked etc it tracked how much money you’ve saved, how much healthier your lungs are (lung capacity etc), how much more time you’ve added to your life expectency, all that sorta stuff.

Having numbers and stats to track, made it feel more tangible and felt like I was making actual progress towards something.

Its worth a shot.

permalink
report
reply