promises-spec
algo.monads
promises-spec | algo.monads | |
---|---|---|
22 | 2 | |
1,831 | 444 | |
0.2% | 0.2% | |
0.0 | 5.1 | |
9 months ago | 2 months ago | |
Clojure | ||
Creative Commons Zero v1.0 Universal | Eclipse Public License 1.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.
promises-spec
-
Implement Promises/A+ from scratch
Today, I tried implementing Promises/A+ from scratch to test my coding skill. In the process, I’ve crafted this guide to share my insights and experiences with those who share a similar interest. Without further ado, let’s dive in.
-
Using XPath in 2023
That made me chuckle.
For those not familiar with the promise design controversy:
http://brianmckenna.org/blog/category_theory_promisesaplus
https://github.com/promises-aplus/constructor-spec/issues/24
https://github.com/promises-aplus/promises-spec/issues/94
-
Why is JavaScript so hated?
If you really want to go down the rabbit hole on this one, start here
-
What the imperative shell of an Functional Core/Imperative Shell language looks like
Advantage 1, nesting, is the most important here, and it's often the most-overlooked advantage. Overlooking nesting is how Promises in Javascript got to be fundamentally broken.
-
[AskJS] Is JavaScript missing some built-in methods?
Have you read the infamous GitHub thread where people tried to fix this before it got finalized? It's quite a trip
-
This typo lasted several pomodoro sessions.
1.) JS implementation of Promise is not a monad. See this StackOverflow answer or this GitHub discussion for more details
-
How to implement Promise in a FAANG interview
In this article, we will go over how to implement a basic version of a promise during a FAANG interview. The standard for promise implementation is called A+, but it includes a huge amount of details, making it almost impossible to implement all of them during a one-hour coding interview. Therefore, we will focus on implementing a basic variation that should be enough to show the interviewer your solving skills.
- what object
-
Oopsy Poopsy ahahaha *sharts uncontrollably*
Hey, at least you weren't these guys: https://github.com/promises-aplus/promises-spec/issues/94
-
Haskell is the greatest programming language of all time ... the rational adult in a room full of children ... When I program in Haskell, I am in utopia. I am in a different world than 99.9% of what I see posted on Reddit.
Total carnage
algo.monads
- Monads for Clojure Programmers
-
Lisp dialect or library that have monads and lenses
Clojure is a partially lazy, functional lisp, that has some very neat abstractions underlying its core library. It doesn't have explicit monads builtin, but here's a great implementation that also has some educational material: https://github.com/clojure/algo.monads
What are some alternatives?
proposal-symbol-thenable
lux - The Lux Programming Language
q - A promise library for JavaScript
data-lens - Functional utilities for Common Lisp
zx - A tool for writing better scripts
cats - Category Theory and Algebraic abstractions for Clojure and ClojureScript.
proposal-set-methods - Proposal for new Set methods in JS
cats-effect - The pure asynchronous runtime for Scala
purescript - A strongly-typed language that compiles to JavaScript
fantasy-land - Specification for interoperability of common algebraic structures in JavaScript
fp-ts - Functional programming in TypeScript
fontoxpath - A minimalistic XPath 3.1 implementation in pure JavaScript