News for hackers. Stuff that matters.
Re:Miranda released as free software by onei on Saturday February 29, 2020 @02:06AM (#22449385)
Why is compiling to LLVM bytecode insane? Compiling to bytecode and then working with a simpler language has worked for decades since the introduction of BCPL.

It's also the approach used by Open64, where you compile to WHIRL which is then optimised with successive passes until you eventually output whatever the architecture can run.

Re:Miranda released as free software by kick on Saturday February 29, 2020 @02:32AM (#22449467)
Good question!

BCPL's O-Code is far different from LLVM bytecode. O-Code was little more than a virtual stack machine. Very similar to Forth, though slightly more complicated.

I could be wrong, but isn't Open64 more or less dead? The only thing I can think of that actually uses it (CUDA) isn't best-in-class.

Re:Miranda released as free software by onei on Saturday February 29, 2020 @03:20AM (#22449600)
I believe you're correct about Open64, but it was an interesting examples of a compiler when I was researching them last, particularly its usage of WHIRL [1]. It's a similar approach as used by GCC and LLVM with their front, middle and back-end approach, although I can't quite remember if it pioneered that approach or not.

[1] https://www.mcs.anl.gov/OpenAD/open64A.pdf

Re:Miranda released as free software by ZeRoo on Saturday February 29, 2020 @02:55AM (#22449532)
So u say, LLVM or whatever is insane because it's large. so what do u think about QBE[0] ?

0 : https://c9x.me/compile/

Re:Miranda released as free software by kick on Saturday February 29, 2020 @03:53PM (#22453019)
I don't know enough about QBE to give a well-informed assessment of it, so I'll refrain.
Re:Miranda released as free software by pjmlp on Saturday February 29, 2020 @06:37AM (#22450113)
Compiling to bytecode is almost a decade older than BCPL, was the way to go at Xerox PARC and most mainframes that survive to this day.
Re:Miranda released as free software by onei on Saturday February 29, 2020 @03:51PM (#22453004)
From what I can tell, Xerox PARC didn't exist until 1970 and apparently used Smalltalk, which was after BCPL in 1967. I don't doubt you're correct, so do you have any links for earlier bytecode examples?
Re:Miranda released as free software by pjmlp on Sunday March 01, 2020 @02:50AM (#22455719)
Burroughs Large Systems, released into the market in 1961, nowadays sold as Unisys ClearPath MCP mainframes.

Xerox PARC had Smalltalk, Mesa (later Mesa/Cedar) and Interlisp-D.

The platforms would first load the respective microcode into the CPU for the bytecodes used by the desired workstation environment.

Initially Xerox PARC made use of BCPL, but quickly they realised it wasn't the best way to write systems software and created Mesa to replace it.

After all, BCPL was intended to bootstrap CPL, not to write fully systems with it.

Other 60's computer companies were making use of either Algol or PL/I dialects, all the way up to the 80's.

Lots of juice papers at Bitsavers.