1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00
Commit Graph

3609 Commits

Author SHA1 Message Date
Nicolas Boulenguez
10708752f6 elm: update to elm 0.19.1
Most changes are variable renamings because elm does not allow masking
a visible name anymore.

Deal with changes in the standard library, especially in the Parser
interface.

Source files must now start with a capital letter.

Dockerfile: remove unneeded dependencies, install nodejs from debs.

Remove the redundant Maybe from the return value of readstring.

Stop embedding the colon in keyword represenation.
2024-08-06 08:23:54 -05:00
Joel Martin
4580081aef objpascal: fix EAccessError by removing CMem import. 2024-08-06 08:09:46 -05:00
Joel Martin
61323306c2 go: update to ubuntu:24.04 and convert to go.mod style 2024-08-05 17:17:22 -05:00
Joel Martin
e4a92b1c1c ci.sh: use BUILD_IMPL for image to build/run. 2024-08-05 17:02:38 -05:00
Joel Martin
85ff716e5a runtest.py: decode using latin1. Use regex whitespace match.
Some implementations send non-UTF-8 codes (i.e. es6 when showing
function representations). So use latin1 which is probably closer to
what most things are outputting to the terminal.
2024-08-05 17:02:38 -05:00
Joel Martin
f09e16dd76 Update JS impls to ubuntu 24.04, ffi-napi to 4.0.3 2024-08-05 17:02:38 -05:00
Nicolas Boulenguez
c9f7b5a1f8 dockerfiles: improve consistency, link python to python3
Explictly select python 3.  The `python2` and `python` packages will
be removed from Ubuntu.  Until each call site is fixed, install a
/usr/local/bin/python symbolic link as a non-intrusive work-around
(.deb packages do not interfer with /usr/local).

Add an explicit maintainer for bbc-basic.

Undo some cosmetic changes in order to reduce the global diff, this
merge request will probably be sqashed before acceptance.

Move lib{readline,edit}-dev out of the generic part.

Use existing .deb packages for GHDL and vim.
2024-08-05 17:02:34 -05:00
Nicolas Boulenguez
7f45725c19 docker: update some dockerfiles
The modified implementations have been tested on Debian bullseye.

* prefer later Ubuntu image, hopefully reducing the image count

* for Ubuntu versions, prefer numerical versions to unsorted codenames

* prefer packaged build systems to local rebuilds

* prefer the current default version of each build system

* delegate resolution of indirect dependencies to apt

* xslt: remove intermediate run script. The initial motivation is to
    provide an explicit path to the python3 interpreter, as the
    versioned executable is not always in PATH.

* Add DEBIAN_FRONTEND=noninteractive to some Dockerfiles. This is to
  workaround tzdata which prompts interactively by default.

* Debian/Ubuntu do not ship a python->python2 link by default.

* With the improved logo implementation in another branch, there is no
  need anymore to tweat the garbage collector settings.

* logo: use upstream brandy compiler (instead of building).

* guile: adjust deb-src mechanism to build ucblogo and workaround doc
  build bug.
2024-08-05 17:00:24 -05:00
Joel Martin
30dac1a7f3 GHA: update get-changed-file version and input name 2024-08-05 15:07:45 -05:00
Joel Martin
a0fe8e4355 c.2,make,perl6,ocaml,objpascal: update to ubuntu:24.04
c.2:
    By updating to 24.04 we get around an error with declarations after
    labels which is allowed in more recent compiler versions.

make:
    With older make, the newer make code results in this error:
    ../make/readline.mk:13: *** unterminated call to function 'eval': missing ')'.  Stop.

    Newer versions of make work fine.

perl6:
    With older rakudo, this error occurs:
        user> (let* (DEBUG-EVAL false) (- 3 1))
        Cannot resolve caller Numeric(types::MalFalse: ); none of these signatures match:

ocaml:
    Fixes build error that happens with older versions of ocaml:
        ocamlopt -a types.ml reader.ml printer.ml env.ml core.ml -o mal_lib.cmxa
        File "env.ml", line 15, characters 8-21:
        Error: Unbound value Data.find_opt

