What language is "rust but slightly higher level"?

156 points lurebat

Even without the safety and system features of rust, it's still a great language to write in.

Features like sum types, traits, cargo as a build system, etc

Now sometimes I want to write something that isn't system-level, where I can get away with using gc for memory management and save a lot of the details from rust. Maybe even a higher level async, with green threads or any other cool model.

Also it should be fast enough to not worry about it, including compilation if it's compiled.

And have decent tooling and ide support.

Basically not for writing enterprise software, but more than simple scripts.

Now let's look at some languages and why I think they fall short

Go - stuck in the 90, not a lot of ergonomic features and baffling choices

Python - slow, hard to configure functional programming is annoying and static typing is out of the language

Typescript - while it fixes some of the problems in js, it is just not nearly enough. Npm has plenty of issues, With deno having a better stdlib and deps it almost gets there.

Jvm - kotlin is really great for example, but the slow start up times and the insanity of gradle kill it for me

Dotnet - again has startup time issues, there aot but it still neees work. C# gets better but still doesn't have sum types. F# is too functional and feels out of place in the ecosystem

Now it may be nitpicking on the other langs, but still I'm wondering to see what people use and like.

These on just the top of my head

What do you use?
What so you like?