News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by pjmlp on Friday September 06, 2024 @06:30AM (#41464766)
Not at all, considering the decade of high level systems programming languages that predated the very thought of C coming into life.

All with stack allocation.

Re:Swift is a more convenient Rust by arghwhat on Friday September 06, 2024 @11:27AM (#41467036)
Keyword is mainstream, so it’s not when the idea was invented - I think Forth popularized it?

I can’t really comment on what counted as mainstream before C though. Not old enough for that.

Re:Swift is a more convenient Rust by pjmlp on Friday September 06, 2024 @12:00PM (#41467315)
Mainstream is whatever people could use between 1958 and 1969, as high level programming language, in whatever computers, universities and companies could afford.

Goggle, Bing, DuckDuckGo, ChatGPT,... will gladly provide a list.

Re:Swift is a more convenient Rust by arghwhat on Friday September 06, 2024 @12:43PM (#41467684)
What people could use is not at all what mainstream is. You can use D, OCaml, F# and brainfuck, but they are not mainstream.

To define what was mainstream we'd need to talk to people coding at the time and ask them about popularity, adoption, tooling availability, etc. and what languages people were likely to use rather than what was available.

And no, I have no need for researching that as I have no use of the information - the point is to say that automatic memory management in mainstream languages predate rust by decades and is present in most languages, not "this specific language should get credit".

Re:Swift is a more convenient Rust by pjmlp on Saturday September 07, 2024 @04:43AM (#41472504)
Then you should not have mentioned Forth or C at all, only to show not having a clue about programming languages history.

Besides, any Assembly programmer is well aware of what stack memory is all about, bring us even further back than 1958.

Re:Swift is a more convenient Rust by arghwhat on Monday September 09, 2024 @03:57AM (#41486379)
> Then you should not have mentioned Forth or C at all, only to show not having a clue about programming languages history.

The whole point was that these well-known mainstream languages provided the feature claimed to first have arrived in Rust, to make it clear that it was not just theoretical or some obscure language.

It's not my fault that you misunderstood the topic or the idea of what makes something mainstream, and instead read this as an elaborate history class stating the absolute first discovery of the idea.

> Besides, any Assembly programmer is well aware of what stack memory is all about, bring us even further back than 1958.

The instructions you refer to were designed to support stack-based languages, not the other way around.