reason
ts-auto-guard
Our great sponsors
reason | ts-auto-guard | |
---|---|---|
44 | 7 | |
10,051 | 474 | |
0.3% | - | |
5.8 | 5.8 | |
about 2 months ago | about 2 months ago | |
OCaml | TypeScript | |
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.
reason
- Learning Elm by porting a medium-sized web front end from React (2019)
-
Melange for React devs book, alpha release
Hey HN, at Ahrefs we have been working on an online book that hopefully helps React developers get up and running with Melange, an OCaml to JavaScript compiler. You can read more about Melange here: https://melange.re/.
There are still a few chapters that we'd like to add before considering it "complete", but it might be already helpful for some folks out there, that's why we decided to publish it early.
The book uses Reason syntax to implement React components using ReasonReact components. You can read more about both in:
-
ReScript: Rust like features for JavaScript
ReScript is "Fast, Simple, Fully Typed JavaScript from the Future". What that means is that ReScript has a lightning fast compiler, an easy to learn JS like syntax, strong static types, with amazing features like pattern matching and variant types. Until 2020 it was called "BuckleScript" and is closely related to ReasonML.
- Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
-
Earning the privilege to work on unoriginal problems
This tracks with how I've seen "normal" languages converge on similar, flawed imitations of better type systems through tools and repurposed syntax. Thank you for confirming.
Do you have any recommendations or warnings regarding general languages which reach in the opposite direction? Reason[1] and F#[2] are both examples: they attach pre-existing ecosystems and compile-for-$PLATFORM tools to OCaml-like typing.
OCaml itself is also intriguing for personal projects. However, I'm worried the "GPL" in its standard library's LGPL license might scare people despite both the linking exception and Jane Street's MIT alternative.
-
Melange 1.0: Compile OCaml / ReasonML to JavaScript
ReasonML purely as a syntax layer on top of OCaml is still being updated and released[1]. Incidentally, I'm one of the maintainers of that project too :-)
With this Melange release, we're hoping to somewhat revive ReasonML and channel some folks back to the community from the perspective of a vertically integrated platform that has seen major investment in the past few years.
-
VN Compiler. Why using Fable is too difficult. (Pt. 1)
Why not use https://reasonml.github.io/ instead? Or just use Typescript?
-
My Thoughts on OCaml
Quieted down, but I depend on projects with worst graphs:
-
why
There is also reasonml for Web development.
- Por que Elm é uma linguagem tão deliciosa?
ts-auto-guard
-
TSON started supporting equivalent validators
Request for comment if I'm off the mark here: https://github.com/rhys-vdw/ts-auto-guard/pull/202
-
How to type guard interfaces beautifully?
Use something like ts-auto-guard to generate your type guards. This eliminates human error when writing them.
-
Starting out with a Typescript role, any killer library recommendations I should know about?
Damn there's so many of these now. Also my ts-auto-guard is an option for type guard generation.
-
Are Dynamic Languages Going to Replace Static Languages? (2003)
To be fair, when writing TypeScript you often end-up needing to write loads of type-guard functions, and there are plenty of popular TypeScript extensions that generate those type-guard functions for you, e.g. https://github.com/rhys-vdw/ts-auto-guard
-
Automatically generating typeguard functions
One thing I did realise after looking at your code was that I could try changing the attributes property to a Record and see if https://github.com/rhys-vdw/ts-auto-guard handled that well, which it did!
-
CLI: Generating validators by parsing TS type definitions
I made one of these too: https://github.com/rhys-vdw/ts-auto-guard
What are some alternatives?
purescript - A strongly-typed language that compiles to JavaScript
runtypes - Runtime validation for static types
rescript-compiler - The compiler for ReScript.
io-ts - Runtime type system for IO decoding/encoding
melange - A mixture of tooling combined to produce JavaScript from OCaml & Reason
ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json
js_of_ocaml - Compiler from OCaml to Javascript.
io-ts-transformer - TypeScript transformer which converts TypeScript types to io-ts entities
ocamlformat - Auto-formatter for OCaml code
typescript-runtime-type-benchmarks - 📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
refterm - Reference monospace terminal renderer
cats - Category Theory and Algebraic abstractions for Clojure and ClojureScript.