Software Alternatives & Reviews

MLton VS SML/NJ

Compare MLton VS SML/NJ and see what are their differences

MLton logo MLton

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

SML/NJ logo SML/NJ

Standard ML of New Jersey: compiler and runtime environment with REPL
  • MLton Landing page
    Landing page //
    2021-12-25
  • SML/NJ Landing page
    Landing page //
    2020-08-20

Category Popularity

0-100% (relative to MLton and SML/NJ)
OOP
61 61%
39% 39
Programming Language
61 61%
39% 39
Generic Programming Language
IDE
100 100%
0% 0

User comments

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

Social recommendations and mentions

Based on our record, MLton seems to be more popular. It has been mentiond 5 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

SML/NJ mentions (0)

We have not tracked any mentions of SML/NJ yet. Tracking of SML/NJ recommendations started around Mar 2021.

What are some alternatives?

When comparing MLton and SML/NJ, you can also consider the following products

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

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

Chicken - A portable and efficient cross-platform Scheme implementation that compiles to C.

F# - F# is a mature, open source, cross-platform, functional-first programming language.