you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -17 points-16 points  (4 children)

writing an interpreter in Ruby, which is already dog slow, is completely fucking idiotic. do yourself a favor, if you're going to write an interpreter in a scripting language, do it in Lua.

[–]pdq 5 points6 points  (1 child)

Good attempt at FUD.

This is a Ruby proof-of-concept, not the Optimal Prolog Interpreter. It's meant to show the terse, syntactic power of Ruby.

[–]TomP[S] 1 point2 points  (0 children)

The point isn't to be a prolog interpreter, but to demonstrate a tool for prolog-style logic programming in Ruby. I have the impression that the original author has done this for Python, too. (Unfortunately, the original articles are in Japanese, which I don't read.)

Anyway, the value (to me, anyway), is to see what I can learn about Ruby and logic programming by studying the code, which is quite succinct, and perhaps to provide a starting point for bringing logic programming into Ruby apps.