Questions tagged [algol]

ALGOL (short for ALGOrithmic Language) is a programming language developed during the 1950s. Used in text books and academic work for algorithm description. Predecessor of many modern computer languages, like Pascal, Simula and C.

22 questions
47
votes
8 answers

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

I've checked Wikipedia and googled but I still can't wrap my mind around how pass-by-name works in ALGOL 60.
bdd
  • 3,436
  • 5
  • 31
  • 43
34
votes
8 answers

What _did_ the C operators /\ and \/ do?

Anyone can "declare" ones own operators in C.... that is if one is a C compiler guru and has the source code to the C compiler! ;-) Further questions to puzzle: How are these operations done in C99? gcc? ... And why were /\ & \/ dropped? Which…
NevilleDNZ
  • 1,269
  • 12
  • 31
12
votes
12 answers

Was ALGOL ever used for "mainstream" programming?

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…
DVK
  • 126,886
  • 32
  • 213
  • 327
6
votes
1 answer

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

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…
Handcraftsman
  • 6,863
  • 2
  • 40
  • 33
5
votes
1 answer

How does the "Man Or Boy" Knuth test work?

Can anyone explain how the Man Or Boy Test returns a value of -67? I tried in vain to write down the result, or trace it with a debugger. Any help would be appreciated. A list of different implementations can be found here.
CaptainCasey
  • 1,361
  • 1
  • 14
  • 21
3
votes
6 answers

compilers for languages from 1950's and 1960's

i am trying to find the best compilers (if they are actually available) for the following languages: ALGOL 60 TRAC TELCOMP Superplan BACAIC i don't know if any of these are still around, but it would be very helpful to get any feedback on where…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
2
votes
2 answers

ALGOL 68 Genie - Insufficient memory

I'm doing this simple "game engine" for cli pixel games creation, a68g game engine. I have seen that in the lib/canvas.a68 file. Those 2 loops are making a error: 7 arr := new 1 a68g: lib/operators.a68: runtime error: 1: insufficient…
Panda Soli
  • 61
  • 6
2
votes
0 answers

Mutual exclusion problem

The following solution to the mutual exclusion problem, discussed earlier, published in 1966 by H. Hyman in the Communications of the ACM. It was listed, in pseudo Algol, as follows. 1 Boolean array b(0;1) integer k, i, 2 comment process i, with…
edgarmtze
  • 24,683
  • 80
  • 235
  • 386
2
votes
1 answer

How do we write the command in Pidgin ALGOL?

How can we write the command: printf("%d->%d", X, Y); in ALGOL where X and Y are the arguments of the recursive function. Do we have to write something like: write "X -> Y"; ? Or can we write : write "%d -> %d, X, Y";
Mary Star
  • 375
  • 7
  • 27
2
votes
1 answer

Evaluation of variable through Pass By Name

I have a doubt regarding Pass By Name Procedure test ( int c, int d) { int k = 10; c = 5; d = d + 2 ; k = c + d; print (k); } main() { k = 1; test(k,k); print (k); } I did refer to one of…
Nandan Pc
  • 21
  • 3
1
vote
1 answer

What is the IMPACT of RESIZE and DEALLOCATE on the CPU performance

I have 2 flavors of the same ALGOL code - its a ONE-ONE replacement Which uses - RESIZE (TO RETURN IT LIBARAY POOL) Which uses - DEALLOCATE (TO RETURN IT SYSTEM) The one which the DEALLOCATE Consumes more CPU time and inturn more %processor…
siddharth taunk
  • 309
  • 4
  • 12
1
vote
1 answer

Static types and conversions

Suppose I have an algol-like language, with static types and the following piece of code: a := b + c * d; where a is a float, b an integer, c a double and d a long. Then, the language will convert d to long to operate with c, and b to double to…
Tomás Juárez
  • 1,517
  • 3
  • 21
  • 51
1
vote
1 answer

Send data to Zabbix via TCPIP sockets

I am trying to send data directly from an Aseries environment to the zabbix server, so I want to create an algol program for sending the data via tcpip sockets. Do you know if it is possible in zabbix to recive information via sockets ?. If it is…
1
vote
4 answers

What was ALGOL compiler originally programmed in?

I've been look around and I found little info on what was used to create the ALGOL 58 compiler. Was the compiler created similar to FORTRAN in that they used physical cards to create it?
Josiah L.
  • 302
  • 1
  • 4
  • 21
1
vote
1 answer

Call by result Example

Is there any proper example for explaining call-by-result ? (not pseudocode) I have learned that ALGOL 68, Ada could use this way, but I cannot find any clear example of Call-by-Result.
구마왕
  • 488
  • 6
  • 20
1
2