2 ms·
I've been working with compilation using Prolog (after Warren 1980 went by here on HN a month or so ago.[1]) Two things: 1) If you are writing a compiler and
by carapace 8y ago
I've been working with compilation using Prolog (after Warren 1980 went by here on HN a month or so ago.[1])
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 https://news.ycombinator.com/item?id=17674859
- dman 8y agoAnything publicly available?
- carapace 8y agoI'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
- pjmlp 8y agoAs Prolog fanboy I would put ML and Lisp on the list for compiler development as well. :)
- fooker 8y ago>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.