unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Mes 0.14 released, Mes 0.14 released
@ 2018-05-24  6:00 Jan Nieuwenhuizen
  2018-05-24  9:23 ` [rb-general] " Holger Levsen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jan Nieuwenhuizen @ 2018-05-24  6:00 UTC (permalink / raw)
  To: guile-user; +Cc: guix-devel, rb-general, epsilon-devel, bootstrappable

I am pleased to announce the release of Mes 0.14, representing 98
commits over 4 weeks.  Mes+MesCC now compiles a self-hosting TinyCC
that has only been slightly patched.

This means that we can now build a tcc that depends only on a 1MB
ASCII M1 seed.  GuixSD currently uses a ~250MB binary seed to build
gcc.

Next targets are: build gcc using this almost full-source bootstrapped
tcc, and reduce the 1MB ASCII M1 seed to ~100KB of M2 source, which is
a restricted subset of C.

Packages are available from Guix's wip-bootstrap branch.

* 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
    MesCC.

    Mes+MesCC can compile an only slightly patched TinyCC[8] that is
    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 https://gitlab.com/janneke/mes

    wget https://gitlab.com/janneke/mes/-/archive/v0.14/mes-0.14.tar.gz

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.14 since 0.13
 ** Core
 *** Bootstrapped Mes+MesCC  now compiles a tcc that is self-hosting and only slightly patched.
 *** The reader now supports binary numbers (previously: read as decimal).
 *** String port support has been moved to C.
 *** The build has been simplified, the Make-in-Scheme experiment has been removed.
 *** 2 new functions
 chmod, logxor.
 ** Language
 *** Mes now supports define-immutable-record-type and single set-field from srfi-9 gnu.
 *** 12 new functions
 basename, chmod, const, delete-duplicates, logxor, string-contains,
 string-map, string-replace, string-trim, string-trim-both,
 string-trim-right, unfold.
 ** MesCC
 *** MesCC now supports standalone usage of nestedly defined enums, structs and unions.
 *** MesCC now supports comparison of unsigned and promotion of signed/unsigned -> unsigned.
 *** MesCC now supports sign extension for char, short.
 *** MesCC now has stubbing for floats; compiling works, data is fu.
 *** MesCC now has full suport for switch case, e.g. with default as first clause.
 *** MesCC now supports destruction of casted expressions: ((struct foo*)p)->bar.
 *** MesCC now has full support for pre/post, e.g.: (foo--)->bar and permutations.
 *** MesCC now supports sizeof any expression or type.
 *** MesCC now supports initialization of anonymous unions.
 *** MesCC now supports bit fields.
 *** MesCC now supports valued functions in expressions: destruction and dereferencing.
 *** MesCC now supports function-static variables.
 *** MesCC now supports initializer lists in structs and unions.
 *** MesCC now has full support for heterogeneous variable declarations, e.g.: char p, *x = "foo", buf[3];
 **** 4 new functions
 __lshrdi3, __ashldi3, __ashrdi3, strncpy.
 **** 9 new mlibc stubs
 __fixdfdi, __fixsfdi, __fixunsxfdi, __fixxfdi, __floatundixf, ldexp,
 strtod, strtof, strtold.

Greetings,
janneke

[0] https://gitlab.com/janneke/mes
[1] https://www.gnu.org/software/guix
[2] http://bootstrappable.org
[3] https://github.com/oriansj/m2-planet
[4] https://github.com/schemeway/lalr-scm
[5] https://www.cs.indiana.edu/chezscheme/syntax-case/old-psyntax.html
[6] https://www.nongnu.org/nyacc/
[7] https://www.gnu.org/software/guile/docs/master/guile.html/PEG-Parsing.html
[8] https://gitlab.com/janneke/tinycc
[9] https://lists.gnu.org/archive/html/tinycc-devel/2017-05/msg00103.html
[10] http://www.softwarepreservation.org/projects/LISP/book/LISP%25201.5%2520Programmers%2520Manual.pdf
[11] https://github.com/oriansj/stage0

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [rb-general] Mes 0.14 released
  2018-05-24  6:00 Mes 0.14 released, Mes 0.14 released Jan Nieuwenhuizen
@ 2018-05-24  9:23 ` Holger Levsen
  2018-05-24 13:21 ` Orians, Jeremiah (DTMB)
  2018-05-25 15:23 ` Christopher Lemmer Webber
  2 siblings, 0 replies; 4+ messages in thread
