News for hackers. Stuff that matters.
Re:The Rust I wanted had no future by johnnyanmac on Saturday June 10, 2023 @07:55AM (#36269734)
>is it a post-factum rationalization or it's the original logic behind async/await?

Well, I'm not that deeply versed into any language's history, but I imagine any 15+ year old language had a point where they needed asyncrhonous functionality but had to write around legacy code. I don't think Javascript would have been written the way it was in the 90's if asynchronous operations were a mandatory priority.

So it's probably a lot more "this is how we hack this in without creating Python 3.0". Relatively elegant to make it an optional part of the language that you explicitly choose to delve into, instead of a core feature that would have broken thousands of sites behind the scenes if you made it "right".

>why language is deciding for me what is considered heavy or not?

because we decided decades ago that we didn't like using fork(), nor creating/destroying processes ourselves. problems that would inevitably need multiple solutions when supporting multiple platforms because these aren't language features so much as OS calls made in a language that you may or may not be writing in.

Remember at the end of the day that languages are abstractions on top of an OS. Any interesting ideas for problems involving more than a single process space that your OS makes for you is bound by what the OS's API lets you do. It's arbituary but also based on historical problems to wrangle.

So we haven't had enough problems where we need to bound a function by how much it is called. We have for how to interact with all the above OS/language problems.

There are no comments on this comment yet.