Converter
purescript-halogen
Converter | purescript-halogen | |
---|---|---|
7 | 11 | |
208 | 1,512 | |
1.0% | 0.3% | |
7.0 | 3.6 | |
12 days ago | 2 months ago | |
Scala | PureScript | |
GNU General Public License v3.0 only | 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.
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
purescript-halogen
-
Designing an HTML Component system
There's a framework in purescript from which u can grab some ideas I think: https://github.com/purescript-halogen/purescript-halogen.
-
What can I do in Haskell? UwU
If you wanna do web frontends right now, I'd recommend Halogen for Purescript since it is maintained and has documentation.
-
Building Mystery Mansion Madness without a UI Framework
Before 2012, all of my websites were made using HTML, CSS and a sprinkling of JS. Then, I went all-in on AngularJS, followed by React. I started using Typescript and then PureScript and learned more frameworks like Halogen and Concur. I even wrote my own UI framework called purescript-deku.
-
Inflist, an experiment using PureScript and React
First of all I had to choose what to use to manage the User Interface. I narrowed down to two modules: Halogen and react-basic-hooks (which is a “wrapper” of the unmaintained react-basic). I decided to go with react-basic-hooks just because I work with React on a daily basis and I wanted to understand its interoperability with PureScript. I will 10/10 try Halogen too in the next future since as far as I can see is the most famous and maintained in the PureScript community.
-
State of Scala.js frameworks
There's also Purescript, which is sort of a Haskell for frontend. It has type classes, HKTs and so on and also has a very nice FFI. When it comes to UI libraries there is Halogen which I think is very well though out and allows for using tagless final approach. There's also react-basic but I haven't used that one myself.
-
Solid JS Good for Production and what are the Pro and Cons ?
My favorite webapp stack at the moment is Halogen (PureScript UI library); I have always gravitated toward functional programming and strong static typing. For commercial work, however, I use React. While it isn’t perfect it strikes, for me, the right balance of purity, composability, and simplicity.
-
Solid.js feels like what I always wanted React to be
Yeah? I wrote something to deal with it too (https://github.com/toastal/return-optics) 5.5 years ago. You arguably chose the wrong data as `(model, Cmd msg, Maybe extMsg)` instead of `(model, Cmd msg, List extMsg)` which would give you more flexibility and still functions as a monoid on [] instead of Nothing, but allows multiple messages shrug. I tried this approach more recently and it involved me having to encode all of actions in a massive tree and then I still had issues with certain messages including now having to UUID all elements that that previously I didn't need to think about. It was a mess, but the best I could do with the tools at hand.
If you compare this to Halogen (https://github.com/purescript-halogen/purescript-halogen/blo...) where you still have purity but can set up subscribers and listeners from any component. It's much easier to use and for some components like dialogs, it's much simpler. And this actually isn't the best example because with the latest Halogen, Portals (https://github.com/purescript-halogen/purescript-halogen/pul...) was introduced so you can launch a dialog on the spot instead of even needing to communicate between them at all.
-
7 Useful Tools Written in Haskell
Below you can find the example of a simple button component written in Halogen:
- PureScript and Haskell
- Q: Webapps in Purescript for Haskellers
What are some alternatives?
tyrian - Elm-inspired Scala UI library.
solid-start - SolidStart, the Solid app framework
Demos - Demos for ScalablyTyped
purescript-flame - Fast & simple framework for building web applications
shoelace-css - A collection of professionally designed, every day UI components built on Web standards. SHOELACE IS BECOMING WEB AWESOME. WE ARE LIVE ON KICKSTARTER! 👇👇👇
solid-site - Code that powers the SolidJS.com platform.
langchainjs - 🦜🔗 Build context-aware reasoning applications 🦜🔗
reagent - A minimalistic ClojureScript interface to React.js
Laminar - Simple, expressive, and safe UI library for Scala.js
nixos-config - My NixOS configuration
diode - Scala library for managing immutable application model
purescript-react-basic - An opinionated set of bindings to the React library, optimizing for the most basic use cases