From: Holger Levsen @ 2018-05-24  9:23 UTC (permalink / raw)
  To: General discussions about reproducible builds
  Cc: guix-devel, guile-user, epsilon-devel, bootstrappable

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

On Thu, May 24, 2018 at 08:00:17AM +0200, Jan Nieuwenhuizen wrote:
> I am pleased to announce the release of Mes 0.14, representing 98
> commits over 4 weeks.  Mes+MesCC now compiles a self-hosting TinyCC
> that has only been slightly patched.
> 
> This means that we can now build a tcc that depends only on a 1MB
> ASCII M1 seed.  GuixSD currently uses a ~250MB binary seed to build
> gcc.
> 
> Next targets are: build gcc using this almost full-source bootstrapped
> tcc, and reduce the 1MB ASCII M1 seed to ~100KB of M2 source, which is
> a restricted subset of C.

you are doing very awesome work! please keep going and please keep
informing us about your progress! & thanks & have fun! :)


-- 
cheers,
	Holger

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Mes 0.14 released
  2018-05-24  6:00 Mes 0.14 released, Mes 0.14 released Jan Nieuwenhuizen
  2018-05-24  9:23 ` [rb-general] " Holger Levsen
@ 2018-05-24 13:21 ` Orians, Jeremiah (DTMB)
  2018-05-25 15:23 ` Christopher Lemmer Webber
  2 siblings, 0 replies; 4+ messages in thread
From: Orians, Jeremiah (DTMB) @ 2018-05-24 13:21 UTC (permalink / raw)
  To: bootstrappable@freelists.org, guile-user@gnu.org
  Cc: guix-devel@gnu.org, rb-general@lists.reproducible-builds.org,
	epsilon-devel@gnu.org

> I am pleased to announce the release of Mes 0.14, representing 98 commits over 4 weeks.  Mes+MesCC now compiles a self-hosting TinyCC that has only been slightly patched.
> This means that we can now build a tcc that depends only on a 1MB ASCII M1 seed.  GuixSD currently uses a ~250MB binary seed to build gcc.
> Next targets are: build gcc using this almost full-source bootstrapped tcc, and reduce the 1MB ASCII M1 seed to ~100KB of M2 source, which is a restricted subset of C.
> Packages are available from Guix's wip-bootstrap branch.

Amazing work as always Janneke

- Jeremiah Orians

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Mes 0.14 released
  2018-05-24  6:00 Mes 0.14 released, Mes 0.14 released Jan Nieuwenhuizen
  2018-05-24  9:23 ` [rb-general] " Holger Levsen
  2018-05-24 13:21 ` Orians, Jeremiah (DTMB)
@ 2018-05-25 15:23 ` Christopher Lemmer Webber
  2 siblings, 0 replies; 4+ messages in thread
From: Christopher Lemmer Webber @ 2018-05-25 15:23 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: guix-devel, guile-user

Jan Nieuwenhuizen writes:

> I am pleased to announce the release of Mes 0.14, representing 98
> commits over 4 weeks.  Mes+MesCC now compiles a self-hosting TinyCC
> that has only been slightly patched.
>
> This means that we can now build a tcc that depends only on a 1MB
> ASCII M1 seed.  GuixSD currently uses a ~250MB binary seed to build
> gcc.
>
> Next targets are: build gcc using this almost full-source bootstrapped
> tcc, and reduce the 1MB ASCII M1 seed to ~100KB of M2 source, which is
> a restricted subset of C.

Awesome!  Thank you for all your work, Jan!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-25 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-24  6:00 Mes 0.14 released, Mes 0.14 released Jan Nieuwenhuizen
2018-05-24  9:23 ` [rb-general] " Holger Levsen
2018-05-24 13:21 ` Orians, Jeremiah (DTMB)
2018-05-25 15:23 ` Christopher Lemmer Webber

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).