faker VS crystal

Compare faker vs crystal and see what are their differences.

faker

Faker is a Crystal library that generates fake data for you (by askn)
Our great sponsors
  • Mergify - Updating dependencies is time-consuming.
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
faker crystal
0 225
142 18,746
- 0.6%
0.0 9.6
over 1 year ago 4 days ago
Crystal Crystal
MIT License Apache License 2.0
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.

faker

Posts with mentions or reviews of faker. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning faker yet.
Tracking mentions began in Dec 2020.

crystal

Posts with mentions or reviews of crystal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-24.
  • Show HN: Crystaldoc.info – Crystal Shards API Documentation Hosting
    3 projects | news.ycombinator.com | 24 Sep 2023
    Yeah, there's a GH issue thread here that I keep an eye on: https://github.com/crystal-lang/crystal/issues/5430

    I figure whenever windows support lands will be a good time to give it a shot again.

  • Natalie – a work-in-progress Ruby compiler, written in Ruby and C++
    2 projects | news.ycombinator.com | 24 Sep 2023
    Still think that crystal might be more interesting in a similar niche?

    https://crystal-lang.org/

  • RFC 3339 vs. ISO 8601
    4 projects | news.ycombinator.com | 31 Aug 2023
    An often ignored part of the standards are how to represent durations (time spans).

    See http://xml.coverpages.org/ISO-FDIS-8601.pdf (section: 5.5.4.2 Representation of time-interval by duration only, pg. 21)

    Would like to see more json parsers in static languages allow me to define a field as a time span and can serialize into the valid format.

    For an example, see this proposal in Crystal: https://github.com/crystal-lang/crystal/issues/11942

        Example:  A duration of 15 days, 5 hours, and 20 seconds would be:
  • Implementing Interactive Languages
    6 projects | news.ycombinator.com | 25 Aug 2023
  • Crystal is now available on Termux AArch64
    2 projects | /r/crystal_programming | 16 Jul 2023
    u0_a211@localhost:~$ apt search crystal$ Sorting... Done Full Text Search... Done crystal/stable 1.9.0 aarch64 Fast and statically typed, compiled language with Ruby-like syntax u0_a211@localhost:~$ apt info crystal Package: crystal Version: 1.9.0 Maintainer: @HertzDevil Installed-Size: 23.9 MB Depends: libc++, libevent, libgc, libgmp, libiconv, libllvm (<< 17), libxml2, libyaml, openssl, pcre2, zlib Recommends: clang, libffi, make, pkg-config Homepage: https://crystal-lang.org Download-Size: 3590 kB APT-Sources: https://packages.termux.dev/apt/termux-main stable/main aarch64 Packages Description: Fast and statically typed, compiled language with Ruby-like syntax
  • These are the 4 requirements for a better Reddit
    2 projects | /r/RedditAlternatives | 18 Jun 2023
    Technologically robust, making use of open source frameworks that ensure scalability of usage and auditability of the codebase. So, no PHP-based rickety structures or the secret devising of some lone wolf developer. This can't be trusted by anyone: its development must be done in the public repositories. Consider using a Crystal framework such as Amber, which is a compiled-to-binary Ruby clone, lightning-fast (it can handle over 1 million+ requests per second) and compatible with the expansive Rails ecosystem. Or any other solid language base, such as Go or Java.
  • As a Go developer, I’m surprised Crystal isn’t more popular
    8 projects | /r/crystal_programming | 26 May 2023
    There have been 7 releases in 2023 so far (https://github.com/crystal-lang/crystal/releases), one of them (1.7.0) having over 30 different contributors.
    8 projects | /r/crystal_programming | 26 May 2023
    There is also an undocumented Thread class https://github.com/crystal-lang/crystal/blob/master/src/crystal/system/unix/pthread.cr to get at even lower-level multithreading primitives. But can't do anything that touches the scheduler.
  • How Much Memory Do You Need to Run 1M Concurrent Tasks?
    6 projects | news.ycombinator.com | 21 May 2023
    "System time" rather than "user time" is the majority (7.94s system time, 2.83s user time in the 20.25s wall time run). Is this pointing to memory allocations?

    Crystal Fiber docs https://crystal-lang.org/api/1.8.2/Fiber.html says "A Fiber has a stack size of 8 MiB which is usually also assigned to an operating system thread. But only 4KiB are actually allocated at first so the memory footprint is very small." -- and perhaps unsurprisingly, 4KiB times 1000000 is approximately 4 GiB. Nice when the math works out like that :)

    To me this is useful as a baseline for something like a websocket server, with some number of idle connections, each Websocket connection mapped to a Fiber that is waiting for I/O activity but mostly idle.

  • Programming types and mindsets
    4 projects | /r/ruby | 8 May 2023
    I still just document everything using YARD and focus on designing really obvious Object Models and of course write tests. I have tried using sord to convert my YARD type annotations to RBS or RBI, but you still have to fill in missing bits, then use steep and somehow load in RBS/RBI files for other gems and stdlib, and it's just an uphill battle since Ruby is dynamically typed by default. Obviously Dynamic Typing lends itself more to Dynamic Languages, where you can call an arbitrary method and let the language VM figure it out at runtime. Static or Strong Typing lends itself better to compiled languages where everything needs to be resolved at compile time and converted into object code. If I need to work in a compiled language, then I'll use Crystal, which also supports type inference. TypeScript's type syntax is quite nice, but I tend to avoid writing massive JavaScript code bases where a Type Checker helps catch subtle bugs, and instead prefer sticking to minimal amounts of vanilla JavaScriot in order to keep complexity low and not overwhelm the browser.

What are some alternatives?

When comparing faker and crystal you can also consider the following projects:

zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

Elixir - Elixir is a dynamic, functional language for building scalable and maintainable applications

go - The Go programming language

mint-lang - :leaves: A refreshing programming language for the front-end web

Odin - Odin Programming Language

tree-sitter-crystal

android.cr - Create Android applications using Crystal and the NDK

rust - Empowering everyone to build reliable and efficient software.

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

crow - Transpile/compile Crystal to Flow

are-we-fast-yet - Are We Fast Yet? Comparing Language Implementations with Objects, Closures, and Arrays