js-proposal-algebraic-effects
proposal-observable
js-proposal-algebraic-effects | proposal-observable | |
---|---|---|
3 | 12 | |
174 | 3,036 | |
- | 0.0% | |
0.0 | 0.0 | |
about 3 years ago | over 4 years ago | |
JavaScript | JavaScript | |
- | - |
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.
js-proposal-algebraic-effects
-
Proposal: Signals as a Built-In Primitive of JavaScript
I have to admit: you're perfectly right here. React of course always relied on mutable state in it's implementation β just so we don't have to. I derailed a lot here to keep this funny thread going ;) I'm still not with you on your definition of "functional", since you treated it synonymously with "purely functional". Functional means just made by applying and composing functions, and react UI is created exactly like that. There is an awesome algebraic effects proposal[1], which will hopefully will be added to JavaScript one day, then react will make use of it to become purely functional.
1: https://github.com/macabeus/js-proposal-algebraic-effects
-
Letlang, a programming language targetting Rust - Road to v0.1
Super interesting, there is a proposal to add this to JavaScript and several languages that use this, unison, koka & eff. I had no idea this was even a thing!
-
Go Replaces Interface{} with 'Any'
Ok I was wrongly assuming that panic was expecting an error type, in fact it's an interface{}.
> Your use of exceptions for flow control (i.e. goto) is considered harmful
Exceptions are a way to delegate error handling to the caller by giving them informations about the unexpected behavior. It implies that the expected behavior is the "happy path" (everything went well) and any deviations (errors) is unexpected.
This is far from a goto because you can have `try/finally` blocks without catch (or defer in golang).
Also, exceptions are just a kind of algebraic effects that do not resume. There was a proposal to JS for this: https://github.com/macabeus/js-proposal-algebraic-effects
This is also easier to test. assertRaises(ErrorType, func() { code... })
Almost every Go library I've seen just return an error (which is just a string), you'd need to parse it to assert that the correct error is returned in special conditions.
proposal-observable
-
Proposal: Signals as a Built-In Primitive of JavaScript
https://github.com/tc39/proposal-observable
And there's the new one which seems to be getting implemented in node right now:
-
Observable API Proposal
How does it differ from <https://github.com/tc39/proposal-observable/>?
-
The Truth about Svelte
I think it is a shame that the Observable proposal [1] still seems somewhat stuck in Stage 1. It's a better idea than just raw event emitters because of composability (if no other reason). Making Observables "first class" could go a long way to unifying a lot of reactivity patterns in various frameworks, in theory at least.
To be fair, Observables and especially Observable composition has a rough learning curve and many frameworks like Svelte intentionally prefer implict reactivity and avoiding things like explicit Observables because they are seen as too complex/"too hard" for the average developer.
(Then you get awful worst of both worlds frameworks like Angular that sort of rely on Observables but yet also don't trust teaching Observables and wind up with code that isn't properly Observable and so also has all the code for implicit reactivity and is full of nasty escape hatches that cause all sorts of composition problems and unnecessary side effects.)
[1] https://github.com/tc39/proposal-observable
-
π‘ Observable Mutable Wrapper Object
Uses an interface described in the TC39 observables proposal
-
Example of Asynchronous programming using Observer pattern vs Promise
JavaScript doesn't have any built-in observables (addEventListener is part of the DOM API specific to browsers) though there is an old observable proposal collecting dust. I think ReactiveX (RxJS) is pretty much the go-to for any kind of observable functionality you may want. That may be a good place to start to really see what observables can do.
-
JavaScript Evolutsiyasi Qisqa Satrlarda!
Observablelar streamlarga asoslangan reaktiv dasturlash paradigmasini olib kiradi JSga. Shaxsan menga eng yoqqan takliflardan biri. Bu haqida ham alohida maqola yozish niyat bor. RxJS (Angular) bilan ishlab ko'rganlar bo'lsa buni nimaligini juda yaxshi tushunishadi, endi bu library emas balki native π !!!
-
4 Ways to Handle Async Operations in Javascript
Observable is an object that takes a stream of data and emits events over time to react accordingly. There is a talk to add it to the ECMAScript standard and its proposal is here. Till now it is not part of the ECMAScript standard so to use it, you have to use a third-party library and the well-known Reactive Extension in Javascript is RxJs.
-
Reactive Programming
Well, the answer is surprisingly no. But, there is an active tc39 proposal going on around for a while, didnβt find it much active though, you could watch out here β https://github.com/tc39/proposal-observable
-
Why do we need rxjs library as JavaScript is reactive by default?
RxJS is an implementation of observables which do not exist natively in JavaScript. There is a proposal for adding observables to the language, but it's only stage 1 and hasn't been active for years.
- Query Engines: Push vs. Pull
What are some alternatives?
mux - A powerful HTTP router and URL matcher for building Go web servers with π¦
duckdb - DuckDB is an analytical in-process SQL database management system
exhaustive - Check exhaustiveness of switch statements of enum-like constants in Go source code.
fp-ts - Functional programming in TypeScript
errors - Simple error handling primitives
eslint-plugin-unicorn - More than 100 powerful ESLint rules
rustic_result - Result monad for Elixir inspired by Rust Result type
eslint-plugin-github - An opinionated collection of ESLint rules used by GitHub.
RxJS - A reactive programming library for JavaScript
cross-project-council - OpenJS Foundation Cross Project Council
proposal-pattern-matching - Pattern matching syntax for ECMAScript
proposal-bind-operator - This-Binding Syntax for ECMAScript