Hacker GitHub

← All repos

hsutter/cppfront

View on GitHub ↗ ★ 6,016 C++

A personal experimental C++ Syntax 2 -> Syntax 1 compiler

55 mentions on Hacker News by 52 people: 6 stories, 49 comments · first 2022-09-17 · latest 2026-09-10

Mentions per year 55 mentions · busiest year 2023 (21)
20082026
  1. …Cpp2 was Herb's experiment and doesn't seem to be developed much further now, https://github.com/hsutter/cppfront/discussions/1450 Google is still quite keen in having Carbon, for the purpose of migrating existing C++ codebases, for new
    comment by pjmlp · 2026-09-10 · in Rust is tier-1 language at Microsoft
  2. I hope we're getting it for C++ with CppFront, but I'm not hopeful it'll ever become mainstream https://github.com/hsutter/cppfront
    comment by cenamus · 2026-07-16 · in SQLite should have (Rust-style) editions
  3. …That was his last commit to his "CPP2 syntax experiment". Don't expect it to "become a standard". https://github.com/hsutter/cppfront/commits/main/
    comment by tialaramex · 2026-06-05 · in C++: The Documentary
  4. …than my distant memories of C++11, which I don't even have negative memories of per se. [0] https://github.com/hsutter/cppfront
  5. …dynamic function call optimization, i wish i didn't have to search asm to check for... [0]: https://github.com/hsutter/cppfront
  6. …2. Is the proposed solution really more practicable than "typescript for c++" [0]? [0] https://github.com/hsutter/cppfront
  7. No need to imagine hypotheticals – this exists: https://github.com/hsutter/cppfront
    comment by pwdisswordfishy · 2025-11-22 · in Is C++26 getting destructive move semantics?
  8. cpp2/cfront could plausibly do this, right? Except he doesn't want to: https://github.com/hsutter/cppfront/wiki/Design-note%3A-cons...
    comment by loeg · 2025-10-31 · in John Carmack on mutable variables
  9. …"What does this line of code mean out of context" in C++. Good luck! I have hope for C++front/Cpp2. https://github.com/hsutter/cppfront (oh and I think you can write a whole book on the different ways to initialize variables in C++). The…
    comment by butterisgood · 2025-09-16 · in In Defense of C++
  10. …philosophically with making locals const by default, and I think doing so is table stakes: https://github.com/hsutter/cppfront/wiki/Design-note%3A-cons... I mean, c'mon > Show that in today's C++ guidance literature we already teach C++…
    comment by quotemstr · 2025-09-07 · in C++26: Erroneous behaviour
  11. …same language as C++, would have perfect interoperability. Sounds like Herb Sutter's cpp2/cppfront: https://github.com/hsutter/cppfront
    comment by aw1621107 · 2025-09-07 · in C++26: Erroneous behaviour
  12. …approach is to take in an arguably nicer/better/easier/safer syntax, and transpile it into C++ : https://github.com/hsutter/cppfront/
    comment by einpoklum · 2025-02-05 · in 21st Century C++
  13. ▲ 2
    Herb Sutter's Cppfront 0.8.0
    story by agluszak · 2024-11-03 · 0 comments
  14. ▲ 20
    Cppfront v0.8.0
    story by ahamez · 2024-11-02 · 2 comments
  15. …a lot by introducing unifying syntax (that compiles to ordinary C++ -- same semantics in the end) https://github.com/hsutter/cppfront
    comment by d0mine · 2024-09-07 · in What's new in C++26 (part 1)
  16. …using #unsafe when needed, like Rust. C++ does evolve over decades, more like other languages. [1] https://github.com/hsutter/cppfront BTW. Use the AddressSanitizer. Please! The toolchain improved the usage and safety of the language so…
    comment by ho_schi · 2024-05-10 · in Trip C++Now 2024 – think-cell
  17. CPP2/cppfront: https://github.com/hsutter/cppfront I hope we see this in C++26 as optional mode i.e. #safe and #unsafe and same for #impdef or so.
    comment by ho_schi · 2024-05-07 · in GCC 14.1
  18. Herb Stutter's Cpp2 is like that https://github.com/hsutter/cppfront
  19. …cpp2 can call cpp, and cpp can call cpp2 without implementing half of a C++ compiler isn't obvious. https://github.com/hsutter/cppfront/issues/594
  20. https://github.com/hsutter/cppfront/wiki/Design-note:-Captur...
  21. …everybody else to implement. To Herb Sutter's credit, he did make a "C++2" implementation: https://github.com/hsutter/cppfront But his side project at Microsoft didn't gain traction with gcc, clang, etc and everybody else in the industry.…
    comment by jasode · 2024-03-12 · in C++ Safety, in Context
  22. ▲ 3
    Cppfront: Experimental C++ Syntax 2 –> Syntax 1 compiler
    story by ctas · 2024-02-20 · 0 comments
  23. …https://dlang.org/ Rust - https://www.rust-lang.org/ cppfront (Herb Sutter's C++ frontend/syntax) - https://github.com/hsutter/cppfront Nim - https://nim-lang.org/ Crystal (not sure if this counts) - https://crystal-lang.org/ Vale -…
    comment by frfl · 2024-01-02 · in Odin Programming Language
  24. ▲ 3
    Cppfront
    story by belter · 2024-01-01 · 0 comments
  25. …standby until Anders Hejlsberg feels like tackling a modern, next generation systems language. [1] https://github.com/hsutter/cppfront
    comment by throwat2341 · 2023-12-20 · in C++ Should Be C++
  26. You mean like Cpp2? https://github.com/hsutter/cppfront
    comment by jhasse · 2023-11-14 · in C++ Lambda Idioms (2022) [video]
  27. …inc: (inout this) = data++; } main: () = { x: myclass = (); x.print(); x.inc(); x.print(); } -- 1: https://github.com/hsutter/cppfront/wiki/Design-note:-Cpp2-n... 2: https://github.com/ntrel/cpp2
  28. …— if it someday becomes ready for that, I'll post more docs." The examples don't have comments. [1] https://github.com/hsutter/cppfront#wheres-the-documentation
  29. …activity on it is nearly zero since then... Is that true? Seems like he is actively working on it: https://github.com/hsutter/cppfront/commits/main
  30. Cppfront: https://github.com/hsutter/cppfront
  31. …whether there's a way we can evolve C++ itself to become 10x simpler, safer, and more toolable." https://github.com/hsutter/cppfront
    comment by googlryas · 2023-08-28 · in C++ Papercuts
  32. …100% linking compatibility, and with 100% source backward compatibility available when desired. [1] https://github.com/hsutter/cppfront
    comment by doodpants · 2023-08-28 · in C++ Papercuts
  33. …that can be mixed freely with the traditional syntax. Seems like it's actively being worked on here https://github.com/hsutter/cppfront . I've not looked at Circle in depth. Do you or anyone else have a perspective on how they compare?
    comment by geertj · 2023-08-16 · in Circle Evolves C++ [video]
  34. …things, prove out some concepts, and share some ideas. [1] https://en.wikipedia.org/wiki/Cfront [2] https://github.com/hsutter/cppfront
    comment by selcuka · 2023-08-10 · in R.I.P. Macromedia FreeHand (2007)
  35. …without the complexity baggage. I think that may be the motivation for Sutter's work on cpp2. https://github.com/hsutter/cppfront
  36. …working on something like that already. See his work on CppFront as an alternative syntax for C++: https://github.com/hsutter/cppfront
  37. …to types I think is bonkers, making critical details hard to find except maybe through convention. https://github.com/hsutter/cppfront > <> for inequality is something SQL got right Maybe I'm not recognizing the biases of my own learning…
    comment by epage · 2023-06-05 · in The Rust I wanted had no future
  38. …old. Every new feature has to account for interactions with the rest of the language. Herb Sutter's https://github.com/hsutter/cppfront could be a good strategy to clean it up.
  39. …safely and avoid some old footguns. [1]: https://github.com/carbon-language/carbon-lang [2]: https://github.com/hsutter/cppfront
  40. …c++". I think google carbon ( https://github.com/carbon-language/carbon-lang ) and hurb sutter ( https://github.com/hsutter/cppfront ) are probably the most advanced "proposal". Both languages are highly experimental and really far away…
  41. …around UB, and can rely on C++ as its unsafe counterpart You're looking for Herb Sutter's CppFront: https://github.com/hsutter/cppfront As Cfront was to C, Cppfront is to C++.
    comment by coderjames · 2023-02-28 · in Will Carbon Replace C++?
  42. …to mention Carbon ( https://en.wikipedia.org/wiki/Carbon_(programming_language) ) and cppfront ( https://github.com/hsutter/cppfront ).
    comment by nayuki · 2023-02-14 · in The C++ Killers (Not You, Rust)
  43. …happens to like Rust. These C idioms continue to be valid and reasonably widely used in C++. [0]: https://github.com/hsutter/cppfront [1]: https://github.com/carbon-language/carbon-lang
  44. …e.g. CppFront is making that choice from the start? (Edit: sounds like it, if this is up to date: https://github.com/hsutter/cppfront/issues/110#issuecomment-... )
  45. …Val: https://www.val-lang.dev/ Carbon: https://github.com/carbon-language/carbon-lang CppFront: https://github.com/hsutter/cppfront
    comment by eps · 2023-01-02 · in The year of C++ successor languages
  46. …if you want to write a safer language on top of C++, you can watch the talk about it here[1]. [0] https://github.com/hsutter/cppfront [1] https://www.youtube.com/watch?v=ELeZAKCN4tY
    comment by norman784 · 2022-12-09 · in C++23: std:out_ptr and std:inout_ptr
  47. He calls it cpp2 or Syntax 2: https://github.com/hsutter/cppfront
  48. As well as https://github.com/hsutter/cppfront
    comment by steveklabnik · 2022-11-02 · in C++ is the next C++
  49. That will be in cpp2 already: https://github.com/hsutter/cppfront
    comment by germandiago · 2022-09-25 · in C++20, How Hard Could It Be
  50. …is the issue, can't we just use a sandbox or something? Is C++2 really the better option? [1]: https://github.com/hsutter/cppfront/blob/main/regression-tes...