Software Alternatives & Reviews

MLton VS F#

Compare MLton VS F# and see what are their differences

MLton logo MLton

MLton is an open-source, whole-program, optimizing Standard ML compiler

F# logo F#

F# is a mature, open source, cross-platform, functional-first programming language.
  • MLton Landing page
    Landing page //
    2021-12-25
  • F# Landing page
    Landing page //
    2021-09-15

We recommend LibHunt F# for discovery and comparisons of trending F# projects.

MLton videos

No MLton videos yet. You could help us improve this page by suggesting one.

+ Add video

F# videos

F# Software Foundation Year in Review

More videos:

  • Review - F# Blues Harp Review
  • Review - F# base Bhavika flute review by Dhyey patel ji

Category Popularity

0-100% (relative to MLton and F#)
OOP
24 24%
76% 76
Programming Language
19 19%
81% 81
Generic Programming Language
IDE
100 100%
0% 0

User comments

Share your experience with using MLton and F#. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, F# should be more popular than MLton. It has been mentiond 19 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

MLton mentions (5)

  • Simple JSON parser in c++, rust, ocaml, standard ml
    Once I got the parser ready in OCaml, I thought I port it to Standard ML, since it belong to the same ML language family. I was also curious on how well mlton could optimise it. The language lacks custom let bindings, so I resorted to use Result.bind manually. This makes code much less readable and more verbose. The standard library also lacks result type, so I had to come up with my own simple implementation.... - Source: dev.to / about 1 year ago
  • Ante: A low-level functional language
    If you’re fine with tracing GC (which depends on the situation, of course), Standard ML is a perfectly boring language (that IIUC predated and inspired Caml) and MLton[1] is a very nice optimizing compiler for it. The language is awkward at times (in particular, the separate sublanguage of modules can be downright unwieldy), and the library has some of the usual blind spots such as nonexistent Unicode support... - Source: Hacker News / almost 2 years ago
  • Write your own programming language in an hour with Chumsky
    Unfortunately, I haven't found a ton of "easily-digestible" and, at the same time, comprehensive guides on compiling functional languages. Generally you'll find a mix of blog posts/class notes/papers covering a single step. Some resources I like: - Andrew Kennedy's 2007 paper Compiling with Continuations, Continued [1]. This one is the most clear IMO - Andrew Appel's Compiling with Continuations book... - Source: Hacker News / about 2 years ago
  • Why are imperative programs considered faster than their functional counterparts?
    More broadly, they can be fast even without such extensions if they aggressively pursue optimization opportunities afforded by static typing, like MLton for example, but that also impacts compilation performance negatively. Source: over 2 years ago
  • Coalton: How to Have Our (Typed) Cake and (Safely) Eat It Too, in Common Lisp
    According to the OP, it's from http://mlton.org/ (see https://coalton-lang.github.io/20211010-introducing-coalton/#acknowledgements ). - Source: Hacker News / over 2 years ago

F# mentions (19)

  • Roc – A fast, friendly, functional language
    Oh yeah. A key hindrance of F# is that MS treats it like a side project even though it's probably their secret weapon, and a lot of the adopters are dotnet coders who already know the basics so the on-boarding is less than ideal. https://fsharp.org/ is the best place to actually start. https://fsharpforfunandprofit.com/ is the standard recommendation from there but there's finally some good youtube and other... - Source: Hacker News / 6 months ago
  • Building React Components Using Unions in TypeScript
    Naturally I’d recommend using a better language such as ReScript or Elm or PureScript or F#‘s Fable + Elmish, but “React” is the king right now and people perceive TypeScript as “less risky” for jobs/hiring, so here we are. - Source: dev.to / 7 months ago
  • I am a ChatGPT bot - Ask me anything #2
    Are you really a bot? Yes, I'm a small F# program that glues together the public API's provided by Reddit and OpenAI. I was created by /u/brianberns. You can find my source code here. Source: about 1 year ago
  • I am a ChatGPT bot
    The bot is written in F#, which is a .NET language (like C#). Source: about 1 year ago
  • From Script to Scaffold in F#
    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. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

When comparing MLton and F#, you can also consider the following products

OCaml - (* Binary tree with leaves carrying an integer.

C++ - Has imperative, object-oriented and generic programming features, while also providing the facilities for low level memory manipulation

SML/NJ - Standard ML of New Jersey: compiler and runtime environment with REPL

Elixir - Dynamic, functional language designed for building scalable and maintainable applications

Poly/ML - The Poly/ML implementation of Standard ML – full multiprocessor support in the thread library and garbage collector, interactive debugger, fast compiler.

Clojure - Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming.