rescript-promise
rescript-and-python-error-parsing-aws-lambda
Our great sponsors
rescript-promise | rescript-and-python-error-parsing-aws-lambda | |
---|---|---|
3 | 1 | |
128 | 0 | |
- | - | |
0.0 | 1.8 | |
over 1 year ago | almost 2 years ago | |
ReScript | ReScript | |
- | - |
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.
rescript-promise
-
Parsing Lambda Error Logs in ReScript & Python
We need the Promise library as it is the best way to use Promises in ReScript. We utilize the Jzon library for deterministically parsing our JSON into sound ReScript types without using the super verbose Js.Json classify syntax. Finally, we have an Environment module to help our Lambda know if it’s running in a QA, Stage, or Production environment.
-
Which Language?
For promises, there's a proposal plus implementation with improvements that should be upstreamed soon. JS interop is actually pretty good, if you find the embedding syntax too ugly you can for the most part keep .js files and .res files and they'll work together.
-
Thinking in ReScript
Note that here I'm using the rescript-promise library, which will soon become a part of the core language.
rescript-and-python-error-parsing-aws-lambda
-
Parsing Lambda Error Logs in ReScript & Python
That coginitive dissonance is why I wrote this article. I love how both laguages can shine in what they do best doing the same task, and it’s fascinating to compare them, and how you’d approach doing the same thing in each. For reference, all code is up on my Github.
What are some alternatives?
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
DefinitelyTyped - The repository for high quality TypeScript type definitions.
rescript-compiler - The compiler for ReScript.
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
aws-cloudformation-coverage-roadmap - The AWS CloudFormation Public Coverage Roadmap
serverless-application-model - The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.
jest - Delightful JavaScript Testing.