js-proposal-algebraic-effects VS rustic_result

Compare js-proposal-algebraic-effects vs rustic_result and see what are their differences.

rustic_result

Result monad for Elixir inspired by Rust Result type (by linkdd)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
js-proposal-algebraic-effects rustic_result
3 5
167 21
- -
0.0 5.3
almost 3 years ago 2 months ago
JavaScript Elixir
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of js-proposal-algebraic-effects. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-31.
  • Proposal: Signals as a Built-In Primitive of JavaScript
    9 projects | news.ycombinator.com | 31 Mar 2024
    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
    3 projects | /r/rust | 24 Nov 2022
    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'
    10 projects | news.ycombinator.com | 14 Dec 2021
    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.

rustic_result

Posts with mentions or reviews of rustic_result. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-09.
  • Switching to Elixir
    11 projects | news.ycombinator.com | 9 Nov 2023
    Self promotion moment:

    If you enjoy the Result/Either type and API in Rust, I made this project just for this: https://github.com/linkdd/rustic_result

    I also made https://github.com/linkdd/rustic_maybe/tree/main for an Option/Maybe type.

    NB: Those are not types, but I'm waiting for set theoretic types to update those libs :)

  • Error Handling Patterns
    3 projects | news.ycombinator.com | 4 May 2023
    It's missing the Erlang/Elixir pattern of returning a tuple `{:ok, T}` or `{:error, E}`, where we can then use pattern matching, or `with` expressions, etc...

    To be fair, it is very similar to a `Result` type, which is why I made this library a while ago: https://github.com/linkdd/rustic_result

  • A new milestone for Letlang - Effect Handlers
    1 project | /r/ProgrammingLanguages | 13 Mar 2023
    I intend to add a pipeline operator similar to Elixir, to be used with an std::result module which will provide functions to ease writing such complex code. I may take inspiration on an Elixir library I wrote a while ago: https://github.com/linkdd/rustic_result
  • Elixir Railway Oriented Programming
    1 project | /r/elixir | 9 Mar 2023
    A while ago, I made this library https://github.com/linkdd/rustic_result
  • Go Replaces Interface{} with 'Any'
    10 projects | news.ycombinator.com | 14 Dec 2021
    I also made a library for working with `{:ok, value}` and `{:error, reason}` in Elixir: https://github.com/linkdd/rustic_result

    Thanks to the pipeline operator and pattern matching, it makes pretty easy to read pipelines. It does not completely replace the with statement (that was not the point) but it simplified a lot of code.

What are some alternatives?

When comparing js-proposal-algebraic-effects and rustic_result you can also consider the following projects:

mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍

neverthrow - Type-Safe Errors for JS & TypeScript

exhaustive - Check exhaustiveness of switch statements of enum-like constants in Go source code.

eqwalizer - A type-checker for Erlang

errors - Simple error handling primitives

semver - Semantic Versioning Specification

go - The Go programming language

rustic_maybe - Maybe monad for Elixir inspired by Rust Option type

gopherjs - A compiler from Go to JavaScript for running Go code in a browser

transport-site - Rendre disponible, valoriser et améliorer les données transports

ez - Minimalistic package for handling Go errors in an easy way

gen_stage - Producer and consumer actors with back-pressure for Elixir