▲ | giancarlostoro 3 days ago | ||||||||||||||||
I am waiting for someone to build a modern scripting language in Rust that has the popularity and rich tooling and capabilities of Rust as a result. | |||||||||||||||||
▲ | ekidd 3 days ago | parent | next [-] | ||||||||||||||||
There are two deep capabilities that make Rust, Rust: 1. Banning shared, mutable data. You can't change data that other code might be reading. This is a huge win for threading and multiple CPUs, but it's a dramatic departure from other popular languages. 2. Knowing how data is laid out in memory. This is classic "systems programming" stuff, and it's also present in C, C++, Zed, etc. This usually goes along with making memory allocation visible (though not always in C++). This is a big win for performance. If you wanted to build a "scripting language" version of Rust, you could probably lose (2). Languages like Haskell are even stricter than Rust, but they hide the details of memory layout. But then you need to decide whether to keep or lose (1). If you keep it, your language will have good threading, but users will need to think about ownership and borrowing. If you lose (1), then your language won't feel very much like Rust. It would be an interesting intellectual exercise! But actually turning it into a popular scripting language would probably require the same luck and the same 10 years of work that most successful languages need to get real traction. | |||||||||||||||||
| |||||||||||||||||
▲ | jasonpeacock 3 days ago | parent | prev | next [-] | ||||||||||||||||
I just use Rust to do any "scripting" work. I stopped using Python and write it in Rust instead, and I'm more productive than before. What do you need a scripting language for that's different than using Rust? | |||||||||||||||||
| |||||||||||||||||
▲ | librasteve 3 days ago | parent | prev | next [-] | ||||||||||||||||
suggest you test drive https://raku.org while you wait (spoiler alert - written in C) | |||||||||||||||||
| |||||||||||||||||
▲ | testdelacc1 3 days ago | parent | prev [-] | ||||||||||||||||
Like Gleam? | |||||||||||||||||
|