dark VS Giraffe

Compare dark vs Giraffe and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
dark Giraffe
43 19
1,599 2,053
3.0% 1.1%
9.9 6.8
7 days ago 12 days ago
F# F#
GNU General Public License v3.0 or later 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.

dark

Posts with mentions or reviews of dark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-24.
  • Darklang
    1 project | news.ycombinator.com | 14 Dec 2023
  • WASM_of_OCaml
    2 projects | news.ycombinator.com | 24 Jul 2023
    Yes. Darklang was originally in OCaml using js_of_ocaml, and we ported it to F# using Blazor (https://github.com/darklang/dark/tree/main/backend/src/Wasm). It works.

    We found that in dotnet 6, the code was much slower, with long startup times and a much bigger download, than in js_of_ocaml. It also had a lot of issues in running in a Webworker, which wasn't the case for js_of_ocaml.

    In dotnet 7, the webworker issues are better and AOT is easier, so startup is faster. Download sizes are still bad, and it's still slower than js_of_ocaml.

    However, dotnet allows almost any code to run in WASM, which js_of_ocaml had large limitations. This meant a decent chunk of functionality had to be worked around to make separate js vs native targets, which also was a massive pain and took a long time. Dune's virtual targets wasn't ready at the time - I think we were one of the test cases for it.

  • It's so unfortunate they decided to go with the Clojure/Haskell type syntax, as opposed to something friendlier like Elixir. A lot of people will not even try this language as a result. [Unison]
    1 project | /r/programmingcirclejerk | 17 Jun 2023
    Why should I use this instead of https://darklang.com/
  • Cloud, Why So Difficult?
    6 projects | /r/programming | 29 May 2023
    First it was probably Dark. They made a lot of noise some years ago, but then I never heard of them again (looking at their current website, looks like they moved on to AI now, obviously).
  • New open-source programming language for DevOps engineers by the creator of the CDK
    11 projects | /r/devops | 15 Apr 2023
    Reminds me of Darklang. Personally, I don't think vendoring cloud services into a language is going to be beneficial. I'm curious how the language deals with vendor updates. Do I have to upgrade the language then? If so, I see a lot conflicts coming from this. Then it comes down to Javascript or HCL, the HCL bit makes me think that the below statement is not as truthy as it is on the surface:
  • Darklang Release 9
    1 project | news.ycombinator.com | 27 Jan 2023
    We still don't have all that many users (~100 active), so I'm not sure you'll find an answer here. But we collect that sort of feedback publicly, which might answer your question: https://github.com/darklang/dark/discussions/categories/feed...
  • Making Something Waspy: A Review Of Wasp
    6 projects | dev.to | 10 Jan 2023
    I wish I could remember what took me to YCombinator's website on the 10th of October, 2022. That was when I first heard about Wasp and another language called DarkLang. After I learned about Wasp, I was intrigued and curious to know how it works, which led me to join the discord server the next day.
  • Using Rust at a Startup: A Cautionary Tale
    8 projects | news.ycombinator.com | 22 Nov 2022
    Some languages that try to integrate an HTTP server and a database:

    Ur/Web: http://impredicative.com/ur/

    Dark (Darklang): https://darklang.com/

  • The Current State of Infrastructure From Code
    6 projects | dev.to | 16 Nov 2022
    There are others in this space I did not assess like Encore, Shuttle, Modal, and Dark. These were not assessed for the sake of time. If you're interested in IfC, I encourage you to take a look at these others.
  • Finally, we have support for negative numbers!
    2 projects | /r/programmingcirclejerk | 4 Nov 2022
    Oh, finally! I was waiting to build my serverless CRUD webapp in Dark (OCaml + JavaScript and Fsharp?) until they had support for returning negative numbers on a GET request!

Giraffe

