Re:Some Memories of Niklaus Wirth by Martin Odersky
by geodel on Wednesday January 17, 2024 @12:07PM
(#39030433)
So modern day Wirth is quite different from antiquity Wirth. Java generics are quite complex they have multi hundred pages books to explain it all. Scala a really clever language, perfect for 1 line code doing 50 line equivalent of Java code. Slow compile times and immature tooling is another important feature of Scala.
[ Parent
| on HN ]
Re:Some Memories of Niklaus Wirth by Martin Odersky
by kagakuninja on Wednesday January 17, 2024 @02:40PM
(#39032394)
Current Scala compile times really aren't that bad. Yeah, Go will be 10x faster, but then you have to use Go...
For a typical micro service, I never think about compile time, thanks to incremental compilation. Even a full compile is not bad. Tooling is also fine, although Scala 3 set things back. IntelliJ now supports Scala 3 adequately.
Re:Some Memories of Niklaus Wirth by Martin Odersky
by geodel on Wednesday January 17, 2024 @05:08PM
(#39034230)
Well, its like one can always tolerate shortcomings when they like something/someone. Reasons can always be added later for liking something but rarely other way around.
Re:Some Memories of Niklaus Wirth by Martin Odersky
by kagakuninja on Thursday January 18, 2024 @01:52PM
(#39045950)
Look, I've been using Scala professionally for 8 years. I don't notice that my compile times are any slower than Java, although I haven't tried any meaningful comparison. There are some notorious libraries like Shapeless than can kill your compile times; the solution is to not do that, unless the trade off is worth it to you.
It could be x1.2 slower, maybe even 2x, and I wouldn't notice it, because it is fast enough. IntelliJ has incremental compilation. Compile times only matter when I do a full rebuild, and it is still fast enough.
If I had to build a giant mono-repo like at Google, then the compile speed of languages like Go become important.