fartscroll.js
rescript-mui
fartscroll.js | rescript-mui | |
---|---|---|
3 | 2 | |
2,806 | 246 | |
- | -0.4% | |
0.0 | 8.6 | |
over 5 years ago | 14 days ago | |
ReScript | ||
MIT License | 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.
fartscroll.js
-
TypeScript please give us types
We have types at home.
My litmus test regarding whether I can even consider using a library in production is: does it have more stars than fartscroll.js?
https://github.com/theonion/fartscroll.js/tree/master
Most of the entries there are below that number, which begs the question: is this really that much of a problem that it mandates the drastic changes required?
I actually don't know if it's even doable, considering TS's structural type system, where the answer to the question "what type is X?" is not straightforward.
-
Weekly Random Discussion Thread for 2/20/23 - 2/26/23
The best content produced by The Onion was a JavaScript library to make farting noises on scroll events: https://github.com/theonion/fartscroll.js
-
From TypeScript to ReScript
As a sort of litmus test I use the number of stars a superset of(or language compiling to) JavaScript has on GitHub and how that compares to fartscroll.js: https://github.com/theonion/fartscroll.js/
By this measure ReScript is still a niche language.
rescript-mui
-
From TypeScript to ReScript
I've been using ReScript for a few months now. So far I mostly like it, but it takes some time to get used to it. The error messages can be confusing though so I try not to depend too much on type inference. The other downside is that some bindings for some of the web apis seem to be missing (like for the types in the Dom module).
Btw, for Material UI there are already bindings [1]
[1] https://github.com/cca-io/rescript-material-ui
-
Help with bindings in @rescript/react
Some even wrote binding generators, as it is hard to keep up with the growth of UI libraries: https://github.com/jsiebern/bs-material-ui/tree/master/tools/binding-generator
What are some alternatives?
genType - Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
Idris2 - A purely functional programming language with first class types
lwt - OCaml promises and concurrent I/O
melange - A mixture of tooling combined to produce JavaScript from OCaml & Reason
rescript-compiler - The compiler for ReScript.
typescript-needs-types - TypeScript please give us types.
agda-mode-vscode - agda-mode on VS Code
rescript-react - Official ReScript bindings for ReactJS
from-typescript-to-rescript - Frontend of https://Inhyped.com written in TypeScript and rewritten in ReScript