In today’s important news, there’s What happens when you put Coke in your gas tank; there’s a weird string in the center of our galaxy; scientists discover a new material that can’t be explained by classical physics; and of course, without telling anyone, Apple intentionally slows down iPhones with old batteries.
Here’s a story about a command-line app named speed-test that gives you network speed information from the command line.
With Twitter being Twitter, I saw this image there, and now I can’t find it again. But it shows that the new iPhone 8 is significantly faster at rendering a cnn.com page.
Actually, since I can’t find the original source, I don’t know if they both rendered mobile web pages, or whether they tried several times to make sure it wasn’t just a hiccup. But seeing that the architecture in a little phone can come anywhere near the performance of a desktop/laptop processor that’s still being sold makes one wonder about the future.
Update: I think this was the original source of the image.
If you’re interested in Android performance benchmarks, AndroidBenchmark.net seems to have some simple charts, like the image shown.
I live in Colorado, where cellular reception can be very hit or miss. As just one example there are only two spots in my apartment where I can make a phone call. So when I’m at home trying to view a website using Safari on my iPhone and the page is loading really slow, I find it really annoying that my iPhone is trying to use my cellular data rather than my home wireless network (WiFi).
Note: Apple implies that the cellular data is “assisting” the WiFi, but with the poor cell reception here, I can confirm that this feature just slows down my iPhone internet speed.
The book, Advanced Scala with Cats, has a nice little function you can use to run a block of code “slowly”:
def slowly[A](body: => A) = try body finally Thread.sleep(100)
I’d never seen a try/finally block written like that, so it was something new for the brain.
In the book they run a
factorial method slowly, like this:
slowly(factorial(n - 1).map(_ * n))
FWIW, you can modify
slowly to pass in the length of time to sleep, like this:
def slowly[A](body: => A, sleepTime: Long) = try body finally Thread.sleep(sleepTime)
This is a page from my book, “A Survival Guide for New Consultants”
“There is no ‘try’”
As a small business owner, I classify employees in three categories:
- If employees have basic good qualities, I’d try to keep them through good times and bad.
- If they were “problem” employees I got rid of them very quickly.
- If employees had exceptional performance, they got the big raises, and I considered them as potential business partners.
Here’s a quick look at those three categories.