Home

Awesome

Joy

BuildLinuxWindowsCoverity
statusGitHub CI build statusAppVeyor CI build statusCoverity Scan Build Status

This is the NOBDW version of Joy1. Joy is a decent language and needs a ditto presentation. The original version can be seen here.

Changes

Some changes were done that make the build environment me happy. One new thing is a portable makefile, following this advice. There is something different in these sources compared to the ones that can be downloaded from the archived original and that is the comments at the start of main.c and of interp.c. Manfred von Thun really wanted those comments in main.c, but the newsgroup did not allow attachments, so it was never published as such. As for the comments in interp.c, I added them because I like some version history. It proves that the language and the implementation was not done over night. In fact, according to this interview the implementation in C was started in 1995. And according to the bibliography the first papers about Joy date back to 1994.

Build instructions

rm -rf build
mkdir build
cd build
cmake -G "Unix Makefiles" ..
cmake --build .

cp ../lib/usrlib.joy ~
mkdir ~/usrlib
cp ../lib/* ~/usrlib

Then manually change the path to inilib.joy in ~/usrlib.joy from "../lib" to "usrlib".

Build with MSVC

cmake --build . --config Release
copy Release\joy.exe

copy ..\lib\usrlib.joy %HOMEPATH%
mkdir %HOMEPATH%\usrlib
copy ..\lib\*.* %HOMEPATH%\usrlib

Then manually change the path to inilib.joy in %HOMEPATH%\usrlib.joy from "../lib" to "usrlib".

Running

joy -h

gives an overview of available options.

Testing

cd ../test2
for i in *.joy
do
  ../build/joy $i >$i.out
done
grep -l false *.out

There are some false positives. The test files assume that usrlib.joy was loaded successfully.

See also

ImplementationDependencies
42minjoy
joy0
joy1BDW garbage collector
FoyBDW garbage collector
MoyBDW garbage collector and Lex & Yacc
DocumentationNotes
Legacy DocsLink in About section
User Manual
ComparisonSpeed comparison
Main Manual (PDF)2nd edition
Academic Article (PDF)Conversion to/from Combinatory Calculus