Comment by flossly
4 hours ago
Nice to see Ruby vs Java. Must say that in this context Kotlin deserves a mention: my Kotlin code basically looks+feels like Ruby-with-types. Both Ruby and Kotlin are essentially OO, but with "lots of FP features where it makes sense".
On the side of the jpackage: I'm currently using GraalVM compile to native for a Kotlin CLI tool. I do the build in a build container so I use an older glib to ensure compatibility on a wide variety of Linuxes, AND because this way no-one needs to install all the GraalVM requirements by hand. The result is a 57MB binary, that start in a blink of the eye. The downside is long compile times (2 minutes for a simple CLI tool that uses AWS SDK). I think I prefer this of jpackage; but I'm not building a GUI tool.
Many of those "lots of FP features where it makes sense". were already present in Smalltalk.
Especially anything related to lambdas, map, filter and co.
Something that was lost in most OOP languages that followed suit, until like a decade later.
> Many of those "lots of FP features where it makes sense". were already present in Smalltalk.
Good point. And both Java and Ruby borrowed from Smalltalk (according to Wikipedia Kotlin does not, but that is: not directly.
Sadly Java did not take Smalltalk's FP inspiration (I guess they were strayed by C++'s lead in that regard), and we needed streams and now Kotlin to fix that :)
Smalltalk's syntax never go really popular though. One could say that was its biggest drawback.
> Smalltalk's syntax never go really popular though. One could say that was its biggest drawback.
A lot of Smalltalk-style syntax was absolutely massive for a decade or so you could argue, at least under the guise of the gazillions of iPhone apps that were written in Objective-C. This random blog post probably does a better job than me:
> https://richardeng.medium.com/apple-has-been-using-smalltalk...
"Smalltalk's syntax never go really popular though. One could say that was its biggest drawback."
This would be my guess, I always heard nice things about it and liked many concepts, but the syntax was just plain ugly to me, so I never felt the urge to try it out. I imagine others felt similar.