News for hackers. Stuff that matters.

Ask HN: Programming Languages that fit this criteria

I'm looking for a language that:

- is statically typed

- supports algebraic data types and exhaustive pattern matching

- does not necessarily promote an OO model

- has garbage collection

- compiles to a single binary

- has support for web development

- bonus: is not tied to an existing VM ecosystem (JVM, .NET, BEAM)

Basically Rust with a GC. Is there anything out there like this? Is anyone working on something like this that I could contribute to?

( 4 comments | 2 points | on HN )
Re:Ask HN: Programming Languages that fit this criteria by trws on Thursday July 02, 2020 @11:27AM (#23714342)
Haskell and OCaml (reason too of course) are the only ones that come to mind as a 100% match

I would argue that Rust and Swift also qualify though, since their lifetime management and reference counting respectively are valid forms of garbage collection.

Crystal fits except for the promoting OO part.

If we ignore the bonus then Scala and elixir might also qualify.

Re:Ask HN: Programming Languages that fit this criteria by programatico on Friday July 03, 2020 @08:42AM (#23723469)
haXe @ haxe.org
Re:Ask HN: Programming Languages that fit this criteria by steveklabnik on Thursday July 02, 2020 @11:16AM (#23714160)
Swift? Maybe?
Re:Ask HN: Programming Languages that fit this criteria by kevsim on Thursday July 02, 2020 @11:16AM (#23714170)
Nim?