static-haskell-nix VS LambdaHack

Compare static-haskell-nix vs LambdaHack and see what are their differences.

static-haskell-nix

easily build most Haskell programs into fully static Linux executables (by nh2)

LambdaHack

Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at (by LambdaHack)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
static-haskell-nix LambdaHack
7 8
382 612
- 0.5%
5.2 6.5
4 months ago about 1 month ago
Nix Haskell
- BSD 3-clause "New" or "Revised" 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.

static-haskell-nix

Posts with mentions or reviews of static-haskell-nix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-03.
  • Trying to build a statically linked binary against glibc (Linux)
    3 projects | /r/haskell | 3 Jul 2022
    Using Nix: https://github.com/nh2/static-haskell-nix
  • Generating static binary + CI questions
    3 projects | /r/haskell | 14 Feb 2022
  • GHC reports "Loading static libraries is not supported"
    1 project | /r/haskell | 11 Oct 2021
    To debug this type of problem (I have to debug linker errors regularly as part of static-haskell-nix):
  • [ANN] Monomer, a GUI library for Haskell
    11 projects | /r/haskell | 9 Aug 2021
    In static-haskell-nix there is currently this PR to enable support for that: https://github.com/nh2/static-haskell-nix/pull/108
  • What's all the hype with Nix?
    9 projects | /r/haskell | 2 Jun 2021
  • Termite Is Obsoleted by Alacritty
    13 projects | news.ycombinator.com | 7 May 2021
    I think there's a misunderstanding: Most people want to use the .a file from their Linux/package distro that provides static libraries, such as Alpine Linux or nixpkgs.

    Such package distributions just use the build system default options to build static libs. For example, Alpine might use `-Ddefault_library=both`.

    > if they could keep that libgtk_static around

    Why make these special cases instead of just using the build system defaults? That's easier to maintain and more obvious.

    > I'd be interested to hear if static linking GTK even has that many benefits

    One benefit is almost-infinite backwards compatibility that the Linux and Xorg ABIs provide, being able to make GUI apps that work out of the box everywhere.

    Another is that these generated executables are very small, e.g. 12 MB for a full static GTK GUI app [1], or 6 MB when xz-compressed.

    This is much less than when using shared libraries. One reason is that dead-code elimination works much better for static linking: It links in only the functions you actually use. For dynamic linking, it's always the entire .so.

    [1] https://github.com/nh2/static-haskell-nix/releases/tag/c-sta...

  • Clodl: Turn dynamically linked ELF binaries into self-contained closures
    2 projects | news.ycombinator.com | 3 May 2021
    GTK can be statically linked.

    Example executable:

    https://github.com/nh2/static-haskell-nix/releases/tag/c-sta...

    It lost this ability temporarily when switching to Meson, but I fixed it in GTK3 and GTK4. But I just checked and apparently it is broken again:

    https://gitlab.gnome.org/GNOME/gtk/-/issues/3774#note_109746...

LambdaHack

Posts with mentions or reviews of LambdaHack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-17.
  • Release announcement: Sphere
    1 project | /r/roguelikedev | 22 Dec 2021
    Looks really cool! Here's how I do releases: https://github.com/LambdaHack/LambdaHack/issues/76
  • Sharing Saturday #393
    2 projects | /r/roguelikedev | 17 Dec 2021
  • Game design question: how to base item generation on character skill, but not promote artificial optimal play?
    1 project | /r/roguelikedev | 4 Sep 2021
    here's the failed commit: https://github.com/LambdaHack/LambdaHack/commit/930dfd46b949d1525e900b997137389a8092305b
  • [ANN] Monomer, a GUI library for Haskell
    11 projects | /r/haskell | 9 Aug 2021
    I've recently tried that and gave up (https://github.com/LambdaHack/LambdaHack/issues/248). Perhaps it's possible to statically link SDL2, but I learnt it's impossible to statically link the OpenGL and X11 libraries, so you end up with a partially statically linked binary (I didn't manage to obtain even that).
  • Getting Started...
    1 project | /r/roguelikedev | 15 May 2021
    I did some plotline sketches on the github wiki of my project, but never used them so far. Not much use from the other musings there, either. Instead I tweak the templates for procedural generation directly in the code (game content part of the code, to be precise) and get a lot of mileage out of that. The only page of the wiki I got lots of benefit from is the derivation of the simplified formula for calculating speed, distance and damage of projectile from their weight: https://github.com/LambdaHack/LambdaHack/wiki/Item-statistics#projectile-velocity-and-distance
  • Getting to 1.0
    1 project | /r/roguelikedev | 18 Apr 2021
    Around a decade. No, one release per 1-2 years. The differences are quite large, both gameplay and, even more, UI, in particular in using ready fornts, then custom fonts, then many fonts at once. See the changelogs (that's only for the egine, but that's where most of the changes are made): https://github.com/LambdaHack/LambdaHack/releases
  • Sharing Saturday #357
    5 projects | /r/roguelikedev | 9 Apr 2021
  • Allure of the Stars v0.10.2.0 is out
    1 project | /r/haskellgamedev | 9 Apr 2021

What are some alternatives?

When comparing static-haskell-nix and LambdaHack you can also consider the following projects:

monomer - An easy to use, cross platform, GUI library for writing Haskell applications.

rattletrap - :car: Parse and generate Rocket League replays.

haskell.nix - Alternative Haskell Infrastructure for Nixpkgs

tateti-tateti - Meta tic-tac-toe ncurses game.

Cabal - Official upstream development repository for Cabal and cabal-install

Nomyx - The Nomyx game

gi-gtk-declarative - Declarative GTK+ programming in Haskell

FunGEn - A lightweight, cross-platform, OpenGL-based 2D game engine in Haskell

alacritty - A cross-platform, OpenGL terminal emulator.

nixos-config - Personal collection of NixOS config files

Allure - Allure of the Stars is a near-future Sci-Fi roguelike and tactical squad combat game written in Haskell; please offer feedback, e.g., after trying out the web frontend version at