|
|
|
|
|
by tannhaeuser
699 days ago
|
|
Sure, Erlang was prototyped on Prolog because Prolog has excellent built-in facilities for domain-specific languages: you can define new unary or binary operators along with priorities and associativity rules (you can use this to implement JSON or other expression parsing in like two lines of code, which is kindof shocking for newcomers, but comes very handy for integrating Prolog "microservices" into backend stacks), and you get recursive-decent parsing with backtracking for free as a trivial specialization of Prolog evaluation with a built-in short syntax (definite clause grammars) even. But apart from syntax, Erlang has quite different goals as a backend language for interruption-free telco equipment compared to Prolog. |
|
See pdf linked here - https://news.ycombinator.com/item?id=40998632