Hacker GitHub

← All repos

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

Mentions per year 14 mentions · busiest year 2021 (7)
20082026
  1. …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
  2. 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.
  3. …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:…
  4. That is correct. The concrete syntax will be python-like. Somer examples are here: https://github.com/robertmuth/Cwerg/tree/master/FrontEnd/Con...
  5. ▲ 68
    Cwerg: C-like language that can be implemented in 10kLOC
    story by nateb2022 · 2024-03-22 · 50 comments
  6. 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
  7. I have a project going that tries to bring back ultra short compilation times: https://github.com/robertmuth/Cwerg
  8. 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
  9. 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
  10. 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
  11. …like the idea of writing your own backend nor integrating with LLVM, maybe Cwerg is right for you: https://github.com/robertmuth/Cwerg
  12. ▲ 4
    Cwerg: An opinionated, lightweight and dependency free compiler back end
    story by muth02446 · 2021-06-27 · 0 comments
  13. 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
  14. ▲ 6
    Show HN: Cwerg -a lightweight compiler back end
    story by muth02446 · 2021-06-01 · 1 comment