sbt-native-packager
kotlinx.collections.immutable
Our great sponsors
sbt-native-packager | kotlinx.collections.immutable | |
---|---|---|
5 | 10 | |
1,581 | 1,081 | |
-0.1% | 3.7% | |
6.8 | 7.3 | |
5 days ago | 10 days ago | |
Scala | Kotlin | |
BSD 2-clause "Simplified" License | Apache License 2.0 |
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.
sbt-native-packager
-
I had a great experience with Scala and hopefully it will get more popular
once you outgrow scala-cli, you should know sbt has a lot of plugins ( some might say it's ecosystem is the only thing keeping it relevant....) like sbt-native-packager which again does the heavy lifting for you
-
Asking for help to improve codepreview
So far, we have been working mainly with projects that use https://github.com/sbt/sbt-native-packager, still, projects building fat jars should also work smoothly.
-
I removed sbt-assembly and sbt-buildinfo from my project.
You should use sbt-jib. (You shouldn't use sbt-native-packager either, it doesn't work well in this regard: [1], [2].)
-
Why Scala is way slower than python ... and than Java too in leetcode?
As others have stated, this is mainly due to the nature of the JVM. You can try using GraalVM however, which basically complies JVM bytecode to native-code avoiding startup time issues, sbt-native-packager lets you do this quite easily.
-
SBT error when running package application: java.lang.RuntimeException: No main class detected.
IMO don't take any of this advice and use https://github.com/sbt/sbt-native-packager
kotlinx.collections.immutable
-
Is there a way to atomically add to a list and return its index?
In Clojure, it is called an Atom. I created my own via AtomicReference and https://github.com/Kotlin/kotlinx.collections.immutable. It works really well in Kotlin. It works especially well if you use tons of coroutines.
-
I had a great experience with Scala and hopefully it will get more popular
So does Java! Also, kotlinx.collections is still not stable and I don't think they are intending to make it so any time soon.
-
Immutable lists, O(1) prepend/append
If you want to have O(1) with prepend you use the LinkedList. You get a lot of functional benefits but also all of the downsides like no random access. You can use the https://github.com/Kotlin/kotlinx.collections.immutable library to get O(log_64(n)). I haven't spent a ton of time on Tries so I might be a little wrong on that bound. BTW, these are persistent immutable data structures. At work, we use them inside of AtomicReference to roll our own Clojure Atoms.
-
What type of variable contains amutable list?
This is why Kotlin refers to List as read-only, and not immutable, and has created a library for truly immutable collections: https://github.com/Kotlin/kotlinx.collections.immutable
-
what is the best persistent collection library?
What I know is only based on this discussion. It seems that pcollections is really outdated and should not be considered.
-
A personal Kotlin guide for Java developers
If you want true immutable collections, kotlinx.collections.immutable provides them. They will likely be integrated into the language eventually with value classes and better immutability support.
-
Scala is a Maintenance Nightmare
I could see this argument made with Clojure, but I don't really see what makes Scala significantly better at FP than Kotlin. Kotlin has an official persistent data structures library nowadays, and it's got lambdas and higher order functions.
-
What are your concerns and pet peeves about Kotlin so far?
It's not immutable, it's read-only, https://kotlinlang.org/docs/reference/collections-overview.html . I think that's a false assumption. But I get the point - immutable collections are not part of the std - for very good reasons. But we know each other, I assume that you will disagree :) For people who know what they want and know all the implications, there is https://github.com/Kotlin/kotlinx.collections.immutable .
What are some alternatives?
sbt-assembly - Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)
java-immutable-collections - Efficient Immutable/Persistent Collections for Java
sbt-pack - A sbt plugin for creating distributable Scala packages.
Exposed - Kotlin SQL Framework
sbt-native-image - Plugin to generate native-image binaries with sbt
geni - A Clojure dataframe library that runs on Spark
coursier - Pure Scala Artifact Fetching
MapDB - MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
xsbt-web-plugin - Servlet support for sbt
sbt - sbt, the interactive build tool
sbt-release - A release plugin for sbt
cats - Lightweight, modular, and extensible library for functional programming.