2019

Hello, Scala is now Scala Book alvin October 14, 2019 - 5:09pm

One small step for me, and I don’t know if it will help mankind at all. But Hello, Scala is now called Scala Book, and you can find it here on scala-lang.org.

First snow of the fall, 2019 alvin October 10, 2019 - 11:49am

Today, October 10, 2019, we’re having our first snowfall of the season. I’m going to have to bake some cookies.

An example of Union Types in Scala 3 (Dotty) alvin October 10, 2019 - 9:33am

Here’s an example of Union Types in Scala 3 (Dotty). This image comes from this Martin Odersky video.

Different perspectives from book reviewers

I recently had a discussion with two people I’m working on a book with, where they are essentially very active reviewers. I like to write with enthusiasm, so I made a particular statement in the book. One person said they thought it was motivating — which was my intent — but the other person said it made them wary. I thought it was fascinating to get such different perspectives.

A quiet, attractive new programming language alvin September 29, 2019 - 8:00pm

Here’s some source code that demonstrates a quiet, concise, and attractive new programming language I’d enjoy using:

Scala 3 (Dotty), September 30, 2019

I’m Not The Radical Left, I’m The Humane Middle

These are some terrific words from a blog post titled, I’m Not The Radical Left, I’m The Humane Middle:

I believe in full LGBTQ rights.
I believe we should protect the planet.
I believe everyone deserves healthcare.
I believe all religions are equally valid.
I believe the world is bigger than America.
I believe to be “pro-life,” means to treasure all of it.
I believe whiteness isn’t superior and it is not the baseline of humanity.
I believe we are all one interdependent community.
I believe people and places are made better by diversity.
I believe people shouldn’t be forced to abide by anyone else’s religion.
I believe non-American human beings have as much value as American ones.
I believe generosity is greater than greed, compassion better than contempt, and kindness superior to derision.
I believe there is enough in this world for everyone: enough food, enough money, enough room, enough care — if we unleash our creativity and unclench our fists.

Ball jar glass cracks, explodes

So I pour some root beer in a Ball jar glass I use to drink from. I put some ice in it, then set it on the counter because I realize I left my glasses in the bedroom. In the bedroom I hear a cracking noise from the kitchen, but when I come back I can’t figure out what it was, so I assume it was the ice cracking in the root beer.

I pick up the Ball glass, take it to the computer area, then realize I now left my glasses in the kitchen. So I start walking to the kitchen, and the bottom of one of my feet feels a little wet. I can’t make sense of that, unless the Ball glass already started perspiring and dripped.

I come back to the computer area and find a little puddle of root beer under my glass. “Oh,” I think, “the root beer must have overflowed after I put the ice in. Strange I didn’t feel it on my hands.”

So I pick up the Ball glass and think, “Huh, that’s a lot of root beer under there,” so I take it back to the kitchen to rinse the glass under the sink. When I put the glass under the sink the bottom explodes and falls out.