What are some simple but powerful compile-to-JS languages I might not know about, or that you are working on (not Elm, Reason, PureScript, or ClojureScript)?

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nile

  • Again, "compile-to-JS" is too broad of a term. It is very difficult to understand what you are looking for. You can have everything in there from languages that just add little bits to JS like TypeScript & CoffeeScript all the way to research languages like Nile and extremely powerful languages like ATS or Rust.

  • karax

    Karax. Single page applications for Nim.

  • I really like using Nim. It features a Python-like syntax and you can compile code to C, C++, ObjectiveC and JavaScript. If it doesn't support a certain JS feature, you can add it yourself. Due to Nim's amazing metaprogramming, you can even use it as a replacement for HTML within Karax.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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).

  • I really like using Nim. It features a Python-like syntax and you can compile code to C, C++, ObjectiveC and JavaScript. If it doesn't support a certain JS feature, you can add it yourself. Due to Nim's amazing metaprogramming, you can even use it as a replacement for HTML within Karax.

  • coffeescript

    Unfancy JavaScript

  • IntercalScript

    The IntercalScript programming language

  • IntercalScript

  • cubiml-demo

    A simple ML-like programming language with subtyping and full type inference.

  • CubiML

  • yew

    Rust / Wasm framework for creating reliable and efficient web applications

  • However, WebAssembly can substitute JS. Check out yew for an example.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • firefly-boot

    Bootstrap compiler for Firefly

  • I'm working on Firefly, which will compile to JS once bootstrapping is complete (almost there).

  • kesh

    A simple little programming language that could one day compile to JavaScript.

  • I'm working on kesh, but it's only at the design stage. I have tried to make it simple yet powerful, so I thought I'd mention it even though you can't use it.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts