Go to file
Chris Double 97073b654f misc. refactorings. added onchange attribute. Various refactorings. 2004-08-01 22:27:30 +00:00
contrib/cont-responder misc. refactorings. added onchange attribute. Various refactorings. 2004-08-01 22:27:30 +00:00
factor progress on self hosting 2004-07-30 06:44:12 +00:00
library it boots! 2004-07-31 20:11:30 +00:00
native it boots! 2004-07-31 20:11:30 +00:00
org/objectweb/asm First import of Factor 0.60 2004-07-16 06:26:21 +00:00
Factor.manifest First import of Factor 0.60 2004-07-16 06:26:21 +00:00
README.SRC.txt got [ a | b ] form working in native factor 2004-07-22 02:45:43 +00:00
TODO.FACTOR.txt it boots! 2004-07-31 20:11:30 +00:00
build.sh some progress towards self hosting 2004-07-31 18:58:16 +00:00
build.xml working on native run-file 2004-07-19 02:14:36 +00:00
gcj-compile First import of Factor 0.60 2004-07-16 06:26:21 +00:00
license.txt fix 2004-07-16 07:44:22 +00:00

README.SRC.txt

FACTOR

This source archive contains sources for two distinct
bodies of code -- a Factor interpreter written in Java,
and a Factor interpreter written in C. The C interpreter
is a more recent development than the Java interpreter.
They both share a large body of library code written in
Factor.

Java interpreter
----------------

The Java interpreter includes a slick GUI with hyperlinked
inspection of source code, as well as stack effect checking.

build.xml - Ant buildfile for Java interpreter.
factor/ - source code for Factor interpreter written in Java.
org/objectweb/asm/ - helper library for Java interpreter.
Factor.jar - compiled, stand-alone Java interpreter
library/platform/jvm - JVM-specific Factor code

C interpreter
-------------

The C interpreter is a minimal implementation, with the goal
of achieving the highest possible flexibility/lines of code
ratio. It runs faster than the Java interpreter, and uses
far less memory.

native/ - source code for Factor interpreter written in C.
native/build.sh - build script for C interpreter.
native/f - compiled C interpreter - needs image to run
native/factor.image - cross-compiler output
library/platform/native - C interpreter-specific code

Notes on the C interpreter
--------------------------

At the moment it assumes little endian byte order, 32-bit
words. This pretty much means x86.

Very soon I will add image input and output in both byte
orders - this will allow Factor to run on powerpc and
sparc.

Moving to 64-bits would require a few changes in the image
cross-compiler, namely in the way it packs strings.

Not everything has been implemented yet. However, a lot
already works. Compare the output of this in the C and
Java interpreters to see how they differ:

"vocabularies" get describe