objpascal:
    With older compiler, the following error occurs:
        user> (apply str (seq "this is a test"))
        *** Error in `../objpascal/stepA_mal': corrupted size vs. prev_size: 0x000000000246c360 ***
2024-08-05 11:55:55 -05:00
Nicolas Boulenguez
a60581e0a2 test: check that a: is a valid symbol.
This is required by the current mal implementation of DBG-EVAL.

Fix resulting errors in powershell, prolog, swift5
2024-08-05 11:54:37 -05:00
Nicolas Boulenguez
033892777a Merge eval-ast and macro expansion into EVAL, add DEBUG-EVAL
See issue #587.
* Merge eval-ast and eval into a single conditional.
* Expand macros during the apply phase, removing lots of duplicate
  tests, and increasing the overall consistency by allowing the macro
  to be computed instead of referenced by name (`((defmacro! cond
  (...)))` is currently illegal for example).
* Print "EVAL: $ast" at the top of EVAL if DEBUG-EVAL exists in the
  MAL environment.
* Remove macroexpand and quasiquoteexpand special forms.
* Use pattern-matching style in process/step*.txt.

Unresolved issues:
c.2: unable to reproduce with gcc 11.12.0.
elm: the directory is unchanged.
groovy: sometimes fail, but not on each rebuild.
nasm: fails some new soft tests, but the issue is unreproducible when
  running the interpreter manually.
objpascal: unreproducible with fpc 3.2.2.
ocaml: unreproducible with 4.11.1.
perl6: unreproducible with rakudo 2021.09.

Unrelated changes:
Reduce diff betweens steps.
Prevent defmacro! from mutating functions: c forth logo miniMAL vb.
dart: fix recent errors and warnings
ocaml: remove metadata from symbols.

Improve the logo implementation.
Encapsulate all representation in types.lg and env.lg, unwrap numbers.
Replace some manual iterations with logo control structures.
Reduce the diff between steps.
Use native iteration in env_get and env_map
Rewrite the reader with less temporary strings.
Reduce the number of temporary lists (for example, reverse iteration
with butlast requires O(n^2) allocations).
It seems possible to remove a few exceptions: GC settings
(Dockerfile), NO_SELF_HOSTING (IMPLS.yml) and step5_EXCLUDES
(Makefile.impls) .
2024-08-05 11:40:49 -05:00
Nicolas Boulenguez
cb333f1387 ruby.2: backport a fix for step6 tests from stepA source to step9 source 2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
6a6bc8cb73 python.2: fix argv in step9 2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
10e8854c04 python.2: add with-meta reader macro 2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
d0375ec9f8 vb: allow keyword argument to keyword function 2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
3233e7821a make: fix enconding of hash and dollar signs
Some tests were failing with Make 4.3.
2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
3bd752c979 make: prevent defmacro! from mutating functions 2024-08-03 11:32:58 -05:00
Nicolas Boulenguez
b4843b602c make: allow keyword argument to keyword functions 2024-08-03 11:32:58 -05:00
Joel Martin
ee6c11da3b GHA: use default_base for get-changed-files
This is needed for new branches.
2024-08-03 11:32:58 -05:00
Joel Martin
d4f6b1e6dd ci.sh: restore tr lower-casing to fix macos. 2024-08-03 11:15:55 -05:00
Joel Martin
dd16a7d023 ci.sh: remove pulled step summary.
This should be the default if things are working correctly so logging
this now is just noise that causes the summaries that are relevant to
get folded in the UI.
2024-08-03 11:08:32 -05:00
Joel Martin
f3903a7141 docs: docker image/CI info. Replace IRC with Discord links. 2024-08-03 11:06:43 -05:00
Joel Martin
6bf89ea118 miniMAL: update to miniMAL-1.2.2
- Update to ubuntu 24.04 Dockerfile and add labels.
- update to working version of ffi-napi
- Remove from miniMAL-core.json the things that overlap with the builtin
  core functionality that miniMAL now provides in 1.2.2.
- Update ARGS variable to argv to align with how 1.2.2 now does command
  line parameters.
2024-08-03 11:06:43 -05:00
Joel Martin
e6ec37a468 ruby: fix stackoverflow printing in steps 6-A 2024-08-02 11:10:48 -05:00
Joel Martin
f63d2e4672 ruby: update vivid->xenial 2024-08-02 11:10:48 -05:00
Joel Martin
b3759ab63b php: update vivid->xenial and php5 -> php7.0 2024-08-02 11:10:48 -05:00
Joel Martin
a1a784c572 groovy,kotlin: vivid->xenial and jdk-7->jdk-8 2024-08-02 11:10:48 -05:00
Joel Martin
714b718bd0 Update VB/c#/f# from vivid to xenial and add tzdata. 2024-08-02 11:10:48 -05:00
Joel Martin
fe218df3d2 GHA,ci.sh: add step summaries for docker actions.
Add docker build-push summary statements for the workflow if the
GITHUB_STEP_SUMMARY variable is set.
2024-08-02 11:10:46 -05:00
Joel Martin
3f7b28652b GHA: switch from set-output to env file.
The set-output mechanism is deprecated for security reasons so set
environment variable outputs in GITHUB_OUTPUT instead. Change
get-ci-matrix.py to output the env file settings to stdout and move all
debug output to stderr.
2024-08-02 11:10:12 -05:00
Joel Martin
69e570aeca GHA: Update versions of checkout/artifact/login actions 2024-08-02 11:10:12 -05:00
Joel Martin
5c979b5a19 GHA: add packages write permission. 2024-08-02 11:10:12 -05:00
Joel Martin
7d49797697 ada: Dockerfile labels for repo linkage/visibility 2024-08-02 11:10:12 -05:00
Joel Martin
3e90e42e94 GHA: Update to ubuntu-24.04 runner/image. 2024-08-02 11:10:12 -05:00
Joel Martin
7a2bc6f066 Update Dockerfiles using ubuntu:vivid to xenial.
vivid packages are no longer available.

There are still implementations that use vivid because updating to
xenial was not sufficient to get them working again.
2024-08-02 11:10:12 -05:00
Joel Martin
0a34968695 GHA: Update macos image version from 10.15 to 12
10.15 has been removed since Aug 2022 and 11 has also been removed.
2024-08-02 11:10:12 -05:00
Joel Martin
eef959fb82 Update get-changed-files action to v2. 2024-08-02 11:10:12 -05:00
Joel Martin
8f8608a989 ci.sh/GHA: Add docker-build-push step/action
A major maintainability issue for years has been that the CI assumes
that a docker image for the implementation exists in Docker's registry
(named kanaka/mal-test-IMPL). This means the upstream maintainers have
to be involved in the PR loop to build the implementation Dockerfile,
push to the docker registry and then have the PR submitter re-run CI.

To address this, in ci.sh, the docker-build-push action will try to pull
the image and then continue as normal. If the pull fails then it will
build the image and push it (if the build is running in the context of
the upstream repo's main branch) and then continue.

Also, this switches to using ghcr.io as the default repo for images
which will make image transfer more local (during CI) and hopefully
a fair bit faster (and avoid potential docker pull limits).

Add a steps to the GHA main workflow that do a docker login to ghcr.io
and then call `ci.sh docker-build-push ${IMPL}`.
2024-08-02 11:10:06 -05:00
Joel Martin
78d6dabcaf Makefile,ci.sh: use versioned images
Get a voom style git hash of the impl Dockerfile and use that as the
testing docker image version (rather than blank which implies "latest").
2024-08-01 12:49:51 -05:00
Joel Martin
96e6d9c81a Don't pass MAKE into dockerized calls.
The outer and inner MAKE path may be unrelated.
2024-07-30 14:08:50 -05:00
Dov Murik
dcf8f4d7b9
Merge pull request #610 from Aegwenia/patch-1
Correcting a typo.
2022-03-06 11:54:15 +02:00
Bezděk Miroslav
c7d437c6d2
Merge branch 'kanaka:master' into patch-1 2022-03-04 14:33:23 +01:00
Dov Murik
dba7cd34bd
Merge pull request #602 from The-Alchemist/patch-1
anchor hyperlink fix
2022-01-12 08:13:09 +02:00
The Alchemist
3c79a5ae2e
anchor hyperlink fix 2021-12-24 13:17:38 -05:00
Joel Martin
1e8a122ddd wasm: fix odd WASI readline behavior.
Most of the time, the WASI fd_read call returns the whole line including
the newline. Other times, it returns everything except the newline. So
before stompiing the newline, check for that condition. This fixes the
WASI based wasm implementations (wasmtime, wasmer, lucet).
2021-12-20 12:17:19 -06:00
mrsekut
58a6054e51 PureScript: fix cmpOp supports MalTime and MalInt operations 2021-12-17 16:26:03 -06:00
mrsekut
4a3f6a1837 PureScript: fix MalTime mathematical operations 2021-12-17 16:24:26 -06:00
mrsekut
6ebb4d87ca PureScript: fix Makefile order of variable definitions 2021-12-17 16:24:26 -06:00
mrsekut
73aa01d9b3 PureScript: fix MalTime Type 2021-12-17 16:24:26 -06:00