TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scala 3.0.0-M1

191 pointsby cwhyover 4 years ago

12 comments

smabieover 4 years ago
I&#x27;ve always loved Scala and Scala 3 is shaping up to be extremely exciting. Love the new ADTs and braceless syntax: really gives the language a cleaner and more ML inspired feel.<p>No other conventional language (including OCaml, F#, etc) seem to have the effortless kind of power Scala does.<p>The combination of the extremely powerful type system with the &quot;OOFP&quot; paradigm is a great combination. OOFP is such a great paradigm and it&#x27;s unfortunate that no other language has embraced it.<p>It&#x27;s ironic that I love Scala so much because I don&#x27;t particularly enjoy dealing with the JVM and all its complexities and problem. But Scala is so good that it mostly makes up for it.<p>Scala does get a lot of hate (especially around here), but I&#x27;ve never really understood why. There&#x27;s only one language I like more (kdb+&#x2F;q), but that&#x27;s a hard sell, especially because of the cost.<p>Too bad there&#x27;s not really a ML&#x2F;AI ecosystem around (besides Spark, which seems to be losing favor partially because of its embarrassing performance), because using Python is such a drag. However, I do understand why non-CS&#x2F;type theory people might find the language intimidating.<p>But to that I&#x27;d say, I&#x27;ve seen new junior (though very smart) developers with no Scala or FP experience get onboarded and write idiomatic Scala code within a couple weeks to a month. The short term cost is more than worth it considering the absurd productivity compared to Java&#x2F;Kotlin&#x2F;Python&#x2F;blublang.<p>Compared to OCaml&#x2F;F#&#x2F;Haskell, the improvement is a little less stark, though still clear imo (especially when considering editor tooling and available packages).
评论 #24987769 未加载
评论 #24986917 未加载
评论 #24987114 未加载
评论 #24986941 未加载
评论 #24986987 未加载
评论 #24987414 未加载
评论 #24986946 未加载
评论 #24989610 未加载
评论 #24987012 未加载
评论 #24987513 未加载
评论 #24987310 未加载
评论 #24987094 未加载
jatcwangover 4 years ago
Very, very excited about Scala 3. Here are some of the things I&#x27;m looking forward to using:<p>* Generally a more clean language for everyday use, codifying existing patterns like newtypes (opaque types), typeclass derivation and extension methods<p>* Improved type inference &amp; lots of other quality of life improvements<p>* A macro system based on the idea of multi-stage programming. This has a lot of potential for improving both type-safety and performance. An example: beating existing database systems query optimization with ~500 lines of Scala code [1]<p>* TASTY, a new intermediate representation (AST) for artifacts. This means that Scala will have a much better version upgrade &#x2F; binary compatibility story in the future. (e.g. TASTY is used for facilitating 2.13 &lt;-&gt; 3.0 bi-direction upgrade!)<p>* Significant compile time improvements over Scala2 alraedy[2] (and we&#x27;re only at M1 release)!<p>Scala has already been a wonderful language to work with professionally with many great tooling (linting, automatic migration, 2 good OSS IDEs), and I think Scala 3 will certainly push the state-of-the-art forward in many departments in the coming years.<p>[1]:<a href="https:&#x2F;&#x2F;www.cs.purdue.edu&#x2F;homes&#x2F;rompf&#x2F;papers&#x2F;rompf-icfp15.pdf" rel="nofollow">https:&#x2F;&#x2F;www.cs.purdue.edu&#x2F;homes&#x2F;rompf&#x2F;papers&#x2F;rompf-icfp15.pd...</a><p>[2]: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;not_xuwei_k&#x2F;status&#x2F;1323643312230772737" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;not_xuwei_k&#x2F;status&#x2F;1323643312230772737</a>
blackoilover 4 years ago
In my company (10k+ devs) Scala seems to be losing steam. All the enthusiasts have moved to Go&#x2F;Rust, while the pragmatics are staying in (moving back) in Java. No new major project is being built in Scala.<p>Does anyone share this experience?
评论 #24987222 未加载
评论 #24987938 未加载
评论 #24988278 未加载
评论 #24987432 未加载
评论 #24987480 未加载
评论 #24988096 未加载
评论 #24987882 未加载
评论 #24987333 未加载
评论 #24989138 未加载
评论 #24987240 未加载
rethabover 4 years ago
Scala 3 is a huge change. As someone who used Scala for years, but always wondered whether they can retain their users with competition from Kotlin, I&#x27;m extremely curious what this will mean for Scala in the long run.<p>I&#x27;m skeptical, because the cost to migrate is big. But I&#x27;m hopeful, because Scala is a language I like to write code in.<p>Edit: why am I skeptical? I know scala 3 is largely meant to be backwards compatible. But scala has always been a language of many styles (&quot;java without semicolon&quot; vs &quot;haskell compiled with scalac&quot;). All this new syntax in scala three adds a whole new dimension to this issue.
评论 #24986919 未加载
评论 #24987487 未加载
评论 #24986720 未加载
评论 #24986844 未加载
评论 #24986934 未加载
评论 #24987171 未加载
alexashkaover 4 years ago
Just want to give Martin Odersky a shout out - what a legend this guy.<p>62 years old, going strong.<p>I&#x27;m not even in the java ecosystem but Scala strikes me as the most likely language to do something fresh and interesting on top of an existing ecosystem in the next few years, which is terrific news.
评论 #24987140 未加载
osdevover 4 years ago
The Scala language is great but the ecosystem sacrifices simplicity for pure FP. Scala has always suffered from complexity problems due to libraries. For example, using Http&#x2F;JSON&#x2F;Database libraries have always been a lot harder than they need to be due to a die hard approach to pure FP.<p>Scala 3 looks pretty good, but I just can NOT see myself using Scala again, after having worked with it for 4-5 years at work and on personal projects. I write mostly&#x2F;reasonably FP code without using Cats&#x2F;Category theory. I’ve recently moved all my code from Scala to Kotlin and I’m loving it, found the perfect balance with Kotlin.
评论 #24989228 未加载
评论 #24989183 未加载
pjmlpover 4 years ago
Nice to see Scala 3 finally making the first steps to release.
ph2082over 4 years ago
I have downloaded this big open source project which uses spring and ibatis and have everything which OOP offers.<p>For learning Scala, I am trying to re-write it using play framework. Case classes do offer reduction in boiler plate code. But write now feeling overwhelmed about how to map all this deep inheritance tree, factories etc. from OOP world to functional way of doing things.<p>I hope someone write side by side mapping of doing things in Scala 2 vs Scala 3.
edemover 4 years ago
The most important thing that no one seems to mention is that Scala 3 is not compatible with Scala 2. This means that they are creating competition for themselves. It is the Python 2 vs 3 problem all over again.
评论 #24993328 未加载
x87678rover 4 years ago
Scala can be nice but up until now compilation is way too slow to live with. Hopefully this will make it more palatable, but I&#x27;ve moved to Kotlin already.
评论 #24989276 未加载
esarbeover 4 years ago
Nice. Looking forward to start using all the &#x27;intention over mechanism&#x27; features that Dotty introduced.
AheadOfTime295over 4 years ago
Scala 3 making progress is great, just like progress on the Scala 2.13 camp:<p>Scala on Track to Support Java 9 Module System <a href="https:&#x2F;&#x2F;github.com&#x2F;scala&#x2F;scala-dev&#x2F;issues&#x2F;529" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scala&#x2F;scala-dev&#x2F;issues&#x2F;529</a><p>Scala 2.13 on track to support Spark <a href="https:&#x2F;&#x2F;issues.apache.org&#x2F;jira&#x2F;browse&#x2F;SPARK-25075" rel="nofollow">https:&#x2F;&#x2F;issues.apache.org&#x2F;jira&#x2F;browse&#x2F;SPARK-25075</a>