ZIO
Vert.x
Our great sponsors
ZIO | Vert.x | |
---|---|---|
50 | 39 | |
3,694 | 13,370 | |
0.8% | 0.5% | |
9.8 | 9.3 | |
7 days ago | 7 days ago | |
Scala | Java | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ZIO
-
40x Faster! We rewrote our project with Rust!
The one advantage Rust has over Scala is that it detects data races at compile time, and that's a big time saver if you use low level thread synchronization. However, if you write pure FP code with ZIO or Cats Effect that's basically a non-issue anyway.
-
What’s so great about functional programming anyway?
> It's a weakness of functional programming, not the language.
I would strongly object this.
Have you seen ZIO?
-
Switching career from F# to scala
But overall, I'm happier with Scala. It has not one, but two lively FP communities. I recommend that you pick one of them: ZIO or TypeLevel (Cats Effect, fs2, http4s, ...). To some extent, you can mix TypeLevel libraries in ZIO projects.
- New to Scala;
-
Next Steps for Rust in the Kernel
I think "better Haskell on JVM" (in contrast to "worse Haskell") is a good identity for Scala to have. (Please note that this is an intentional hyperbole.)
Of course, there are areas where Haskell is stronger than Scala (hint: modularity, crucial for good Software Engineering, is not one of them). And Scala has its own way of doing things, so just imitating Haskell won't work well.
Examples of this "better Haskell" are https://typelevel.org/cats-effect/ and https://zio.dev/ .
All together, Scala may be a better choice for you if you want to do Pure Functional Programming. And is definitely less risky (runs on JVM, Java libraries interop, IntelliJ, easy debugging, etc...).
None of the other languages you mentioned are viable in this sense (if also you want a powerful type system, which rules out Clojure).
I agree that Rust's identity is pretty clear: a modern language for use cases where only C or C++ could have been used before.
-
Java 19 Is Out
I would use Scala. I like FP and Scala comes with some awesome libraries for concurrent/async programming like Cats Effect or ZIO. Good choice for creating modern style micro-services to be run in the cloud (or even macro-services, Scala has a powerful module system, so it's made to handle large codebases).
https://typelevel.org/cats-effect/
The language, the community and customs are great. You don't have to worry about nulls, things are immutable by default, domain modelling with ADTs and patter matching is pure joy.
The tooling available is from good to great and Scala is big enough that there are good libraries for typical if not vast majority of stuff and Java libs as a reliable fallback.
-
Scala Isn't Fun Anymore
I actually think Scala is in the best position it's ever been.
There is a commitment to making the language simpler, easier and cleaner.
On the backend, ZIO [1] is the best concurrency library on any platform. On the frontend you have really interesting Scala.js projects like Laminar [2].
The biggest issue really is the tooling. SBT is simply awful.
[1] https://zio.dev
- A Python-compatible statically typed language erg-lang/erg
-
Ask HN: Any alternative to Java (OOP) which has the same ecosystem?
Scala? With some help from additional libs such as Zio (https://zio.dev/) it allows you to write production quality programs like you would in Haskell on top of the JVM quite quickly...
- Cats vs ZIO
Vert.x
- PFA vs SRL
-
Favorite hidden gem library?
Eclipse Vert.x - Add amazing Async to any Java stack
-
Codeberg a GitHub Alternative from Europe
Vert.X example: https://github.com/eclipse-vertx/vert.x/blob/master/src/main/java/examples/EventBusExamples.java#L106 (couldn't even find docs)
-
Quarkus fundamentals
In fact, it builds on top of proven standards such as Eclipse MicroProfile or frameworks such as Vert.x or JAX‑RS.
-
Javalin v5 has been released! (web micro-framework)
If you’ve used NodeJS & ExpessJS, in Java world, Vert.x, Helidon and Javalin should be familiar.
-
Using Kotlin Coroutines with Vert.x
Vert.x is a toolkit for writing asynchronous and reactive applications on the JVM. The Vert.x ecosystem has high-quality libraries providing support for web services, database drivers, authentication, and more.
-
Library recommendations?
If FP is scaring you off then maybe consider Vertx.
- Rest API server?
- Java modern frameworks choice
-
Choose the right Java runtime for the job (2020, Quarkus vs Open Liberty vs traditional application server)
For performance and good support for asynchronous programming, I think the best option is Vert.x. It's the fastest Java option by far according to TechEmpower ranking.
What are some alternatives?
Akka - Build highly concurrent, distributed, and resilient message-driven applications on the JVM
cats-effect - The pure asynchronous runtime for Scala
Quarkus - Quarkus: Supersonic Subatomic Java.
Monix - Asynchronous, Reactive Programming for Scala and Scala.js.
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
Http4s - A minimal, idiomatic Scala interface for HTTP
Lagom - Reactive Microservices for the JVM
Micronaut - Micronaut Application Framework
RxJava - RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
cats - Lightweight, modular, and extensible library for functional programming.
helidon - Java libraries for writing microservices
Zuul - Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.