by marmada · 5y ago · 0 comments
- A simplified/sounder natively integrated version of Typescript's type system - Javascript's easy notation for manipulating objects - None of Javascript's other baggage/cruft - Something akin to go routines
Basically, something with the performance of Go/Java (so there would be no need to rewrite your code once it starts serving millions of people) but the elegance of Typescript.
Not sure if this is similar to your vision of a "next Python" but it feels somewhat similar.
Basically I think right now:
C -> Zig
C++ -> Rust
Java -?-> Go
Python/Javascript --> ???
With native typing we could get a language as fast as Java/Go but with the cleanliness of Typescript.
If dealing with uses after free and lack of bounds checked access in release code is still a fun factor.
> Java -?-> Go
Not at all, unless one misses Java 1.4 with loots of if/else boilerplate.
- I think you're right. C is more l'île a garbage collected C.
It is the same fallacy as C code is safe if everything was checked, while CVEs keep happening.
Having said that, isn’t Deno close to what you’re looking for?
I can write statically typed code that easily shapes & reshapes objects & code that fits functional or object oriented programming styles.
It's a statically typed language that feels dynamic.
Now, if I were to get a version of TS without all of JS's crutches that would be amazing.
Deno is pretty close, but it lacks on performance & is bounded in potential by JS (in some aspects).
Things like `Object.keys` irritate me because they don’t compose well. What would go wrong if TS started supporting `Object.prototype.keys`? Could even be implemented as a rewrite using `Object.keys`.
It’s the ideal replacement for general purpose scripting and browser work IMO. I can’t recommend it enough.
The apps may be heavyweight, but the runtime was designed to run on set-top boxes 25 years ago.