[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mes 0.13 released

From: Jan Nieuwenhuizen
Subject: Mes 0.13 released
Date: Sat, 28 Apr 2018 13:59:15 +0200

I am pleased to announce the release of Mes 0.13, representing 45
commits over 3 weeks.  MesCC can now compile a functional tcc when
running on Mes (in ~1h45') or on Guile (in ~3min).

This means that we are getting very close to a full source bootstrap
of tcc: it is now built without gcc, glibc or guile; using only
MesCC-tools and Mes sources and corresponding ascii/binary seeds.

Attached full dependency graphs from Guix's wip-bootstrap branch.  Note
the tcc-boot dependency on glibc: that's (only) because of the location
of the dynamic linker inserted in the mes-tcc binary.

* About

    Mes[0] aims to help create full source bootstrapping for GuixSD[1]
    as part of the bootstrappable builds[2] project.

    It currently consists of a mutual self-hosting Scheme interpreter
    prototype in C and a Nyacc-based C compiler in Scheme.  This C
    prototype is being simplified to be transpiled by M2-Planet[3].

    The Scheme interpreter prototype (mes.c) has a Garbage Collector,
    a library of loadable Scheme modules-- notably Dominique Boucher's
    LALR[4], pre-R6RS portable syntax-case[5] with R7RS ellipsis, Matt
    Wette's Nyacc[6], Guile's PEG[7] --and test suite just barely
    enough to support a simple REPL (repl.mes) and simple C-compiler

    Mes+MesCC can compile a modified TinyCC[8] that is close to being
    self-hosting.  A GNU Ccc-compiled tcc is known[9] to compile GCC.

    Mes is inspired by The Maxwell Equations of Software: LISP-1.5[10]
    -- John McCarthy page 13, GNU Guix's source/binary packaging
    transparency and Jeremiah Orians's stage0[11] ~300 byte self-hosting
    hex assembler.

* Download

    git clone


Mes runs from the source tree and can also be built, packaged and
installed in Guix[SD] by the usual

    guix package -f guix.scm

* Changes in 0.13 since 0.12
 ** Core
 *** Bootstrapped Mes+MesCC can now compile a patched tcc in ~2h30' (~25,000 
 *** MesCC scripts for Mes and Guile are now merged; executable is: `mescc'.
 *** Mes now uses only one arena for stop-and-copy; doubles available size.
 *** Mes now has a Guile-like command-line interface (mes.repl has been 
 *** Mes now boots into a full Scheme by default.
 *** Mes can now be compiled (MES_MINI=1) to boot into a minimal Scheme (~2000 
 *** Mes now creates less garbage in the reader and in
 append2, append_reverse, reverse, reverse!, vector-for-each, vector-to-list, 
 *** 5 new functions
 append-reverse, chmod, ioctl, isatty, isspace, last_pair, reverse!.
 ** Language
 *** 3 new functions
 char-whitespace?, chmod, isatty?
 ** Noteworthy bug fixes
 *** Two bugs in the jam scraper/garbage collector have been fixed.
 *** equal2_p now uses tail call elimination.
 *** Escaped characters in strings are now read and write'd correctly.
 *** The repl now expands macros again.



Attachment: mes-boot-bag.svg
Description: Binary data

Attachment: tcc-boot-bag.svg
Description: Binary data

Jan Nieuwenhuizen <address@hidden> | GNU LilyPond
Freelance IT | AvatarĀ®

reply via email to

[Prev in Thread] Current Thread [Next in Thread]