This typesafe.com chart shows the results of the efforts to make the Scala compiler faster over the last several years.
I haven’t tried it yet, but as a note to self, Scala 2.12.5 introduced a new
-Ybackend-parallelism N compiler flag with which “the backend can now run in parallel on N threads.”
If you’re interested in computer system performance, ExtremeTech has an article titled, CPU utilization is wrong on PCs, and it’s getting worse every year. The original article was written on the same topic by Brendan Gregg in 2017, but the problem has been made worse by the Spectre and Meltdown patches.
I’m not sure why, but on April 3, 2018, the people behind the Mollom anti-spam module for Drupal basically went out of business. This meant that I either had to disable comments on this site (which I did for a while), or look at other anti-spam modules, which I did over the weekend.
As a brief note today, if you want to know if your Drupal 8 web pages are being cached, take a look at the headers that are returned by your Drupal 8 URLs. Here’s an example using the
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 (without a
catch clause), 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)
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.