robertmuth/Cwerg
View on GitHub ↗ ★ 712 Python
The best C-like language that can be implemented in 10kLOC.
14 mentions on Hacker News by 2 people: 3 stories, 11 comments · first 2021-06-01 · latest 2025-06-07
20082026
-
…inspired syntax. The frontend has a self imposed line budget of 10kLOC. [1] http://cwerg.org [2] https://github.com/robertmuth/Cwerg/blob/master/FE/Docs/tuto...
comment by muth02446 · 2025-06-07 · in Small Programs and Languages -
This section contains a list of features that are unlikely to be added to the Cwerg backend: https://github.com/robertmuth/Cwerg?tab=readme-ov-file#inten... If you can live without them, it can be a replacement for LLVM.
comment by muth02446 · 2024-03-22 · in Cwerg: C-like language that can be implemented in 10kLOC -
…s-expr pretty far WRT readability. Here is an example of a cwerg program using "enhanced" s-exprs: https://github.com/robertmuth/Cwerg/blob/master/FrontEnd/Tes... And here is same the same program in the tentative concrete syntax:…
comment by muth02446 · 2024-03-22 · in Cwerg: C-like language that can be implemented in 10kLOC -
That is correct. The concrete syntax will be python-like. Somer examples are here: https://github.com/robertmuth/Cwerg/tree/master/FrontEnd/Con...
comment by muth02446 · 2024-03-22 · in Cwerg: C-like language that can be implemented in 10kLOC -
Not a full-blown compiler but a backend similar to qbe or llvm: https://github.com/robertmuth/Cwerg
comment by muth02446 · 2022-04-08 · in Hand-optimizing the TCC code generator -
I have a project going that tries to bring back ultra short compilation times: https://github.com/robertmuth/Cwerg
comment by muth02446 · 2022-03-12 · in Things That Turbo Pascal Is Smaller Than (2011) -
Shameless plug: https://github.com/robertmuth/Cwerg A lot simpler than LLVM but also a lot less mature.
comment by muth02446 · 2021-09-07 · in Learning Almost Nothing About LLVM -
It is great to see more activity in the compiler IR space. Here is another effort: https://github.com/robertmuth/Cwerg
comment by muth02446 · 2021-09-02 · in Meta Assembly Language -
https://github.com/robertmuth/Cwerg is similar in nature it supports arm64 and arm32 and can directly generate elf executables.
comment by muth02446 · 2021-08-20 · in Cproc C Compiler -
…like the idea of writing your own backend nor integrating with LLVM, maybe Cwerg is right for you: https://github.com/robertmuth/Cwerg
comment by muth02446 · 2021-08-04 · in Show HN: A work-in-progress C compiler from scratch -
shameless plug: I have been playing with a new IR here: https://github.com/robertmuth/Cwerg It does simplify the pointer related operations but re-introduces the signed/unsigned notion for integers. I felt this is important because at some…
comment by muth02446 · 2021-06-09 · in Design Issues in LLVM IR