1 Subject: Mes 0.14 released
3 I am pleased to announce the release of Mes 0.14, representing 98
4 commits over 4 weeks. Mes+MesCC now compiles a self-hosting TinyCC
5 that has only been slightly patched.
7 This means that we can now build a tcc that depends only on a 1MB
8 ASCII M1 seed. GuixSD currently uses a ~250MB binary seed to build
11 Next targets are: build gcc using this almost full-source bootstrapped
12 tcc, and reduce the 1MB ASCII M1 seed to ~100KB of M2 source, which is
13 a restricted subset of C.
15 Packages are available from Guix's wip-bootstrap branch.
19 Mes[0] aims to help create full source bootstrapping for GuixSD[1]
20 as part of the bootstrappable builds[2] project.
22 It currently consists of a mutual self-hosting Scheme interpreter
23 prototype in C and a Nyacc-based C compiler in Scheme. This C
24 prototype is being simplified to be transpiled by M2-Planet[3].
26 The Scheme interpreter prototype (mes.c) has a Garbage Collector,
27 a library of loadable Scheme modules-- notably Dominique Boucher's
28 LALR[4], pre-R6RS portable syntax-case[5] with R7RS ellipsis, Matt
29 Wette's Nyacc[6], Guile's PEG[7] --and test suite just barely
30 enough to support a simple REPL (repl.mes) and simple C-compiler
33 Mes+MesCC can compile an only slightly patched TinyCC[8] that is
34 self-hosting. A GNU Gcc-compiled tcc is known[9] to compile GCC.
36 Mes is inspired by The Maxwell Equations of Software: LISP-1.5[10]
37 -- John McCarthy page 13, GNU Guix's source/binary packaging
38 transparency and Jeremiah Orians's stage0[11] ~300 byte self-hosting
43 git clone https://gitlab.com/janneke/mes
45 wget https://gitlab.com/janneke/mes/-/archive/v0.14/mes-0.14.tar.gz
47 Mes runs from the source tree and can also be built, packaged and
48 installed in Guix[SD] by the usual
50 guix package -f guix.scm
52 * Changes in 0.14 since 0.13
54 *** Bootstrapped Mes+MesCC now compiles a tcc that is self-hosting and only slightly patched.
55 *** The reader now supports binary numbers (previously: read as decimal).
56 *** String port support has been moved to C.
57 *** The build has been simplified, the Make-in-Scheme experiment has been removed.
61 *** Mes now supports define-immutable-record-type and single set-field from srfi-9 gnu.
63 basename, chmod, const, delete-duplicates, logxor, string-contains,
64 string-map, string-replace, string-trim, string-trim-both,
65 string-trim-right, unfold.
67 *** MesCC now supports standalone usage of nestedly defined enums, structs and unions.
68 *** MesCC now supports comparison of unsigned and promotion of signed/unsigned -> unsigned.
69 *** MesCC now supports sign extension for char, short.
70 *** MesCC now has stubbing for floats; compiling works, data is fu.
71 *** MesCC now has full suport for switch case, e.g. with default as first clause.
72 *** MesCC now supports destruction of casted expressions: ((struct foo*)p)->bar.
73 *** MesCC now has full support for pre/post, e.g.: (foo--)->bar and permutations.
74 *** MesCC now supports sizeof any expression or type.
75 *** MesCC now supports initialization of anonymous unions.
76 *** MesCC now supports bit fields.
77 *** MesCC now supports valued functions in expressions: destruction and dereferencing.
78 *** MesCC now supports function-static variables.
79 *** MesCC now supports initializer lists in structs and unions.
80 *** MesCC now has full support for heterogeneous variable declarations, e.g.: char p, *x = "foo", buf[3];
82 __lshrdi3, __ashldi3, __ashrdi3, strncpy.
83 **** 9 new mlibc stubs
84 __fixdfdi, __fixsfdi, __fixunsxfdi, __fixxfdi, __floatundixf, ldexp,
85 strtod, strtof, strtold.
90 [0] https://gitlab.com/janneke/mes
91 [1] https://www.gnu.org/software/guix
92 [2] http://bootstrappable.org
93 [3] https://github.com/oriansj/m2-planet
94 [4] https://github.com/schemeway/lalr-scm
95 [5] https://www.cs.indiana.edu/chezscheme/syntax-case/old-psyntax.html
96 [6] https://www.nongnu.org/nyacc/
97 [7] https://www.gnu.org/software/guile/docs/master/guile.html/PEG-Parsing.html
98 [8] https://gitlab.com/janneke/tinycc
99 [9] https://lists.gnu.org/archive/html/tinycc-devel/2017-05/msg00103.html
100 [10] http://www.softwarepreservation.org/projects/LISP/book/LISP%201.5%20Programmers%20Manual.pdf
101 [11] https://github.com/oriansj/stage0