|15 days ago||8 days ago|
|MIT License||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.
Help me break the fourth wall
1 project | reddit.com/r/scala | 25 Apr 2022
Perhaps refined would help you? It lets you set constraints (i.e. "rules") for values / types. You get compile-time enforcement for constants and fallible methods for runtime values (i.e. Either[Error, RefinedValue]).
Simple, Naïve, and Wrong: More than you wanted to know about Scala Case Classes
3 projects | reddit.com/r/scala | 26 Feb 2022
This is more or less how derivation works when you want to use something like Refined types (it exposes Validate[Type, Refinement] typeclass if I remember correctly). Enumeratum exposes Enum[A], and newtypes expose Coercible[From, To].
Opinions on implementing traits for validation with the help of a companion object
2 projects | reddit.com/r/scala | 26 Feb 2022
You will probably be interested into Iron or Refined.
Help with Single Value Validated Types
2 projects | reddit.com/r/scala | 27 Aug 2021
You want either a refined type, a newtype, or if you are in Scala 3 an opaque type.
Alan Kay's answer to What was the last breakthrough in computer programming?
3 projects | news.ycombinator.com | 17 Aug 2021
Types versus sets in math and programming languages
1 project | reddit.com/r/ProgrammingLanguages | 24 Jul 2021
Option as type of field in case class
1 project | reddit.com/r/scala | 28 Apr 2021
Additionally, I also like to use Refined, so that my names are actually NonEmptyStrings, and I'll usually go even farther and make a LastName type alias to NonEmptyString and a FirstName type alias to NonEmptyString so that I can legitimately return just Char as an initial, for example. That way parsing guarantees you're not just sending me empty stuff that is just as useless as an empty person, and also so that I don't accidentally put a FirstName where a LastName should go somewhere in my code.
Using refined to improve type safety and error reporting in Scala
1 project | reddit.com/r/scala | 12 Apr 2021
I wrote a short piece on my company's blog explaining how we used refined to validate incoming data and parse it into more… well, refined types: https://engineering.contentsquare.com/2021/scala-refined-types/
Why there is still no ExpressJS-like alternative in Scala?
5 projects | reddit.com/r/scala | 7 Jan 2021
This example uses probably the most popular JSON library for Scala, Circe. There is another Scala library that lets us "be more specific with," or "refine," our types, called Refined. http4s doesn't provide any particular support for Refined, but Circe has a module integrating Refined, meaning that all of Circe's parsing, encoding, and decoding support is integrated with Refined. Putting together http4s' Circe support, Circe's generic codec derivation, and Circe's Refined integration, here's what I came up with:
Scala 3 Reflection
5 projects | reddit.com/r/scala | 1 Feb 2022
Scripting API is quite limited, so the third option. - reuse the ammonite scripts https://github.com/com-lihaoyi/Ammonite or look how this is implemented (using internal compiler API),
New to Scala
1 project | reddit.com/r/scala | 14 Oct 2021
Your exposure to Functional Programming with Haskell and Clojure suggest you will certainly pick up Scala quickly. With ZIO and cats, you can write robust software quickly. Consider the excellent Coursera Scala course. Get "the Red Book" https://www.manning.com/books/functional-programming-in-scala, and most important, play. Experiment to see how things work. Get https://ammonite.io/
Audacity Fork Without Any Sentry Telemetry or Crash Reporting
9 projects | news.ycombinator.com | 5 Jul 2021
Here's an example of a smaller project that added telemetry without suffering a fork:
Scripting with Java – Improving Approachability
2 projects | reddit.com/r/java | 12 May 2021
Or ammonite - I've ran Gatling performance test from a simple script based on this gist it fetches all the dependencies, compiles and runs the test, producing nice html report..
25 years of OCaml
3 projects | reddit.com/r/programming | 10 May 2021
Scala with the Typelevel ecosystem. Stay on the jVM, but have a much more pleasant and robust experience, including a great REPL.
The Scala ecosystem and circular dependencies?
3 projects | reddit.com/r/scala | 10 Apr 2021
If you are installing, and you are learning, I would also recommend ammonite as an easier REPL.
IPython as a System Shell
3 projects | news.ycombinator.com | 6 Apr 2021
I've been using amm on and off https://ammonite.io/#Ammonite-Shell
pretty nice if you know scala, still have to use regular shell(s) so I do not forget them
Ammonite: Scala Scripting
1 project | news.ycombinator.com | 12 Mar 2021
A Lisp REPL as my main shell
5 projects | news.ycombinator.com | 8 Feb 2021
I've never tested Ammonite, only read the https://ammonite.io/#Ammonite-Shell, so I'm only guessing here.
From what I understand, Ammonite was designed as a "readline shell" as I wrote in the article. It perpetuates this approach that everything is a command.
The thesis of my article suggests we do the opposite: I'm suggesting to rethink shells by starting from the interface (here the SLY REPL) and then implement the shell features.
In particular, it seems that Ammonite does not support back-references and I'm not sure it has an interactive inspector.
I wonder what people think about Ammonite (https://ammonite.io/)?
It's not Lisp but Scala so may not be the authors language of choice however it can be used as a Shell: https://ammonite.io/#Ammonite-Shell
I am personally using it and compared to a classical shell like Bash it's really nice for more structured data related tasks (exploring some API, checking some data, creating a bunch of PRs at once, ...).
It also makes use of Scala's adjustable syntax and functional concepts so you basically get shell piping but in a strongly typed fashion (e.g.
What are some alternatives?
better-files - Simple, safe and intuitive Scala I/O
Scalaz - Principled Functional Programming in Scala
calculator - Windows Calculator: A simple yet powerful calculator that ships with Windows
Scala-Logging - Convenient and performant logging library for Scala wrapping SLF4J.
ScalaTest - A testing tool for Scala and Java developers
Scala Graph - Graph for Scala is intended to provide basic graph functionality seamlessly fitting into the Scala Collection Library. Like the well known members of scala.collection, Graph for Scala is an in-memory graph library aiming at editing and traversing graphs, finding cycles etc. in a user-friendly way.
Shapeless - Generic programming for Scala
cats - Lightweight, modular, and extensible library for functional programming.
LArray - Large off-heap arrays and mmap files for Scala and Java
scribe - The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.