Posts with mentions or reviews of Giraffe. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-07.
  • The combined power of F# and C#
    10 projects | news.ycombinator.com | 7 Aug 2023
    Giraffe is another interesting one to explore: https://giraffe.wiki/

    Giraffe is nice because it is itself built "just" as ASP.NET Core Middleware so it plays a bit more nicely than Suave with a mixed stack of C#-defined Middleware.

    It's more likely you accidentally fall back into just translating C# patterns to non-idiomatic F# with Giraffe, but it's also nicer when in that case of needing to live in both worlds and use a mixture of libraries built for C# ASP.NET projects.

  • ASP.NET Core updates in .NET 8 Preview 4 - .NET Blog
    4 projects | /r/programming | 17 May 2023
    There are also some F# frameworks built on top of ASP.NET core like https://giraffe.wiki
  • Confusion in learning Giraffe's HttpHandler
    1 project | /r/fsharp | 9 Jan 2023
  • Is there any advantage to using F# instead of C#?
    3 projects | /r/dotnet | 12 Sep 2022
    If you have an interest in F#, I highly recommend diving in because (1) it has a ton of things you might learn to appreciate in C#; (2) it has things C# cannot have. I do like some of the suggestions people have made regarding mixing your code bases, but I'll also say that building, say, endpoint routing in Giraffe is (to repeat myself) easy, simple, and elegant.
  • Targeting Node, Bun and Deno With F#
    10 projects | dev.to | 13 Jul 2022
    Bix is a micro-framework designed with F# in mind and that runs on both Deno and Bun! and in theory it also should even run in a service worker! (intercepting fetch requests) although I haven't tested that yet, it offers a general purpose handler that coupled with a set of route definitions it can bring a Giraffe/Saturn like framework to life in JavaScript runtimes which is incredibly awesome! useful? maybe not šŸ˜…, but awesome indeed. Let's see some code for it
  • If you were to create a Web API today from scratch how would you do it ?
    7 projects | /r/dotnet | 2 Apr 2022
    Backend: Most likely it would be a toss between https://saturnframework.org or https://giraffe.wiki. They both combins the extremely good type system in F# combined with the ease of a minimal API.
  • Is it possible to run C# asp.net core MVC and f# giraffe in a single solution
    1 project | /r/fsharp | 21 Feb 2022
    I was wondering if its possible to simultaneously run a C# core MVC project in combination with https://github.com/giraffe-fsharp/Giraffe
  • Overriding JSON serializer in Giraffe
    2 projects | dev.to | 4 Jan 2022
    By default Giraffe, the framework which I use as a web server, uses Newtonsoft.Json to serialize results to JSON. However, for discriminated union, it generates quite a lot of JSON so I've switched to System.Text.Json which is built into newer versions of .Net Core. In combination with FSharp.SystemTextJson package allows serializing discriminated unions more gracefully. All we need is to decorate Branch type with JsonFSharpConverter(JsonUnionEncoding.BareFieldlessTags) attribute.
  • Introducing Giraffe.Htmx
    7 projects | dev.to | 26 Nov 2021
    Giraffe is a library that sits atop ASP.NET Core and allows developers to build web applications in a functional style; dotnet new giraffe is literally my starting point when I begin a new web application project. (Rather than write three more sentences filled with effusive praise, Iā€™ll just leave it at that; itā€™s great.) It also provides a view engine (that builds upon Suaveā€˜s ā€œexperimentalā€ view engine) which uses an F# DSL to define HTML in a strongly-typed way. It has been incredibly efficient for a while, but with .NETā€™s work over the past two releases at improving performance, and Giraffeā€™s adoption of those techniques, it is lightning fast.
  • Show HN: F# web server in 3-4 lines of code
    8 projects | news.ycombinator.com | 5 Nov 2021
    Wrapping ASP.NET Core to be easier and more idiomatic with F# seems to be a common domain. Out of curiosity, did you look at any existing projects? If so, what was lacking from them that made you decide to write WebFrame?

    Giraffe: https://github.com/giraffe-fsharp/Giraffe

What are some alternatives?

When comparing dark and Giraffe you can also consider the following projects:

nvim-ts-rainbow - Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead

Suave.IO - Suave is a simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition.

Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode

Saturn - Opinionated, web development framework for F# which implements the server-side, functional MVC pattern

unison - A friendly programming language from the future

ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

nanos - A kernel designed to run one and only one application in a virtualized environment

Falco - A toolkit for building fast and functional-first web applications using F#.

liquibase - Main Liquibase Source

ASP.NET MVC

terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform

Freya - Freya Web Stack - Meta-Package