Converter
effect
Converter | effect | |
---|---|---|
7 | 46 | |
233 | 10,446 | |
0.9% | 11.9% | |
4.9 | 9.9 | |
11 months ago | 4 days ago | |
Scala | TypeScript | |
GNU General Public License v3.0 only | 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.
Converter
- Is there any project on langchain with scala
-
st-material-ui - Material UI 5 for Scala 3
The longer story is that st-material-ui incorporates https://github.com/ScalablyTyped/Converter/pull/487 in order to get much, much cleaner API. You'll probably have seen the fake literal types, some rewriting from type unions to inheritance, things like that.
-
State of Scala.js frameworks
Given that you want interoperability with js, I'd start by playing with https://scalablytyped.org/, then, play with the scalajs-react demos (https://github.com/ScalablyTyped/ScalaJsReactDemos) and the slinky demos (https://github.com/ScalablyTyped/SlinkyDemos). There are some libraries that scalablytyped doesn't support pretty well but you can leverage https://github.com/nafg/scalajs-facades for those.
-
From ES6 to Scala: Basics
ScalaJS is awesome. Really solid and mature project, can totally recommend.
The only thing that can be annoying is when you want to have a typesafe interface and have to write a lot of adapters for javascript libraries.
Fortunately there is even a project that can make use of typescript interfaces for those libraries, so that you can use them from ScalaJS more or less automatically: https://scalablytyped.org/
-
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).
- Scala.js 1.7.0 released with “zero known bugs”
- ScalablyTyped publishes Scala 3 support
effect
-
Flix – A powerful effect-oriented programming language
If you are in the JS ecosystem, you should check out Effect TS (https://effect.website)
It's a very fun time
- Is It JavaScript?
-
Why Algebraic Effects?
You can already have all of this goodness (and then some) in typescript https://effect.website/ -- Writing TS without Effect is difficult for me now, it's like a whole new and better language.
-
3 Options to Avoid Side-Effects in Web Dev
Abstract away the side-effects using Effect-TS.
-
Stop Syncing Everything
Cool! That's an interesting approach putting the actions in wasm. I'm going for something more tightly integrated into an application rather than entirely in the database layer.
The actions in my prototype are just TS functions (actually Effects https://effect.website/ but same idea) that can arbitrarily read and write to the client local database. This does put some restrictions on the app -- it has to define all mutations inside of actions and capture any non-deterministic things other than database access (random number, time, network calls, etc) as part of the arguments. Beyond that what an app does inside of the actions can be entirely arbitrary.
I think that hits the sweet spot between flexibility, simplicity, and consistency. The action functions can always handle divergence in whatever way makes sense for the application. Clients will always converge to the same semantically valid state because state is always advanced by business logic, not patches.
Patches are recorded but only for application to the server's database state and for checking divergence from expected results when replaying incoming actions on a client. It should create very little load on the backend server because it does not need to execute action functions, it can just apply patches with the confidence that the clients have resolved any conflicts in a way that makes the most sense.
It's fun and interesting stuff to work on! I'll have to take a closer look at SQLSync for some inspiration.
-
Evolving Scala
Just as context for anyone curious:
Scala is even more "powerful" than TS or Rust as it has real HKT (higher-kinded types), and for example Effect.TS needs to emulate/simulate it.
https://github.com/Effect-TS/effect/blob/main/packages/effec...
-
Effective Pragmatism: Introduction
Welcome to my new series about Effect. In this series, I want to discuss why I think Effect is one of the most pragmatic technology choices for most software companies. Before we start talking about the technology itself, we have to establish what all software companies seek. How do their needs change based on their size and the economic environment in which they operate?
-
Error Handling for fetch in TypeScript
The less uncommon are typed FP libraries like Effect or true-myth.
-
Scheduling in Effect: Understanding and Implementing
In this article, I want to talk about schedules in Effect and, for better understanding and fun, implement my own with Promises.
-
Show HN: Libmodulor – An opinionated TS library to build multi-platform apps
You should check out https://effect.website/
It might help you implement some of these ideas
What are some alternatives?
langchainjs - 🦜🔗 Build context-aware reasoning applications 🦜🔗
fp-ts - Functional programming in TypeScript
tyrian - Elm-inspired Scala UI library.
contentlayer - Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
diode - Scala library for managing immutable application model
appy - A functional wrapper around Fetch API