sums_up VS daggy

Compare sums_up vs daggy and see what are their differences.

daggy

Library for creating tagged constructors. (by fantasyland)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
sums_up daggy
4 1
40 698
- 0.0%
0.0 0.0
over 1 year ago almost 3 years ago
Ruby JavaScript
MIT License 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.

sums_up

Posts with mentions or reviews of sums_up. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-23.
  • Ruby in FantasyLand: SumsUp
    3 projects | dev.to | 23 May 2022
    Now with Ruby we have a few different ideas we want to express. Whereas Daggy has tagged and taggedSum we have Struct and SumsUp.define instead. You can find more info on SumsUp here, but we'll be covering the general details in this post.
  • sums_up v1.0.0 - Sum Types for Ruby.
    1 project | /r/ruby | 9 Apr 2022
    Hello, r/ruby! I wrote a gem, sums_up, for defining and pattern matching against sum types at Ruby. This isn't the first attempt at porting sum types into the language, but the other implementations that I've used either didn't "feel like" traditional Ruby, or didn't "feel like" a native sum type implementation. I tried my best to bridge that gap. Code Sample: ‏‏‎ require 'sums_up' # Define a sum type for Users; they can either be anonymous or logged in. User = SumsUp.define(:anonymous, logged_in: :email) # => User anon = User.anonymous # => # logged_in = User.logged_in('[email protected]') # => # anon.anonymous? # => true anon.logged_in? # => false logged_in.anonymous? # => false logged_in.logged_in? # => true anon.email # => NoMethodError: undefined method `email' for # logged_in.email # => "[email protected]" def valid_email?(user) user.match do |m| m.anonymous false m.logged_in { |email| URI::MailTo::EMAIL_REGEXP.match?(email) } end end valid_email?(anon) # => false valid_email?(logged_in) # => true valid_email?(User.logged_in('1337h@ck3r')) # => false There are a few more thorough examples in the README. If you're interested, try it out and let me know what you think!
  • Sum types for Ruby
    1 project | /r/ruby | 30 Jun 2021
  • Show HN: Sum Types for Ruby
    1 project | news.ycombinator.com | 29 Jun 2021

daggy

Posts with mentions or reviews of daggy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-23.
  • Ruby in FantasyLand: SumsUp
    3 projects | dev.to | 23 May 2022
    The initial post that we're working from is the introduction into both data classes and sum types using Daggy, and you can read the original post here:

What are some alternatives?

When comparing sums_up and daggy you can also consider the following projects:

hkts - Functional programming tools: option, either, task, state, optics, etc.

fantasy-land - Specification for interoperability of common algebraic structures in JavaScript

sum-types - An attempt to emulate sum types using Go generics.

lofty-rs - Audio metadata library

mp4ff - Library and tools for parsing and writing MP4 files including video, audio and subtitles. The focus is on fragmented files. Includes mp4ff-info, mp4ff-encrypt, mp4ff-decrypt and other tools.