Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

F#
F#

203
199
+ 1
250
Rust
Rust

824
900
+ 1
597
Add tool

F# vs Rust: What are the differences?

F#: Strongly-typed, functional-first programming language for writing simple code to solve complex problems. F# is a mature, open source, cross-platform, functional-first programming language. It empowers users and organizations to tackle complex computing problems with simple, maintainable and robust code; Rust: A safe, concurrent, practical language. Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.

F# and Rust can be categorized as "Languages" tools.

"Pattern-matching" is the top reason why over 40 developers like F#, while over 81 developers mention "Guaranteed memory safety" as the leading cause for choosing Rust.

F# and Rust are both open source tools. It seems that Rust with 36.9K GitHub stars and 5.81K forks on GitHub has more adoption than F# with 2.08K GitHub stars and 341 GitHub forks.

Sentry, Dropbox, and Roundscope Ukraine Labs are some of the popular companies that use Rust, whereas F# is used by Olo, Huddle, and Property With Potential. Rust has a broader approval, being mentioned in 38 company stacks & 102 developers stacks; compared to F#, which is listed in 18 company stacks and 16 developer stacks.

What is F#?

F# is a mature, open source, cross-platform, functional-first programming language. It empowers users and organizations to tackle complex computing problems with simple, maintainable and robust code.

What is Rust?

Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose F#?
Why do developers choose Rust?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use F#?
    What companies use Rust?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with F#?
    What tools integrate with Rust?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to F# and Rust?
    PHP
    Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    HTML5
    HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
    See all alternatives
    Decisions about F# and Rust
    StackShare Editors
    StackShare Editors
    Rust
    Rust
    Lua
    Lua

    To handle its growing observability needs, Postmates created and open sourced Cernan, a telemetry and logging aggregation server. Ceran is built on Rust and Lua, and can ingest data from many sources and then push or exposes what it’s collected to many destinations, or “sinks.” It can also create or manipulate in-flight data with programmable Lua filters.

    See more
    James Cunningham
    James Cunningham
    Operations Engineer at Sentry · | 18 upvotes · 43.5K views
    atSentrySentry
    Rust
    Rust
    Python
    Python

    Sentry's event processing pipeline, which is responsible for handling all of the ingested event data that makes it through to our offline task processing, is written primarily in Python.

    For particularly intense code paths, like our source map processing pipeline, we have begun re-writing those bits in Rust. Rust’s lack of garbage collection makes it a particularly convenient language for embedding in Python. It allows us to easily build a Python extension where all memory is managed from the Python side (if the Python wrapper gets collected by the Python GC we clean up the Rust object as well).

    See more
    marcoalmeida
    marcoalmeida
    C
    C
    Go
    Go
    Rust
    Rust
    Python
    Python

    One important decision for delivering a platform independent solution with low memory footprint and minimal dependencies was the choice of the programming language. We considered a few from Python (there was already a reasonably large Python code base at Thumbtack), to Go (we were taking our first steps with it), and even Rust (too immature at the time).

    We ended up writing it in C. It was easy to meet all requirements with only one external dependency for implementing the web server, clearly no challenges running it on any of the Linux distributions we were maintaining, and arguably the implementation with the smallest memory footprint given the choices above.

    See more
    Yshay Yaacobi
    Yshay Yaacobi
    Software Engineer · | 27 upvotes · 273.6K views
    atSolutoSoluto
    Docker Swarm
    Docker Swarm
    Kubernetes
    Kubernetes
    Visual Studio Code
    Visual Studio Code
    Go
    Go
    TypeScript
    TypeScript
    JavaScript
    JavaScript
    C#
    C#
    F#
    F#
    .NET
    .NET

    Our first experience with .NET core was when we developed our OSS feature management platform - Tweek (https://github.com/soluto/tweek). We wanted to create a solution that is able to run anywhere (super important for OSS), has excellent performance characteristics and can fit in a multi-container architecture. We decided to implement our rule engine processor in F# , our main service was implemented in C# and other components were built using JavaScript / TypeScript and Go.

    Visual Studio Code worked really well for us as well, it worked well with all our polyglot services and the .Net core integration had great cross-platform developer experience (to be fair, F# was a bit trickier) - actually, each of our team members used a different OS (Ubuntu, macos, windows). Our production deployment ran for a time on Docker Swarm until we've decided to adopt Kubernetes with almost seamless migration process.

    After our positive experience of running .Net core workloads in containers and developing Tweek's .Net services on non-windows machines, C# had gained back some of its popularity (originally lost to Node.js), and other teams have been using it for developing microservices, k8s sidecars (like https://github.com/Soluto/airbag), cli tools, serverless functions and other projects...

    See more
    Kubernetes
    Kubernetes
    Docker
    Docker
    C#
    C#
    F#
    F#
    .NET
    .NET

    I've used .NET for many years, but only in recent years, after Microsoft introduced .NET Core, I've found a new love and excitement for the technology again. The main driver for us using .NET Core is not that it is cross platform compatible, open source or blazingly fast (which it is!), but the fact that we can use (what we consider) the best programming languages (mainly F# and C#) to carry out our jobs without sacrificing the other benefits.

    Today we run most of our web infrastructure on .NET Core in Docker containers, deployed into a Kubernetes cluster which spans across multiple time zones in the Google Cloud and we couldn't be happier. Due to the portability of the .NET Core platform we are even able to develop many new services as serverless functions with F# which has become an absolute game changer.

    See more
    Rust
    Rust
    C++
    C++

    Initially, I wrote my text adventure game in C++, but I later rewrote my project in Rust. It was an incredibly easier process to use Rust to create a faster, more robust, and bug-free project.

    One difficulty with the C++ language is the lack of safety, helpful error messages, and useful abstractions when compared to languages like Rust. Rust would display a helpful error message at compile time, while C++ would often display "Segmentation fault (core dumped)" or wall of STL errors in the middle. While I would frequently push buggy code to my C++ repository, Rust enabled me to only even submit fully functional code.

    Along with the actual language, Rust also included useful tools such as rustup and cargo to aid in building projects, IDE tooling, managing dependencies, and cross-compiling. This was a refreshing alternative to the difficult CMake and tools of the same nature.

    See more
    Dan Larsen
    Dan Larsen
    CTO at FlowStack · | 7 upvotes · 26.2K views
    atFlowStack ApSFlowStack ApS
    C++
    C++
    C
    C
    Rust
    Rust
    Go
    Go

    At FlowStack we write most of our backend in Go. Go is a well thought out language, with all the right compromises for speedy development of speedy and robust software. It's tooling is part of what makes Go such a great language. Testing and benchmarking is built into the language, in a way that makes it easy to ensure correctness and high performance. In most cases you can get more performance out of Rust and C or C++, but getting everything right is more cumbersome.

    See more
    Interest over time
    Reviews of F# and Rust
    No reviews found
    How developers use F# and Rust
    Avatar of Marc3842h
    Marc3842h uses RustRust

    Rust is used in Shirogane (https://github.com/Marc3842h/shirogane).

    Shirogane is a osu! beatmap mirror built for shiro. We use Rust because of memory safe but still low level and high performance.

    Avatar of Tuomas Hietanen
    Tuomas Hietanen uses F#F#

    Backend programming language.

    Avatar of Tuomas Hietanen
    Tuomas Hietanen uses F#F#

    Programming language

    How much does F# cost?
    How much does Rust cost?
    Pricing unavailable
    Pricing unavailable
    News about F#
    More news