comment 0

Why Scala?

The video below is a very cool talk on why we use Scala by Martin Odersky.

As processors are no longer getting significantly faster per core (Moore’s law), but we get more cores, we need to figure out how to execute our programs faster.

Through Scala we can use parallel and concurrent programming.

Other languages use functional programming too (e.g. JS can do it) but Scala is one of the more modern languages built specifically for it. It also allows us to solve problems such as a mutable variable changing when there are concurrent changes. (Too many tweets changing the net number of tweets at the same time, the variable can be multiple different values at the same time, and this can cause bugs).

In Scala we think in terms of space rather than time as in iterative languages (we do this, now we do this, and last we do this…) which allows multiple ‘workers’ to perform different tasks at the same time.

 

Von Neumann, the smartest man who ever lived and one of the pioneers of the computer (and a pioneer in about 50 other extremely important fields), is my personal hero, so I thought this was pretty cool:

Screen Shot 2019-09-10 at 7.57.14 AM

Screen Shot 2019-09-10 at 7.57.31 AM

The current computer behaves in very much the von Neumann paradigm. The thought that this style is actually limiting is an interesting paradigm.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s