slavapestov/factor — pull request #983 by bjourne (2014-01-28 18:59:27+00:00)
Title: Python in Factor

Here is a fun vocab I've been working on. It uses alien to hook up Python's c api so that you can call Python code from Factor. Why would anyone want to do that when Factor is great? :) Python is very popular and there are some 3rd party libraries that has no counterpart in Factor yet (my use case is unicodedata).

python.syntax defines new syntax so that you can write:

PY-FROM: glob => glob ( x -- y )
IN: "*.factor" glob
{ "syntax-tests.factor" "syntax.factor" }

Kwargs and instance method calls are supported, though they are kind of clumsy to use. But I'm working on that.