Hacker News new | ask | show | jobs
by jlouis 5766 days ago
Prolog was dynamically typed and in the 80'es that usually meant slow execution (sans Orbit/T I am told). What made C damn popular was the sheer speed in the produced code. When you have 7-20 Mhz computers a slow language hurts.
1 comments

Types in prolog could be added as system predicates, and I think some extensions do this. I know there was a version called Turbo Prolog that generated compiled code. So, Prolog can be compiled or not, it is just that interpreting is far easier to do.
There's a de-facto standard bytecode and virtual machine design for byte-compiled Prolog, known as the Warren Abstract Machine. There are links concerning it and derived designs here: http://news.ycombinator.com/item?id=1649138

Also, wamcc (http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.1...) compiles Prolog to C.