F# VS Nim

Compare F# vs Nim and see what are their differences.

F#

Please file issues or pull requests here: https://github.com/dotnet/fsharp (by fsharp)

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). (by nim-lang)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
F# Nim
26 346
2,199 16,060
- 0.8%
0.0 9.9
over 1 year ago 4 days ago
F# Nim
MIT License GNU General Public License v3.0 or later
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.

F#

Posts with mentions or reviews of F#. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-26.
  • old languages compilers
    12 projects | /r/ProgrammingLanguages | 26 Dec 2022
    F# F*
  • From Script to Scaffold in F#
    8 projects | dev.to | 23 Dec 2022
    This year I've been attempting Advent of Code in my favourite programming language, F#. This is a beginner(ish) centered post about making incremental changes from the smallest possible solution to something more robust.
  • for newbie , VScode+ionide or VisualStudio
    1 project | /r/fsharp | 21 Dec 2022
    I can recommend polyglot notebooks in vs code, so you can mix different languages.Take a look athttps://fsharp.org/ for some project ideas and frameworks.
  • The comeback of the Fediverse and the Old Web
    3 projects | dev.to | 4 Dec 2022
    I have many less followers on Mastodon than in the Birdsite (40 vs 341), yet my activity has generated many more interactions than there. Not only that, among the users who decided to interact with me I counted: a co-discoverer of the Laniakea supercluster, one of the lead developers behind F#, the author of many important books on Java & JVM, plus many others. I'm literally a nobody, but this time there was no algorithm relying on relevance and engament metrics to decide what to present to each one of us.
  • Chicago and London TDD Styles for Functional Programming
    4 projects | dev.to | 18 Sep 2022
    FP devs differ based on language here. Elm, like F#, tends to encourage "a bunch of functions and types in a file". While Elm supports modules, we don't really care where it came from; they're all pure, all deterministic, the compiler tells us if it works.
  • Performance of immutable collections in .NET
    4 projects | /r/dotnet | 23 Jul 2022
    The builtin fsharp collections actually are just "immutable", not persistent as you mention. (Ref: https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSharp.Core/map.fs. This is just an AVL tree that returns a copy on mutations: https://github.com/fsharp/fsharp/blob/577d06b9ec7192a6adafefd09ade0ed10b13897d/src/fsharp/FSharp.Core/map.fs#L118)
  • Coming from Scala
    2 projects | /r/typescript | 3 Jul 2022
    You can dive into .NET ecosystem by trying F#. It's functional-first language so this should be familiar.
  • Parsing Lambda Error Logs in ReScript & Python
    19 projects | dev.to | 28 May 2022
    ReScript code is just like F# or OCAML; it doesn’t have a function parse phase like JavaScript, so we have to define our functions and types first before we can use them. That’s fine, but makes explaining the code backwards (meaning you start at the bottom of the file and work your way up), so we’ll start at our lambda handler and explain each part, regardless of where it’s defined.
  • Please put units in names
    7 projects | /r/programming | 21 Mar 2022
    F# is a JavaScript and .NET language for web, cloud, data-science, apps and more.
  • E
    1 project | /r/youngpeopleyoutube | 19 Mar 2022
    Also a programming joke

Nim

Posts with mentions or reviews of Nim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-06.
  • Top Paying Programming Technologies 2024
    19 projects | dev.to | 6 Mar 2024
    22. Nim - $80,000
  • "14 Years of Go" by Rob Pike
    2 projects | news.ycombinator.com | 27 Feb 2024
    I think the right answer to your question would be NimLang[0]. In reality, if you're seeking to use this in any enterprise context, you'd most likely want to select the subset of C++ that makes sense for you or just use C#.

    [0]https://nim-lang.org/

  • Odin Programming Language
    23 projects | news.ycombinator.com | 1 Jan 2024
  • Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
    5 projects | news.ycombinator.com | 24 Dec 2023
    I don't think it's a rust-inspired language, but since it has strong typing and compiles to javascript, did you give a look at nim [0] ?

    For what it takes, I find the language very expressive without the verbosity in rust that reminds me java. And it is also very flexible.

    [0] : https://nim-lang.org/

  • The nim website and the downloads are insecure
    1 project | /r/nim | 11 Dec 2023
    I see a valid cert for https://nim-lang.org/
  • Nim
    5 projects | news.ycombinator.com | 6 Dec 2023
    FYI, on the front page, https://nim-lang.org, in large type you have this:

    > Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula.

  • Things I've learned about building CLI tools in Python
    16 projects | news.ycombinator.com | 24 Oct 2023
    You better off with using a compiled language.

    If you interested in a language that's compiled, fast, but as easy and pleasant as Python - I'd recommend you take a look at [Nim](https://nim-lang.org).

    And to prove what Nim's capable of - here's a cool repo with 100+ cli apps someone wrote in Nim: [c-blake/bu](https://github.com/c-blake/bu)

  • Mojo is now available on Mac
    13 projects | news.ycombinator.com | 19 Oct 2023
    Chapel has at least several full-time developers at Cray/HPE and (I think) the US national labs, and has had some for almost two decades. That's much more than $100k.

    Chapel is also just one of many other projects broadly interested in developing new programming languages for "high performance" programming. Out of that large field, Chapel is not especially related to the specific ideas or design goals of Mojo. Much more related are things like Codon (https://exaloop.io), and the metaprogramming models in Terra (https://terralang.org), Nim (https://nim-lang.org), and Zig (https://ziglang.org).

    But Chapel is great! It has a lot of good ideas, especially for distributed-memory programming, which is its historical focus. It is more related to Legion (https://legion.stanford.edu, https://regent-lang.org), parallel & distributed Fortran, ZPL, etc.

  • NIR: Nim Intermediate Representation
    1 project | /r/hackernews | 2 Oct 2023
    9 projects | news.ycombinator.com | 30 Sep 2023

What are some alternatives?

When comparing F# and Nim you can also consider the following projects:

ClojureCLR - A port of Clojure to the CLR, part of the Clojure project

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

Roslyn - The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

go - The Go programming language

julia - The Julia Programming Language

Odin - Odin Programming Language

Nemerle - Nemerle language. Main repository.

rust - Empowering everyone to build reliable and efficient software.

VisualFSharp - The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio

crystal - The Crystal Programming Language

IronScheme - IronScheme

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