cask
refined
Our great sponsors
cask | refined | |
---|---|---|
12 | 16 | |
496 | 1,678 | |
1.6% | - | |
7.3 | 8.6 | |
3 months ago | 7 days ago | |
Scala | Scala | |
GNU General Public License v3.0 or later | MIT License |
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.
cask
-
Java21/Virtual threads, simplest the most boring scala http server stack ?
I want to just block as if there's no tomorrow, no effects / hardcore FP (maybe only something like https://github.com/softwaremill/ox), what would you use? E.g. for http server / db / json ?https://github.com/com-lihaoyi/cask ?
-
Scala opensource projects
There's the Li Haoyi's ecosystem of tools and libraries that's fun to hack on, has a low entry-bar (with a design philosophy of using the least complex abstractions for the job), and has few libs like requests and cask that may appeal to those liking some python minimalism. That's not the fastest way to learn hardcore FP, that's not the worst either.
- http4s as a replacement for akka-http?
-
Replacing Play+Akka with another tech-stack in Scala
Wonder if anyone uses: https://github.com/com-lihaoyi/cask
-
Starting with scala
Is play-framework a strong requirement? If not, you might have an easier time building a simple API and serializing JSON with the lihaoyi ecosystem, namely cask as the microframework and uPickle/uJson.
-
Scala became Typelevel/Zio only ecosystem?
For people who want to get their feet wet with Scala, I highly recommend Cask and the rest of what some people affectionately call “the Singapore stack,” in honor of Li Haoyi, its developer. He emphasizes tasteful use of Scala features with an emphasis on API ergonomics. All of his work is a joy to use.
-
Mill, Cask, and SBT
The documentation points to a pretty outdated example. Can you try with the latest 0.8.3 release?
-
Scala Http Framework
If you want something really easy and simple, have a look at cask: https://com-lihaoyi.github.io/cask/
-
A library like Express.js?
Best I can do is Cask: https://com-lihaoyi.github.io/cask/ 😅
- Experienced dev new to Scala looking for a quick answer to get me on the right track - Advice on *standard* Scala framework stack to quickly set up a web-app backend?
refined
-
Make Invalid States Unrepresentable
Scala has quite good support for refined types across multiple libraries. A solution using the refined library might look something like
-
Does the fthomas/refined library work differently in Scala 3?
Does the Refined library for Scala (at https://github.com/fthomas/refined; "eu.timepit" %% "refined") work in Scala 3? Does it work differently?
-
Type erased on implicit evidence check
I'm trying to create a poor man version of refined types implementation with a simple validation of string content and check the return type via Implicit evidence on another function. It seems that the type got erased after it got returned from the check
-
Design by contract - Preconditions and Postconditions - I'm really amazed with Scala.
Scala likes to do design-by-contract on the type level. You encode your pre- and post- conditions into types. Libraries like iron (scala 3) https://github.com/Iltotore/iron and refined (scala 2) https://github.com/fthomas/refined allow you to do all that without throwing any exceptions and they can even enforce some simple predicates at compile time.
-
Restrict uses of annotation in Scala
Annotation is not the only way (and probably not the best IMHO) to do refined types. You might be interested in Iron in Scala 3 or Refined in Scala 2/3.
-
Cross-Training to Ada - which are the best languages to begin from?
I think the way you model problems in Ada is superficially similar to refined types you find in some functional languages (e.g. Scala).
-
Can types replace validation?
In one respect, nothing. You’re right. Even given refinement types as in Haskell or Scala, there is indeed a necessarily-partial function (refineV in Scala) to refine a value to its refinement type.
-
Help me break the fourth wall
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
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
You will probably be interested into Iron or Refined.
What are some alternatives?
zio-http - A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
Shapeless - Generic programming for Scala
Http4s - A minimal, idiomatic Scala interface for HTTP
Records for Scala - Labeled records for Scala based on structural refinement types and macros.
vertx-lang-scala - Vert.x for Scala
Cassovary - Cassovary is a simple big graph processing library for the JVM
scala-play-skills-tracker
Ammonite-Ops - Scala Scripting
scala-cli - Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code (and more!)
scala-newtype - NewTypes for Scala with no runtime overhead
Play - The Community Maintained High Velocity Web Framework For Java and Scala.
Scalaz - Principled Functional Programming in Scala