Rob Pike's response would probably be to profile the code first, then see if your fancy code or alternate data structure makes it faster.
497 karma · joined July 24, 2022
Rob Pike's response would probably be to profile the code first, then see if your fancy code or alternate data structure makes it faster.
Unless we invent miracle tech, we are fucked. And then there is the climate crisis, which will require massive geoengineering because we waited too long. No one knows if we can avert that crisis or how bad it will get.
Then of course there is the risk to human jobs. We don't need AGI to put vast amounts of people out of work, it is already happening and will accelerate in the near term.
The community is a bit worried over these developments, and there has been some sniping over the disruption caused by Scala 3 (mainly to projects that relied on macros, even though macros were marked as an experimental feature).
IMO Scala is still the best language on the JVM, and last I checked there were plenty of jobs for experienced Scala devs. The foot guns weren't that severe, or at least I am used to them (in my opinion, Java coding has more foot guns due to nulls and mutable state everywhere, YMMV).
Scala 3 was more incremental, than radical, and was massively less disruptive than you see with other attempts to clean up a language (Python 3, Perl 6, anything involving PHP) due to good design, careful planning and backwards compatibility options.
Living on a giant airship would be like having the highest penthouse apartment in the world, and the most amazing views. And you can move it when you get bored.
I remember that the ancient Pascal dialect I used in college had max array sizes of 255 because they used a single byte for the size.
To put it another way, there are plenty of ways to find music, what underground musicians need is a an easy to use tool to put their music online, as we are not big enough for Spotify.
https://archive.org/details/My_Computer_Likes_Me_When_I_Spea...
I never remember having heat waves in October or February. We also never needed AC, although maybe I'm just growing soft in my old age.
"Indian Summer" meant things might get a bit warm in September, then cool down. Weather stayed cool until the spring.
This summer has been oddly cool (at least in Berkeley), but got up to 92 2 weeks ago, which is not normal.
Now I am a Scala programmer, often doing pure-FP with Cats...
We use a custom setup in which the config values are loaded from multiple sources actually, so we could put everything into secrets manager, or load them all from env vars or HOCON files.
If we had to set every config value in ECS / lambda using env vars, it would be a major pain in the ass, and error prone.
I am 60, have used many languages, and used to love C and C++. I consider C and C++ archaic and Java is border-line. I thought Java was cool 10-20 years ago, but I've moved on to Scala.
These days I develop servers on the JVM. We almost never think about mutexes or related things, libraries take care of that. I use Scala, and our entire data model is immutable, eliminating most race conditions. I think I had to declare something as volatile once or twice.
In 1980 I was a freshman at UCSC, and the professors did not like C. So most classes used UCSD Pascal. While it apparently pioneered some cool ideas, it was not at all ready for industry use. The free function was just a suggestion, it didn't deallocate anything. Arrays were fixed size, and an array of size 80 was a different type than size 255 (and 255 was the maximum).
I remember the compiler class where we built a compiler-compiler using Pascal. It was pretty cool that the professor came up with a design that worked, but also quite dumb as we had to pass around a bunch of 255 char arrays. And also insane that we couldn't use the industrial strength tools like C and yacc available on the VAX / UNIX computers...
But what about Modulo-2? Well one professor would torture the class, making them use various not-C languages. One year it was PLZ (A PL/I based language created by Zilog Corporation). When I took the class, it was Modulo-2, using a compiler developed at CMU I think. It also implemented free() as a suggestion that did nothing, and had other warts. I was not impressed...
I realize that it is unfair complaining about shitty academic implementations, but that's what I lived through.