Scala, Java, Unix, MacOS tutorials (page 1)

I noticed yesterday that the Cubs’ Tyler Chatwood has a forkball changeup grip. The ball spins with a backspin and not a topspin, so it’s not really a split-finger fastball like Bruce Sutter, but it does a great job of taking some MPH off of his pitch.

Tyler Chatwood forkball changeup grip

The Chicago Cubs won their game today in 11 innings and ended with a social distance celebration.

Chicago Cubs social distance celebration

During one start in my high school baseball career I decided to use a windup like Steve Rogers, as shown in this YouTube video. I found that with this windup I couldn’t throw as hard as I normally did, but with that arm angle I had better movement on my fastball, which was sinking a little bit.

My dad hadn’t been to any of my games in a while, but he came to this one, and after a while he started yelling, “C’mon, throw the ball,” meaning that I should throw it harder. That pissed me off in part because our relationship was strained, and also because he hadn’t been to any games, so why should he care?

After he said it again, a very nice man in the stands named Mr. Munoz told him to be quiet, that I knew what I was doing. After all, the other team hadn’t scored, had they? After that my dad stayed quiet. I don’t know Mr. Munoz’ first name, but his son Oscar was really nice and a great baseball player, and as I thought of this today I just wanted to thank Mr. Munoz for that day.

Every spring I think about moving back to Talkeetna, Alaska, and I just ran across this old photo of my car in front of the cabin I lived in.

Ye olde Talkeetna cabin

El Sanctuario de Chimayo, near Santa Fe, New Mexico, in the winter.

El Sanctuario de Chimayo, in the winter

In two small tests I ran where GraalVM was able to create a native executable, the native executable ran significantly faster than the equivalent Scala/Java code running with the Java 8 JVM, and also reduced RAM consumption by a whopping 98% in a long-running example. On the negative side, GraalVM currently doesn’t seem to work with Swing applications.

If you ever need to look at the SerialVersionUID field in a Scala or Java class, I can confirm that this approach works:

Chicago Cubs pitcher Kyle Hendricks throwing a sinker (sinking fastball) and changeup.

Chicago Cubs pitcher Kyle Hendricks throwing a sinker (sinking fastball) and changeup

“My vision is ordinarily limited to the catcher,” he says. “A man on base is merely a variable. I see the batter only dimly outlined. I don't care if it's Henry Aaron or Dal Maxvill up there. Either can hurt you, but neither can if I'm doing my job.”

My book, Functional Programming, Simplified — 4.5-star rated on Amazon, and their 6th-best selling functional programming book — is currently on sale in three formats:

PDF Format
Just $15 on Gumroad.com
(December sale!)

PDF version of Functional Programming, Simplified

Paperback Book
$39.99 on Amazon
 

Print version of Functional Programming, Simplified

Kindle eBook
$14.99 on Amazon
 

Kindle version of Functional Programming, Simplified

After yesterday’s surgical procedure, I now have 16 surgical scars on this body.

I've lived in a lot of places in my life, some good, some bad. This is the rental unit I lived at in Palmer, Alaska, courtesy of Google Maps.

Generally this was a good place. My favorite part was that I could jump on my bicycle and go on a 20-mile bike ride without every having to be near a busy street.

Rental fourplex in Palmer, Alaska

I just needed to add a manifest file to a Java JAR file, and this command worked for me:

As shown in the image, I was just reminded that you can run javap inside the Scala REPL. The REPL help command shows some other things you can do:

You can run the `javap` command inside the Scala REPL