Re:Future Directions for Optimizing Compilers
by fooker on Thursday September 13, 2018 @02:54PM
(#17981318)
>If you are writing a compiler and NOT using Prolog you are almost certainly working way too hard.
If you are trying to write a compiler for anything but a toy language in Prolog, you are going to be at it for far too long without getting anything done.
Re:Future Directions for Optimizing Compilers
by pjmlp on Tuesday September 11, 2018 @01:09AM
(#17957319)
As Prolog fanboy I would put ML and Lisp on the list for compiler development as well. :)
Re:Future Directions for Optimizing Compilers
by dman on Monday September 10, 2018 @06:18PM
(#17955669)
Anything publicly available?
Re:Future Directions for Optimizing Compilers
by carapace on Monday September 10, 2018 @06:56PM
(#17955855)
I'm afraid my own work is yet inchoate, but there are decades of research. Here are some papers I've been looking at recently:
"Logic Programming and Compiler Writing" David H. D. Warren (this is the kickoff.)
"Parsing and Compiling Using Prolog" Jacques Cohen and Timothy J. Hickey
"Provably Correct Code Generation: A Case Study" Qian Wang, Gopal Gupta
"From Programs to Object Code and back again using Logic Programming: Compilation and Decompilation" Jonathan Peter Bowen
"Automatic Derivation of Code Generators from Machine Descriptions" R. G. G. Cattell
Two things:
1) If you are writing a compiler and NOT using Prolog you are almost certainly working way too hard.
2) I think I can see an alternate reality where compiler-like software exists but high-level programming languages as such do not.
[1] https://news.ycombinator.com/item?id=17674859