IRC channel logs

2026-10-01.log

back to list of logs

<ludocode>The EDG C++ frontend has just gone open source: https://github.com/edgcpp/compiler
<ludocode>Supports C++20 yet it looks like it's mostly written in C
<ludocode>Could this be potentially a much faster bootstrap path to GCC? Not sure how much work it would take, but it seems like it might be possible to go TinyCC -> EDG -> GCC
<notgull>Yeah I just saw this
<notgull>I think it would definitely be a viable option
<notgull>It also comes with a backend that spits out C code
<Googulator>Imagine if it could be used as a frontend for M2-Planet...
<Googulator>basically it would shrink the C++ chain to just hex0 -> hex1 -> hex2 -> M0 -> M2 -> (rebuild hex2, M1, etc. from C source) -> M2-EDG -> modern GNU tooling
<Googulator>of course, who knows how complex EDG's C output is
<Googulator>hmm, looks like it isn't really C (EDG's own source code, that is): https://github.com/edgcpp/compiler/blob/main/src/lexical.c#L69
<Googulator>".c" extension, but that looks like C++ OO code
<Googulator>yeah, it even uses templates: https://github.com/edgcpp/compiler/blob/main/src/lexical.h#L944
<Googulator>wow, that's an impressive commit history: https://github.com/edgcpp/compiler/commits/main/?after=89e67e07c7f6d0fc38622f9778d8e79f40deaa0f+62315
<Googulator>it's older than me :)
<matrix_bridge><cosinusoidally> I can't even get EDG to build on my Ubuntu 22.04 system out of the box. Hopefully they will sort that some point. I think currently they recommend building in their docker images, so that may work. Interestingly it appears that older versions (pre version 6) are written in C. Not sure if that version is also open source now though.
<Googulator>All versions back to at least 3.0 are in the repo, although the license headers obviously only change in the current one.
<nikolar>what's edg
<Googulator>newly open sourced C++ to C transpiler
<nikolar>i see
<notgull>Yeah it’s C++
<notgull>But hopefully could be ported to compliant C
<mwette>IIRC, in the 90's the EDG front end was used by many C++ compiler vendors because is was compliant and not buggy. (Not gnu for g++.)