Chimney
Quill
Our great sponsors
Chimney | Quill | |
---|---|---|
13 | 15 | |
1,090 | 2,135 | |
1.8% | 0.0% | |
9.6 | 9.1 | |
2 days ago | 10 days ago | |
Scala | Scala | |
Apache License 2.0 | 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.
Chimney
-
Chimney 0.7.0 released
Hello, if you have some nice examples could you please check if it's something that would fit any of issues planned for 0.7.1 or create a new one?
-
Smithy4s 0.15.0, now with Smithy 2.0 support
Thankfully, there are some solutions that can help reduce the boilerplate of these manual conversions. For instance, chimney : https://scalalandio.github.io/chimney/
-
Is it possible to get runnable generated scala code from a macro (chminey to be specific)?
I want to upgrade one project to Scala 3.1, but I'm using the macro heavy chimney (https://github.com/scalalandio/chimney) to reduce the boilerplate, which is not available for Scala 3 yet. My idea was to copy and paste the code that chimney generates on 2.13, and after that uncomment the uses of chimney for now.
-
From ES6 to Scala: Basics
In my $dayjob we originally used Scala, but I pushed for a couple of new services to be written in TypeScript/Node as it was really hard to hire Scala developers. I'd say it worked well, we even took a somewhat functional approach to building things. We tried fp-ts but that was a bit hardcore (when you are trying to hire TypeScript developers who don't know functional programming), so just built Either and Option types which provided 99% of what we needed.
There are still a few things I miss though:
* Pattern matching and exhaustive checking. Using a switch statement it is possible to define a function that can emulate the compile-time exhaustive checking, but it's still rather weak compared to what you can do in Scala.
* Implicits. Being able to define something that can convert say a UUID to a String or vice versa automatically just feels like magic, especially when dealing with data from third party systems.
* Compiler macros and metaprogramming. It enables tools like Chimney (https://scalalandio.github.io/chimney/) to be built, which I don't think are possible with TypeScript right now.
-
Ideas for a Scala 3 MapStruct library?
Hi! Are you aware of https://github.com/scalalandio/chimney? I think that's what you are trying to do. Sorry if I misunderstand your message.
Quill
- Sketch of a Post-ORM
- I want to move to Scala 3, but I'm not sure what libraries to use
-
Ask HN: What cutting-edge technology do you use?
I'm using it mostly for full-stack web development with ScalaJS (https://www.scala-js.org) in the frontend (https://outwatch.github.io/docs/readme.html) and in the backend with AWS lambdas.
The ecosystem is currently in the process of porting all the libraries to Scala 3. So if you're new to Scala, I'd recommend to start with Scala 2, which is rock-solid and already very powerful.
I never worked with SQLAlchemy. But on the scala database side, popular libraries are Doobie (https://tpolecat.github.io/doobie) and Quill (https://getquill.io). Keep in mind that these are for Scala on the JVM. On the ScalaJS side I'm using the javascript library pg. But I'd like to try if it works well with Prisma soon.
The nice thing about ScalaJS is, that you can use Javascript libraries. And if there are typescript facades, then you can transpile these to Scala and use them in a type safe way (https://scalablytyped.org).
-
Fp libraries that target scala 3 exclusively?
I know that libraries like Scodec and shapeless were rewritten practically from scratch for Scala 3, taking advantage of the next syntax and internals, as well as protoquill - a Scala 3 implementation of Quill.
-
Best Scala framework / libraries out there ?
Akka HTTP, Cats, Quill, ninny, Monix Observable, mill.
-
Ideas for a Scala 3 MapStruct library?
https://getquill.io/#docs (Look under SCHEMA).
-
Ask HN: What stack would you use to build a CRUD web app on the JVM today?
I would use it at work because I know it. There are a LOT of libraries in Scala for HTTP up to database stuff, and it really depends on what kind of ecosystem you're walking into:
* Scala as Python: https://github.com/com-lihaoyi/cask, maybe https://github.com/getquill/quill
* Scala as Haskell: HTTP4s, https://tpolecat.github.io/doobie/
* Scala as Rails: Play
Play is the closest thing to Rails-like CRUD productivity IMO, and honestly for CRUD most times I would like to write as little code as possible and just get it done, even using low/no-code solutions (postgrest, hasura, htmx), but that wasn't the question :)
-
[Debate] Is type level programming useful?
quill is uses type level programming. It allows for the pre-computation of SQL queries during compilation, and you can inspect what queries will look like, whilst you code without, running anything.
-
From First Principles: Why Scala?
I've heard that too but I think there are at least efforts to support Scala 3.
Having said that I think Quill looks nicer (https://getquill.io/) if you want a DSL like that.
What are some alternatives?
Slick - Slick (Scala Language Integrated Connection Kit) is a modern database query and access library for Scala
doobie - Functional JDBC layer for Scala.
ScalikeJDBC - A tidy SQL-based DB access library for Scala developers. This library naturally wraps JDBC APIs and provides you easy-to-use APIs.
Phantom - Schema safe, type-safe, reactive Scala driver for Cassandra/Datastax Enterprise
Clickhouse-scala-client - Clickhouse Scala Client with Reactive Streams support
zio-protoquill - Quill for Scala 3
Shapeless - Generic programming for Scala
Squeryl - A Scala DSL for talking with databases with minimum verbosity and maximum type safety
Monocle - Optics library for Scala
PostgreSQL and MySQL async
Lamma - Lamma schedule generator for Scala is a professional schedule generation library for periodic schedules like fixed income coupon payment, equity deravitive fixing date generation etc.
Scalaz - Principled Functional Programming in Scala