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.

Explicit term inference with Scala 3

91 pointsby walkingolofover 4 years ago

6 comments

valenterryover 4 years ago
A summary of what Scala is great for:<p>- Safe and high performant concurrent programming. Scala is miles ahead of most other languages here and pretty much on par with the best ones (such as Haskell)<p>- ETL &#x2F; data transformations. Python is a big player here - but for stable and performant data pipelines, I strongly believe Scala is the better choice. For explorative things, python has the edge though.<p>- Actor systems on the JVM. I believe that most &quot;scalable&quot; systems are over-engineered. A well configured postgres &#x2F; elasticsearch and a machine with your application on good hardware goes _very_ far. But sometimes it&#x27;s not enough and then Scala offers a great solution with Akka on the JVM. Erlang&#x2F;Elixir with their runtime are probably even better, but Scala offers the better typesystem and one can stay in the JVM world if they want.<p>- in-language custom DSLs. No seriously, Scala is the best language I know in terms of building typesafe, customizable DSLs within the language, making it almost look like another language. This is great if not so techy folks are to make changes to actual code in an easy way. The link in this post here shows some examples but it goes beyond.<p>- Writing glue-code. Surprisingly, I think Scala is better than python and many other languages here, because of the sheer power of composability of the language and ways to connect pieces with each other in a typesafe manner. The reason for this lies mostly in the concept of implicits, which both enables great power and reusability but also makes the learning curve much steeper.<p>This list might be a bit subjective and I don&#x27;t know every language out there, but as the questions comes up almost everytime, I wanted to list the strengths of Scala in the areas where most other languages can&#x27;t compete with it.
评论 #25044465 未加载
评论 #25044339 未加载
评论 #25045563 未加载
评论 #25044355 未加载
评论 #25044291 未加载
xyzzy_plughover 4 years ago
This is a nice write-up, it&#x27;s beeb some time since I&#x27;ve written Scala and Scala 3 looks promising.<p>Though, I am curious if there is anyone else who shares my mindset on Scala.<p>In a corporate environment, I found it to be an extremely expressive and powerful language but that power comes at a grave price, which I&#x27;ll try to summarize:<p>- it&#x27;s difficult to understand other people&#x27;s code compared to other languages (e.g. Go) - it&#x27;s so very implicit that you end up having to hold a lot of state in your head to understand what&#x27;s going on. - the language is basically impossible to read effectively without IDE features.<p>I usually enjoy reading most code bases, but Scala is downright painful to read in plaintext. You end up having to <i>be</i> a compiler.
评论 #25043869 未加载
评论 #25044272 未加载
评论 #25044690 未加载
评论 #25048226 未加载
评论 #25044397 未加载
评论 #25043746 未加载
评论 #25044506 未加载
评论 #25044422 未加载
natchyover 4 years ago
After a couple weeks of dabbling between Scala and F# to migrate Python and Node.js codebases (at a scaling startup serving big enterprises) I ended up choosing F#.<p>Scala is a beast and the package manager + build tools were giving me headaches. I’m optimistic about the current trajectory with Scala 3 and simplifying the language.
评论 #25043670 未加载
评论 #25043813 未加载
sabellitoover 4 years ago
&gt; Avoiding repetition with contextual parameters<p>This is the type of stuff that made me go away from Scala.<p>Why implement a feature that optimises for code writing? How does my editor let me know that function receives that parameter without me going &quot;???&quot; and having to go into its definition?<p>Implicit conversions fall into the same category, of making code pretty to look at, quick to write, and a nightmare to understand when you&#x27;re new to a codebase.<p>Shame, really. The good parts of Scala are wonderful.
评论 #25055054 未加载
评论 #25045788 未加载
AzzieElbabover 4 years ago
Cleanest way to extend functionality if ides are able to catch up and provide discoverability. Big win on syntax
liquid153over 4 years ago
Has the scala hype train passed?
评论 #25045528 未加载
评论 #25044315 未加载
评论 #25045162 未加载