GithubHelp home page GithubHelp logo

wodan58 / joy Goto Github PK

View Code? Open in Web Editor NEW
78.0 5.0 7.0 3.66 MB

Manfred von Thun's Programming Language Joy

Home Page: http://wodan58.github.io

License: Other

C 94.52% CMake 2.22% NewLisp 1.68% Shell 0.46% DIGITAL Command Language 0.14% Makefile 0.50% Vim Script 0.47%
joy

joy's Introduction

Joy

Build Linux Windows Coverity
status GitHub CI build status AppVeyor CI build status Coverity 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.

Build instructions

mkdir build
cd build
cmake ..
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

mkdir build
cd build
cmake ..
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

Implementation Dependencies
42minjoy
joy0
joy1 BDW garbage collector
Foy BDW garbage collector
Moy BDW garbage collector and Lex & Yacc
Documentation
Legacy Docs
User Manual
Comparison (PDF)

joy's People

Contributors

wodan58 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

joy's Issues

Errors on Arch

/home/neauoire/Git/Joy/gc.c: In function ‘GC_realloc’:
/home/neauoire/Git/Joy/gc.c:369:27: error: pointer ‘old’ may be used after ‘realloc’ [-Werror=use-after-free]
  369 |         remind(ptr, size, forget(old));
      |                           ^~~~~~~~~~~
/home/neauoire/Git/Joy/gc.c:364:16: note: call to ‘realloc’ here
  364 |     if ((ptr = realloc(old, size)) == 0)
      |                ^~~~~~~~~~~~~~~~~~
In file included from /home/neauoire/Git/Joy/gc.c:26:
In function ‘forget’,
    inlined from ‘GC_realloc’ at /home/neauoire/Git/Joy/gc.c:369:20:
/home/neauoire/Git/Joy/khash.h:507:28: error: pointer ‘old’ may be used after ‘realloc’ [-Werror=use-after-free]
  507 | #define kh_get(name, h, k) kh_get_##name(h, k)
      |                            ^~~~~~~~~~~~~~~~~~~
/home/neauoire/Git/Joy/gc.c:348:16: note: in expansion of macro ‘kh_get’
  348 |     if ((key = kh_get(Backup, MEM, (uint64_t)ptr)) != kh_end(MEM)) {
      |                ^~~~~~
/home/neauoire/Git/Joy/gc.c: In function ‘GC_realloc’:
/home/neauoire/Git/Joy/gc.c:364:16: note: call to ‘realloc’ here
  364 |     if ((ptr = realloc(old, size)) == 0)
      |                ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/joy.dir/build.make:202: CMakeFiles/joy.dir/gc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/joy.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

nonportable build scripts

You mention changing the makefile to be more portable, but ls -Q is available on BSD. I'm sure there are others because I've spent all day trying to get this to compile for macos to no avail

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.