Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • prepack

    Discontinued A JavaScript bundle optimizer.

  • Hello HN,

    I'm considering the development of a new programming language, drawing inspiration from Rust's strengths, with a focus on compiling to JavaScript. Here what I'm considering are some key features:

    Strict Type System

    Algebraic Data Types

    *Unsafe Mode for JS/TS Interaction*: Facilitate direct interaction with existing JavaScript and TypeScript code.

    No Null Usage: Option/Result patterns to avoid null.

    Trait Implementation

    Backend Development Priority: Initially targeting server-side applications.

    Efficient Compiler Design: Including features like dead-code elimination and partial evaluation, similar to the approach of Prepack[0] (by Facebook).

    I believe this approach could bring significant benefits, especially with recent advancements like Uint8Array and worker threads.

    Would this be of interest to the community? Looking forward to your insights and discussion.

    [0] https://github.com/facebookarchive/prepack

  • purescript

    A strongly-typed language that compiles to JavaScript

  • 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
  • reason

    Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

  • 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 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/

  • rescript-compiler

    The compiler for ReScript.

  • As another commenter has already suggested, ReasonML has a lot of what you described here.

    However, modern JS-oriented toolchain for ReasonML is called ReScript and you can learn more here: https://rescript-lang.org/

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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

  • (strongly typed) functional language compilers running in browser

    3 projects | /r/functionalprogramming | 31 Mar 2023
  • Por que Elm é uma linguagem tão deliciosa?

    11 projects | dev.to | 28 Feb 2023
  • Can I skip the classes in node without having any major disadvantages?

    2 projects | /r/node | 14 Oct 2022
  • Scala-esque functional frontend languages?

    3 projects | /r/Frontend | 31 Aug 2022
  • Type systems and type inference

    2 projects | dev.to | 2 Nov 2021