5 comments

  • ACAVJW4H4 hours ago
    Related: pnut.sh <a href="https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;pnut" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;udem-dlteam&#x2F;pnut</a> just released. It’s a self-compiling C-&gt;POSIX shell transpiler that outputs readable shell, aimed at live-bootstrap and reproducible build chains. The shell edition is auditable and can bootstrap a native compiler from just POSIX sh + coreutils. Very much in the spirit of stage0 &#x2F; compile-from-nothing work.
  • ValdikSS6 hours ago
    Bootstapping is so complex, here&#x27;s 181-step document to compile Linux: from &quot;commented opcodes&quot; in hex0 to assembler with labels, from simple C compiler to ~c89 compiler to tinycc ~c99 compiler, from simple shell to scheme interpreter to Fiwix unix-like kernel.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fosslinux&#x2F;live-bootstrap&#x2F;blob&#x2F;master&#x2F;parts.rst" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fosslinux&#x2F;live-bootstrap&#x2F;blob&#x2F;master&#x2F;part...</a>
    • fjfaase5 hours ago
      I have been reviewing stage0 and gave a presentation, &#x27;reviewing live-bootstrap&#x27; about it at WHY2025, in which I also made some suggestions about improving stage0. I am now working on this.<p>What I refer to as stage0 is the first 19 steps of the mentioned description, which actually involves the execution of over 700 executables. (See presenration for T-diagran.) I believe that number can reduced by at least a half.
  • lrvick4 hours ago
    Eliminating Mes would be amazing for us in Stagex. Mes is the second longest build in the entire tree (after rust).
  • stevefan19997 hours ago
    At this point I believe running Common Lisp&#x2F;Scheme from SectorLisp wouldn&#x27;t be that far off
    • agumonkey6 hours ago
      don&#x27;t threaten me with a good time
  • gaigalas1 hour ago
    The thing about Mes is that it does riscv64 too. I don&#x27;t know the current state of the support, but there is something there.<p>There are still many pieces of riscv64 missing in the whole thing (an equivalent to Fiwix being the most challenging right now), and realistically only x86 is currently viable. I think riscv64 is the next in line though.
    • fjfaase37 minutes ago
      Stage 3 or 4 support for the other targets is also planed. This will require some small adaptations to the compiler for 32 to 64 word size and Stack-C versions for those targets.