M

Marius Bancila

mariusbancila.ro · Personal blog · on HN since 2012

Marius Bancila, a C++ developer, writes about modern C++ features such as ranges, std::format, east const and virtual inheritance.

What HN saysHN commenters link it for C++ references, including lists of removed C++17 features, ranges before and after examples, east const and converting enums to strings.
25HN people shared it
6linked it in comments
33stories submitted
333story points
3 months agolast shared
2012people per year2026

Most-shared posts

  1. 1
    C++17 removed and deprecated features
    3 people · 5 points · first shared 2018 · discussion on HN
  2. 2
    Using East Const in C++
    3 people · 4 points · first shared 2021 · discussion on HN
  3. 3
    Virtual Inheritance in C++
    2 people · 4 points · first shared 2021 · discussion on HN
  4. 4
    C++ code before and after Ranges
    2 people · 3 points · first shared 2019 · discussion on HN
  5. 5
    Formatting Text in C++: The Old and the New Ways
    2 people · 2 points · first shared 2023 · discussion on HN
  6. 6
    The PImpl idiom and the C++26 std:indirect type
    2 people · 2 points · first shared 2026 · discussion on HN
  7. 7
    Improvements to Std:Format in C++26
    2 people · 2 points · first shared 2026 · discussion on HN
  8. 8
    How to convert an enum to string in C++
    2 people · 1 points · first shared 2023 · discussion on HN
  9. 9
    No More Plain Old Data (2020)
    2 people · 1 points · first shared 2021 · discussion on HN
  10. 10
    What's new in C++26 (part 1)
    1 people · 149 points · first shared 2024 · 165 comments on HN
  11. 11
    Three new utility functions in C++23
    1 people · 139 points · first shared 2022 · 187 comments on HN
  12. 12
    The Evolution of Functions in Modern C++
    1 people · 2 points · first shared 2022 · discussion on HN
  13. 13
    Requires expressions and requires clauses in C++20
    1 people · 2 points · first shared 2022 · discussion on HN
  14. 14
  15. 15
    Notes on std:optional’s monadic operations
    1 people · 2 points · first shared 2023 · discussion on HN

What HN people wrote when they linked it

rramadass · 2024-05-23
POD is not an idiom. It was an actual specification (in a sense) for interop between C++ and C. Only in the later standards (maybe starting at C++14?) did the committee refine it further as "POD = Trivial + Standard_Layout" but that is just a redefinition without any fundamental change in semantics. So you can happily write C++ code with just your understanding of POD from C++98 in practice and everything will work fine. References: 1) Trivial, standard-layout, POD, and literal types - https://learn.microsoft.com/en-us/cpp/cpp/trivial-standard-layout-and-… 2) No more plain old data - https://mariusbancila.ro/blog/2020/08/10/no-more-plain-old-data/
317070 · 2023-09-30
There are a couple of drier alternatives in this blogpost: https://mariusbancila.ro/blog/2023/08/17/how-to-convert-an-enum-to-str…
jcelerier · 2022-06-17
> LINQ is to C#/.NET what <algorithm> is to C++. algorithms weren't really composable unlike LINQ. Ranges however are, see the examples here: https://mariusbancila.ro/blog/2019/01/20/cpp-code-samples-before-and-a… And they also heavily benefit from coroutines, basically allowing to make ranges from anything with e.g. std::generator<T>
enqk · 2021-08-20
look up eastside const https://mariusbancila.ro/blog/2018/11/23/join-the-east-const-revolutio… I’ve been using this style at home in a longtime now, I appreciate how it’s more at home with C and more consistent
saagarjha · 2020-02-27

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close