225 karma · joined Aug 2, 2022 (4y ago) · 102 submissions
comment 4y ago · link · parent
What part of JS do you want to die the most? Syntax, runtime, type coercion quirks? And what is your ideal syntax so far? How could JS be changed to your liking?
comment 4y ago · link · parent
I mean more JS. I'm sure types will be integrated into TS.
I really cannot see JS ever being supplanted. WebAssembly could change things but probably not.
The only gap I see in the market is for a high-level language that can also do low-level.
And then you have to think about syntax-alone innovations yet to come. I think we have all the syntax we need. Swift and Kotlin have some new stuff now and then. But pretty much everything people want are proposals in the works for JS.
So with no new syntax innovations, people will just go with JS/TS. And then you pretty much just need to implement a low-level target and you have your universal programming language.
> nice when all numbers are of type "Number" but there are lots of cases where you need far stricter control over that
The problem is these systems languages are not designed like this. They don't imagine you are not instantly hitting the metal. But huge amounts of code are just simple business logic that don't care about memory management. I just want my hot code path to run on the metal. But I don't want to rewrite in Rust and wear the compile times just for that.
> purest developers/comp sci's fundamentally know
These are the same guys that hop from fad to fad to stay intellectually stimulated. Ruby -> Scala / Haskell / OCaml -> Go -> Rust -> Zig -> Some new thing.
I've heard so many times that functional programming was essential, now a borrow checker is essential, when we got by without them just fine. Now Zig comes along and doesn't have a borrow checker and its still got buzz. Next is Vale with generational references and time-travel debugging. It's always some new shiny feature to chase. Call out web devs on their new ui frameworks, but backend devs have their own skeletons.
Compsci's are writing their very own new language as we speak.
Devs are constantly forced to go where the hype is to stay with the ecosystem. Rust is where it's at, so Rust it is. But it won't be forever.
I'm just a bit tired of wearing slow compile times for all these new languages that never get fixed before the next language comes along...without proper IDE support or debugger support.
comment 4y ago · link · parent
Adding the borrow checker is quite invasive though. This guy is trying https://github.com/alshdavid/BorrowScript.
I think it's a kind of fun constraint that experienced and bored devs like to challenge themselves with - the borrow checker. The latest obsession. You absolutely don't need a borrow checker, just like you didn't need everything to be functional programming, but it's intellectually stimulating.
comment 4y ago · link · parent
I just don't see a new language being created that can be a systems language, and is also the language of choice for web apps, etc. TS already targets everything, except native (although there is NativeScript and AssemblyScript and a TypeScript LLVM compiler laying around).
What I want is one syntax to target every platform, and when I click run, I can step through the code and it doesn't matter if it's running native or JIT.
comment 4y ago · link · parent
We shouldn't need such a wide separation between what is system vs application.
The difference is essentially a few additional keywords and a compiler. But the simplicity comes from a high-level language, so you always need the high-level language. You only need the low-level language when you need to optimize something.
So naturally, the high-level language should be the basis for a language that can do both.
TypeScript is now well-established enough that its syntax should be used as this basis, and it natively targets the web which nothing else does.
comment 4y ago · link · parent
Imagine that! We would have one syntax that can potentially be used for everything. A Rust-like syntax will never be used to write web apps.
Then you have simplicity with opt-in designed complexity when needed. It's like the separation of beginner vs expert features in design.
comment 4y ago · link · parent
10+ years including low-level embedded stuff in C/C++ and everything in between.
On the contrary, I would argue that someone working in non-web code for 10+ years could easily have an antiquated view of what the modern developer experience looks like. JS/TS is miles ahead in terms of developer productivity than many other languages. Talking about the long compile-refresh cycles, poor module systems, lack of good debugger support, real-time test runners, etc.
Most JS devs have been using the same language for a very long time now, whereas non-web devs are jumping from Ruby to Scala to Go to Rust to Zig, and then the next thing.
> TypeScript has one type of string, Rust has dozens, because String and OsString and CString each have different semantics
The problem I see is that I'm sure there are a ton of Rust projects that don't want to do anything particularly low-level with a string. They want to operate on it in the same way a JS program would. But they are forced to grapple with all this complexity. I think the issue is probably that Rust was never designed for high-level kind of stuff. Like you wouldn't build a web app or web server in Rust. You might build a performant web server framework like nginx, but you wouldn't want to write the business logic in it.
That's why I'd love to see a simple language that you could easily drop down into low-level stuff when necessary without a giant context switch and new compiler toolchain.
102.
Why are systems languages always overly complex?
19 points · by grumblingdev · 4y ago · 57 comments