3 ms·
Let's put your claim that Objective-S can be used to implement different architectural styles to the test: implement Prolog or some other logic programming lang
by naasking 4y ago
Let's put your claim that Objective-S can be used to implement different architectural styles to the test: implement Prolog or some other logic programming language as an architecture!
I think the other architectures you've listed there aren't different enough from the typical call/return style of algorithm-centered languages, but logic programming certainly is.
- User23 4y agoIncidentally implementing prolog in Common Lisp is, while not trivial, quite natural[1]. [1] https://github.com/norvig/paip-lisp/blob/main/lisp/prolog.lisp https://github.com/norvig/paip-lisp/blob/main/lisp/prolog.li...
- User23 4y agoForth is another good example. There’s no call and return, but it can be used to implement any algorithm.
- mpweiher 4y ago> Forth is another good example. There’s no call and return Huh? Could have fooled...well, everyone, including Chuck Moore. Emphasis mine. https://web.archive.org/web/20060101073958/http://www.colorforth.com/cf.html https://web.archive.org/web/20060101073958/http://www.colorf... "The Data stack holds parameters for and results of subroutine calls. This distinction between control and data minimizes the cost of subroutine calls. https://en.wikipedia.org/wiki/Forth_(programming_language) https://en.wikipedia.org/wiki/Forth_(programming_language) "Forth is a procedural, stack-oriented programming language..." "...where the user interacts via subroutines called words. " "First a number (1 or 8) is pushed onto the stack, FLOOR5 is called,..." "This is the same as what a processor's call/return instructions do." https://www.forth.com/resources/forth-programming-language/ https://www.forth.com/resources/forth-programming-language/ "The benefit of having a stack reserved for return addresses was that the other stack could be used freely for parameter passing, without having to be “balanced” before and after calls" ...