Hacker GitHub

← All repos

matt-42/iod

View on GitHub ↗ ★ 725 C++

Meta programming utilities for C++14. Merged in matt-42/lithium

12 mentions on Hacker News by 2 people: 6 stories, 6 comments · first 2014-05-07 · latest 2020-08-29

Mentions per year 12 mentions · busiest year 2014 (5)
20082026
  1. …the design of? What C++ codebases do you like or find interesting from a design perspective? [1] https://github.com/matt-42/iod (merged into Lithium) [2] https://github.com/matt-42/silicon
  2. ▲ 1
    Parsing command line with one C++14 statement
    story by matt42 · 2016-09-16 · 0 comments
  3. ▲ 3
    Simple and Modern C++14 Command Line Parsing
    story by matt42 · 2016-09-15 · 1 comment
  4. …me, and you can go over the problem of the weirdly named one-off struct by using the iod library ( https://github.com/matt-42/iod ): foo() { return D(_id = "test", _age = "42" }; } auto r = foo(); std::cout << r.id << r.age << std::endl;
  5. …it to plain C++. In short, their are empty objects holding a unique C++ type. More info here: https://github.com/matt-42/iod
  6. The source code is here, interesting if you enjoy c++14 meta programming: https://github.com/matt-42/iod/blob/master/iod/di.hh
  7. ▲ 21
    Non Intrusive Static Recursive Dependency Injection for C++14
    story by matt42 · 2015-01-04 · 11 comments
  8. …iod library makes iterating on the members of an sio object trivial with the foreach primitive (see https://github.com/matt-42/iod/blob/master/iod/json.hh#L417 ) so generating a serializer / deserializer like this one is not so complicated…
  9. ▲ 98
    Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
    story by matt42 · 2014-11-14 · 45 comments
  10. ▲ 1
    The IOD C++14 Library 1.0 – A New Metaprogramming Paradigm
    story by matt42 · 2014-11-13 · 0 comments
  11. …symplifies (a lot) the writting of such abstractions. The object model is only 100 lines of C++11: https://github.com/matt-42/iod/blob/master/iod.hh
  12. ▲ 70
    Show HN: C++11 inline object definitions
    story by matt42 · 2014-05-07 · 34 comments