algol

Was ALGOL ever used for “mainstream” programming? [closed]

╄→гoц情女王★ 提交于 2020-01-02 00:58:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I know that ALGOL language is super-uber-extremely important as a theoretical language, and it also had a variety of implementations as per Wikipedia. However, what's unclear is, was ALGOL (pure ALGOL, not any of its derivatives like Simula) ever actually used for any "real" programming in any way? By "real", I

Wanted: working Bose-Hibbard Sort implementation preferably in C-like language

一笑奈何 提交于 2019-11-28 07:44:35
问题 Please point me to code for a working Bose-Hibbard Sort implementation, preferably in a C-like language. I'm trying to implement the algorithm in C#, but I don't have a copy of the algorithm. The only sample I have is a Fortran implementation that is a "free translation" of Hibbard's original Algol version (from 'A simple sorting algorithm' Journal of the ACM vol 10 (1963) p142-50 — which I don't have either). The Fortran version appears to be buggy (it does exactly 1 compare and ends up

What is “pass-by-name” and how does it work exactly?

被刻印的时光 ゝ 提交于 2019-11-27 19:00:34
I've check wikipedia, and googled but I still can't wrap my mind around how pass-by-name works in ALGOL 60. I found a good explanation at Pass-By-Name Parameter Passing . Essentially, the body of a function is interpreted at call time after textually substituting the actual parameters into the function body. In this sense the evaluation method is similar to that of C preprocessor macros. By substituting the actual parameters into the function body, the function body can both read and write the given parameters. In this sense the evaluation method is similar to pass-by-reference. The difference

What is “pass-by-name” and how does it work exactly?

家住魔仙堡 提交于 2019-11-26 15:53:23
问题 I've checked Wikipedia and googled but I still can't wrap my mind around how pass-by-name works in ALGOL 60. 回答1: I found a good explanation at Pass-By-Name Parameter Passing. Essentially, the body of a function is interpreted at call time after textually substituting the actual parameters into the function body. In this sense the evaluation method is similar to that of C preprocessor macros. By substituting the actual parameters into the function body, the function body can both read and